FP2 6.1, 6.2 - First-order recurrence relations

FP2 6.1, 6.2 - First-order recurrence relations

Turn a rule for the next term into a formula for any term (FP2 6.1, 6.2). You will combine complementary functions and particular solutions, handle changing coefficients, and interpret a population model.

From a next-term rule to a closed form

A population model keeps 80%80\% of its population each year and adds 4040 newcomers. Starting from 100100, can it ever reach 200200? Generating terms gives clues; a formula for the term after any number of years will settle it.

You already know

An index labels a term, so un+1u_{n+1} means the term after unu_n, whereas un+1u_n+1 means add one to its value. Powers satisfy an+1=a ana^{n+1}=a\,a^n. We will state the starting index each time.

For instance, un+1=2un+3, u1=4u_{n+1}=2u_n+3,\ u_1=4 gives 4,11,25,53,…4,11,25,53,\ldots. This is a rule for building the sequence, rather than a formula that jumps straight to its hundredth term.

First-order recurrence relation

A first-order recurrence determines a new term using the preceding term. The linear form

un+1+f(n)un=g(n)u_{n+1}+f(n)u_n=g(n)

has specified functions f,gf,g and one initial value. A closed form expresses unu_n directly in terms of nn, without unknown earlier terms. For example, un=7⋅2n−1−3u_n=7\cdot2^{n-1}-3 is a closed form for the sequence above.

For un+1−aun=bu_{n+1}-a u_n=b, split the work. A particular solution, pnp_n, satisfies the full equation. A complementary function, hnh_n, satisfies the associated homogeneous equation hn+1−ahn=0h_{n+1}-a h_n=0. Their sum satisfies the full equation because the homogeneous contribution cancels.

Constant coefficient and constant forcing

For un+1=aun+bu_{n+1}=a u_n+b, starting at n=n0n=n_0, with a≠0,1a\ne0,1, set

L=b1−a,un=L+Can−n0L=\frac{b}{1-a},\qquad u_n=L+C a^{n-n_0}

Here LL is a constant particular solution and C=un0−LC=u_{n_0}-L. For a=1a=1, use

un=un0+b(n−n0)u_n=u_{n_0}+b(n-n_0)

For a=0a=0, every term after the initial term equals bb; keep the supplied initial term separately.

Not in the formula booklet: learn it.

Subtracting L=aL+bL=aL+b from the recurrence gives un+1−L=a(un−L)u_{n+1}-L=a(u_n-L). Each step multiplies the displacement from LL by aa, which explains the power.

Worked example 1: use the given starting index

Question. Determine a closed form for un+1−2un=3u_{n+1}-2u_n=3, u1=4u_1=4, for n≥1n\geq1.

Plan. Find a constant particular solution, add the complementary function, then use the value at index 11.

p−2p=3constant trialp=−3particular solutionhn=A2n−1homogeneous solution4=A−3use u1A=7determine the constant\begin{aligned} p-2p&=3 &&\text{constant trial}\\ p&=-3 &&\text{particular solution}\\ h_n&=A2^{n-1} &&\text{homogeneous solution}\\ 4&=A-3 &&\text{use }u_1\\ A&=7 &&\text{determine the constant} \end{aligned}

Why this step? Using 2n−12^{n-1} makes the exponential equal to 11 at the supplied starting index.

Answer. un=7⋅2n−1−3u_n=7\cdot2^{n-1}-3, for n≥1n\geq1.

Check. The formula gives u1=4u_1=4, u2=11u_2=11, and 11−2(4)=311-2(4)=3.

Change only the initial value; the recurrence and its particular solution stay the same.

Worked example 2: another member of the same family

Question. Determine the closed form when un+1−2un=3u_{n+1}-2u_n=3, u1=6u_1=6.

Plan. Keep the complementary function and particular solution, then apply the new initial value.

