Internal problem ID [1158]
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: 4.
ODE order: 2.
ODE degree: 1.
CAS Maple gives this as type [[_2nd_order, _linear, _nonhomogeneous]]
\[ \boxed {y^{\prime \prime }-2 y^{\prime }+2 y=3 \,{\mathrm e}^{x} \sec \left (x \right )} \]
✓ Solution by Maple
Time used: 0.0 (sec). Leaf size: 33
dsolve(diff(y(x),x$2)-2*diff(y(x),x)+2*y(x)=3*exp(x)*sec(x),y(x), singsol=all)
\[ y \left (x \right ) = c_{2} \sin \left (x \right ) {\mathrm e}^{x}+c_{1} \cos \left (x \right ) {\mathrm e}^{x}-3 \,{\mathrm e}^{x} \left (\cos \left (x \right ) \ln \left (\sec \left (x \right )\right )-\sin \left (x \right ) x \right ) \]
✓ Solution by Mathematica
Time used: 0.042 (sec). Leaf size: 30
DSolve[y''[x]-2*y'[x]+2*y[x]==3*Exp[x]*Sec[x],y[x],x,IncludeSingularSolutions -> True]
\[ y(x)\to e^x ((3 x+c_1) \sin (x)+\cos (x) (3 \log (\cos (x))+c_2)) \]