← Visualization Hub  ·  Step 8  ·  Step 9  ·  Step 10 of 8 → 9 → 10

From ODE to Algebra — Transfer Functions and Partial Fractions

The whole method on one line
$$m\ddot{x} + c\dot{x} + kx = f(t) \;\;\xrightarrow{\;\mathcal{L}\;}\;\; (ms^2 + cs + k)X(s) = F(s) + \underbrace{m(sx_0 + v_0) + cx_0}_{\text{initial conditions}}$$

The payoff: calculus goes in, algebra comes out

Step 8 showed that \(\mathrm d/\mathrm dt\) acts on \(e^{st}\) as multiplication by \(s\). Step 9 built the transform. Now collect the winnings. Applying \(\mathcal{L}\) to a derivative gives — integrating by parts once — the rule that makes everything work:

$$\mathcal{L}\{\dot{x}\} = sX(s) - x(0), \qquad \mathcal{L}\{\ddot{x}\} = s^2X(s) - s\,x(0) - \dot{x}(0)$$ Differentiation became multiplication by \(s\), and the initial conditions fell out automatically as extra terms. You do not solve the homogeneous equation and then hunt for a particular solution and then fit constants to the ICs — the ICs are already in the algebra.

Do it to the mass–spring–damper from Step 6

Take the same plant you met as a direction field, now with a force \(f(t)\) pushing it:

  1. Transform every term. \(m\,[s^2X - s x_0 - v_0] + c\,[sX - x_0] + kX = F(s)\)
  2. Collect \(X\). \((ms^2 + cs + k)\,X = F(s) + m(s x_0 + v_0) + c x_0\)
  3. Divide. No calculus was performed. $$X(s) = \frac{F(s)}{ms^2+cs+k} \;+\; \frac{m(sx_0+v_0)+cx_0}{ms^2+cs+k}$$

Two terms, and they have a clean meaning: the first is the response to what you do to the robot, the second the response to where it started. Both are divided by the same polynomial.

The transfer function is the first term's multiplier — output over input, initial conditions zero: $$G(s) = \frac{X(s)}{F(s)} = \frac{1}{ms^2+cs+k}$$ The denominator \(ms^2+cs+k\) is the characteristic polynomial. Setting it to zero is exactly the same equation you solved in Step 6 as \(\det(sI - A) = 0\). Its roots are the poles of \(G\), and they are the eigenvalues of the state matrix. Same two numbers, three names — root of the characteristic polynomial, eigenvalue, pole.

Getting back to time: partial fractions

\(X(s)\) is a ratio of polynomials. Split it over its poles:

$$X(s) = \frac{R_1}{s-p_1} + \frac{R_2}{s-p_2} + \cdots \qquad\Longrightarrow\qquad x(t) = R_1e^{p_1t} + R_2e^{p_2t} + \cdots$$ because each simple term inverts to one exponential — the very first pair from Step 9's table, read backwards. This is Step 8's claim, now proved rather than asserted: the response is a sum of exponentials, one per pole, and the residue \(R_i\) is exactly "how much of that exponential".

The residue at a simple pole is read off directly, no algebra grind required:

$$R_i = \Big[(s-p_i)X(s)\Big]_{s=p_i} \qquad\text{or}\qquad R_i = \frac{N(p_i)}{D'(p_i)}$$

Complex poles come in conjugate pairs, and so do their residues. Adding the pair back together turns two complex terms into one real damped sinusoid, exactly as in Step 8:

$$R\,e^{pt} + \bar{R}\,e^{\bar{p}t} = 2|R|\,e^{\sigma t}\cos(\omega t + \angle R)$$

What each part of the picture is for

Where it comes fromWhat it controls
poles of \(G(s)\) — roots of \(ms^2+cs+k\)the shape of the transient: how fast it decays, how much it rings, and whether it is stable at all
poles of the input \(F(s)\)the steady state — a step's pole at \(s = 0\) is what produces the constant final value
residues \(R_i\)how much each mode is excited — a mode with a tiny residue barely shows up, however slow it is
DC gain \(G(0) = 1/k\)where a step response finally settles: the final-value theorem, \(\lim_{t\to\infty} x(t) = \lim_{s\to 0} sX(s)\)
What to do below. Plot 2 draws two curves: the response from numerically integrating the ODE (RK4, thick) and the response rebuilt from the residues as a plain sum of exponentials (dashed). They lie on top of each other — that overlap is the claim of this whole block, checked live. Plot 3 pulls that sum apart so you can see the individual \(e^{st}\) pieces. Drag a pole in plot 1 and the sliders for \(c\) and \(k\) follow, because placing poles is choosing the physical parameters — which is what designing a controller will mean from here on.

Plot 1: pole map of \(G(s) = 1/(ms^2+cs+k)\) — drag a pole, the plant follows. Plot 2: the response, integrated numerically and rebuilt from residues. Plot 3: the same response taken apart into one curve per pole.

Plant (SI units)

1.00
1.20
9.00

Input  \(f(t)\)

unit step
impulse \(\delta(t)\)
free (ICs only)
1.00
0.00

Poles & damping

—

Display

Residue rebuild
Mode breakdown
3D pole surface
Auto-rotate
Try this: switch to unit step and slide \(c\) up from zero. Watch the two poles slide toward each other along the arc \(|s| = \sqrt{k/m}\), collide on the real axis at critical damping, then split and run in opposite directions. The overshoot in plot 2 disappears exactly when they collide — the geometry in plot 1 and the shape in plot 2 are the same fact.
\(x(t)\) — RK4 on the original ODE rebuilt from residues (dashed) individual modes steady state / DC term

The algebra, with your current numbers