30.1.4 problem Example, page 30

Internal problem ID [5692]
Book : Differential and integral calculus, vol II By N. Piskunov. 1974
Section : Chapter 1
Problem number : Example, page 30
Date solved : Monday, January 27, 2025 at 01:07:21 PM
CAS classification : [_linear]

\begin{align*} y^{\prime }-\frac {2 y}{1+x}&=\left (1+x \right )^{2} \end{align*}

Solution by Maple

Time used: 0.001 (sec). Leaf size: 13

dsolve(diff(y(x),x)-2*y(x)/(1+x)=(x+1)^2,y(x), singsol=all)
 
\[ y \left (x \right ) = \left (x +c_{1} \right ) \left (x +1\right )^{2} \]

Solution by Mathematica

Time used: 0.034 (sec). Leaf size: 15

DSolve[D[y[x],x]-2*y[x]/(1+x)==(x+1)^2,y[x],x,IncludeSingularSolutions -> True]
 
\[ y(x)\to (x+1)^2 (x+c_1) \]