u{n+1} + 2un = 2^n Sans latex
- User
u_{n+1} + 2u_n = 2^n Sans latex
- Assistant
To solve the recurrence relation ( u_{n+1} + 2u_n = 2^n ), we'll find the general solution by combining the homogeneous solution (solution to the associated homogeneous equation) and a particular solution to the nonhomogeneous equation.
1. Solve the Homogeneous Equation:
First, consider the homogeneous part of the recurrence relation:
[ u_{n+1} + 2u_n = 0 ]
Assume a solution of the form ( u_n = r^n ). Substituting into the homogeneous equation gives:
[ r^{n+1} + 2r^n = 0 ] [ r^{n}(r + 2) = 0 ]
Since ( r^n \neq 0 ) for general ( n ), we have the characteristic equation: