Part 24: Linear Difference Equations for UPSC ISS: CF and PI Made Simple

Practice on the go. Get our Android app.
Install App

Welcome back to Part 24 of Module 6, updated for the UPSC ISS 2026 to 2027 cycle. Part 23 handled systems where today depends only on yesterday. Real data often looks back two or three steps and absorbs an external growth force on top. The tool for those systems is the Linear Difference Equation with Constant Coefficients, solved by the Complementary Function plus Particular Integral method. If you have studied differential equations, this topic will feel like meeting an old friend in discrete clothing.

In operator form the equation reads f(E) ux=ϕ(x)f(E)\,u_x = \phi(x), and the general solution is always CF plus PI. The CF comes from the roots of the auxiliary equation f(E)=0f(E) = 0 through three cases, and the PI of an exponential right side follows the shortcut axf(a)\dfrac{a^x}{f(a)}​.

Exam context: 80 questions, 200 marks, 2 hours, 2.5 marks per question, about 0.83 deducted per wrong answer. CF and PI questions are pure pattern matching, typically finished inside 30 of the roughly 90 seconds each question affords.

This post is Part 24 of the Summation of Series and Difference Equations Guide (Module 6), inside our UPSC ISS Numerical Analysis Complete Guide. Roadmap at the UPSC ISS hub.

The Story of Vikram and the Economic Cycle

Vikram, an ISS officer, analyzes a manufacturing sector where each year’s output depends on the previous two years plus an external exponential growth factor. The model:ux+2−5ux+1+6ux=4xu_{x+2} – 5u_{x+1} + 6u_x = 4^x

His minister wants a direct formula for the output of any year xx. Integration cannot help; the data jumps yearly. Vikram splits the problem: the CF captures the internal market dynamics from the homogeneous part, and the PI captures the response to the external 4x4^x force. Their sum is the master formula for every future year.

Solving difference equations feels exactly like solving differential equations. Have you noticed the parallel? Tell us in the comments.
0
Solving difference equations feels exactly like solving differential equations. Have you noticed the parallel? Tell us in the comments.x

The Core Structure

A linear difference equation of order nnn with constant coefficients:A0ux+n+A1ux+n−1+⋯+Anux=ϕ(x)A_0 u_{x+n} + A_1 u_{x+n-1} + \dots + A_n u_x = \phi(x)

Using the shift operator, this compresses into the clean operator form f(E) ux=ϕ(x)f(E)\,u_x = \phi(x), where f(E)f(E) is a polynomial in EE. The complete solution is always:General Solution=Complementary Function+Particular Integral\text{General Solution} = \text{Complementary Function} + \text{Particular Integral}General Solution=Complementary Function+Particular Integral

Step 1: The Complementary Function

The CF is the solution of the homogeneous equation, found from the auxiliary equation f(E)=0f(E) = 0. The roots decide the form:

Case I, real and distinct roots α1,α2,…\alpha_1, \alpha_2, \dots:CF=c1α1x+c2α2x+⋯+cnαnx\text{CF} = c_1\alpha_1^x + c_2\alpha_2^x + \dots + c_n\alpha_n^x

Case II, a repeated real root α\alpha appearing twice:CF=(c1+c2x) αx\text{CF} = (c_1 + c_2 x)\,\alpha^x

Case III, complex roots α±iβ\alpha \pm i\beta, converted to polar form with r=α2+β2r = \sqrt{\alpha^2 + \beta^2}​ and θ=tan⁡−1(βα)\theta = \tan^{-1}\left(\dfrac{\beta}{\alpha}\right):CF=rx(C1cos⁡θx+C2sin⁡θx)\text{CF} = r^x\left(C_1\cos\theta x + C_2\sin\theta x\right)

The constants remain the arbitrary periodic functions of period 1 from Part 23, behaving as ordinary constants on integers.

Step 2: The Particular Integral

The PI is the system’s response to the external force: PI=1f(E) ϕ(x)\text{PI} = \dfrac{1}{f(E)}\,\phi(x).

The ultimate exam shortcut, the ax rule. In the paper, ϕ(x)\phi(x) is almost always exponential. Then simply replace the operator EE by the constant aa:PI=1f(E) ax=axf(a)provided f(a)≠0\text{PI} = \frac{1}{f(E)}\,a^x = \frac{a^x}{f(a)} \quad \text{provided } f(a) \neq 0

The continuous world’s e to the mx becomes the discrete world’s alpha to the x. Drop a yes if this analogy clicks for you.
0
The continuous world's e to the mx becomes the discrete world's alpha to the x. Drop a yes if this analogy clicks for you.x

