Internal problem ID [13735]
Book: Ordinary Differential Equations. An introduction to the fundamentals. Kenneth B. Howell.
second edition. CRC Press. FL, USA. 2020
Section: Chapter 22. Method of undetermined coefficients. Additional exercises page
412
Problem number: 22.10 (m).
ODE order: 2.
ODE degree: 1.
CAS Maple gives this as type [[_2nd_order, _linear, _nonhomogeneous]]
\[ \boxed {y^{\prime \prime }+y=6 \cos \left (x \right )-3 \sin \left (x \right )} \]
✓ Solution by Maple
Time used: 0.0 (sec). Leaf size: 26
dsolve(diff(y(x),x$2)+y(x)=6*cos(x)-3*sin(x),y(x), singsol=all)
\[ y \left (x \right ) = \frac {\left (2 c_{1} +3 x +6\right ) \cos \left (x \right )}{2}+3 \left (x +\frac {c_{2}}{3}\right ) \sin \left (x \right ) \]
✓ Solution by Mathematica
Time used: 0.096 (sec). Leaf size: 27
DSolve[y''[x]+y[x]==6*Cos[x]-3*Sin[x],y[x],x,IncludeSingularSolutions -> True]
\[ y(x)\to \left (\frac {3 x}{2}+3+c_1\right ) \cos (x)+(3 x+c_2) \sin (x) \]