2.8 problem Problem 11.51

Internal problem ID [4674]

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]]

Solve \begin {gather*} \boxed {y^{\prime }-y-\sin \relax (x )-\cos \left (2 x \right )=0} \end {gather*}

Solution by Maple

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

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

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

Solution by Mathematica

Time used: 0.23 (sec). Leaf size: 36

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

\begin{align*} y(x)\to \frac {1}{10} (-5 \sin (x)-2 \cos (2 x)+(8 \sin (x)-5) \cos (x))+c_1 e^x \\ \end{align*}