9.13 problem Problem 13

Internal problem ID [2277]

Book: Differential equations and linear algebra, Stephen W. Goode and Scott A Annin. Fourth edition, 2015
Section: Chapter 8, Linear differential equations of order n. Section 8.7, The Variation of Parameters Method. page 556
Problem number: Problem 13.
ODE order: 2.
ODE degree: 1.

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

Solve \begin {gather*} \boxed {y^{\prime \prime }-2 m y^{\prime }+m^{2} y-\frac {{\mathrm e}^{m x}}{x^{2}+1}=0} \end {gather*}

Solution by Maple

Time used: 0.016 (sec). Leaf size: 38

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

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

Solution by Mathematica

Time used: 0.014 (sec). Leaf size: 35

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

\begin{align*} y(x)\to \frac {1}{2} e^{m x} \left (-\log \left (x^2+1\right )+2 (x (\text {ArcTan}(x)+c_2)+c_1)\right ) \\ \end{align*}