1.12 problem Problem 18

Internal problem ID [2598]

Book: Differential equations and linear algebra, Stephen W. Goode and Scott A Annin. Fourth edition, 2015
Section: Chapter 1, First-Order Differential Equations. Section 1.2, Basic Ideas and Terminology. page 21
Problem number: Problem 18.
ODE order: 2.
ODE degree: 1.

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

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

Solution by Maple

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

dsolve(x^2*diff(y(x),x$2)-4*x*diff(y(x),x)+6*y(x)=x^4*sin(x),y(x), singsol=all)
 

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

Solution by Mathematica

Time used: 0.028 (sec). Leaf size: 20

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

\[ y(x)\to x^2 (-\sin (x)+c_2 x+c_1) \]