25.1.12 problem 12

Internal problem ID [4224]
Book : Advanced Mathematica, Book2, Perkin and Perkin, 1992
Section : Chapter 11.3, page 316
Problem number : 12
Date solved : Monday, January 27, 2025 at 08:42:55 AM
CAS classification : [_separable]

\begin{align*} y^{\prime }+2 y x&=0 \end{align*}

With initial conditions

\begin{align*} y \left (0\right )&=5 \end{align*}

Solution by Maple

Time used: 0.012 (sec). Leaf size: 12

dsolve([diff(y(x),x)+2*x*y(x)=0,y(0) = 5],y(x), singsol=all)
 
\[ y \left (x \right ) = 5 \,{\mathrm e}^{-x^{2}} \]

Solution by Mathematica

Time used: 0.025 (sec). Leaf size: 14

DSolve[{D[y[x],x]+2*x*y[x]==0,y[0]==5},y[x],x,IncludeSingularSolutions -> True]
 
\[ y(x)\to 5 e^{-x^2} \]