A mass m is connected to a wall through a spring k and a damper c, and is pushed by an applied force F(t). Output: displacement x(t). Input: force F(t).
Newton's law: ∑F=mx¨. The spring and the damper oppose the motion, so
F−kx−cx˙=mx¨,
hence
mx¨+cx˙+kx=F(t).
1.2 Electrical example: RC circuit
A voltage source vin(t) feeds a resistor R in series with a capacitor C; current i(t) flows in the loop. Output: capacitor voltage vC(t). Input: vin(t).
Kirchhoff's voltage law: vin=vR+vC. Using vR=Ri and i=Cv˙C we obtain vin=RCv˙C+vC, therefore
RCv˙C+vC=vin(t).
1.3 Different systems, same mathematical structure
Later, the same roots will appear as the poles of the transfer function.
Case 1: two distinct real roots
If λ1=λ2, both real, then
yh(t)=C1eλ1t+C2eλ2t.
Example: λ1=−1, λ2=−3⇒yh(t)=C1e−t+C2e−3t. Both modes decay.
Case 2: repeated real root
If λ1=λ2=λ, then
yh(t)=(C1+C2t)eλt.
Example: λ=−2⇒yh(t)=(C1+C2t)e−2t. The term te−2t still decays as t→∞.
Case 3: complex conjugate roots
If λ1,2=σ±jω, then
yh(t)=eσt[C1cos(ωt)+C2sin(ωt)].
σ controls growth or decay;
ω controls the oscillation frequency;
if σ<0 the oscillations are damped.
Stability intuition from natural modes
For a homogeneous solution made of modes eλit:
Root location
Mode behavior
Intuition
Re(λi)<0
decays
stable mode
Re(λi)=0
does not decay
marginal case
Re(λi)>0
grows
unstable mode
This is the first appearance of a central control idea: stability depends on the roots of the characteristic equation.
6. Particular solutions: a minimal recipe
For simple inputs, try a particular solution with the same shape as the input:
Input shape
Try for yp(t)
constant K
A
linear Kt
At+B
exponential Keαt
Aeαt
sinusoid Ksin(ωt)
Asin(ωt)+Bcos(ωt)
This is enough for the basic examples before Laplace transforms. The constants A,B are found by substituting yp in the ODE.
7. Example 2: complete second-order solution
Solve y¨+3y˙+2y=2, y(0)=0, y˙(0)=0.
Homogeneous part. Characteristic equation λ2+3λ+2=0, i.e. (λ+1)(λ+2)=0, so λ1=−1, λ2=−2 and
yh(t)=C1e−t+C2e−2t.
Particular part. The input is constant, so try yp=K. Since y˙p=0 and y¨p=0, substituting gives 2K=2⇒K=1. Therefore
y(t)=1+C1e−t+C2e−2t.
Initial conditions. From y(0)=0: 0=1+C1+C2. The derivative is y˙(t)=−C1e−t−2C2e−2t, and from y˙(0)=0: 0=−C1−2C2. Solving the two equations (add them: 0=1−C2⇒C2=1, then C1=−2):
y(t)=1−2e−t+e−2t.
What to read in the solution:
y(t)=steady state1+transient(−2e−t+e−2t).
the final value is 1;
the terms −2e−t and e−2t disappear as t→∞;
these terms are the natural modes;
the roots −1 and −2 (both with negative real part) tell us that both modes decay, hence the system settles at the steady state.
8. From ODEs to Laplace transforms
The time-domain solution is possible, but it can become algebraically heavy. Laplace transforms will let us move from differential equations to algebraic equations, which is why they are so useful in control systems.
Versione ripasso
Models as ODEs: mass-spring-damper mx¨+cx˙+kx=F(t); RC circuit RCv˙C+vC=vin(t). Same family any(n)+⋯+a0y=bmu(m)+⋯+b0u, so the same tools apply to any physical domain.
Splitting: y(t)=yh(t)+yp(t).
yh: zero input, natural behavior (from the characteristic equation);
yp: caused by the input, forced behavior.
Recipe:
write the characteristic equation (try eλt) and find the roots;
build yh with free constants;
find yp with the same shape as the input;
add them and fix the constants with the initial conditions (y(0),y˙(0),…; differentiate y when needed).
First ordery˙+ay=bU, y(0)=y0:
y(t)=abU+(y0−abU)e−at,τ=a1.
Steady state abU, transient (y0−abU)e−at.
Second ordery¨+a1y˙+a0y=0: characteristic equation λ2+a1λ+a0=0.
Roots
yh(t)
distinct real λ1=λ2
C1eλ1t+C2eλ2t
repeated real λ
(C1+C2t)eλt
complex σ±jω
eσt[C1cos(ωt)+C2sin(ωt)]
Stability from the roots: Re(λi)<0 decays (stable), =0 does not decay (marginal), >0 grows (unstable). Stability depends on the roots of the characteristic equation.
Typical mistakes: imposing the initial conditions on yh alone instead of on the complete yh+yp; forgetting the derivative condition y˙(0) for a second-order ODE; forgetting the factor t for a repeated root; reading the time constant as a instead of 1/a.
Next: Laplace transforms turn the ODE into an algebraic equation.