StatChakravyuh Pro Tips

  1. The constant term trick. If the right side is a plain constant KK, write it as K⋅1xK \cdot 1^x. Now a=1a = 1, so substitute E=1E = 1 in the denominator and the PI appears instantly.
  2. The failure case. If substituting E=aE = a makes f(a)=0f(a) = 0, then aa is a root of the auxiliary equation. When the factor (E−a)(E – a) appears exactly once, the direct result is PI=x⋅ax−1\text{PI} = x \cdot a^{x-1}. Do not panic; apply the formula.
  3. The grand analogy. Solving difference equations is structurally identical to solving ordinary differential equations. The single substitution to remember: the continuous emxe^{mx} becomes the discrete αx\alpha^x.

Solved PYQ Masterclass

Example 1, finding the CF: Solve ux+2−4ux=0u_{x+2} – 4u_x = 0.

Operator form: (E2−4)ux=0(E^2 – 4)u_x = 0. Auxiliary equation: E2−4=0E^2 – 4 = 0, roots E=2,−2E = 2, -2, real and distinct, so Case I applies.

Final Answer: ux=c1(2)x+c2(−2)xu_x = c_1(2)^x + c_2(-2)^x, in 5 seconds.

Example 2, the ax shortcut: Find the Particular Integral of ux+2−5ux+1+6ux=4xu_{x+2} – 5u_{x+1} + 6u_x = 4^x.

Operator form: (E2−5E+6)ux=4x(E^2 – 5E + 6)u_x = 4^x. Substitute E=4E = 4 in the denominator:PI=4x42−5(4)+6=4x16−20+6=12 4x\text{PI} = \frac{4^x}{4^2 – 5(4) + 6} = \frac{4^x}{16 – 20 + 6} = \frac{1}{2}\,4^x

Final Answer: 12⋅4x\dfrac{1}{2} \cdot 4^x, verified by hand, no tables and no integration.

Common Traps to Avoid

Trap 1: Writing the repeated root CF as 2c αx2c\,\alpha^x. Linear independence demands the factor xx: the correct form is (c1+c2x)αx(c_1 + c_2 x)\alpha^x.

Trap 2: Forcing the axa^x shortcut when f(a)=0f(a) = 0. That is the failure case with its own formula, and the zero denominator option is planted to catch the unwary.

Trap 3: Forgetting that a constant right side is K⋅1xK \cdot 1^x. Students hunt for exotic methods when E=1E = 1 finishes the job.

Frequently Asked Questions

What does the Complementary Function represent?

The general solution of the homogeneous part, with the right side zero. It captures the internal, natural behaviour of the discrete system over time.

How is the auxiliary equation solved?

Replace the shift operator EE by a variable, set the polynomial to zero, and factorize algebraically, exactly like the auxiliary equation of a differential equation.

What if the roots repeat?

A root repeated kk times contributes a polynomial in xx of degree k−1k – 1 as multiplier. For a double root, the form is (c1+c2x)αx(c_1 + c_2 x)\alpha^x.

How is the PI found for a constant right side?

Write the constant CC as C⋅1xC \cdot 1^x and substitute E=1E = 1 in the operator denominator.

What happens when substituting E=a gives zero?

That is the failure case, meaning aaa is an auxiliary root. When (E−a)(E – a) appears exactly once, the Particular Integral is x⋅ax−1x \cdot a^{x-1}.

Take the Next Step with StatChakravyuh

Join the Free UPSC ISS WhatsApp Community. All parts of this series plus the Module 6 Practice PDF with 30 MCQs arrive there first. 👉 Join the WhatsApp Community now

Enroll in the Free UPSC ISS Course. Structured lessons and practice sets on the Practice Improve Repeat system, completely free. 👉 Enroll in the Free Course

Coming up in Part 25, the finale of Module 6: the bridge between the discrete and continuous worlds, the Euler Maclaurin Summation Formula with its Bernoulli numbers.

Help other aspirants
UPSC ISS 2027 · Complete Chakravyuh

Stop buying tests one by one. Get all 6 papers in one package.

Complete Chakravyuh is the complete UPSC ISS test series for 2027. More than 6000 questions across all 6 papers, with every descriptive answer evaluated within 3 days. Practice. Improve. Repeat.

6000+Questions
All 6Papers Covered
6 + 1Courses in One
3 DaysAnswer Evaluation
₹8,999 ₹15,999 Regular price till 30 September 2026

Have a doubt or suggestion? Message us on WhatsApp

Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
0
Got a similar doubt? Discuss here.x
()
x