1.4 problem Example 6

Internal problem ID [1647]

Book: Differential equations and their applications, 3rd ed., M. Braun
Section: Section 1.2. Page 6
Problem number: Example 6.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_separable]

\[ \boxed {y^{\prime }+2 t y=t} \] With initial conditions \begin {align*} [y \left (1\right ) = 2] \end {align*}

Solution by Maple

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

dsolve([diff(y(t),t)+2*t*y(t)=t,y(1) = 2],y(t), singsol=all)
 

\[ y \left (t \right ) = \frac {1}{2}+\frac {3 \,{\mathrm e}^{-\left (t -1\right ) \left (t +1\right )}}{2} \]

Solution by Mathematica

Time used: 0.035 (sec). Leaf size: 22

DSolve[{y'[t]+2*t*y[t]==t,y[1]==2},y[t],t,IncludeSingularSolutions -> True]
 

\[ y(t)\to \frac {3 e^{1-t^2}}{2}+\frac {1}{2} \]