1.9 problem 2(c)

Internal problem ID [2528]

Book: Elementary Differential equations, Chaundy, 1969
Section: Exercises 3, page 60
Problem number: 2(c).
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

Solve \begin {gather*} \boxed {y^{\prime } x +n y-x^{n}=0} \end {gather*}

Solution by Maple

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

dsolve(x*diff(y(x),x)+n*y(x)=x^n,y(x), singsol=all)
 

\[ y \relax (x ) = \frac {x^{n}}{2 n}+x^{-n} c_{1} \]

Solution by Mathematica

Time used: 0.052 (sec). Leaf size: 24

DSolve[x*y'[x]+n*y[x]==x^n,y[x],x,IncludeSingularSolutions -> True]
 

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