1.6 problem 5

Internal problem ID [2760]

Book: Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section: Various 1
Problem number: 5.
ODE order: 1.
ODE degree: 1.

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

Solve \begin {gather*} \boxed {y^{\prime }-a \sin \left (b x +c \right )-k y=0} \end {gather*}

Solution by Maple

Time used: 0.016 (sec). Leaf size: 40

dsolve(diff(y(x),x) = a*sin(b*x+c)+k*y(x),y(x), singsol=all)
 

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

Solution by Mathematica

Time used: 0.129 (sec). Leaf size: 43

DSolve[y'[x]==a*Sin[b*x+c]+k*y[x],y[x],x,IncludeSingularSolutions -> True]
 

\begin{align*} y(x)\to -\frac {a (k \sin (b x+c)+b \cos (b x+c))}{b^2+k^2}+c_1 e^{k x} \\ \end{align*}