14.1.13 problem 13

Internal problem ID [2484]
Book : Differential equations and their applications, 4th ed., M. Braun
Section : Chapter 1. First order differential equations. Section 1.2. Linear equations. Excercises page 9
Problem number : 13
Date solved : Monday, January 27, 2025 at 05:54:00 AM
CAS classification : [_linear]

\begin{align*} y^{\prime }+y&=\frac {1}{t^{2}+1} \end{align*}

With initial conditions

\begin{align*} y \left (1\right )&=2 \end{align*}

Solution by Maple

Time used: 0.125 (sec). Leaf size: 51

dsolve([diff(y(t),t)+y(t)=1/(1+t^2),y(1) = 2],y(t), singsol=all)
 
\[ y = -\frac {\left (i \operatorname {Ei}_{1}\left (-1+i\right ) {\mathrm e}^{i}-i \operatorname {Ei}_{1}\left (-1-i\right ) {\mathrm e}^{-i}-i {\mathrm e}^{i} \operatorname {Ei}_{1}\left (-t +i\right )+i {\mathrm e}^{-i} \operatorname {Ei}_{1}\left (-t -i\right )-4 \,{\mathrm e}\right ) {\mathrm e}^{-t}}{2} \]

Solution by Mathematica

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

DSolve[{D[y[t],t]+y[t]==1/(1+t^2),{y[1]==2}},y[t],t,IncludeSingularSolutions -> True]
 
\[ y(t)\to \frac {1}{2} e^{-t-i} \left (-i e^{2 i} \operatorname {ExpIntegralEi}(t-i)+i \operatorname {ExpIntegralEi}(t+i)-i \operatorname {ExpIntegralEi}(1+i)+i e^{2 i} \operatorname {ExpIntegralEi}(1-i)+4 e^{1+i}\right ) \]