2.96   ODE No. 96

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

xy(x)y(x)2+1=0 Mathematica : cpu = 0.057777 (sec), leaf count = 33

{{y(x)1e2c1x21+e2c1x2}} Maple : cpu = 0.034 (sec), leaf count = 11

{y(x)=tanh(ln(x)+_C1)}

Hand solution

xyy2+1=0

This is Riccati first order non-linear. But it is separable. Hence(1)y=y21x

Hence

dydx=y21xdyy21=dxx

Integrating

tanh1(y)=lnx+Cy=tanh(lnx+C)

Verification

restart; 
ode:=x*diff(y(x),x)-y(x)^2+1=0; 
my_sol:=-tanh(ln(x)+_C1); 
odetest(y(x)=my_sol,ode); 
0