Skip to main content

Z-transform of a ramp-and-hold input (to 3)

Short answer

Express x(t)=t·1(t)-(t-3)·1(t-3). Sampled at T=1 s, x(k)=0,1,2,3,3,3,… The z-transform is X(z)=z^{-1}(1-z^{-3})/(1-z^{-1})^2 = (z^2+z+1)/[z^2(z-1)].

The waveform below shows the input signal to a digital controller. Obtain the Z-transform of the input x(t). [Figure: x(t) rises linearly from 0 at t = 0 to 3 at t = 3 (passing 1 at t = 1 and 2 at t = 2), then stays constant at 3; dotted sample lines at t = 1, 2, …, 7]

From the figure, x(t)x(t) is a unit-slope ramp that stops rising at t=3t = 3 and then holds at 3. Take the sampling period T=1T = 1 s, from the sample lines at t=1,2,…t = 1, 2, \dots.

Step 1: Write x(t)x(t) as a ramp minus a delayed ramp

x(t)=t⋅1(t)−(t−3)⋅1(t−3)x(t) = t\cdot 1(t) - (t-3)\cdot 1(t-3)

For t≤3t \le 3 only the first term acts, giving x=tx = t. For t>3t > 3 the result is t−(t−3)=3t - (t-3) = 3.

Step 2: Sampled values (T=1T = 1)

kk012345...
x(k)x(k)012333...

Step 3: Take the z-transform

Use Z[k]=z−1(1−z−1)2\mathcal{Z}[k] = \dfrac{z^{-1}}{(1-z^{-1})^2} (with T=1T = 1) and the shift theorem Z[x(k−n)]=z−nX(z)\mathcal{Z}[x(k-n)] = z^{-n}X(z):

X(z)=z−1(1−z−1)2−z−3z−1(1−z−1)2=z−1(1−z−3)(1−z−1)2\begin{aligned} X(z) &= \frac{z^{-1}}{(1-z^{-1})^2} - z^{-3}\frac{z^{-1}}{(1-z^{-1})^2} = \frac{z^{-1}(1 - z^{-3})}{(1-z^{-1})^2} \end{aligned}

Since 1−z−3=(1−z−1)(1+z−1+z−2)1 - z^{-3} = (1 - z^{-1})(1 + z^{-1} + z^{-2}):

X(z)=z−1(1+z−1+z−2)1−z−1=z2+z+1z2(z−1)X(z) = \frac{z^{-1}(1 + z^{-1} + z^{-2})}{1 - z^{-1}} = \frac{z^2 + z + 1}{z^2(z-1)}

Step 4: Check by series

X(z)=z−1+2z−2+3z−3(1+z−1+z−2+… )=z−1+2z−2+3z−3+3z−4+…X(z) = z^{-1} + 2z^{-2} + 3z^{-3}\left(1 + z^{-1} + z^{-2} + \dots\right) = z^{-1} + 2z^{-2} + 3z^{-3} + 3z^{-4} + \dots

The coefficients 0,1,2,3,3,…0, 1, 2, 3, 3, \dots match the samples.

Final value check: lim⁡z→1(1−z−1)X(z)=1⋅(1+1+1)=3\lim_{z\to1}(1-z^{-1})X(z) = 1\cdot(1+1+1) = 3, which is correct.

Answer: X(z)=z−1(1−z−3)(1−z−1)2=z2+z+1z2(z−1)X(z) = \dfrac{z^{-1}(1 - z^{-3})}{(1 - z^{-1})^2} = \dfrac{z^2 + z + 1}{z^2(z-1)} (with T=1T = 1 s).

✓ Answer checked by Claude Opus 5.5 (high effort)

All Digital Control System chapter 2 questions →