2.10 problem Problem 10

Internal problem ID [2122]

Book: Differential equations and linear algebra, Stephen W. Goode and Scott A Annin. Fourth edition, 2015
Section: Chapter 1, First-Order Differential Equations. Section 1.4, Separable Differential Equations. page 43
Problem number: Problem 10.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_separable]

Solve \begin {gather*} \boxed {y^{\prime }-\frac {x^{2} y-32}{-x^{2}+16}-2=0} \end {gather*}

Solution by Maple

Time used: 0.0 (sec). Leaf size: 32

dsolve(diff(y(x),x)=(x^2*y(x)-32)/(16-x^2)+2,y(x), singsol=all)
 

\[ y \relax (x ) = \frac {{\mathrm e}^{-x} \left (x^{2}+8 x +16\right ) c_{1}}{\left (x -4\right )^{2}}+2 \,{\mathrm e}^{x} {\mathrm e}^{-x} \]

Solution by Mathematica

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

DSolve[y'[x]==(x^2*y[x]-32)/(16-x^2)+2,y[x],x,IncludeSingularSolutions -> True]
 

\begin{align*} y(x)\to 2+\frac {c_1 e^{-x} (x+4)^2}{(x-4)^2} \\ y(x)\to 2 \\ \end{align*}