Menu Close

Z-transform: UPSC Electrical Engineering Optional PYQ Solutions (1995–2026)

All 22 questions UPSC has asked on Z-transform in the Electrical Engineering Optional (Paper I, Signals and Systems) from 1995 to 2026, solved step by step – latest first.

Try them yourself first: the same questions, without solutions, are on our Signals and Systems topic-wise PYQs page. Circuit diagrams have been redrawn from the question papers.

How we check these solutions

These are our own solutions, prepared with AI help. UPSC does not publish official answers. Every solution is checked a second way before it goes up, and says how:

  • ✓ Checked by computer the numbers were worked out again independently in code (SymPy and NumPy: circuit equations, power balance, matrices, integrals).
  • ✓ Proof checked step by step or ✓ Derivation checked step by step for “prove” and “derive” questions, every step was checked against the definitions and standard results.

Where a printed question is wrong, unclear or incomplete, we say so and solve the intended version.

Spotted a mistake or a neater method? Tell us in the comments below or through Report an error.

Jump to a question (year · question number):

2026 · 2b(ii) 2025 · 2c 2024 · 1b 2023 · 2b 2021 · 4a 2020 · 3c 2019 · 8d 2017 · 6b 2016 · 4a 2015 · 2c 2014 · 1c 2012 · 4a 2009 · 2a(ii) 2009 · 8a(ii) 2007 · 2a(i) 2007 · 2a(ii) 2006 · 8a(ii) 2005 · 6a(i) 2004 · 5a(ii) 2004 · 6a(ii) 2004 · 8a 1995 · 2c

Cover of the UPSC Prelims Topic-wise PYQ book with detailed explanations

From the Optional Province team

Preparing for Prelims too?

Our UPSC Prelims Topic-wise PYQ Book covers every Prelims question with detailed explanations, so you can see exactly where UPSC asks from. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

Determine the Z-transform and the corresponding region of convergence (ROC) for the discrete-time sequence x(n)=|n|(12)|n|.

2026 · Paper I · Q2b(ii) · 10 marks

Solution

Split into two halves. With a=12: x(n)=nanu(n)⏟n≥0+(−n)a−nu(−n−1)⏟n≤−1.

Right-sided part. From anu(n)↔zz−a and the rule nx(n)↔−zdXdz: nanu(n)↔az(z−a)2,|z|>a.

Left-sided part. Put m=−n: ∑m=1∞mamzm=az(1−az)2,|z|<1a.

Answer. X(z)=z/2(z−12)2+z/2(1−z2)2=z(5z2−8z+5)2(z−12)2(z−2)2.

ROC. Both parts must converge: 12<|z|<2. There are double poles at z=12 and z=2, and zeros at 0 and 0.8±j0.6.

ReIm½2(2)(2)× pole○ zero
Poles, zeros and the ROC ½ < |z| < 2.

✓ Checked by computer We summed the two-sided series numerically at a point inside the ROC and compared it with the closed form in SymPy.

↑ Back to the question list

Determine the causal signal x[n] if its z-transform X(z) is specified by a pole-zero pattern shown in the figure below. Take the constant G=14.

ReIm−½−¼½r = 1/√2π/4× pole○ zero
Figure redrawn from the question paper. In the paper the complex poles are drawn above the ¼ tick; we use the marked r = 1/√2 and angle π/4.

2025 · Paper I · Q2c · 10 marks

Solution

Reading the plot.

  • Zeros: z=−12, z=−14.
  • Poles: z=12, and z=12e±jπ/4=12±j12.

(The drawing puts the complex poles over the ¼ tick, but the marked radius 1/2 and angle π/4 give real part 12. We use the marked values.)

X(z)=G(z+12)(z+14)(z−12)(z2−z+12),G=14,|z|>12(causal).

Partial fractions of X(z)/z.

  • z=0: G⋅18(−12)(12)=−18.
  • z=12: G⋅1⋅3412⋅14=32.
  • z=p=12+j12: A=−1116−j316, and the conjugate at p*.

