55.1.10 problem HW 5 problem 1(b)

Internal problem ID [8706]
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)
Date solved : Monday, January 27, 2025 at 04:19:50 PM
CAS classification : [[_2nd_order, _linear, _nonhomogeneous]]

\begin{align*} y^{\prime \prime }+16 y&=4 \cos \left (x \right ) \end{align*}

Solution by Maple

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

dsolve(diff(y(x),x$2)+16*y(x)=4*cos(x),y(x), singsol=all)
 
\[ y = \sin \left (4 x \right ) c_{2} +\cos \left (4 x \right ) c_{1} +\frac {4 \cos \left (x \right )}{15} \]

Solution by Mathematica

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

DSolve[D[y[x],{x,2}]+16*y[x]==4*Cos[x],y[x],x,IncludeSingularSolutions -> True]
 
\[ y(x)\to \frac {4 \cos (x)}{15}+c_1 \cos (4 x)+c_2 \sin (4 x) \]