怎么用MATLAB求解如Dy = y+1/y 的微分方程

问题描述:

怎么用MATLAB求解如Dy = y+1/y 的微分方程
初值为y(0)=y0,请给一种这种非线性微分方程的普遍解法,

>> syms x y0>> y=dsolve('Dy=y+1/y','y(0)=y0','x')y =(-1+exp(2*x)*(1+y0^2))^(1/2)-(-1+exp(2*x)*(1+y0^2))^(1/2)>> help dsolveDSOLVE Symbolic solution of ordinary differential equations.DSOLVE('eqn1','eq...