Inverse. Using pn=(12)nejnπ/4 and Apn+A*p*n=2Re(Apn): x[n]=−18δ[n]+[32(12)n+(12)n(−118cosnπ4+38sinnπ4)]u[n]. First samples: x[0]=0, x[1]=0.25, x[2]=0.5625, x[3]=0.625, x[4]=0.4375.

✓ Checked by computer We expanded X(z) as a power series in SymPy and matched the first 8 samples of x[n].

↑ Back to the question list

Determine the Z-transform of x[n]=n(12)n+2u[n+2]. Specify the properties used.

2024 · Paper I · Q1b · 10 marks

Solution

Step 1 – time shift. Let g[n]=(12)n+2u[n+2]. This is v[n]=(12)nu[n] advanced by 2. With v[n]↔zz−12, the time-shift property v[n+2]↔z2V(z) gives G(z)=z3z−12,12<|z|<∞.

Step 2 – differentiation in z. x[n]=ng[n]↔−zdGdz: dGdz=3z2(z−12)−z3(z−12)2=2z3−32z2(z−12)2. X(z)=−z3(2z−32)(z−12)2,12<|z|<∞.

Properties used. Time shifting (advance by 2) and differentiation in the z-domain. The ROC excludes z=∞ because x[−2]=−2 and x[−1]=−12 are non-zero.

Check: the leading terms −2z2−12z+0+18z−1+⋯ match x[−2],x[−1],x[0],x[1].

✓ Checked by computer We summed the series numerically at a point in the ROC and matched the closed form.

↑ Back to the question list

A causal discrete-time LTI system is described by: y[n]−34y[n−1]+18y[n−2]=x[n], where x[n] and y[n] are the input and output of the system respectively. (i) Determine the system transfer function H(z). (ii) Find the impulse response h[n] of the system. (iii) Find the step response s[n] of the system.

2023 · Paper I · Q2b · 20 marks

Solution

(i) Transfer function. Taking the z-transform: H(z)=Y(z)X(z)=11−34z−1+18z−2=1(1−12z−1)(1−14z−1),|z|>12.

(ii) Impulse response. H(z)=21−12z−1−11−14z−1⇒h[n]=[2(12)n−(14)n]u[n].

(iii) Step response. S(z)=H(z)1−z−1: S(z)=8/31−z−1−21−12z−1+1/31−14z−1. s[n]=[83−2(12)n+13(14)n]u[n]. Check: s[0]=1 and s[∞]=83=H(1).

✓ Checked by computer We ran the difference equation as a recursion and matched h[n] and s[n] for n = 0 to 9.

↑ Back to the question list

Consider a discrete time system with transfer function given by H(z)=Y(z)R(z)=z−1−12z−2(1−z−1+29z−2). Calculate the following: (i) The impulse response of the system (ii) The step response of the system with zero initial conditions (iii) The step response of the system with initial conditions y[−1]=1 and y[−2]=2

2021 · Paper I · Q4a · 20 marks

Solution

Poles. z2−z+29=(z−13)(z−23), so H(z)=z−12(z−13)(z−23).

(i) Impulse response. Residues of H(z)/z: at 0: −94; at 13: 32; at 23: 34. h[n]=−94δ[n]+[32(13)n+34(23)n]u[n]. (So h[0]=0, as the z−1 in the numerator requires.)

(ii) Step response, zero initial conditions. Y=Hzz−1. Residues of Y/z: at 1: 94; at 13: −34; at 23: −32. y[n]=[94−34(13)n−32(23)n]u[n].

(iii) Step response with y[−1]=1, y[−2]=2. The difference equation is y[n]−y[n−1]+29y[n−2]=r[n−1]−12r[n−2]. With the one-sided transform, 𝒵{y[n−1]}=z−1Y+y[−1] and 𝒵{y[n−2]}=z−2Y+z−1y[−1]+y[−2]. The input is zero for n<0. So Y(z)=H(z)R(z)+y[−1]−29y[−2]−29y[−1]z−11−z−1+29z−2=H(z)R(z)+59−29z−11−z−1+29z−2. The zero-input part has residues 19 (at 13) and 49 (at 23): yzi[n]=19(13)n+49(23)n. Adding the zero-state answer from (ii): y[n]=94−2336(13)n−1918(23)n,n≥0. Check: y[0]=59=y[−1]−29y[−2].

