How to covert this differential equation into a system of one order ODE?

Join the discussion
Registration is free. Start your own thread to ask a follow-up.
1 reply · 2K views
nufeng
Messages
6
Reaction score
0
How to covert this differential equation into a system of one order ODE?
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.
 
Physics news on Phys.org