Solve the homogeneous recurrence
un+1=3un ⇒ un=A3n Ignoring f(n) leaves a geometric sequence.
Choose a trial particular solution
pn=λn⋅3n The obvious trial already solves the homogeneous equation, so it has to be multiplied by n; without that factor the substitution would collapse to 0=f(n).
Substitute the trial solution into the recurrence
3n+1λ(n+1)−3⋅3nλn=6⋅3n Every u in the recurrence is replaced by the trial expression.
Divide through by 3n and expand each term
3λn+3λ−3λn=6 Every term carries a factor 3n, which is never zero, so it cancels and leaves an identity in n alone.
Solve for the unknown coefficient
This is the only choice of coefficient that makes the two sides agree for every n.
State the particular solution
pn=2n⋅3n This single sequence satisfies the full non-homogeneous recurrence.
Write down the general solution
un=A3n+2n⋅3n The complementary function plus the particular solution.
Use the initial condition u0=1
A=1 ⇒ A=1 Substituting n=0 into the general solution gives one linear equation, and a first-order recurrence has only one constant to find.
Test the candidates against u1
Any option that fails to reproduce this term can be discarded at once.
Note the resonance
the trial λ3n solves the homogeneous equation That is why the correct closed form carries a factor of n.
Recall the auxiliary equation
un+2=aun+1+bun ⇒ m2−am−b=0 Trying un=mn in the homogeneous recurrence and dividing by mn gives this quadratic.
Recall the general solution for two distinct real roots
un=Aαn+Bβn Each root of the auxiliary equation contributes one geometric term.
Recall the general solution for a repeated root
un=(A+Bn)αn A repeated root supplies only one solution, so the second one carries a factor n.
Recall the general solution for complex roots
un=rn(Acosnθ+Bsinnθ) Writing the conjugate roots as r(cosθ±isinθ) turns the solution into a real trigonometric form.
Recall the structure of the general solution
un=complementary function+particular solution The complementary function solves the homogeneous equation; the particular solution supplies f(n).
Recall the standard trial particular solutions
f(n)=c ⇒ λ;f(n)=cn+d ⇒ λn+μ;f(n)=ckn ⇒ λkn The trial solution copies the shape of f(n).
Select the closed form
un=3n+2n⋅3n This is the only option that satisfies both the recurrence and the initial condition.