Chapter 15: Problem 19
Find the general expression for the \(u_{n}\) satisfying $$ u_{n+1}=2 u_{n-2}-u_{n-1} $$ with \(u_{0}=u_{1}=0\) and \(u_{2}=1\), and show that they can be written in the form $$ u_{n}=\frac{1}{5}-\frac{2^{n / 2}}{\sqrt{5}} \cos \left(\frac{3 \pi n}{4}-\phi\right) $$ where \(\tan \phi=2\).
Short Answer
Expert verified
Express the solution in terms of the given formula using the initial conditions and solving the system of linear equations.
Step by step solution
01
Identify the characteristic equation
The given recurrence relation is: \[u_{n+1} = 2u_{n-2} - u_{n-1}\]To find the characteristic equation, assume a solution of the form \(u_n = r^n\). Substitute this into the recurrence relation:\[r^{n+1} = 2r^{n-2} - r^{n-1}\]Dividing both sides by \(r^{n-2}\) gives:\[r^3 = 2 - r\]Rearranging terms, the characteristic equation is:\[r^3 + r - 2 = 0\]
02
Solve the characteristic equation
Solve the characteristic equation \(r^3 + r - 2 = 0\) to find its roots. Use trial and error or synthetic division to find that one root is \(r = 1\). Factor the polynomial as:\[r^3 + r - 2 = (r - 1)(r^2 + r + 2) = 0\]Now solve the quadratic equation \(r^2 + r + 2 = 0\) using the quadratic formula: \[r = \frac{-1 \pm \sqrt{(-1)^2 - 4 \times 1 \times 2}}{2(1)} = \frac{-1 \pm \sqrt{1 - 8}}{2} = \frac{-1 \pm \sqrt{-7}}{2} = \frac{-1 \pm i\sqrt{7}}{2}\]So, the roots are:\[r_1 = 1\]\[r_2 = \frac{-1 + i\sqrt{7}}{2}\]\[r_3 = \frac{-1 - i\sqrt{7}}{2}\]
03
Write the general solution
Based on the roots found, the general solution to the recurrence relation is:\[u_n = A(1)^n + B\left(\frac{-1 + i\sqrt{7}}{2}\right)^n + C\left(\frac{-1 - i\sqrt{7}}{2}\right)^n\]Simplify this as:\[u_n = A + B\left(\frac{-1 + i\sqrt{7}}{2}\right)^n + C\left(\frac{-1 - i\sqrt{7}}{2}\right)^n\]
04
Apply initial conditions
Use the initial conditions \(u_0 = 0\), \(u_1 = 0\), and \(u_2 = 1\):For \(n=0\):\[u_0 = A + B + C = 0\] For \(n=1\):\[u_1 = A + B\left(\frac{-1 + i\sqrt{7}}{2}\right) + C\left(\frac{-1 - i\sqrt{7}}{2}\right) = 0\] For \(n=2\):\[u_2 = A + B\left(\frac{-1 + i\sqrt{7}}{2}\right)^2 + C\left(\frac{-1 - i\sqrt{7}}{2}\right)^2 = 1\]
05
Solve for constants
Solve the system of linear equations from initial conditions:1. \(A + B + C = 0\)2. \(A + B\left(\frac{-1 + i\sqrt{7}}{2}\right) + C\left(\frac{-1 - i\sqrt{7}}{2}\right) = 0\)3. \(A + B\left(\frac{-1 + i\sqrt{7}}{2}\right)^2 + C\left(\frac{-1 - i\sqrt{7}}{2}\right)^2 = 1\)Solve these equations step-by-step to find values for constants A, B, and C.
06
Express in given form
Combine constants and roots to express in the given form:\[u_n = \frac{1}{5} - \frac{2^{n/2}}{\sqrt{5}} \cos \left( \frac{3\pi n}{4} - \phi \right)\]where \(\tan \phi = 2\).
Unlock Step-by-Step Solutions & Ace Your Exams!
-
Full Textbook Solutions
Get detailed explanations and key concepts
-
Unlimited Al creation
Al flashcards, explanations, exams and more...
-
Ads-free access
To over 500 millions flashcards
-
Money-back guarantee
We refund you if you fail your exam.
Over 30 million students worldwide already upgrade their learning with Vaia!
Key Concepts
These are the key concepts you need to understand to accurately answer the question.
Characteristic Equation
Understanding the characteristic equation is a key step in solving recurrence relations. To begin, assume the solution of the recurrence relation has the form of a geometric sequence, i.e., let the solution be of the form \(u_n = r^n\).
Substituting this assumed solution into the recurrence relation will transform the problem into an algebraic equation. For our exercise, the recurrence relation is given by \(u_{n+1} = 2u_{n-2} - u_{n-1}\).
Substituting \(u_n = r^n\) into this, we get \(r^{n+1} = 2r^{n-2} - r^{n-1}\).
We then divide both sides by \(r^{n-2}\) to simplify it:
\[r^3 = 2 - r\].
Rearranging the terms gives us the characteristic equation:
\[r^3 + r - 2 = 0\].
This equation, \[r^3 + r - 2 = 0\], will help us find the roots that are essential for constructing the general solution.
Substituting this assumed solution into the recurrence relation will transform the problem into an algebraic equation. For our exercise, the recurrence relation is given by \(u_{n+1} = 2u_{n-2} - u_{n-1}\).
Substituting \(u_n = r^n\) into this, we get \(r^{n+1} = 2r^{n-2} - r^{n-1}\).
We then divide both sides by \(r^{n-2}\) to simplify it:
\[r^3 = 2 - r\].
Rearranging the terms gives us the characteristic equation:
\[r^3 + r - 2 = 0\].
This equation, \[r^3 + r - 2 = 0\], will help us find the roots that are essential for constructing the general solution.
Roots of a Polynomial
To solve the characteristic equation \[r^3 + r - 2 = 0\], we need to find the roots, which are the values of \(r\) satisfying the equation. Using methods such as trial and error or synthetic division, we found that \(r = 1\) is a root.
We can then factor the polynomial as:
\[r^3 + r - 2 = (r - 1)(r^2 + r + 2) = 0\].
Now, we need to solve the quadratic equation \(r^2 + r + 2 = 0\) to find the other two roots. Using the quadratic formula \[r = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}\], where \(a = 1\), \(b = 1\), and \(c = 2\):
\[r = \frac{-1 \pm \sqrt{1 - 8}}{2} = \frac{-1 \pm \sqrt{-7}}{2} = \frac{-1 \pm i\sqrt{7}}{2}\].
Thus, the roots are:
\(r_1 = 1\),
\(r_2 = \frac{-1 + i\sqrt{7}}{2}\),
\(r_3 = \frac{-1 - i\sqrt{7}}{2}\).
These roots include both a real root and a pair of complex conjugate roots.
We can then factor the polynomial as:
\[r^3 + r - 2 = (r - 1)(r^2 + r + 2) = 0\].
Now, we need to solve the quadratic equation \(r^2 + r + 2 = 0\) to find the other two roots. Using the quadratic formula \[r = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}\], where \(a = 1\), \(b = 1\), and \(c = 2\):
\[r = \frac{-1 \pm \sqrt{1 - 8}}{2} = \frac{-1 \pm \sqrt{-7}}{2} = \frac{-1 \pm i\sqrt{7}}{2}\].
Thus, the roots are:
\(r_1 = 1\),
\(r_2 = \frac{-1 + i\sqrt{7}}{2}\),
\(r_3 = \frac{-1 - i\sqrt{7}}{2}\).
These roots include both a real root and a pair of complex conjugate roots.
General Solution of Recurrence
Once we have the roots of the characteristic equation, we can form the general solution. The solution to the recurrence relation is a combination of terms of the form \(r^n\) corresponding to each root. For our example, with roots 1, \(\frac{-1 + i\sqrt{7}}{2}\), and \(\frac{-1 - i\sqrt{7}}{2}\), the general solution is:
\[u_n = A(1)^n + B\bigg(\frac{-1 + i\sqrt{7}}{2}\bigg)^n + C\bigg(\frac{-1 - i\sqrt{7}}{2}\bigg)^n\].
Simplifying this, we get:
\[u_n = A + B\bigg(\frac{-1 + i\sqrt{7}}{2}\bigg)^n + C\bigg(\frac{-1 - i\sqrt{7}}{2}\bigg)^n\].
Here, \(A, B,\) and \(C\) are constants that can be determined using the initial conditions of the problem.
\[u_n = A(1)^n + B\bigg(\frac{-1 + i\sqrt{7}}{2}\bigg)^n + C\bigg(\frac{-1 - i\sqrt{7}}{2}\bigg)^n\].
Simplifying this, we get:
\[u_n = A + B\bigg(\frac{-1 + i\sqrt{7}}{2}\bigg)^n + C\bigg(\frac{-1 - i\sqrt{7}}{2}\bigg)^n\].
Here, \(A, B,\) and \(C\) are constants that can be determined using the initial conditions of the problem.
System of Linear Equations
To find the constants \(A, B,\) and \(C\) in the general solution, we use the initial conditions given in the problem: \(\begin{aligned} u_0 &= 0 \ u_1 &= 0 \ u_2 &= 1 \end{aligned}\).
Plugging these values into the general solution, we get a system of linear equations:
1. For \(n = 0\): \[u_0 = A + B + C = 0\].
2. For \(n = 1\): \[u_1 = A + B\bigg(\frac{-1 + i\sqrt{7}}{2}\bigg) + C\bigg(\frac{-1 - i\sqrt{7}}{2}\bigg) = 0\].
3. For \(n = 2\): \[u_2 = A + B\bigg(\frac{-1 + i\sqrt{7}}{2}\bigg)^n + C\bigg(\frac{-1 - i\sqrt{7}}{2}\bigg)^n = 1\].
We solve these linear equations step-by-step to find the values of \(A, B,\) and \(C\). Solving such systems typically involves substitution or matrix methods.
Plugging these values into the general solution, we get a system of linear equations:
1. For \(n = 0\): \[u_0 = A + B + C = 0\].
2. For \(n = 1\): \[u_1 = A + B\bigg(\frac{-1 + i\sqrt{7}}{2}\bigg) + C\bigg(\frac{-1 - i\sqrt{7}}{2}\bigg) = 0\].
3. For \(n = 2\): \[u_2 = A + B\bigg(\frac{-1 + i\sqrt{7}}{2}\bigg)^n + C\bigg(\frac{-1 - i\sqrt{7}}{2}\bigg)^n = 1\].
We solve these linear equations step-by-step to find the values of \(A, B,\) and \(C\). Solving such systems typically involves substitution or matrix methods.
Complex Roots
In solving recurrence relations, encountering complex roots is common. These roots come in conjugate pairs, such as \(r_2 = \frac{-1 + i\sqrt{7}}{2}\) and \(r_3 = \frac{-1 - i\sqrt{7}}{2}\) in this exercise.
For complex roots, the solutions to the recurrence relation can be expressed using trigonometric functions. Using Euler's formula, any term involving a complex root can be written in terms of cosine and sine. As such, \[u_n = A + B\bigg(\frac{-1 + i\sqrt{7}}{2}\bigg)^n + C\bigg(\frac{-1 - i\sqrt{7}}{2}\bigg)^n\] transforms to an expression involving sinusoidal functions.
Combining these steps, the general form of the solution for the given problem is: \[u_n = \frac{1}{5} - \frac{2^{n/2}}{\sqrt{5}} \cos\bigg(\frac{3 \pi n}{4} - \phi\bigg)\].
Here, \(\tan \phi = 2\), creating a beautifully simplified yet powerful solution representing the behavior of the sequence.
For complex roots, the solutions to the recurrence relation can be expressed using trigonometric functions. Using Euler's formula, any term involving a complex root can be written in terms of cosine and sine. As such, \[u_n = A + B\bigg(\frac{-1 + i\sqrt{7}}{2}\bigg)^n + C\bigg(\frac{-1 - i\sqrt{7}}{2}\bigg)^n\] transforms to an expression involving sinusoidal functions.
Combining these steps, the general form of the solution for the given problem is: \[u_n = \frac{1}{5} - \frac{2^{n/2}}{\sqrt{5}} \cos\bigg(\frac{3 \pi n}{4} - \phi\bigg)\].
Here, \(\tan \phi = 2\), creating a beautifully simplified yet powerful solution representing the behavior of the sequence.