1 / 16

7.2 Solving Linear Recurrence Relations

7.2 Solving Linear Recurrence Relations. Some of these recurrence relations can be solved using iteration or some other ad hoc technique.

sora
Download Presentation

7.2 Solving Linear Recurrence Relations

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 7.2 Solving Linear Recurrence Relations • Some of these recurrence relations can be solved using iteration or some other ad hoc technique. • However, one important class of recurrence relations can be explicitly solved in a systematic way. These are recurrence relations that express the terms of a sequence as linear combinations of previous terms. • Definition 1: A linear homogeneous recurrence relation of degree k with constant coefficients is a recurrence relation of the form an= c1an-1 + c2an-2+ . . .+ ckan-k Where c1, c2, . . .,ck are real numbers, ck ≠ 0.

  2. Solving Linear Recurrence Relations • The recurrence relation in the definition is linear because the right-hand side is a sum of previous terms of the sequence each multiplied by a function of n. • The recurrence relation is homogeneousbecause no terms occur that are not multiples of the ajs. • The coefficients of the terms of the sequence are all constants, rather than functions that depend on n. • Thedegreeis k because an is expressed in terms of the previous k terms of the sequence. • A consequence of the second principle of mathematical induction is that a sequence satisfying the recurrence relation in the definition is uniquely determined by this recurrence relation and the k initial conditions a0 =C0, a1=C1,. . . , ak-1=Ck-1

  3. Solving Linear Recurrence Relations • Example 1: the recurrence relation Pn=(1.11)Pn-1is a linear homogeneous recurrence relation of degree one. • The recurrence relation fn=fn-1 +fn-2is a linear homogeneous recurrence relation of degree two. • The recurrence relation an=an-5is a linear homogeneous recurrence relation of degree five. • Example 2: The recurrence relation an= an-1+an-22 is not linear. The recurrence relation Hn = 2Hn-1 +1 is not homogeneous. The recurrence relation Bn =nBn-1does not have constant coefficients.

  4. Solving Linear Homogeneous Recurrence Relations with Constant Coefficients • Theorem 1: let c1 and c2 be real numbers. Suppose that r2-c1r-c2=0 has two distinct roots r1and r2. • Then the sequence {an} is a solution of the recurrence relation an = c1an-1 + c2an-2 if and only is an = α1r1n + α2r2nfor n=0, 1, 2,. . .,where α1 and α2 are constants

  5. Solving Linear Homogeneous Recurrence Relations with Constant Coefficients • Example 3: what is the solution of the recurrence relation of the recurrence relation an = an-1 + 2an-2 With a0= 2 and a1= 7 ? • Example 4: Find an explicit formula for the Fibonacci numbers.

  6. Solving Linear Homogeneous Recurrence Relations with Constant Coefficients • Theorem 2: Let c1 and c2 be real numbers with c2 ≠0. Suppose that r2 - c1r - c2 = 0 has only one root r0. • A sequence {an} is a solution of the recurrence relation an = c1an-1 + c2an-2 if and only if an= α1r0n+ α2nr0n for n=0, 1, 2,. . .,where α1 and α2 are constants. • Example 5: What is the solution of the recurrence relation an = 6 an-1-9 an-2,with a0= 1 and a1= 6?

  7. Solving Linear Homogeneous Recurrence Relations with Constant Coefficients • Theorem 3: Let c1 , c2 ,. . ., ckbe real numbers. Suppose that the characteristic equation rk- c1rk-1 - . . . - ck = 0 has k distinct roots r1, r2,. . .,rk. Then a sequence {an} is a solution of the recurrence relation an = c1an-1 + c2an-2 +. . . + ckan-k if and only is an =α1r1n +α2r2n +. . .+ αkrkn for n=0, 1, 2,. . .,where α1,α2 , . . ., αk are constants.

  8. Solving Linear Homogeneous Recurrence Relations with Constant Coefficients • Example 6: Find the solution to the recurrence relation an = 6an-1 - 11an-2 + 6an-3 With the initial conditions a0=2 and a1=5, and a2=15.

  9. Solving Linear Homogeneous Recurrence Relations with Constant Coefficients • Theorem 4: Let c1 , c2 ,. . ., ck be real numbers. Suppose that the characteristic equation rk-c1rk-1-. . .- ck= 0 has t distinct roots r1, r2,. . .,rt with multiplicities m1, m2,. . .,mt , respectively, so that mi ≧ 1for i= 1, 2,. . ., t and m1+ m2+. . .+mt =k. Then a sequence {an} is a solution of the recurrence relation an=c1an-1+c2an-2 +. . . +ckan-k if and only if an= ( α1 , 0+ α1, 1n +. . .+ α1, m1-1nm1-1) r1n + ( α2 , 0+α2 , 1n +. . .+ α2, m2-1nm2-1) r2n + … +( αt , 0 + αt , 1n +. . .+ αt, mt-1nmt-1) rtn for n=0, 1, 2,. . .,where α1, α2 , . . ., αk are constants

  10. Solving Linear Homogeneous Recurrence Relations with Constant Coefficients • Example 7: Suppose that the roots of the characteristic equation of a linear homogeneous recurrence relation are 2, 2, 2, 5, 5, and 9 (that is, there are three roots, the root 2 with multiplicity three, the root 5 with multiplicity two, and the root 9 with multiplicity one). • What is the form of the general solution? • Example 8: Find the solution to the recurrence relation an = -3an-1 - 3an-2 - an-3 With the initial conditions a0=1 and a1=-2, and a2=-1.

  11. Linear Nonhomogeneous Recurrence Relations with Constant Coefficients • Linear nonhomogeneous recurrence relation with constant coefficients, an = c1an-1 + c2an-2 +. . . + ckan-k + F(n) Where c1 , c2 ,. . ., ck be real numbers and F(n)is a function not identically zero depending only on n. • The recurrence relation an = c1an-1 + c2an-2 +. . . + ckan-k is called the associated homogeneous recurrence relation.

  12. Linear Nonhomogeneous Recurrence Relations with Constant Coefficients • Example 9: Each of the recurrence relations an = an-1 + 2n , an = an-1 + an-2 +n2+ n +1 , an = 3an-1 +n3n an = an-1 + an-2 + an-3 + n! , is a linear nonhomogeneous recurrence relation with constant coefficients. The associated linear homogeneous recurrence relations are an = an-1 , an = an-1 + an-2 , an = 3an-1 an = an-1 + an-2 + an-3 ,respectively.

  13. Linear Nonhomogeneous Recurrence Relations with Constant Coefficients • Theorem 5: if {an(p)}is a particular solution of the nonhomogeneous linear recurrence relation with constant coefficients an = c1an-1 + c2an-2 +. . . + ckan-k + F(n) Then every solution is of the form {an(p)+ an(h)} , where {an(h)}is a solution of the associated homogeneous recurrence relation an = c1an-1 + c2an-2 +. . . + ckan-k

  14. Linear Nonhomogeneous Recurrence Relations with Constant Coefficients • Example 10: Find all solutions of the recurrence relation an= 3an-1 + 2n. • What is the solution with a1= 3? • Example 11: Find all solution of the recurrence relation an =5an-1 - 6an-2 + 7n

  15. Linear Nonhomogeneous Recurrence Relations with Constant Coefficients • Theorem 6: Suppose {an} satisfies the linear nonhomogeneous recurrence relation an = c1an-1 + c2an-2 +. . . + ckan-k + F(n) Where c1 , c2 ,. . ., ck be real numbers and F(n) = (b1nt+ bt-1nt-1+. . .+ b1n+ b0 )*sn Where b1 , b2 ,. . ., btand s are real numbers. When s is not a root of the characteristic equation of the associated linear homogeneous recurrence relation, there is a particular solution of the form (p1nt+ pt-1nt-1+. . .+ p1n+ p0 )*sn When s is a root of this characteristic equation and its multiplicity is m, there is a particular solution of the form nm(p1nt+ pt-1nt-1+. . .+ p1n+ p0 )*sn

  16. Linear Nonhomogeneous Recurrence Relations with Constant Coefficients • Example 12: What form does a particular solution fo the linear nonhomogeneous recurrence relation an = 6an-1 - 9an-2 + F(n) have F(n) = 3n , F(n) = n22n ,and F(n) = (n2 +1)3n ?

More Related