un=A2n−1−3same general solution6=A−3new initial conditionA=9solveun=9⋅2n−1−3closed form\begin{aligned} u_n&=A2^{n-1}-3 &&\text{same general solution}\\ 6&=A-3 &&\text{new initial condition}\\ A&=9 &&\text{solve}\\ u_n&=9\cdot2^{n-1}-3 &&\text{closed form} \end{aligned}

Why this step? Initial conditions select the constant; they do not change the homogeneous multiplier.

Answer. un=9⋅2n−1−3u_n=9\cdot2^{n-1}-3, for n≥1n\geq1.

Check. u1=6u_1=6 and u2=15=2(6)+3u_2=15=2(6)+3.

The constant LL is also called a fixed point: a sequence starting exactly there stays there. A fixed point need not attract nearby sequences; here errors from −3-3 double.

Watch out

Writing un=9⋅2n−3u_n=9\cdot2^n-3 for the second example gives u1=15u_1=15, not 66. Either use 2n−12^{n-1}, or use A2nA2^n and solve 2A−3=62A-3=6. Keep the index and constant together.

Change just the starting value again.

Choose a particular solution for a polynomial input

The right side need not be constant. For un+1−aun=P(n)u_{n+1}-a u_n=P(n), try a polynomial of the same degree when a≠1a\ne1, and compare coefficients after replacing every nn by n+1n+1.

Polynomial forcing and the unit multiplier

For constant a≠1a\ne1, a polynomial right side of degree dd admits a polynomial particular solution of degree at most dd. Include all lower powers in the trial.

When a=1a=1, the left side is the difference pn+1−pnp_{n+1}-p_n: differencing lowers a nonconstant polynomial's degree by one, so a degree-dd input needs a degree-d+1d+1 trial. Its arbitrary constant is absorbed into the complementary function.

Not in the formula booklet: learn it.

For example, pn=qn+rp_n=qn+r gives pn+1−pn=qp_{n+1}-p_n=q. This is why a constant input with multiplier 11 needs a linear particular solution.

Worked example 3: a linear input

Question. Solve un+1−2un=nu_{n+1}-2u_n=n, u0=0u_0=0, for n≥0n\geq0.

Plan. Try pn=an+bp_n=an+b, compare coefficients and then add C2nC2^n.

pn+1−2pn=a(n+1)+b−2(an+b)shift the entire trial=−an+(a−b)collect powers of n−a=1,a−b=0compare coefficientsa=−1,b=−1particular constantsun=C2n−n−1add the complementary function0=C−1use u0\begin{aligned} p_{n+1}-2p_n &=a(n+1)+b-2(an+b) &&\text{shift the entire trial}\\ &=-an+(a-b) &&\text{collect powers of }n\\ -a&=1,\qquad a-b=0 &&\text{compare coefficients}\\ a&=-1,\qquad b=-1 &&\text{particular constants}\\ u_n&=C2^n-n-1 &&\text{add the complementary function}\\ 0&=C-1 &&\text{use }u_0 \end{aligned}

Why this step? A trial anan alone cannot cancel the constant produced when nn becomes n+1n+1.

Answer. un=2n−n−1u_n=2^n-n-1, for n≥0n\geq0.

Check. The first values are 0,0,1,40,0,1,4; the next-term rule gives 4=2(1)+24=2(1)+2.

Double only the right side, keeping the coefficient and initial value unchanged.

Worked example 4: scale the input

Question. Solve un+1−2un=2nu_{n+1}-2u_n=2n, u0=0u_0=0.

Plan. Use a complete linear trial again and apply the same initial index.

−an+(a−b)=2nsubstitute the linear triala=−2,b=−2compare coefficientsun=C2n−2n−2CF plus particular solution0=C−2initial valueC=2select the solution\begin{aligned} -an+(a-b)&=2n &&\text{substitute the linear trial}\\ a&=-2,\qquad b=-2 &&\text{compare coefficients}\\ u_n&=C2^n-2n-2 &&\text{CF plus particular solution}\\ 0&=C-2 &&\text{initial value}\\ C&=2 &&\text{select the solution} \end{aligned}

