Recovering a filter from its transfer function means reconstructing a realizable filter—coefficients, poles and zeros, a difference equation, or a state-space model—from the algebraic function H(z), H(s), or H(e^{jω}); the specific answer depends on whether the transfer function is digital or analog, and on whether "recovery" means coefficient extraction, inverse transform, realization, or deconvolution.
Because "the transfer" is ambiguous, the practical answer has to name the cases first: a digital transfer function H(z) is recovered by inverse z-transform (or by polynomial matching) into a difference equation whose coefficients are read directly off the numerator and denominator; an analog transfer function H(s) is recovered by partial-fraction expansion and inverse Laplace transform into an impulse response, then discretized; and if "recovery" means undoing an unknown channel or filter from measured input–output data, that is deconvolution or system identification, a different problem with different limits. The sections below separate these meanings, show the algebra with concrete numbers, and mark where each method stops working.
What "the transfer" contains, and what "recovered" can mean
A linear time-invariant (LTI) transfer function is a ratio of polynomials. In the digital case,
H(z) = B(z)/A(z) = (b₀ + b₁z⁻¹ + … + b_M z⁻ᴹ) / (1 + a₁z⁻¹ + … + a_N z⁻ᴺ).
Those coefficients are already the filter: y[n] = Σ b_k x[n−k] − Σ a_k y[n−k]. So "recovery" of a digital filter from H(z) is often nothing more than clearing the ratio and reading b₀…b_M and a₁…a_N. No transformation is needed unless you want time-domain or structural information. This is the first place confusion arises: many texts call this "recovering the difference equation," while others reserve "recovery" for finding H(z) from data (identification) or for inverting it (equalization/deconvolution). Stating which direction you are going—function → filter, or measurements → function—prevents most misunderstandings.
For an analog transfer function H(s), the same ratio describes a continuous-time system, and recovering the impulse response requires inverse Laplace transform. For a frequency response H(e^{jω}) given only as magnitude and phase samples, recovery means fitting a rational model (system identification) — an approximation, not an exact inversion.
Recovering a digital filter by polynomial matching
The cleanest case: you are handed H(z) in closed form, possibly as a product of factors, and you want the direct-form coefficients. Multiply out.
Take H(z) = (1 − 0.9z⁻¹)(1 + 0.5z⁻¹) / [(1 − 0.7z⁻¹)(1 + 0.2z⁻¹)].
Numerator: 1 + (0.5 − 0.9)z⁻¹ + (0.5)(−0.9)z⁻² = 1 − 0.4z⁻¹ − 0.45z⁻². Denominator: 1 + (0.2 − 0.7)z⁻¹ + (0.2)(−0.7)z⁻² = 1 − 0.5z⁻¹ − 0.14z⁻².
So b = [1, −0.4, −0.45] and a = [1, −0.5, −0.14] (with a₀ normalized to 1). The difference equation is
y[n] = x[n] − 0.4x[n−1] − 0.45x[n−2] + 0.5y[n−1] + 0.14y[n−2].
Note the sign flip: the denominator coefficient a₁ = −0.5 appears as +0.5 on the output side when you move it across the equals sign. That sign convention is the single most common arithmetic error in hand recovery, and it is worth checking by evaluating H(1) = sum(b)/sum(a) on both forms.
If H(z) is given as a ratio of factored roots (zeros z_i and poles p_i), recovery is the same expansion: B(z) = g·Π(1 − z_i z⁻¹), A(z) = Π(1 − p_i z⁻¹), and you multiply out. Stability is then read off the poles: a causal digital filter is stable iff every pole satisfies |p_i| < 1. Recovery of coefficients does not by itself tell you the region of convergence; for a causal filter you assume |z| greater than the largest pole magnitude, and you should say so.
Recovering an analog filter and discretizing it
For H(s) = N(s)/D(s) with distinct poles, partial-fraction expansion gives H(s) = Σ r_k/(s − p_k) plus a polynomial part if the numerator degree is not lower. Each term inverts to r_k e^{p_k t} u(t), so the impulse response is h(t) = Σ r_k e^{p_k t} u(t). Repeated poles produce t·e^{pt} terms; complex-conjugate pole pairs combine into damped sinusoids. The residues r_k are found by r_k = (s − p_k)H(s) evaluated at s = p_k (for simple poles).
Example: H(s) = 3/(s² + 4s + 3) = 3/[(s+1)(s+3)]. Residues: at s = −1, 3/(−1+3) = 1.5; at s = −3, 3/(−3+1) = −1.5. So h(t) = 1.5e^{−t} − 1.5e^{−3t}, t ≥ 0. A discrete equivalent via impulse invariance with step T would be h[n] = T(1.5e^{−nT} − 1.5e^{−3nT}), and the z-transform of that sampled sequence recovers a digital filter. The bilinear transform s → (2/T)(1 − z⁻¹)/(1 + z⁻¹) is the alternative and avoids aliasing but warps frequency; state which mapping you used, because "the same" analog filter yields different digital coefficients under each.
This is where recovery stops being exact: impulse invariance aliases high-frequency content, bilinear transform distorts the frequency axis, and matched-z mapping only preserves poles and zeros approximately. If the target is a specific digital response, recover from the digital specification directly rather than from a sampled analog prototype.
Recovering the response from a frequency response
If you know H(e^{jω}) only at discrete frequencies, recovering a rational filter is a fit, not an inversion. For a filter of known order N, the equation H(e^{jω})·A(e^{jω}) = B(e^{jω}) is linear in the unknown coefficients a_k and b_k when you treat it as a least-squares problem (Prony's method and its variants). With M+1 numerator and N denominator unknowns, you need at least M+N+1 independent frequency samples, and in practice many more for noise robustness.
A small worked instance: suppose you believe the filter is first-order, H(z) = b₀/(1 + a₁z⁻¹), and you measure H at ω = 0 and ω = π. At ω = 0, H = b₀/(1 + a₁); at ω = π, H = b₀/(1 − a₁). Two equations, two unknowns — solve directly. With three or more noisy samples, solve in the least-squares sense. For higher order, the same structure applies, but conditioning degrades quickly with order, and pole locations recovered from noisy data can drift outside the unit circle even when the true filter is stable. Model-order selection (comparing residual error across candidate N) is part of recovery, not an afterthought.
When "recovery" means undoing the filter: deconvolution
A distinct and often-intended reading: you have y = H·x (or y = h ∗ x), you know or estimate H, and you want x back. This is inverse filtering or deconvolution. The naive inverse H⁻¹(z) = A(z)/B(z) is only realizable when the zeros of H lie strictly inside the unit circle (minimum phase); otherwise the inverse is unstable or noncausal. Even for minimum-phase H, noise at frequencies where |H| is small is amplified enormously by 1/H.
The standard remedies are regularization and Wiener filtering. The Wiener estimate in the frequency domain is X̂ = [H*/(|H|² + 1/SNR)]·Y, which tapers the inverse where the signal-to-noise ratio is low. For a zero on or outside the unit circle, exact stable causal inversion is impossible without delay or a noncausal (two-sided) formulation; you approximate, and you should say the recovery is approximate. This is the boundary where "recover the filter from the transfer" changes character: coefficient extraction is exact algebra, while deconvolution is estimation with an explicit error budget.
Reading the z-transform back: inverse z-transform
If you are given H(z) and want h[n] rather than coefficients, partial fractions in z⁻¹ work the same way as in s. Write H(z)/z or expand in powers of z⁻¹ depending on convention; each term c/(1 − pz⁻¹) inverts to c·pⁿu[n] for |z| > |p|. A term like 1/(1 − 0.5z⁻¹)² inverts to (n+1)(0.5)ⁿu[n], because the double pole contributes the (n+1) factor. The region of convergence decides causality: the same H(z) with |z| < |p| inverts to a left-sided sequence, an anti-causal filter. Recovery without specifying the ROC is incomplete, and that omission is a frequent source of wrong answers in coursework.
Distinctions that prevent wrong recoveries
Transfer function vs. frequency response. H(z) is a function of complex z; H(e^{jω}) is its restriction to the unit circle. Recovering coefficients from samples on the unit circle is identification; recovering them from the closed-form H(z) is algebra. Coefficients vs. structure. The same H(z) maps to direct form, cascade of second-order sections, or lattice. "Recovering the filter" may mean choosing a numerically sound structure, especially for high-order filters where direct-form coefficient quantization is fragile. Second-order sections are the usual answer. Exact vs. approximate. Polynomial expansion and partial fractions are exact (up to arithmetic). Sampling an analog prototype, fitting from noisy data, and deconvolution are approximations with stated error. Causal vs. noncausal. The ROC and the pole/zero locations decide realizability. A recovered set of coefficients with a pole outside the unit circle describes an unstable causal filter, not a usable one.
A compact checklist of the recovery paths
| What you are given | What you want | Method | Exact? |
|---|---|---|---|
| H(z) as ratio or product | b, a coefficients | Multiply out; read off | Exact |
| H(z) with poles/zeros | h[n] | Partial fractions, inverse z | Exact |
| H(s) | h(t), then digital filter | Partial fractions, inverse Laplace, then map | Approximate after mapping |
| H(e^{jω}) samples | rational H(z) | Least-squares / Prony fit | Approximate |
| y and known H | x | Inverse or Wiener deconvolution | Approximate; noise-limited |
The honest one-sentence answer is therefore conditional, and the condition is the meaning of "transfer": coefficient recovery from a closed-form H(z) is direct polynomial matching; time-domain recovery is inverse z- or Laplace transform; recovery from measured responses is a fit; and recovery of the input through a known filter is regularized deconvolution. Naming which of these you mean, and whether the filter is digital or analog, is the difference between an exact answer and a plausible-sounding wrong one.