Transfer Function Gain Calculator Formula
Understand the math behind the transfer function gain calculator. Each variable explained with a worked example.
Formulas Used
DC Gain (at f=0)
dc_gain = kMagnitude at f
magnitude = k / sqrt(1 + pow(omega * tau, 2))Magnitude (dB)
magnitude_db = 20 * log10(k / sqrt(1 + pow(omega * tau, 2)))Phase Angle
phase_deg = -atan(omega * tau) * 180 / piVariables
| Variable | Description | Default |
|---|---|---|
k | Static Gain (K) | 10 |
tau | Time Constant (tau)(s) | 0.5 |
freq | Frequency (f)(Hz) | 1 |
omega | Derived value= 2 * pi * freq | calculated |
How It Works
First-Order Transfer Function
A first-order system has the transfer function G(s) = K / (tau*s + 1). The magnitude and phase at any frequency characterize how the system attenuates and delays sinusoidal inputs.
Frequency Response
|G(j*omega)| = K / sqrt(1 + (omega*tau)²)
Phase = -arctan(omega*tau)
At the corner frequency omega = 1/tau, the magnitude drops by 3 dB from the DC gain and the phase is -45 degrees.
Worked Example
A system with K=10, tau=0.5 s, evaluated at f=1 Hz.
k = 10tau = 0.5freq = 1
- 01omega = 2*pi*1 = 6.283 rad/s
- 02omega*tau = 6.283 × 0.5 = 3.142
- 03|G| = 10 / sqrt(1 + 3.142²) = 10 / sqrt(10.87) = 10 / 3.297 = 3.033
- 04dB = 20*log10(3.033) = 9.64 dB
- 05Phase = -arctan(3.142) = -72.3°
Ready to run the numbers?
Open Transfer Function Gain Calculator