Rational solutions of a first order homogeneous linear differential system
MuPAD® notebooks are not recommended. Use MATLAB® live scripts instead.
MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.
ode::ratSys(M, x) computes a fundamental
set of rational solutions of the first order homogeneous linear differential
Y'=MY. This method uses a cyclic vector
and therefore is not optimal.
We compute the rational solutions of the following differential system:
A := matrix([ [2*(x+x^2-9)/x/(x-2),2*(x^2-6)/x/(x-2)], [-3*(2*x+x^2-12)/x/(x-2),-(2*x+3*x^2-24)/x/(x-2)] ])
v := ode::ratSys(A, x)
And we can check the result:
diff(v, x) = normal(A*v)
A square matrix of type
The independent function.