17.10 problem 560

Internal problem ID [15329]

Book: A book of problems in ordinary differential equations. M.L. KRASNOV, A.L. KISELYOV, G.I. MARKARENKO. MIR, MOSCOW. 1983
Section: Chapter 2 (Higher order ODE’s). Section 15.3 Nonhomogeneous linear equations with constant coefficients. Superposition principle. Exercises page 137
Problem number: 560.
ODE order: 2.
ODE degree: 1.

CAS Maple gives this as type [[_2nd_order, _missing_y]]

\[ \boxed {y^{\prime \prime }-3 y^{\prime }=18 x -10 \cos \left (x \right )} \]

Solution by Maple

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

dsolve(diff(y(x),x$2)-3*diff(y(x),x)=18*x-10*cos(x),y(x), singsol=all)
 

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

Solution by Mathematica

Time used: 0.162 (sec). Leaf size: 33

DSolve[y''[x]-3*y'[x]==18*x-10*Cos[x],y[x],x,IncludeSingularSolutions -> True]
 

\[ y(x)\to -3 x^2-2 x+3 \sin (x)+\cos (x)+\frac {1}{3} c_1 e^{3 x}+c_2 \]