📘 CodingMarble Learn

Recurrence Relations

A recurrence relation makes each term of a sequence from the term (or terms) before it, for example u(n+1) = u(n) + 3 with u(0) = 2. You always need a rule and a starting value. Rules like u(n+1) = u(n) + d give arithmetic sequences, u(n+1) = r·u(n) give geometric ones, and u(n+1) = a·u(n) + b settles at the fixed point b ÷ (1 − a) when −1 < a < 1.

🎬 Step-by-step story

  1. Every sequence must start somewhere. Here the first bar is u₀ = 2. Alone, it tells us nothing about the next one.
  2. Now add a rule: "next = previous + 3". Each new bar is 3 taller than the one before: 2, 5, 8, 11 … This is an arithmetic sequence.
  3. Change the rule to "next = previous × 2". The bars now double: 0.5, 1, 2, 4, 8 … This is a geometric sequence. It grows very fast.
  4. Mix both: "next = ½ × previous + 10". The bars climb fast, then slow down and settle on the red line at 20. That line is the fixed point.
  5. Some rules use two earlier terms: "next = the last two added". 1, 1, 2, 3, 5, 8 … This is the Fibonacci sequence. It needs two starting values.
  6. Your turn. Move a, b and u₀ for u(n+1) = a·u(n) + b. Predict first: will the bars grow, shrink, jump up and down, or settle?

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Why do we need a starting value if we have the rule?

The rule only says how to move from one term to the next. Different starts make different bars with the same rule.

How is a recursive formula different from an explicit one?

Recursive: you must climb step by step. Explicit: you jump straight to term n. The bars in step 1 follow both u(n+1) = u(n) + 3 and u(n) = 2 + 3n.

Why does the geometric sequence grow so much faster?

Adding 3 adds the same amount each time; doubling adds more and more because each bar is bigger than the last.

Why do the bars stop at 20 and not grow forever?

Each step halves the gap to 20. Half of a gap, then half again… the gap almost vanishes.

Why does Fibonacci need two starting numbers?

Its rule adds the last two terms, so at the start you need two terms to add.

Can the terms jump up and down?

Yes. If a is negative (try a = −0.5 in free play), the bars go above and below the fixed point.

What is a recurrence relation?

A sequence is a list of numbers in order: u₀, u₁, u₂ … A recurrence relation (also called a recursive formula) says how to get the next term from earlier terms.

Example: u(n+1) = u(n) + 3, u(0) = 2. So u₁ = 5, u₂ = 8, u₃ = 11.

You need two things: the rule and the starting value(s). Same rule, different start = different sequence.

Recursive vs explicit formula

A recursive formula needs the term before. An explicit (direct) formula gives any term straight from n. For u(n+1) = u(n) + 3, u(0) = 2, the explicit formula is u(n) = 2 + 3n. To find u(100), the explicit formula is much faster.

Arithmetic and geometric recurrences

Add a fixed number d: u(n+1) = u(n) + d → arithmetic, u(n) = u(0) + n·d.

Multiply by a fixed number r: u(n+1) = r·u(n) → geometric, u(n) = u(0)·rⁿ.

If r > 1 the terms grow; if 0 < r < 1 they shrink towards 0; if r is negative the signs flip each time.

First-order linear recurrences: u(n+1) = a·u(n) + b

This rule mixes multiply and add. It models savings with deposits, medicine in the blood, or fish in a lake. Such a step-by-step model is called a discrete dynamical system.

Fixed point (equilibrium)

A fixed point L does not change: L = a·L + b, so L = b ÷ (1 − a) (when a ≠ 1).

Explicit formula

u(n) = L + (u(0) − L)·aⁿ. The gap from L is multiplied by a every step.

Web (cobweb) diagram

Plot y = a·x + b and y = x. Start at u(0), go up to the line, across to y = x, and repeat. The path stairs or spirals into the crossing point, which is the fixed point.

Second-order recurrences and Fibonacci

A second-order rule uses two earlier terms, so it needs two starting values. Fibonacci: F(n+2) = F(n+1) + F(n), F(0) = F(1) = 1 → 1, 1, 2, 3, 5, 8, 13 …

The ratio of neighbours gets closer to the golden ratio ≈ 1.618. A sum can also be defined recursively: S(n) = S(n−1) + u(n).

Key formulas and definitions

Worked examples

1. u(n+1) = u(n) + 4, u(0) = 3. Find u₁ to u₄.

u₁ = 7, u₂ = 11, u₃ = 15, u₄ = 19.

2. u(n+1) = 3·u(n), u(0) = 2. Find u₄ and the explicit formula.

u₁ = 6, u₂ = 18, u₃ = 54, u₄ = 162. Explicit: u(n) = 2·3ⁿ; check 2·81 = 162.

3. Write a recursive formula for 50, 45, 40, 35 …

Each term is 5 less: u(n+1) = u(n) − 5, u(0) = 50.

4. u(n+1) = 0.5·u(n) + 10, u(0) = 2. Find u₁, u₂, u₃ and the fixed point.

u₁ = 11, u₂ = 15.5, u₃ = 17.75. L = 10 ÷ (1 − 0.5) = 20. The terms approach 20.

5. A pond has 1,000 fish. Each year 20% die and 150 are added. Write the rule and find the long-run number.

u(n+1) = 0.8·u(n) + 150, u(0) = 1000. L = 150 ÷ 0.2 = 750 fish. u₁ = 950, u₂ = 910 … falling towards 750.

6. For u(n+1) = 0.8·u(n) + 150, u(0) = 1000, find u(10) with the explicit formula.

u(n) = 750 + (1000 − 750)·0.8ⁿ = 750 + 250·0.8ⁿ. 0.8¹⁰ ≈ 0.107, so u(10) ≈ 750 + 26.8 ≈ 777 fish.

7. Fibonacci starting 1, 1. Find F(9) (the 10th term).

1, 1, 2, 3, 5, 8, 13, 21, 34, 55. F(9) = 55.

Common mistakes

Practice quiz

1. u(n+1) = u(n) + 6, u(0) = 1. What is u₃?
2. Which rule gives a geometric sequence?
3. The fixed point of u(n+1) = 0.75·u(n) + 5 is:
4. How many starting values does Fibonacci need?
5. For u(n+1) = −0.5·u(n) + 3, the terms:

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What is a recurrence relation in simple words?

A rule that makes each term of a sequence from the terms before it, together with a starting value.

How do you solve a recurrence relation?

Find an explicit formula. For u(n+1) = a·u(n) + b, find L = b ÷ (1 − a) and use u(n) = L + (u(0) − L)·aⁿ.

What is a fixed point of a recurrence?

A value L that stays the same when you apply the rule: L = a·L + b.

Where this is taught

NetherlandsVWO 4 (bovenbouw, 2e fase)Dynamical systems (part 1)
Japan高校2年Sequences
South Korea고등학교 2학년Sequences
South Korea고등학교 3학년Sequences

Learn first

Learn next

Related lessons

All Maths lessons