Solving ODE Symbolically in MATLAB
www.math.tamu.edu › ~phoward › m289Solving ODE Symbolically in MATLAB First Order Equations We can solve ordinary differential equations symbolically in MATLAB with the built-in M-file dsolve. Example 1. Find a general solution for the first order differential equation y′(x) = xy. (1) We can accomplish this in MATLAB with the following single command, given along with
Equations and systems solver - MATLAB solve
www.mathworks.com › help › symbolicWhen solve cannot symbolically solve an equation, it tries to find a numeric solution using vpasolve. The vpasolve function returns the first solution found. Try solving the following equation. solve returns a numeric solution because it cannot find a symbolic solution. syms x eqn = sin (x) == x^2 - 1; S = solve (eqn,x)