2.92   ODE No. 92

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

x2(sin(x))+xy(x)y(x)=0 Mathematica : cpu = 0.0237564 (sec), leaf count = 15

{{y(x)xcos(x)+c1x}} Maple : cpu = 0.006 (sec), leaf count = 12

{y(x)=(c1cos(x))x}

Hand solution

xyy=x2sinx

Linear first order, exact, separable. yyx=xsinx, integrating factor μ=e1xdx=elnx=1x, henced(μy)=μsinx1xy=sinxdx+Cy=x(Ccosx)

Verification

restart; 
ode:=x*diff(y(x),x)-y(x)=x^2*sin(x); 
my_sol:=x*(_C1-cos(x)); 
odetest(y(x)=my_sol,ode); 
0