✓ Checked by computer We ran the difference equation as a recursion (with and without the initial conditions) and matched all three answers for n = 0 to 11.

↑ Back to the question list

Find the Z transform of a discrete sequence x[n]=n[u[n]−u[n−4]], where u[n] is a unit step sequence.

2020 · Paper I · Q3c · 10 marks

Solution

The sequence. u[n]−u[n−4] is 1 for n=0,1,2,3. So x[n]={0,1,2,3},n=0,1,2,3.

Transform. A finite sum: X(z)=0+z−1+2z−2+3z−3=z2+2z+3z3. ROC: the whole z-plane except z=0.

✓ Checked by computer We listed the samples and read off the finite sum.

↑ Back to the question list

Find the Z-transform of the signal g(n)=|n|a|n|. Also find the ROC.

2019 · Paper I · Q8d · 10 marks

Solution

Split. g(n)=nanu(n)+(−n)a−nu(−n−1) (taking a real).

Causal part. nanu(n)↔az−1(1−az−1)2=az(z−a)2,|z|>|a|.

Anti-causal part. With m=−n: ∑m=1∞mamzm=az(1−az)2,|z|<1|a|.

Answer. G(z)=az(z−a)2+az(1−az)2,|a|<|z|<1|a|. The ROC exists only if |a|<1. For |a|≥1 the two parts have no common region, and g(n) has no z-transform.

✓ Checked by computer We checked the closed form against a numerical two-sided sum (for a = 1/2) in SymPy.

↑ Back to the question list

Determine the transfer function and therefrom the impulse response of the causal linear time invariant system described by the difference equation y[n]−14y[n−1]−38y[n−2]=−x[n]+2x[n−1]

2017 · Paper I · Q6b · 20 marks

Solution

Transfer function. H(z)=−1+2z−11−14z−1−38z−2=−z2+2z(z−34)(z+12),|z|>34(causal).

Partial fractions of H(z)/z=2−z(z−34)(z+12).

  • z=34: 5/45/4=1
  • z=−12: 5/2−5/4=−2

Impulse response. h[n]=[(34)n−2(−12)n]u[n]. Check: h[0]=−1.

✓ Checked by computer We ran the difference equation as a recursion and matched h[n] for n = 0 to 9.

↑ Back to the question list

Determine the causal signal, x(n), having its z-transform X(z)=1(1+z−1)(1−z−1)2

2016 · Paper I · Q4a · 10 marks

Solution

In positive powers. X(z)=z3(z+1)(z−1)2,|z|>1(causal).

Partial fractions of X(z)/z=z2(z+1)(z−1)2.

  • z=−1: 14
  • (z−1)−2 term: z2z+1|z=1=12
  • (z−1)−1 term: ddzz2z+1|z=1=2z(z+1)−z2(z+1)2|1=34

X(z)=14zz+1+34zz−1+12z(z−1)2.

Inverse. Using z(z−1)2↔nu(n): x(n)=[14(−1)n+34+n2]u(n). Check: x(0)=1, x(1)=1, x(2)=2, x(3)=2.

✓ Checked by computer We expanded X(z) as a power series in SymPy and matched the first 10 samples.

↑ Back to the question list

Find the z transform of: f(t)=sinwt for t≥0.

2015 · Paper I · Q2c · 10 marks

Solution

Sampling. With sampling period T, f(kT)=sin(ωkT)=ejωkT−e−jωkT2j, k≥0.

Transform. Using ∑kakz−k=zz−a for |z|>|a|: F(z)=12j[zz−ejωT−zz−e−jωT]=zsinωTz2−2zcosωT+1,|z|>1. (For the sequence sinωn, put T=1.)

✓ Checked by computer We summed the sampled sine numerically for one value of ωT and matched the formula.

↑ Back to the question list

Determine the inverse z-transform of X(z)=11−1.5z−1+0.5z−2 for ROC |z|>1

2014 · Paper I · Q1c · 10 marks

Solution

Factorise. X(z)=1(1−z−1)(1−12z−1)=21−z−1−11−12z−1.

