9.12 problem 12

Internal problem ID [1118]

Book: Elementary differential equations with boundary value problems. William F. Trench. Brooks/Cole 2001
Section: Chapter 5 linear second order equations. Section 5.6 Reduction or order. Page 253
Problem number: 12.
ODE order: 2.
ODE degree: 1.

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

\[ \boxed {\left (1-2 x \right ) y^{\prime \prime }+2 y^{\prime }+\left (-3+2 x \right ) y=\left (4 x^{2}-4 x +1\right ) {\mathrm e}^{x}} \] Given that one solution of the ode is \begin {align*} y_1 &= {\mathrm e}^{x} \end {align*}

Solution by Maple

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

dsolve([(1-2*x)*diff(y(x),x$2)+2*diff(y(x),x)+(2*x-3)*y(x)=(1-4*x+4*x^2)*exp(x),exp(x)],y(x), singsol=all)
 

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

Solution by Mathematica

Time used: 0.254 (sec). Leaf size: 77

DSolve[(1-2*x)*y''[x]+2*y'[x]+(2*x-3)*y[x]==(1-4*x+4*x^2)*Exp[x],y[x],x,IncludeSingularSolutions -> True]
 

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