2.8 problem Problem 11.51

Internal problem ID [5182]

Book: Schaums Outline Differential Equations, 4th edition. Bronson and Costa. McGraw Hill 2014
Section: Chapter 11. THE METHOD OF UNDETERMINED COEFFICIENTS. Supplementary Problems. page 101
Problem number: Problem 11.51.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [[_linear, `class A`]]

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

Solution by Maple

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

dsolve(diff(y(x),x)-y(x)=sin(x)+cos(2*x),y(x), singsol=all)
 

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

Solution by Mathematica

Time used: 0.16 (sec). Leaf size: 37

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

\[ y(x)\to \frac {1}{10} \left (-5 \sin (x)+4 \sin (2 x)-5 \cos (x)-2 \cos (2 x)+10 c_1 e^x\right ) \]