10.6 problem 6

Internal problem ID [1160]

Book: Elementary differential equations with boundary value problems. William F. Trench. Brooks/Cole 2001
Section: Chapter 5 linear second order equations. Section 5.7 Variation of Parameters. Page 262
Problem number: 6.
ODE order: 2.
ODE degree: 1.

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

\[ \boxed {y^{\prime \prime }-y=\frac {4 \,{\mathrm e}^{-x}}{1-{\mathrm e}^{-2 x}}} \]

Solution by Maple

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

dsolve(diff(y(x),x$2)-y(x)=4*exp(-x)/(1-exp(-2*x)),y(x), singsol=all)
 

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

Solution by Mathematica

Time used: 0.121 (sec). Leaf size: 67

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

\[ y(x)\to e^{-x} \left (-2 e^{2 x} \log \left (e^x\right )+\left (e^{2 x}-1\right ) \log \left (e^x-1\right )+e^{2 x} \log \left (e^x+1\right )-\log \left (e^x+1\right )+c_1 e^{2 x}+c_2\right ) \]