Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Trying to find the general solution to this homogeneous difference equation:

$$y_k - 2\cos\theta y_{k-1} + y_{k-2} = 0.$$

The characteristic equation is

$$\lambda^2 - 2\cos\theta \lambda + 1 = 0.$$

Not sure how to factor this, but tried

$$(\lambda - \cos\theta)(\lambda - \cos\theta) = 0$$

but I am stuck as to how to get $\cos^2\theta = 1$ using trigonometric identities.

By using the quadratic formula I get a discriminant of

$$4(\cos^2\theta - 1)$$

and I am stuck on how to simplify this to get the general solution.

Any help is appreciated. This is not for homework, but self study.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

To solve the difference equation $y(k) - [2\cos(θ)]y(k-1) + y(k-2) = 0$, assume the solution has the form $ y(k)=\lambda^k $ , then you substitute back in the difference equation which gives the equation

$$ λ^2 - 2\cos(θ)λ + 1=0 $$ $$\Rightarrow \lambda_1 = \frac{2\cos(\theta)+\sqrt{4\cos(\theta)^2-4}}{2} \,, \lambda_2 = \frac{2\cos(\theta)-\sqrt{4\cos(\theta)^2-4}}{2} $$

Note that,

$$ \sqrt{4\cos(\theta)^2-4} = 2\sqrt{\cos^2(\theta)-1}=2 \sqrt{-1}\sqrt{1-\cos^2(\theta)}= 2 i\sin(\theta)\,.$$ So, the roots are

$$ \lambda_1= \cos(\theta)+i\sin(\theta)\,, \lambda_1= \cos(\theta)-i\sin(\theta)\,.$$

The general solution can be written as

$$ y(k)=c_1{\lambda_1}^k + c_2 {\lambda_2}^k \,. $$

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.