1.10 problem HW 5 problem 1(b)

Internal problem ID [6285]

Book: Selected problems from homeworks from different courses
Section: Math 2520, summer 2021. Differential Equations and Linear Algebra. Normandale college, Bloomington, Minnesota
Problem number: HW 5 problem 1(b).
ODE order: 2.
ODE degree: 1.

CAS Maple gives this as type [[_2nd_order, _linear, _nonhomogeneous]]

Solve \begin {gather*} \boxed {y^{\prime \prime }+16 y-4 \cos \relax (x )=0} \end {gather*}

Solution by Maple

Time used: 0.015 (sec). Leaf size: 21

dsolve(diff(y(x),x$2)+16*y(x)=4*cos(x),y(x), singsol=all)
 

\[ y \relax (x ) = \sin \left (4 x \right ) c_{2}+\cos \left (4 x \right ) c_{1}+\frac {4 \cos \relax (x )}{15} \]

Solution by Mathematica

Time used: 0.01 (sec). Leaf size: 26

DSolve[y''[x]+16*y[x]==4*Cos[x],y[x],x,IncludeSingularSolutions -> True]
 

\begin{align*} y(x)\to \frac {4 \cos (x)}{15}+c_1 \cos (4 x)+c_2 \sin (4 x) \\ \end{align*}