I have the following question:
$$\begin{cases} f(0) &= 3\\ f(n) &= 9f(n-1)-14,\quad n>0 \end{cases}$$ I tackle this inhomogeneous equation by defining a new function with following relationship:
$$\begin{cases} f(n) = 9^n \times g(n) \end{cases}$$
However, I am struggling with the negative constant term and keep ending with a solution which seems illogical to me. Could someone show me the necessary steps?
"The general solution to an inhomogeneous linear recurrence relation is the general solution to the associated homogeneous recurrence, plus any particular solution of the inhomogeneous recurrence."
Quite a mouthful, but what is means is this:
Solve the homogeneous recurrence you get by eliminating the right-hand side: $f(n)=9f(n-1).$ We know the answer is $f(n) = c9^n,$ for some constant $c$.
Find any solution at all to the inhomogeneous recurrence. In this case we can try $f(n) \equiv k.$ That leads to $k=9k-14\implies k = 7/4.$
Now the general solution to the inhomogeneous recurrence is the sum of the results in the two previous steps: $f(n)= c9^n - 7/4$
Finally, use the initial condition to solve for $c$. I leave that to you.