Method stop · When and why do we use it?

Functional Equations: Recursion

In the Chinese book: 函数方程:递归法

On the positive integers, a functional equation is just a recurrence. Solve it.

📖 §7.4 of 《函数与函数方程》M13 Recursion line

Before this stop, visit:Recursive Sequences (Skill)Functional Equations: Cauchy's Method (Method)

One idea, one pictureFirst look at the row on the left. Each number is computed from the two before it. Then look at the right side. The two roots of the characteristic equation, the closed form solved from them — do its values match the recurrence one by one? Drag , and the initial values, and watch the formula follow.

Loading figure…

In one sentence

A function whose domain is the set of positive integers is just a sequence: . If the functional equation expresses (or ) in terms of earlier values, it is a recurrence relation. Together with the initial values it determines completely, and what is left is to find the general term.

Example: f(n+2) = f(n+1) + 2f(n), f(1) = 1, f(2) = 5

Step 1 / 5
Loading figure…
  1. It determines a sequence

    Compute step by step from the initial values: , , … The function is already completely determined; the question is to write down a formula.

Predict first

, , . What is ?

Choose an answer first; then you can see the result.

Stop 1 · First-order recurrences: add them up

Example. , , .

Put : . This is a first-order recurrence. The difference between neighboring terms is known, so add them up:

Substitute back into the original equation: ✓. This is the same routine as plugging in values on the previous stop: plugging in creates the recurrence, and the recursion method then solves it.

Stop 2 · Second-order recurrences: characteristic roots

This is the example at the start of the page. The key points:

  1. If the characteristic equation has two distinct roots , then ;
  2. If it has a double root , then ;
  3. Solve for the constants from and , and check at the end.

Stop 3 · Double roots

Break it

Counterexample lab: remove one condition

Conclusion: can match any two initial values

: the roots are and , and the two basic solutions and each get a constant. Drag the initial values: the formula always keeps up.

Loading figure…

Practice

Exercise 1Basic

, , . Find .

Exercise 2Basic

, . Find .

Exercise 3Advanced

satisfies and . Find .

Exercise 4Challenge

, , . Find , and write down the general term.

Mistake Museum · Exhibits from this stop

Before you leave, look at the traps other people fell into here.See every exhibit in the museum →

Exhibit

Still writing $c_1x_1^n+c_2x_2^n$ for a double root

The wrong step: has characteristic roots , so .
What went wrong? Think first, then open

Diagnosis really has only one unknown constant, which cannot match two initial values and . For example, with and , contradicts .

The right step: For a double root the general term is . The example above gives ; check it term by term:

“Two initial values need two independent constants”