1.2 problem 2

Internal problem ID [2]

Book: Differential equations and linear algebra, 3rd ed., Edwards and Penney
Section: Section 1.2. Integrals as general and particular solutions. Page 16
Problem number: 2.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_quadrature]

Solve \begin {gather*} \boxed {y^{\prime }-\left (-2+x \right )^{2}=0} \end {gather*} With initial conditions \begin {align*} [y \relax (2) = 1] \end {align*}

Solution by Maple

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

dsolve([diff(y(x),x) = (-2+x)^2,y(2) = 1],y(x), singsol=all)
 

\[ y \relax (x ) = \frac {1}{3} x^{3}-2 x^{2}+4 x -\frac {5}{3} \]

Solution by Mathematica

Time used: 0.003 (sec). Leaf size: 20

DSolve[{y'[x]==(-2+x)^2,y[2]==1},y[x],x,IncludeSingularSolutions -> True]
 

\begin{align*} y(x)\to \frac {1}{3} (x ((x-6) x+12)-5) \\ \end{align*}