1# t: 2ẍ + 4ẋ + 50x = f(t)2# s: (2s² + 4s + 50)·X = F3def G(s):4 return 1 / (2*s**2 + 4*s + 50)ℒd/dt → ×sf(t)G(s)?x(t)
10 × G(0) = 0.2 m0123456-0.200.20.4time (s)mCART POSITION x(t)e^−t envelope10 N push2 N·s tap
Lit wire with moving dashes: a signal is flowing along itBlocks: the Laplace transform, the input, the transfer function G(s) and the output; the equation is the cardPlot: cart position over time, the exact inverse transform of X(s) = G(s)·F(s)Pills: a term passing through the Laplace transform, or a signal entering and leaving G(s)The cart's equation of motion is Laplace-transformed term by term into algebra, and the ratio of output to input becomes one block, G(s) = 1/(2s² + 4s + 50). The plot below is the exact inverse transform of X(s) = G(s)·F(s) for two different inputs through the same block. G(s) is itself the Laplace transform of the impulse response g(t): a unit impulse has transform 1, so X(s) = G(s). The tap in step 9 is two units of impulse, so its curve is 2·g(t).

Into the Laplace domain

  1. The 2 kg cart from the equations-of-motion lesson obeys 2ẍ + 4ẋ + 50x = f(t), where ẋ is velocity and ẍ is acceleration. The push f(t) is the input; the position x(t) is the output. Re-solving it for every push is slow.

The transfer function

Reading the block

Working

# step 1/10 · recap
# about: Equation card

the cart:  m = 2 kg   b = 4 N·s/m   k = 50 N/m

  2x'' + 4x' + 50x = f(t)

input   f(t)  push on the cart (N)
output  x(t)  position (m)

Goal of this lesson: one object, G(s), that
holds everything the cart does to ANY push.

Every curve in the figure is the exact inverse transform of X(s), sampled every 0.02 s, and the tests check it against a direct simulation of 2ẍ + 4ẋ + 50x = f(t). A transfer function exists only for a linear, time-invariant system, and it is defined with every initial condition zero. A cart that starts moving adds terms that G(s) does not hold.