Why this step? The particular solution doubles, and the initial condition then changes the complementary constant too.

Answer. un=2n+1−2n−2u_n=2^{n+1}-2n-2.

Check. u2=2u_2=2, u3=8u_3=8, and 8−2(2)=4=2(2)8-2(2)=4=2(2).

For a quadratic input, start with an2+bn+can^2+bn+c; solve its coefficients before applying the initial value.

Watch out

The wrong line pn+1=an+b+1p_{n+1}=an+b+1 shifts the value rather than the index. The correct line is pn+1=a(n+1)+bp_{n+1}=a(n+1)+b. Substitute into every occurrence of the index before expanding.

Scale the input once more.

When an exponential trial meets the complementary function

For an exponential input KbnK b^n, a multiple of bnb^n is the natural trial. Check first whether it already solves the homogeneous equation.

Exponential input

For un+1−aun=Kbnu_{n+1}-a u_n=K b^n, with a,b≠0a,b\ne0, try

pn=Dbnp_n=Db^n

If b≠ab\ne a, substitution gives D(b−a)=KD(b-a)=K.

If b=ab=a, the trial cancels identically. Instead use

pn=Dnan,Da=Kp_n=Dn a^n,\qquad Da=K

The extra factor nn removes the overlap with the complementary function. This overlap is often called resonance.

Not in the formula booklet: learn it.

The rule comes from substituting into the recurrence, rather than from dividing by a coefficient that might be zero.

Worked example 5: distinct input and homogeneous multipliers

Question. Solve un+1−2un=3nu_{n+1}-2u_n=3^n, u0=2u_0=2.

Plan. Try D3nD3^n, then add the complementary function and use the initial condition.

D3n+1−2D3n=3nparticular trialD(3−2)=1divide by 3nD=1particular coefficientun=C2n+3ngeneral solution2=C+1use u0C=1solve\begin{aligned} D3^{n+1}-2D3^n&=3^n &&\text{particular trial}\\ D(3-2)&=1 &&\text{divide by }3^n\\ D&=1 &&\text{particular coefficient}\\ u_n&=C2^n+3^n &&\text{general solution}\\ 2&=C+1 &&\text{use }u_0\\ C&=1 &&\text{solve} \end{aligned}

Why this step? 3n3^n is independent of the homogeneous term 2n2^n, so the simple exponential trial can work.

Answer. un=2n+3nu_n=2^n+3^n.

Check. u1=5u_1=5, and 5−2(2)=1=305-2(2)=1=3^0.

Change only the input base from 33 to 22. It now matches the homogeneous multiplier.

Worked example 6: repair the overlapping trial

Question. Solve un+1−2un=2nu_{n+1}-2u_n=2^n, u0=2u_0=2.

Plan. Replace the cancelled trial D2nD2^n by Dn2nDn2^n.

D(n+1)2n+1−2Dn2n=2nmodified trial2D 2n=2ncancel the terms in nD=12match coefficientsun=C2n+n2 2nadd the CFC=2use n=0\begin{aligned} D(n+1)2^{n+1}-2Dn2^n&=2^n &&\text{modified trial}\\ 2D\,2^n&=2^n &&\text{cancel the terms in }n\\ D&=\frac12 &&\text{match coefficients}\\ u_n&=C2^n+\frac n2\,2^n &&\text{add the CF}\\ C&=2 &&\text{use }n=0 \end{aligned}

Why this step? Multiplication by nn creates a nonzero difference where a plain multiple of 2n2^n would give zero.

Answer. un=(2+n/2)2nu_n=(2+n/2)2^n.

Check. u1=5u_1=5, u2=12u_2=12, and 12−2(5)=2=2112-2(5)=2=2^1.

Continue this lesson.

You’re previewing NovaLearn without an account. Create a free account to read the rest.

Create free account