Inverse (ROC |z|>1: both terms right-sided): x[n]=[2−(12)n]u[n].

✓ Checked by computer We expanded X(z) as a power series in SymPy and matched the first 10 samples.

↑ Back to the question list

Cover of the UPSC Mains Topic-wise and Year-wise PYQs book (2013–2026)

From the Optional Province team

Strengthen your GS papers

Our UPSC Mains Topic-wise & Year-wise PYQ Book (2013–2026) maps every GS question to the syllabus, so you know what UPSC asks and how often. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

The block diagram of a discrete time LTI system is given below: Determine the transfer function H(z).

x(n)Σw(n)z⁻¹w(n−1)z⁻¹w(n−2)−1/31/6Σ2/3Σz⁻¹−1/31/3Σz⁻¹1/6Σy(n)A1A2A3A4A5
Figure redrawn from the question paper.

2012 · Paper I · Q4a · 20 marks

Solution

Front section (adders A1 and A2). w(n)=x(n)−13w(n−1)+16w(n−2)⇒W(z)X(z)=11+13z−1−16z−2.

Upper branch (A3). y1(n)=23w(n)−13y1(n−1): Y1W=2/31+13z−1.

Lower branch (A4). y2(n)=13w(n)+16y2(n−1): Y2W=1/31−16z−1.

Parallel sum (A5). YW=23(1−16z−1)+13(1+13z−1)(1+13z−1)(1−16z−1)=11+16z−1−118z−2. The z−1 terms in the numerator cancel.

Overall transfer function. H(z)=1(1+13z−1−16z−2)(1+16z−1−118z−2)=108108+54z−1−18z−2−5z−3+z−4.

✓ Checked by computer We simulated the block diagram sample by sample and matched its impulse response with H(z).

↑ Back to the question list

Using z transforms, obtain the convolution sum of two sequences, y(n)=x1(n)*x2(n), where x1(n)={12−103} x2(n)=u(n)−u(n−3) u(n) is a unit step sequence.

2009 · Paper I · Q2a(ii) · 10 marks

Solution

Sequences (taking the first listed sample of x1 at n=0):

  • x1(n)={1,2,−1,0,3}⇒X1(z)=1+2z−1−z−2+3z−4
  • x2(n)=u(n)−u(n−3)={1,1,1}⇒X2(z)=1+z−1+z−2

Convolution property. y=x1*x2↔Y(z)=X1(z)X2(z): Y(z)=1+3z−1+2z−2+z−3+2z−4+3z−5+3z−6.

Answer. y(n)={1,3,2,1,2,3,3},n=0,…,6.

✓ Checked by computer We convolved the two sequences in NumPy.

↑ Back to the question list

Find z transform of the function f(n)=ancos(nπ2)u(n) Sketch its RoC.

2009 · Paper I · Q8a(ii) · 8 marks

Solution

Base pair. cos(Ω0n)u(n)↔1−z−1cosΩ01−2z−1cosΩ0+z−2. For Ω0=π/2, cosΩ0=0, so cosnπ2u(n)↔11+z−2.

Scaling by an. anx(n)↔X(z/a): F(z)=11+a2z−2=z2z2+a2,|z|>|a|. Poles at z=±ja; double zero at z=0. The ROC is the region outside the circle |z|=|a|.

ReImja−ja2ROC: |z| > |a|× pole○ zero
Poles, zeros and the ROC (shaded).

✓ Checked by computer We summed the sequence numerically at a point in the ROC and matched the formula.

↑ Back to the question list

Solve the following difference equation by use of the z transform method: x(k+2)+3x(k+1)+2x(k)=0,x(0)=0,x(1)=1

2007 · Paper I · Q2a(i) · 10 marks

Solution

Transform. Using 𝒵[x(k+1)]=zX−zx(0) and 𝒵[x(k+2)]=z2X−z2x(0)−zx(1): z2X−z+3zX+2X=0⇒X(z)=zz2+3z+2=z(z+1)(z+2).

Partial fractions. X(z)=zz+1−zz+2.

