2.20   ODE No. 20

  1. Problem in Latex
  2. Mathematica input
  3. Maple input

(x2+1)y(x)+y(x)y(x)22x=0 Mathematica : cpu = 0.0774186 (sec), leaf count = 49

{{y(x)ex33+x1xeK[1]33+K[1]dK[1]+c1+x2+1}} Maple : cpu = 0.054 (sec), leaf count = 34

{y(x)=x2+1+ex33+x(_C1ex33+xdx)1}

Hand solution

(x2+1)y+yy22x=0(1)y=(x2+1)y+y2+2x

This is Riccati first order non-linear ODE of the form of the general form y=P(x)+Q(x)y+R(x)y2 where P(x)=2x,Q(x)=(x2+1),R(x)=1. We can convert this to Bernoulli first order ODE in u(x), which is little easier to solve by using u=yx21.  The difference between Bernoulli and Riccati is that the term P(x)=0 in Bernoulli. If P(x)0 and R(x)0 then it is called Riccati.

Using u=yx21 givesu=y2xu=[(x2+1)y+y2+2x]2x=(x2+1)(u+x2+1)+(u+x2+1)2=(u+x2+1)[(u+x2+1)(x2+1)]=(u+x2+1)u=u2+u(1+x2)

We see now this is Bernoulli since P(x)=0. To solve Bernoulli we always start by dividing by u2 givinguu2=1+1u(1+x2) Next we let v=1u, hence v=uu2therefore the above becomesv=1+v(1+x2)v+v(1+x2)=1

Integrating factor is e(1+x2)dx=e(x+x32), therefored(e(x+x32)v)=e(x+x32) Integratinge(x+x32)v=e(x+x32)dx+Cv(x)=e(x+x32)(Ce(x+x32)dx)

Therefore u=1v=e(x+x32)(Ce(x+x32)dx) And since u=yx21 theny(x)=u+1+x2=e(x+x32)(Ce(x+x32)dx)+1+x2