Search

Search papers and lessons

Transfer Function

Level 3 · 10 min read

A transfer function is the ratio of a system's output to its input after Laplace transform, with the starting state set to zero, so it describes the whole linear system in one rational expression in s.

On this page

  • Colour = topic mix
  • Calculus
  • Discrete math
  • Control systems
  • Signal processing
  • Linear algebra
  • Sign in to see your progress

TL;DR

Many physical systems, such as a heater, a motor or an electrical filter, respond to an input by following a linear differential equation. The transfer function is what you get when you write that equation in the Laplace domain and divide the output by the input, starting from rest. The result is a single rational function (one Polynomial divided by another) of a complex variable ss. It tells you how the system scales and delays every input, and it turns the calculus of the system into ordinary algebra.

Where you'll see it: in the design of a cruise control loop for a car, in the tuning of a servo motor, and in the audio filters that shape the bass and treble of a sound system.

This lesson explains a mathematical tool from engineering. It is not advice for building or operating any equipment.

Intuition

One box, one input, one output

Picture a system as a box. Something goes in, something comes out. A water tank with a valve is a box: the input is how far the valve is open, and the output is the water level. A speaker amplifier is a box: the input is the voltage from the music player, and the output is the voltage to the speaker.

For many boxes, the rule that connects input to output is a differential equation. It says the rate of change of the output depends on the current output and on the input. Solving that equation for every possible input is slow. A transfer function is a compact summary of the rule that lets you answer the question for any input at once.

Why the zero start matters

A transfer function describes the response of a system that starts at rest. If the tank is empty and the valve has just been opened, the level depends only on the valve. The starting state is set to zero so that the box's memory of the past does not mix with the input. Once the starting state is zero, the ratio of output to input depends only on the box itself.

Gain and delay in one number

Feed the box a steady sine wave. Once the transient has died out, the output is also a sine wave, at the same frequency, but with a different size and a shifted phase. The transfer function, evaluated at the frequency of that sine, gives the size ratio and the phase shift. That is why it is called a frequency-domain description: it lists, for every frequency, how the box treats it.

The math

Setup: a linear system with an input

Let u(t)u(t) be the input and y(t)y(t) the output. A linear time-invariant system is described by an ordinary differential equation with constant coefficients. For example, a first-order system with time constant τ\tau and gain KK is

τ dydt+y(t)=K u(t).\tau\, \frac{dy}{dt} + y(t) = K\, u(t).

Here τ\tau is the time constant, which sets how quickly the output follows the input, and KK is the steady gain, the output you reach for a constant input.

Definition