Solution. x(k)=(−1)k−(−2)k,k≥0. Check: x(0)=0, x(1)=1, x(2)=−3=−3(1)−2(0).

✓ Checked by computer We ran the recursion from x(0) = 0, x(1) = 1 and matched the answer for k = 0 to 11.

↑ Back to the question list

Obtain the inverse z transform of: X(z)=2z3+z(z−2)2(z−1)

2007 · Paper I · Q2a(ii) · 10 marks

Solution

Partial fractions of X(z)/z=2z2+1(z−2)2(z−1) (causal sequence assumed):

  • z=1: 31=3
  • (z−2)−2 term: 2z2+1z−1|2=9
  • (z−2)−1 term: ddz2z2+1z−1|2=4z(z−1)−(2z2+1)(z−1)2|2=−1

X(z)=3zz−1−zz−2+9z(z−2)2.

Inverse. Using az(z−a)2↔nanu(n), so z(z−2)2↔n2n−1u(n): x(n)=[3−2n+9n2n−1]u(n)=[3+(4.5n−1)2n]u(n). Check: x(0)=2 (the value of X as z→∞), x(1)=10.

✓ Checked by computer We expanded X(z) as a power series in SymPy and matched the first 8 samples.

↑ Back to the question list

Prove that z[nx[n]]=−ZddzX(Z) where z[x[n]]=X(Z) without any change in ROC.

2006 · Paper I · Q8a(ii) · 5 marks

Solution

Statement. If 𝒵[x[n]]=X(z) with ROC R, then 𝒵[nx[n]]=−zdX(z)dz,ROC R.

Proof. Start from the definition: X(z)=∑n=−∞∞x[n]z−n. A power (Laurent) series converges uniformly on closed sub-regions of its annulus of convergence, so it can be differentiated term by term inside R: dXdz=∑nx[n](−n)z−n−1. Multiply by −z: −zdXdz=∑nnx[n]z−n=𝒵[nx[n]].

ROC. A Laurent series and its term-by-term derivative have the same annulus of convergence. (Multiplying the terms by n does not change the radii, since |n|1/|n|→1.) So the ROC is still R. Only the points z=0 or z=∞ on the boundary can need a separate check.

✓ Proof checked step by step We checked each step of the proof against the definition of the z-transform.

↑ Back to the question list

Find the inverse z-transform of x(z)=(e−2−2)z(z−e−2)(z−2) Where |z|>2 and e−2<|z|<2.

2005 · Paper I · Q6a(i) · 7 marks

Solution

Partial fractions. X(z)z=e−2−2(z−e−2)(z−2)=1z−e−2−1z−2. X(z)=zz−e−2−zz−2.

ROC |z|>2. Both terms are right-sided: x(n)=[e−2n−2n]u(n).

ROC e−2<|z|<2. The pole at e−2 is inside (right-sided term); the pole at 2 is outside (left-sided term). Using −zz−a↔anu(−n−1) for |z|<|a|: x(n)=e−2nu(n)+2nu(−n−1).

✓ Checked by computer We summed both inverse sequences numerically at points in each ROC and matched X(z).

↑ Back to the question list

Find the z-transform of cos(nπ/2).u(n).

2004 · Paper I · Q5a(ii) · 12 marks

Solution

Using Euler’s formula. cosnπ2=12(jn+(−j)n): X(z)=12[zz−j+zz+j]=z2z2+1,|z|>1. Directly: the sequence is 1,0,−1,0,1,0,…, so X(z)=1−z−2+z−4−⋯=11+z−2.

✓ Checked by computer We summed the sequence numerically at a point in the ROC and matched the formula.

↑ Back to the question list

Find the impulse response of the system whose transfer function is given as follows: H(z)=11−2rcosθ.z−1+r2z−2 which converges |z|>r, it has a pair of poles at z=r.e±jθ and a double zero at z = 0.

2004 · Paper I · Q6a(ii) · 12 marks

Solution

Partial fractions. With p=rejθ: H(z)=1(1−pz−1)(1−p*z−1)=A1−pz−1+A*1−p*z−1,A=pp−p*=ejθ2jsinθ.

