- 6

- 0

(require covert the equation into a system of 1st-order equations and solve by using ode23 in matlab)

x^2*y''-2*x*y'+2*y = 0;

y(1) = 4; y'(1)=0;

solve for y(x)

I tried to convert it

get

X' = AX

in which

X = [y, z]'

A = [0, 1; 2/x^2, 2/x];

But x exists in A, which cannot solve by dsolve in Matlab.