11.5 problem 30

Internal problem ID [5396]

Book: Schaums Outline. Theory and problems of Differential Equations, 1st edition. Frank Ayres. McGraw Hill 1952
Section: Chapter 16. Linear equations with constant coefficients (Short methods). Supplemetary problems. Page 107
Problem number: 30.
ODE order: 3.
ODE degree: 1.

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

\[ \boxed {y^{\prime \prime \prime }+y=\cos \left (x \right )} \]

Solution by Maple

Time used: 0.0 (sec). Leaf size: 48

dsolve(diff(y(x),x$3)+y(x)=cos(x),y(x), singsol=all)
 

\[ y \left (x \right ) = \left (\frac {\left (\cos \left (x \right )-\sin \left (x \right )\right ) {\mathrm e}^{x}}{2}+c_{3} \sin \left (\frac {\sqrt {3}\, x}{2}\right ) {\mathrm e}^{\frac {3 x}{2}}+c_{2} \cos \left (\frac {\sqrt {3}\, x}{2}\right ) {\mathrm e}^{\frac {3 x}{2}}+c_{1} \right ) {\mathrm e}^{-x} \]

Solution by Mathematica

Time used: 0.515 (sec). Leaf size: 68

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

\[ y(x)\to -\frac {\sin (x)}{2}+\frac {\cos (x)}{2}+c_1 e^{-x}+c_3 e^{x/2} \cos \left (\frac {\sqrt {3} x}{2}\right )+c_2 e^{x/2} \sin \left (\frac {\sqrt {3} x}{2}\right ) \]