Impulse response (|z|>r, causal): h[n]=2Re(Apn)=rnsinθRe(ej(n+1)θj)u[n]. h[n]=rnsin[(n+1)θ]sinθu[n]. For r<1 this is a damped oscillation at frequency θ.

✓ Checked by computer We ran the difference equation as a recursion and matched h[n] for n = 0 to 11.

↑ Back to the question list

The discrete time system is described by the constant coefficient difference equation y(n)=x(n)+ay(n−1) with initial condition y(−1)=K. If the input x(n)=ejωn.u(n) is applied to the system, what will be the output response? [Solve the problem using z-transform and its inverse transform operation only].

2004 · Paper I · Q8a · 20 marks

Solution

One-sided transform. 𝒵[y(n−1)]=z−1Y(z)+y(−1). Also X(z)=11−ejωz−1. Y(z)=X(z)+a[z−1Y(z)+K]⇒Y(z)=aK1−az−1+1(1−az−1)(1−ejωz−1).

Partial fractions of the second term. 1(1−az−1)(1−ejωz−1)=aa−ejω1−az−1+ejωejω−a1−ejωz−1.

Response. y(n)=Kan+1⏟zero-input+an+1−ejω(n+1)a−ejω⏟zero-state,n≥0. Check: y(0)=aK+1.

If |a|<1, the an+1 terms die out and the steady-state output is yss(n)=ejωn1−ae−jω=H(ejω)ejωn.

✓ Checked by computer We ran the difference equation as a recursion with y(−1) = K and matched the closed form for n = 0 to 9.

↑ Back to the question list

A digital filter is characterised by the following recursive relation, where x(n) and y(n) are the input and output samples at the nth sampling instant. The sampling frequency is 100 Hz. y(n)=0.8y(n−1)−0.64y(n−2)+x(n)−x(n−1)+x(n−2) Find the poles and zeros of the discrete-time transfer function of the filter. Hence deduce and sketch the magnitude response characteristic of the filter from f=0 to f=∞. Mark the values at f=0, 50 and 100 Hz.

1995 · Paper I · Q2c · 20 marks

Solution

Transfer function. H(z)=1−z−1+z−21−0.8z−1+0.64z−2=z2−z+1z2−0.8z+0.64.

Zeros: z2−z+1=0⇒z=12±j32=e±jπ/3 (on the unit circle).

Poles: z2−0.8z+0.64=0⇒z=0.4±j0.693=0.8e±jπ/3 (inside the unit circle, so the filter is stable).

ReIm1−1e^(±jπ/3)0.8e^(±jπ/3)× pole○ zero
Pole-zero plot.

Frequency response. Put z=ejΩ with Ω=2πf/fs and fs=100 Hz.

  • f=0 (z=1): |H|=1−1+11−0.8+0.64=10.84=1.19.
  • f=50 Hz (z=−1): |H|=1+1+11+0.8+0.64=32.44=1.23.
  • f=100 Hz (z=1 again): |H|=1.19.
  • The zeros on the unit circle give |H|=0 at Ω=π/3, that is f=1006=16.7 Hz, and at f=100−16.7=83.3 Hz.
  • The poles at the same angle, close to the zeros, make the null very narrow. Away from it the response is nearly flat, between 1.19 and 1.23.

So the filter is a notch filter that rejects 16.7 Hz. The response of a sampled system repeats every fs=100 Hz, so “from 0 to ∞” is this pattern repeated (nulls at 16.7+100k and 83.3+100k Hz).

016.75083.31001502001.191.23f (Hz)|H|
|H| against frequency (sampling at 100 Hz). The pattern repeats every 100 Hz.

✓ Checked by computer We found the poles and zeros with NumPy and evaluated |H| at 0, 50 and 100 Hz and at the null.

↑ Back to the question list

More on Signals and Systems

Questions: UPSC Civil Services (Main) Examination, Electrical Engineering Paper I, 1995–2026. Solutions: Optional Province. Found an error? Tell us.

Spotted an error? Tell us.

We classify every PYQ with care, but mistakes can slip in. If a question is in the wrong topic, has a typo, the wrong year, or is missing, let us know. We review every report and update the page.

Report an Error
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted