We have learned in advanced mathematics that linear differential equations with constant coefficients have analytical solutions.
The general mathematical expression of linear differential equations with constant coefficients is:
Insert a picture description here.
We can understand the differential equation as a dynamic system, where U is the input signal and Y is the output signal. What we need most is the analytical solution of y. ..
Dsolve function:
y=dsolve('eqn 1 ',' eqn2 ',…,' cond 1 ',' cond2 ',…,' var ')
Eqni represents the equation, condi represents the initial value, var represents the independent variable in the differential equation, and the system defaults to T. ..
D stands for differential sign, D2 stands for second-order differential, and D3 stands for third-order differential.
Example 1: