You can solve algebraic equations, differential equations, and differential algebraic equations (DAEs).
Solve algebraic equations to get either exact
analytic solutions or high-precision numeric solutions. For analytic solutions,
solve, and for numerical solutions, use
vpasolve. For solving linear equations, use
linsolve. These solver functions have the flexibility to
handle complicated problems. See Troubleshoot Equation Solutions from solve Function.
Solve differential algebraic equations (DAEs)
by first reducing their differential index to
0 using Symbolic Math Toolbox™ functions, and then using MATLAB® solvers, such as
ode23t. See Solve Differential Algebraic Equations (DAEs).
Live Editor Tasks
|Solve Symbolic Equation||Find analytic solutions of symbolic equations in Live Editor|
Linear and Nonlinear Equations and Systems
Ordinary Differential Equations (ODEs)
Differential Algebraic Equations (DAEs)
|Convert system of differential algebraic equations to MATLAB function handle suitable for |
|Find consistent initial conditions for first-order implicit ODE system with algebraic constraints|
|Search for decoupled blocks in systems of equations|
|Find incidence matrix of system of equations|
|Check if differential index of system of equations is lower than 2|
|Extract mass matrix and right side of semilinear system of differential algebraic equations|
|Convert symbolic expressions to function handle for ODE solvers|
|Convert system of first-order differential algebraic equations to equivalent system of differential index 1|
|Convert system of first-order semilinear differential algebraic equations to equivalent system of differential index 0|
|Reduce system of higher-order differential equations to equivalent system of first-order differential equations|
|Simplify system of first-order differential algebraic equations by eliminating redundant equations and variables|
- Solve Algebraic Equations
Solve equations analytically, return full solutions, and visualize results.
- Solve Differential Equation
Solve a differential equation analytically by using the
dsolvefunction, with or without initial conditions.
- Solve Differential Algebraic Equations (DAEs)
This example show how to solve differential algebraic equations (DAEs) by using MATLAB® and Symbolic Math Toolbox™.