Solving Linear Homogeneous Recurrence Relations ICS 6D Sandy Irani.

Slides:



Advertisements
Similar presentations
Notes 6.6 Fundamental Theorem of Algebra
Advertisements

CHAPTER 5 Higher-Order Linear Differntial Equations Second-order DE: Second-order linear DE: Note: A,B,C,F function of x only Second-order homogeneous.
section 6.2 Solving Recurrence Relations
Copyright © Zeph Grunschlag, Solving Recurrence Relations Zeph Grunschlag.
Cubic curve sketching General shape: a > 0 x y x y a < 0 General form Characteristics: usually 2 humps, may or may not be asymmetrical Important point.
Differential Equations MTH 242 Lecture # 11 Dr. Manshoor Ahmed.
Second-Order Differential
Solving Quadratic Equations Algebraically Lesson 2.2.
A second order ordinary differential equation has the general form
Solving Linear Equations Rule 7 ‑ 1: We can perform any mathematical operation on one side of an equation, provided we perform the same operation on the.
Ch 3.5: Repeated Roots; Reduction of Order
Recurrence Relations Connection to recursive algorithms Techniques for solving them.
Boyce/DiPrima 9 th ed, Ch 3.1: 2 nd Order Linear Homogeneous Equations-Constant Coefficients Elementary Differential Equations and Boundary Value Problems,
Basic Mechanical Engineering Courses
Warm up Use the Rational Root Theorem to determine the Roots of : x³ – 5x² + 8x – 6 = 0.
1 Linear Recurrence Relations Part I Jorge Cobb The University of Texas at Dallas.
Applied Discrete Mathematics Week 9: Relations
7.2 Solving Recurrence Relations. Definition 1 (p. 460)- LHRR-K Def: A linear homogeneous recurrence relations of degree k with constant coefficients.
Second Order Equations. So Far… We have been solving linear and nonlinear first order equations. Those days are over. Today, we will start examining second.
If x=3 and y=0.5 then what is the value for z when z=(2x+1)(x+3y)?
ISAT 412 -Dynamic Control of Energy Systems (Fall 2005)
Bell Work: Find the values of all the unknowns: R T = R T T + T = 60 R = 3 R =
Second Order Equations Complex Roots of the Characteristic Equation.
Copyright © Cengage Learning. All rights reserved. CHAPTER 5 SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION.
Dividing Polynomials Intro - Chapter 4.1. Using Long Division Example 1: Dividing Polynomials DIVISOR DIVIDEND REMAINDER QUOTIENT.
Review SYNTHETIC DIVISION to find roots of third degree characteristic polynomial Pamela Leutwyler.
A3 3.4 Zeros of Polynomial Functions Homework: p eoo, odd.
Chapter 8 With Question/Answer Animations 1. Chapter Summary Applications of Recurrence Relations Solving Linear Recurrence Relations Homogeneous Recurrence.
Recurrence Relation. Outline  What is a recurrence relation ?  Solving linear recurrence relations  Divide-and-conquer algorithms and recurrence relations.
Solving Second-Order Recursive Relations Lecture 36 ½ Section 8.3 Wed, Apr 19, 2006.
RECURRENCE Sequence Recursively defined sequence
Module #1 - Logic 1 Based on Rosen, Discrete Mathematics & Its Applications. Prepared by (c) , Michael P. Frank and Modified By Mingwu Chen Recurrence.
SOLVING QUADRATIC EQUATIONS Unit 7. SQUARE ROOT PROPERTY IF THE QUADRATIC EQUATION DOES NOT HAVE A “X” TERM (THE B VALUE IS 0), THEN YOU SOLVE THE EQUATIONS.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Module #20 - Recurrences Solving Recurrences Rosen 6 th ed., §7.2.
Chapter 8 Recursion. 8.3 More Recurrence Second-Order Recurrence Definition – A second-order linear homogeneous recurrence relation with constant coefficients.
12/19/ Non- homogeneous Differential Equation Chapter 4.
2010.  A first degree equation is called a linear equation in two variables if it contains two distinct variables.
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.
FINDING A POLYNOMIAL PASSING THROUGH A POINT. Review: the Linear Factorization Theorem If where n > 1 and a n ≠ 0 then Where c 1, c 2, … c n are complex.
Solving Equations Binomials Simplifying Polynomials
CSE 2813 Discrete Structures Solving Recurrence Relations Section 6.2.
Notes Over 5.6 Quadratic Formula
4.8 “The Quadratic Formula” Steps: 1.Get the equation in the correct form. 2.Identify a, b, & c. 3.Plug numbers into the formula. 4.Solve, then simplify.
Math 3120 Differential Equations with Boundary Value Problems
PreCalculus Section 1.6 Solve quadratic equations by: a. Factoring b. Completing the square c. Quadratic formula d. Programmed calculator Any equation.
1 Chapter 5 DIFFERENCE EQUATIONS. 2 WHAT IS A DIFFERENCE EQUATION? A Difference Equation is a relation between the values y k of a function defined on.
MTH 253 Calculus (Other Topics) Chapter 9 – Mathematical Modeling with Differential Equations Section 9.4 – Second-Order Linear Homogeneous Differential.
Ch 4.2: Homogeneous Equations with Constant Coefficients Consider the nth order linear homogeneous differential equation with constant, real coefficients:
Homogeneous Linear Recurrences To solve such recurrences we must first know how to solve an easier type of recurrence relation: DEF: A linear recurrence.
Mathematical Analysis of Recursive Algorithm CSG3F3 Lecture 7.
Advanced Algorithms Analysis and Design By Dr. Nazir Ahmad Zafar Dr Nazir A. Zafar Advanced Algorithms Analysis and Design.
1 Lecture Outline for Recurrences Already Covered: Recursive definition of sequences Recursive definition of sets Recursive definition of operations Recursive.
PreCalculus Section 1. 6 Solve quadratic equations by: a. Factoring b
MATH10001 Project 3 Difference Equations 1
Linear Equations Constant Coefficients
QUADRATIC EQUATIONS
Roots and Zeros 5.7.
Class Notes 7: High Order Linear Differential Equation Homogeneous
A second order ordinary differential equation has the general form
Intro: We already know the standard form of a quadratic equation is:
Find all solutions of the polynomial equation by factoring and using the quadratic formula. x = 0 {image}
Differential Equations
Ch 4.2: Homogeneous Equations with Constant Coefficients
Systems of Equations Solve by Graphing.
Recurrence Relations Discrete Structures.
Differential Equations
Solving Systems of Equations by Elimination Part 2
Chapter 8 Systems of Equations
ICS 253: Discrete Structures I
Presentation transcript:

Solving Linear Homogeneous Recurrence Relations ICS 6D Sandy Irani

Recurrence Relations to Define a Sequence

Induction and Recurrence Relations We used inductive to verify that a formula was a correct closed form solution for a sequence defined by a recurrence relation. Now we will show how to solve recurrence relations without knowing the formula in advance…..(for a particular class of recurrence relations).

Linear Homogeneous Recurrence Relations Linear: the coefficient of each term is a constant. – g n = 3g n-1 + 2g n-2 + n 2 (linear) – g n = 3(g n-1 ) 2 + 2g n-2 + n 2 (not linear) – g n = 2g n-1 ·g n-2 + n 2 (not linear) – g n = n·g n-2 + n 2 (not linear) Homogeneous: no additional terms that do not refer to earlier numbers in the sequence. – g n = 3g n-1 + 2g n-2 (homogeneous) – g n = 3g n-1 + 2g n-2 + n 2 (not homogeneous)

g n = 3g n-1 + 4g n-2 + n 2 g n = 3g n-1 + (g n-2 )/5 g n = 3g n g n = log(2)·g n g n-7 g n = n·g n g n-7 g n = g n-1 ·g n g n-7 Linear?Homogeneous?

Linear Homogeneous Recurrence Relations A linear homogeneous recurrence relation has the form: f n = c 1 · f n-1 + c 2 · f n-2 + …. + c d · f n-d c 1, c 2,…, c d are constants If c d ≠0, degree d recurrence relation

Linear Homogeneous Recurrence Relations Always has a solution of the form f n = x n. Plug into the recurrence and solve for x: f n = 5f n-1 – 6f n-2

Linear Homogeneous Recurrence Relations Characteristic equation for f n = 5f n-1 – 6f n-2 is x 2 – 5x + 6 = 0 (degree d recurrence relation -> characteristic equation is a degree d polynomial) Roots: x = 2, x = 3. (Case: distinct, real roots) Solutions: f n = 2 n and f n = 3 n

Linear Homogeneous Recurrence Relations Any linear combination f n = α 1 ·2 n + α 2 ·3 n satisfies: f n = 5f n-1 – 6f n-2 f n = α 1 ·2 n + α 2 ·3 n is called the general solution of the recurrence relation f n = 5f n-1 – 6f n-2

Initial Conditions Initial conditions narrow down the possibilities to one sequence f n = 5f n-1 – 6f n-2

Initial Conditions Initial conditions are used to solve for the constants α 1 and α 2 in f n = α 1 ·2 n + α 2 ·3 n f 0 = 3 f 1 = 8

Linear Homogeneous Recurrence Relations 1.Plug in f n = x n to get characteristic equation 2.Solve for roots of characteristic equation. 3.Set up general solution. 4.Use initial conditions to set up linear equations to solve for constants in general solution: – Degree d recurrence relation -> degree d characteristic equation -> d constants (unknown coefficients) in general solution – d initial conditions -> d equations.

Linear Homogeneous Recurrence Relations: degree 3 example 1.Plug in g n = x n to get characteristic equation g n = 4g n-1 – g n-2 – 6g n-3 g 0 = 5 g 1 = 0 g 2 = 18

Linear Homogeneous Recurrence Relations: degree 3 example 2.Solve for roots of characteristic equation. 3.Set up general solution.

Linear Homogeneous Recurrence Relations: degree 3 example 4.Use initial conditions to set up linear equations to solve for constants in general solution: g n = α 1 ·3 n + α 2 ·2 n + α 3 ·(-1) n g 0 = 5 g 1 = 0 g 2 = 18

Linear Homogeneous Recurrence Relations: degree 3 example 5.Solve linear equations for coefficients and plug back in to general solution to get the specific solution for this sequence.

Linear Homogeneous Recurrence Relations: non-distinct roots g n = 6g n-1 – 9g n-2 g 0 = 1 g 1 = 6

Non-distinct roots: Check solution Check that g n = n3 n is a solution to g n = 6g n-1 – 9g n-2

Linear Homogeneous Recurrence Relations: non-distinct roots g n = 6g n-1 – 9g n-2 general solution: g n = α 1 ·3 n + α 2 ·n3 n g 0 = 1 g 1 = 6

General solution with non-distinct roots: Characteristic equation for {f n }: (x – r) m = 0 General solution: f n = α 1 ·r n + α 2 ·n·r n + α 3 ·n 2 ·r n + α 4 ·n 3 ·r n + …. + α m ·n m-1 ·r n

General solution with non-distinct roots: Characteristic equation for {f n }: (x – 4) 3 (x + 1) 2 (x – 5) = 0 General solution:

Example g n = 5g n-1 – 8g n-2 + 4g n-3 g 0 = 5 g 1 = 6 g 2 = 6