1.638 problem 653

Internal problem ID [8128]

Book: Collection of Kovacic problems
Section: section 1
Problem number: 653.
ODE order: 2.
ODE degree: 1.

CAS Maple gives this as type [[_2nd_order, _with_linear_symmetries]]

\[ \boxed {f^{\prime \prime }+2 \left (z -1\right ) f^{\prime }+4 f=0} \]

Solution by Maple

Time used: 0.015 (sec). Leaf size: 44

dsolve(diff(f(z),z$2)+2*(z-1)*diff(f(z),z)+4*f(z)=0,f(z), singsol=all)
 

\[ f \left (z \right ) = c_{1} {\mathrm e}^{-z \left (z -2\right )} \left (z -1\right )+c_{2} \left (\left (z -1\right ) \sqrt {\pi }\, \operatorname {erf}\left (i \left (z -1\right )\right ) {\mathrm e}^{-\left (z -1\right )^{2}}-i\right ) \]

Solution by Mathematica

Time used: 0.174 (sec). Leaf size: 72

DSolve[f''[z]+2*(z-a)*f'[z]+4*f[z]==0,f[z],z,IncludeSingularSolutions -> True]
 

\[ f(z)\to e^{z (2 a-z)} \left (-\sqrt {\pi } c_2 \sqrt {(a-z)^2} \text {erfi}\left (\sqrt {(a-z)^2}\right )+c_2 e^{(a-z)^2}-2 a c_1+2 c_1 z\right ) \]