11.2 problem 2

Internal problem ID [2141]

Book: Differential Equations by Alfred L. Nelson, Karl W. Folley, Max Coral. 3rd ed. DC heath. Boston. 1964
Section: Exercise 19, page 86
Problem number: 2.
ODE order: 2.
ODE degree: 1.

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

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

Solution by Maple

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

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

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

Solution by Mathematica

Time used: 0.069 (sec). Leaf size: 23

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

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