Inverse Z-Transform Calculator

Enter your function X(z) and the contour of integration C. The calculator will attempt to find the inverse z-transform x[n] using the residue theorem.



Enter the function in terms of ‘z’. Use standard mathematical notation (e.g., z^-1 for 1/z, use parentheses for clarity).



Describe the Region of Convergence (ROC) using inequalities like |z| > a or |z| < a.



Enter a specific time index ‘n’ if you want the value of x[n] at that instant. Leave as 0 or blank for the general form.



Result: x[n]

Intermediate Values & ROC Analysis

Poles:

Residues:

ROC:

Formula Used: Residue Theorem

The inverse z-transform $x[n]$ of a function $X(z)$ is found using the contour integral:

$x[n] = \frac{1}{2\pi j} \oint_C X(z) z^{n-1} dz$

This calculator approximates this integral by summing the residues of the function $X(z)z^{n-1}$ at its poles within the contour C. If a specific ‘n’ is provided, the result is $x[n]$. Otherwise, it attempts to provide the general form by considering poles at $n=0$ if applicable.

Key Considerations:

  • The contour C (ROC) must enclose all relevant poles for the calculation.
  • For stable systems, the ROC typically includes the unit circle (e.g., $|z| > a$).
  • For causal signals, the ROC is typically outside the outermost pole.
  • For anti-causal signals, the ROC is typically inside the innermost pole.

Magnitude Response (Illustrative)

Magnitude response of the system, showing gain at different frequencies. Updates dynamically with input function and ROC.

Pole-Zero Analysis Table

Type Value Location (Relative to ROC)
Input function to see poles and zeros.
Summary of poles and zeros derived from X(z).