Take the Laplace Transform of both sides, using F(s)=L{f}(s)F(s) = \mathcal{L}\{f\}(s), and assume all starting values are zero. The derivative rule L{y′}=s Y(s)−y(0)\mathcal{L}\{y'\} = s\,Y(s) - y(0) with y(0)=0y(0) = 0 turns the derivative into a multiplication by ss. The equation becomes

(τs+1) Y(s)=K U(s).(\tau s + 1)\, Y(s) = K\, U(s).
Definition: Transfer function

The transfer function of a linear system with zero initial conditions is

G(s)=Y(s)U(s),G(s) = \frac{Y(s)}{U(s)},

the ratio of the Laplace transform of the output to the Laplace transform of the input.

For the first-order system, dividing gives

G(s)=Kτs+1.G(s) = \frac{K}{\tau s + 1}.

The denominator is the characteristic polynomial. Its roots are the poles of the system, and they set how the response decays. The numerator's roots are the zeros.

Why it is enough to know G(s)G(s)

A general input u(t)u(t) has Laplace transform U(s)U(s). The output in the Laplace domain is Y(s)=G(s) U(s)Y(s) = G(s)\,U(s), a product. To get the output in time, compute Y(s)Y(s) and apply the inverse transform. For many common inputs, such as a step (an input that jumps from 0 to 1 at time zero and stays there) or an exponential, the inverse transform is a table lookup after partial fractions (splitting one fraction into a sum of simple ones). The entire system is captured by the single rational function G(s)G(s).

Frequency response

Put s=jωs = j\omega, where jj is the imaginary unit from Complex Numbers and ω\omega is the angular frequency. Then G(jω)G(j\omega) is a complex number. Its magnitude is the gain at that frequency, and its angle is the phase shift:

∣G(jω)∣=K1+ω2τ2,∠G(jω)=−arctan⁡(ωτ).|G(j\omega)| = \frac{K}{\sqrt{1 + \omega^2\tau^2}}, \qquad \angle G(j\omega) = -\arctan(\omega\tau).

The magnitude falls as frequency rises, and the phase lags. The Frequency Response of a system is exactly this pair of curves plotted against ω\omega.

Poles and stability

A pole at s=ps = p produces a term epte^{pt} in the output. If the real part of pp is negative, that term dies out, and the system settles. If any pole has a positive real part, the output grows without bound. For the first-order system the only pole is s=−1/τs = -1/\tau, which is negative for any positive τ\tau, so the system is stable.

Worked examples

Example
1. Tiny case: $\tau = 1$, $K = 1$, unit step input

The system is y′+y=uy' + y = u, so G(s)=1/(s+1)G(s) = 1/(s + 1). Apply a unit step input, whose transform is U(s)=1/sU(s) = 1/s.

  1. Compute the output transform. Y(s)=G(s)U(s)=1s(s+1)Y(s) = G(s)U(s) = \dfrac{1}{s(s+1)}.
  2. Split into partial fractions. 1s(s+1)=1s−1s+1\dfrac{1}{s(s+1)} = \dfrac{1}{s} - \dfrac{1}{s+1}. Check by combining: (s+1)−ss(s+1)=1s(s+1)\dfrac{(s+1) - s}{s(s+1)} = \dfrac{1}{s(s+1)}.
  3. Invert term by term. y(t)=1−e−ty(t) = 1 - e^{-t}.
  4. Evaluate at t=1t = 1. y(1)=1−0.3679=0.6321y(1) = 1 - 0.3679 = 0.6321.

Interpretation: the output rises from zero toward the steady gain of one, covering about 63 percent of the gap in one time constant.

Example
2. Standard case: mass, damper and spring with two poles

A mass with m=1m = 1, damping c=3c = 3 and spring k=2k = 2 is driven by a force uu. The equation is y′′+3y′+2y=uy'' + 3y' + 2y = u. Zero starting state gives (s2+3s+2)Y=U(s^2 + 3s + 2)Y = U, so

G(s)=1s2+3s+2=1(s+1)(s+2).G(s) = \frac{1}{s^2 + 3s + 2} = \frac{1}{(s+1)(s+2)}.
  1. Find the poles. The roots of (s+1)(s+2)(s+1)(s+2) are s=−1s = -1 and s=−2s = -2.
  2. Compute the response to a unit step. Y(s)=1s(s+1)(s+2)Y(s) = \dfrac{1}{s(s+1)(s+2)}.
  3. Partial fractions. Write Y(s)=As+Bs+1+Cs+2Y(s) = \dfrac{A}{s} + \dfrac{B}{s+1} + \dfrac{C}{s+2}. At s=0s = 0, A=1/2A = 1/2. At s=−1s = -1, B=1/((−1)(1))=−1B = 1/((-1)(1)) = -1. At s=−2s = -2, C=1/((−2)(−1))=1/2C = 1/((-2)(-1)) = 1/2.
  4. Invert. y(t)=12−e−t+12e−2ty(t) = \tfrac{1}{2} - e^{-t} + \tfrac{1}{2} e^{-2t}.
  5. Check the start and the end. At t=0t = 0, y=0.5−1+0.5=0y = 0.5 - 1 + 0.5 = 0. As tt grows, y→0.5=1/(0+2)y \to 0.5 = 1/(0 + 2), which is G(0)G(0), the steady gain.

Interpretation: two poles give two decay rates. The slower one, −1-1, sets the tail, and the faster one, −2-2, sets the early rise. The steady value is G(0)=1/2G(0) = 1/2.

Example
3. Realistic case: an RC low-pass filter

A resistor of 10 kilohms and a capacitor of 10 microfarads form a first-order low-pass filter. The time constant is τ=RC=10,000×10×10−6=0.1\tau = RC = 10{,}000 \times 10 \times 10^{-6} = 0.1 s, and the gain is K=1K = 1. So G(s)=1/(0.1s+1)G(s) = 1/(0.1s + 1).

  1. Cutoff frequency. The frequency where ωτ=1\omega\tau = 1 is ωc=1/τ=10\omega_c = 1/\tau = 10 rad/s, which is 10/(2π)=1.5910/(2\pi) = 1.59 Hz.
  2. Gain at ω=10\omega = 10 rad/s. ∣G(j10)∣=1/1+1=0.7071|G(j10)| = 1/\sqrt{1 + 1} = 0.7071. In decibels, 20log⁡10(0.7071)=−3.0120 \log_{10}(0.7071) = -3.01 dB.
  3. Phase at the same frequency. ∠G(j10)=−arctan⁡(1)=−45∘\angle G(j10) = -\arctan(1) = -45^\circ.
  4. Step response. The output reaches 1−e−1=0.6321 - e^{-1} = 0.632 of its final value after τ=0.1\tau = 0.1 s.

These numbers come from the analytic formulas above, not from a measurement. Interpretation: signals well below 1.6 Hz pass through almost unchanged, and signals well above it are reduced by about 20 dB per decade, which is the filtering behaviour the circuit is built for.

Tradeoffs and failure modes

SituationWhat goes wrongBetter choice
The system is nonlinearG(s)G(s) does not exist as a single fixed ratio, and superposition failsLinearize around an operating point, or use a nonlinear model
Time delays are presentThe transfer function is not rational, and the algebra breaks downUse a Padé approximation or the explicit delay term e−sTe^{-sT}
The system changes over timeA fixed G(s)G(s) gives the wrong answer as coefficients driftUse gain scheduling or adaptive control
Several inputs and outputs (MIMO)A single ratio no longer describes the systemUse a transfer matrix or a state-space model
Initial conditions matterThe zero-start assumption hides the transient from old energySolve the full Laplace equation including initial terms
Poles near the imaginary axisResponses are slow to settle and can ringMove the poles with feedback, or add damping

Transfer functions are most useful for single-input single-output linear systems, where they give the answer quickly. For multivariable or time-varying systems the state-space description is the better tool, and a Linear Dynamical System written in state-space form describes the same system, with the transfer function as its input-output summary.

History

Operator methods for solving linear equations were used by Oliver Heaviside in the 1890s, and his calculus was later placed on a firm footing by the Laplace transform. The transform itself is named after Pierre-Simon Laplace, whose work on probability and differential equations dates to the late 1700s.

The engineering use of the transfer function grew in the 1930s and 1940s. Hendrik Bode at Bell Labs studied feedback amplifiers, and his methods for analysing the gain and phase of a system at each frequency became the standard way to design them. The ratio of output to input, computed for a linear system, became the common language for describing amplifiers and servomechanisms.

By the 1950s, transfer functions were taught as the first tool in control engineering. They remain the entry point to frequency-domain design, even as state-space methods took over for complex systems.

Recap

A linear system with a zero starting state is summarized by its transfer function G(s)=Y(s)/U(s)G(s) = Y(s)/U(s). The poles of GG set the modes of the response, and their real parts decide stability. Evaluating GG at s=jωs = j\omega gives the frequency response, which is the gain and phase at each frequency. These ideas lead to the Frequency Response of a system and to the stability test in the Nyquist Plot.

Check yourself

QuestionRecall: what does a transfer function compute, and what condition must hold for it to apply?Show answer

It is the ratio of the Laplace transform of the output to the Laplace transform of the input, G(s)=Y(s)/U(s)G(s) = Y(s)/U(s). It applies to a linear, time-invariant system whose starting state is zero, so that the starting values drop out of the Laplace equation.

QuestionComputation: a system has G(s)=2/(s+4)G(s) = 2/(s + 4). What is its steady output for a constant input of 3?Show answer

The steady output for a constant input equals the DC gain times the input. Setting s=0s = 0 gives G(0)=2/4=0.5G(0) = 2/4 = 0.5. The steady output is 0.5×3=1.50.5 \times 3 = 1.5.

QuestionWhy: why does a pole with a negative real part make the system settle, and what does a positive real part do?Show answer

A pole at s=ps = p contributes a term epte^{pt} to the output. If pp is negative, the term shrinks to zero as time passes, so the transient dies away and the output settles. If pp is positive, the term grows without bound, so the output diverges. A pair of poles on the imaginary axis gives sustained oscillation that neither grows nor decays.

QuestionApplied: why is a transfer function useful for predicting the response of a filter to a sine wave of a given frequency?Show answer

Once the transient has died out, a linear system turns a sine input at frequency ω\omega into a sine output at the same frequency. The transfer function evaluated at s=jωs = j\omega gives a complex number whose magnitude is the gain and whose angle is the phase shift. One evaluation answers the question for that frequency without solving the differential equation again.

QuestionApplied: a first-order system has time constant 0.5 s. How long does its step response take to reach 90 percent of its final value?Show answer

The step response is y(t)=K(1−e−t/τ)y(t) = K(1 - e^{-t/\tau}). Reaching 90 percent means 1−e−t/τ=0.91 - e^{-t/\tau} = 0.9, so e−t/τ=0.1e^{-t/\tau} = 0.1 and t=τln⁡10=0.5×2.303=1.15t = \tau \ln 10 = 0.5 \times 2.303 = 1.15 s. The answer is about 1.15 seconds, which is about 2.3 time constants.

Sources

Transfer Function — explained simply | ungoon.me