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, use
solve, and for numerical
vpasolve. For solving linear equations,
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 equations, return full solutions, and visualize results.
- Solve System of Algebraic Equations
- Troubleshoot Equation Solutions from solve Function
- Solve Equations Numerically
- Solve System of Linear Equations
- Select Numeric or Symbolic Solver
- Solve Parametric Equations in ReturnConditions Mode
- Solve Algebraic Equation Using Live Editor Task
Solve a differential equation analytically by using the
dsolve function, with or without initial conditions.
- Solve a System of Differential Equations
- Solve a Second-Order Differential Equation Numerically
- Solving Partial Differential Equations
This example show how to solve differential algebraic equations (DAEs) by using MATLAB® and Symbolic Math Toolbox™.