Section 8.4: Generating functions.

Size: px
Start display at page:

Download "Section 8.4: Generating functions."

Transcription

1 Section 8.4: Generating functions. Taylor series to know and love: nÿ ˆn ˆn p ` xq n x k ` k x ` x n n x ÿ x k ` x ` x 2 ` `x n x e x x k ` x ` x 2 ` x k {k! ` x ` x2 2 ` x3 3! Combining series: Let f pxq f pxq`gpxq ˆn x 2 ` `x n 2 a k x k and gpxq pa k`b k qx k and fpxqgpxq (finite) (finite) (infinite) ` (infinite) b k x k.then kÿ a i b k i x k. Example: Compute the series for p xq 2 using x 8 xk. Approach: Use derivatives, noting that d dx Thus, x d dx p xq p qp xq 2 p q p xq 2 d dx p xq d x k dx d dx xk kx k 0 ` ` 2x ` 3x 2 ` p xq 2. pj ` qx j (reindexing by j k ). j 0

2 A generating function for a sequence ta k u,,... is the series a k x k. ( Formal : forget about convergence!) When possible, we rewrite the generating function in terms of a simple expression of elementary functions, which we call closed solutions. For example, the generating function for the sequence,,, tu,,... is x k x. The generating function for the sequence, 2, 6, t{n!u is x n {n! e x. A generating function for a sequence ta k u,,... is the series a k x k. ( Formal : forget about convergence!) When possible, we rewrite the generating function in terms of a simple expression of elementary functions, which we call closed solutions. Note that a finite sequence a 0,a,...,a n is the same as the infinite sequence a 0,a,...,a n, 0, 0,...; similarly, the generating function for a finite sequence will be a finite degree polynomial: a k x k a 0 ` a x ` a 2 x 2 ` a n x n ` 0 ` 0 ` For example, for a fixed n, the generating function for the sequence t`n k u,,...,n is nÿ ˆn x k px`q n. k a k x k.

3 First application: solving recurrence relations Take a generating function for some sequence ta n u: Notice that Gpxq a n x n a 0 ` a x ` a 2 x 2 `. xgpxq a 0 x ` a x 2 ` a 2 x 3 ` x 2 Gpxq a 0 x 2 ` a x 3 ` a 2 x 4 `. n n 2 x d Gpxq a 0 x d ` a x d` ` a 2 x d`2 ` a n x n a n 2 x n n d a n d x n. (Rewrite sums so that the power of x matches the index, tomake it easier to collect like terms when adding series!) First application: solving recurrence relations So say I have a sequence ta n u that satisfies the recurrence relation a n 3a n. (Sanity check: we already know the general solution should look like a n a 0 3 n.) Let Gpxq 8 Gpxq 3xGpxq So a n x n 3 a 0 ` a 0 ` n n n a n x n a n x n 3 pa loooooomoooooon n 3a n q 0 a nx n. Then n x n a n x n (add and collect like terms) a 0. (use recursion relation to simplify) a 0 Gpxq 3xGpxq p 3xqGpxq; (line up indices)

4 First application: solving recurrence relations So say I have a sequence ta n u that satisfies the recurrence relation a n 3a n. (Sanity check: we already know the general solution should look like a n a 0 3 n.) Let Gpxq 8 a nx n. Then So and so for x {3, Gpxq 3xGpxq a 0 a 0 Gpxq 3xGpxq p 3xqGpxq; Gpxq a 0 3x a 0 a 0 p3xq n ˆ y ˇˇˇˇy 3x pa 0 3 n qx n. Now compare to the original formula for Gpxq! This shows that a n a 0 3 n as expected.

5 Last time, we looked at the recursion relation 0 a n 3a n and then started by simplifying Gpxq 3xGpxq. Eventually, we found that all but one term looked like a n 3a n and were able to cancel. You can also start with Gpxq, plug in the recursion relation and expand (instead of starting with an expression and simplifying). For example, suppose I have a sequence satisfying a n 8a n ` 0 n with a 0. Let Gpxq 8 a nx n (same as before). Then Gpxq a n x n a 0 ` a n x n a 0 ` ` 8 n n n p8a n ` 0 n qx n a n x n ` n (plug in recursion rel.) 0 n x n (separate series) For example, suppose I have a sequence satisfying a n 8a n ` 0 n with a 0. Let Gpxq 8 a nx n (same as before). Then Gpxq a n x n a 0 ` a n x n a 0 ` ` 8 ` 8x n n n p8a n ` 0 n qx n a n x n ` a n x n ` x n (plug in recursion rel.) 0 n x n (separate series) 0 n x n (turn into something we know) ` 8xGpxq`x. (put into closed form) 0x So, collecting Gpxq s to one side, we get Gpxqp 8xq Gpxq 8xGpxq ` x 0x 0x ` x 0x 9x 0x.

6 For example, suppose I have a sequence satisfying a n 8a n ` 0 n with a 0. Let Gpxq 8 a nx n (same as before). Then Gpxq `8xGpxq`x 0x So, collecting Gpxq s to one side, we get Gpxqp 8xq Gpxq 8xGpxq ` x 0x 0x ` x 0x So 9x Gpxq p 0xqp 8xq ˆ 2 0x ` 8x 9x 0x. (Review partial fractions decompositions over spring break!) n 0 n x n ` 8 n x 2 2 p0n ` 8 n qx n. Therefore a n 2 p0n ` 8 n q.

7 Counting problems and Generating functions Example: What is the coe cient on x 2 in px looooooooooomooooooooooon 2 ` x 3 ` x 4 ` x 5 q px loooomoooon 4 ` x 5 q px looooooomooooooon ` x 2 ` x 3 q? e, glazed e 2, choc. e 3, jelly This is equivalent to the question How many integer solutions are there to the equation e ` e 2 ` e 3 2 with 2 e 5, 4 e 2 5, e 3 3? 2 Which is the same as How many ways can you pick 2 doughnuts to bring to the o ce if you ve had requests for at least 2 glazed, 4 chocolate, and one jelly-filled, but when you get to the store, they only have 5 glazed, 5 chocolate, and 3 jelly-filled left? Example: Use a generating function to answer the question How many non-negative integer solutions are there to e ` e 2 ` e 3 0 where e 2 is a multiple of 2 and e 3 is a multiple of 3? The answer is the same as the coe cient of x 0 in p loooooooooomoooooooooon ` x ` x 2 ` qp looooooooooooooomooooooooooooooon ` x 2 ` x 4 ` x 6 ` qp looooooooooooooomooooooooooooooon ` x 3 ` x 6 ` x 9 ` q e e 2 e 3, which is the same as the coe cient of x 0 in p loooooooooooooomoooooooooooooon ` x ` x 2 ` `x 0 q p looooooooooooooomooooooooooooooon ` x 2 ` x 4 ` `x 0 q p loooooooooomoooooooooon ` x 3 ` x 6 ` x 9 q e e 2 e 3, since we would never use any terms that came from x a for a 0. This is something we can plug into a calculator like WolframAlpha.

8 Example: Use a generating function to answer the question How many non-negative integer solutions are there to e ` e 2 ` e 3 0 where e 2 is a multiple of 2 and e 3 is a multiple of 3? The answer is the same as the coe cient of x 0 in... This is something we can plug into a calculator like WolframAlpha: Integer partitions How many integer partitions are there of 5? This is the same as the coe cient of x 5 in p ` x ` x 2 ` x 3 ` x 4 ` x 5 qp ` x 2 ` x 4 qp ` x 3 qp ` x 4 qp ` x 5 q `px q 0 `px q `px q 2 `px q 3 `px q 4 `px q 5 (pts of length ) `px 2 q 0 `px 2 q `px 2 q 2 (pts of length 2) `px 3 q 0 `px 3 q (pts of length 3) `px 4 q 0 `px 4 q (pts of length 4) `px 5 q 0 `px 5 q (pts of length 5) Why? For example, consider the partition.

9 Integer partitions Counting integer partitions of 5 by looking at the coe. of x 5 in p ` x ` x 2 ` x 3 ` x 4 ` x 5 qp ` x 2 ` x 4 qp ` x 3 qp ` x 4 qp ` x 5 q... corresponds to px q 2 from first factor, since there are 2 parts of length, px 2 q 0 from second factor, since there are 0 parts of length 2, px 3 q from third factor, since there is part of length 3, px 4 q 0 from fourth factor, since there are 0 parts of length 4, and px 5 q 0 from fourth factor, since there are parts of length 5. Integer partitions Counting integer partitions of 5 by looking at the coe. of x 5 in p ` x ` x 2 ` x 3 ` x 4 ` x 5 qp ` x 2 ` x 4 qp ` x 3 qp ` x 4 qp ` x 5 q... corresponds to px q 2 px 3 q. Similarly, the correspondence between the other partitions of 5 and the monomials goes like px 5 q x px 4 q px 2 q px 3 q px q px 2 q 2 px q 3 px 2 q px q 5

10 Notice that the coe cient of x 5 in the polynomial from the previous slide is the same as the coe cient of x 5 in i 2i 3i 4i 5i x x x x x 5π k x ki 5π k Which is the same as the coe cient of x 5 in i 2i 3i x x x ˆ x k. x 4i 5i 6i 7i x x x loooomoooon loooomoooon must use the term must use the term Notice that the coe cient of x 5 in the polynomial from the previous slide is the same as the coe cient of x 5 in i 2i 3i 4i x x x x 5π ki 5π ˆ x x k. k k Which is the same as the coe cient of x 5 in i 2i 3i x x x 8π k x 5i x ki So in general, the number of integer partitions of n, denoted ppnq, is the coe cient of x n in 8π ˆ ppnqx n x k. k

Math 365 Monday 3/25/19. 1 x n n 1. 1 x = X. a k x k (Considered formally, i.e. without consideration of convergence.)

Math 365 Monday 3/25/19. 1 x n n 1. 1 x = X. a k x k (Considered formally, i.e. without consideration of convergence.) Recall: Also, for series we have f(x)+g(x) = Math 365 Monday 3/25/9 ( + x) n = e x = f(x) = nx X x k /k!, n x k, k and x n n x = X x k, x = X X a k x k and g(x) = X (a k + b k )x k and f(x)g(x) = x k X

More information

1 (1 x) 4 by taking derivatives and rescaling appropriately. Conjecture what the general formula for the series for 1/(1 x) n.

1 (1 x) 4 by taking derivatives and rescaling appropriately. Conjecture what the general formula for the series for 1/(1 x) n. Math 365 Wednesday 3/20/9 8.2 and 8.4 Exercise 35. Consider the recurrence relation a n =8a n 2 6a n 4 + F (n). (a) Write the associated homogeneous recursion relation and solve for its general solution

More information

Warm up: Recall that if you require real coe cients (not complex), polynomials always factor into degree 1 or 2 parts.

Warm up: Recall that if you require real coe cients (not complex), polynomials always factor into degree 1 or 2 parts. Today: 6.3 Partial fractions Warm up: Recall that if you require real coe cients (not comple), polynomials always factor into degree or parts. For eample, 3 + +3 5=( )( + i)( ++i) =( {z } )( + + 5) {z

More information

Solving Differential Equations Using Power Series

Solving Differential Equations Using Power Series LECTURE 25 Solving Differential Equations Using Power Series We are now going to employ power series to find solutions to differential equations of the form (25.) y + p(x)y + q(x)y = 0 where the functions

More information

Solving Differential Equations Using Power Series

Solving Differential Equations Using Power Series LECTURE 8 Solving Differential Equations Using Power Series We are now going to employ power series to find solutions to differential equations of the form () y + p(x)y + q(x)y = 0 where the functions

More information

Elementary factoring algorithms

Elementary factoring algorithms Math 5330 Spring 018 Elementary factoring algorithms The RSA cryptosystem is founded on the idea that, in general, factoring is hard. Where as with Fermat s Little Theorem and some related ideas, one can

More information

Legendre s Equation. PHYS Southern Illinois University. October 18, 2016

Legendre s Equation. PHYS Southern Illinois University. October 18, 2016 Legendre s Equation PHYS 500 - Southern Illinois University October 18, 2016 PHYS 500 - Southern Illinois University Legendre s Equation October 18, 2016 1 / 11 Legendre s Equation Recall We are trying

More information

6.5: Generalized permutations and combinations continued

6.5: Generalized permutations and combinations continued 6.5: Generalized permutations and combinations continued Last time: Placing objects in boxes (combination problems) How many ways can you place n objects into k boxes, if...? For each question, ask yourself:

More information

Power series and Taylor series

Power series and Taylor series Power series and Taylor series D. DeTurck University of Pennsylvania March 29, 2018 D. DeTurck Math 104 002 2018A: Series 1 / 42 Series First... a review of what we have done so far: 1 We examined series

More information

Chapter Generating Functions

Chapter Generating Functions Chapter 8.1.1-8.1.2. Generating Functions Prof. Tesler Math 184A Fall 2017 Prof. Tesler Ch. 8. Generating Functions Math 184A / Fall 2017 1 / 63 Ordinary Generating Functions (OGF) Let a n (n = 0, 1,...)

More information

Generating Functions

Generating Functions 8.30 lecture notes March, 0 Generating Functions Lecturer: Michel Goemans We are going to discuss enumeration problems, and how to solve them using a powerful tool: generating functions. What is an enumeration

More information

MATH 360 Final Exam Thursday, December 14, a n 2. a n 1 1

MATH 360 Final Exam Thursday, December 14, a n 2. a n 1 1 MATH 36 Final Exam Thursday, December 4, 27 Name. The sequence ta n u is defined by a and a n (a) Prove that lim a n exists by showing that ta n u is bounded and monotonic and invoking an appropriate result.

More information

Lecture 9: Taylor Series

Lecture 9: Taylor Series Math 8 Instructor: Padraic Bartlett Lecture 9: Taylor Series Week 9 Caltech 212 1 Taylor Polynomials and Series When we first introduced the idea of the derivative, one of the motivations we offered was

More information

SOLVED PROBLEMS ON TAYLOR AND MACLAURIN SERIES

SOLVED PROBLEMS ON TAYLOR AND MACLAURIN SERIES SOLVED PROBLEMS ON TAYLOR AND MACLAURIN SERIES TAYLOR AND MACLAURIN SERIES Taylor Series of a function f at x = a is ( f k )( a) ( x a) k k! It is a Power Series centered at a. Maclaurin Series of a function

More information

2016 EF Exam Texas A&M High School Students Contest Solutions October 22, 2016

2016 EF Exam Texas A&M High School Students Contest Solutions October 22, 2016 6 EF Exam Texas A&M High School Students Contest Solutions October, 6. Assume that p and q are real numbers such that the polynomial x + is divisible by x + px + q. Find q. p Answer Solution (without knowledge

More information

Partial Fractions. June 27, In this section, we will learn to integrate another class of functions: the rational functions.

Partial Fractions. June 27, In this section, we will learn to integrate another class of functions: the rational functions. Partial Fractions June 7, 04 In this section, we will learn to integrate another class of functions: the rational functions. Definition. A rational function is a fraction of two polynomials. For example,

More information

The Sommerfeld Polynomial Method: Harmonic Oscillator Example

The Sommerfeld Polynomial Method: Harmonic Oscillator Example Chemistry 460 Fall 2017 Dr. Jean M. Standard October 2, 2017 The Sommerfeld Polynomial Method: Harmonic Oscillator Example Scaling the Harmonic Oscillator Equation Recall the basic definitions of the harmonic

More information

Permutations and Polynomials Sarah Kitchen February 7, 2006

Permutations and Polynomials Sarah Kitchen February 7, 2006 Permutations and Polynomials Sarah Kitchen February 7, 2006 Suppose you are given the equations x + y + z = a and 1 x + 1 y + 1 z = 1 a, and are asked to prove that one of x,y, and z is equal to a. We

More information

Integration of Rational Functions by Partial Fractions

Integration of Rational Functions by Partial Fractions Title Integration of Rational Functions by MATH 1700 MATH 1700 1 / 11 Readings Readings Readings: Section 7.4 MATH 1700 2 / 11 Rational functions A rational function is one of the form where P and Q are

More information

CHMC: Finite Fields 9/23/17

CHMC: Finite Fields 9/23/17 CHMC: Finite Fields 9/23/17 1 Introduction This worksheet is an introduction to the fascinating subject of finite fields. Finite fields have many important applications in coding theory and cryptography,

More information

Partition Numbers. Kevin Y.X. Wang. September 5, School of Mathematics and Statistics The University of Sydney

Partition Numbers. Kevin Y.X. Wang. September 5, School of Mathematics and Statistics The University of Sydney Partition Numbers Kevin Y.X. Wang School of Mathematics and Statistics The University of Sydney September 5, 2017 Outline 1 Introduction 2 Generating function of partition numbers 3 Jacobi s Triple Product

More information

Generating Function Notes , Fall 2005, Prof. Peter Shor

Generating Function Notes , Fall 2005, Prof. Peter Shor Counting Change Generating Function Notes 80, Fall 00, Prof Peter Shor In this lecture, I m going to talk about generating functions We ve already seen an example of generating functions Recall when we

More information

Integration of Rational Functions by Partial Fractions

Integration of Rational Functions by Partial Fractions Title Integration of Rational Functions by Partial Fractions MATH 1700 December 6, 2016 MATH 1700 Partial Fractions December 6, 2016 1 / 11 Readings Readings Readings: Section 7.4 MATH 1700 Partial Fractions

More information

q-series Michael Gri for the partition function, he developed the basic idea of the q-exponential. From

q-series Michael Gri for the partition function, he developed the basic idea of the q-exponential. From q-series Michael Gri th History and q-integers The idea of q-series has existed since at least Euler. In constructing the generating function for the partition function, he developed the basic idea of

More information

DS-GA 3001: PROBLEM SESSION 2 SOLUTIONS VLADIMIR KOBZAR

DS-GA 3001: PROBLEM SESSION 2 SOLUTIONS VLADIMIR KOBZAR DS-GA 3: PROBLEM SESSION SOLUTIONS VLADIMIR KOBZAR Note: In this discussion we allude to the fact the dimension of a vector space is given by the number of basis vectors. We will shortly establish this

More information

Math Assignment 11

Math Assignment 11 Math 2280 - Assignment 11 Dylan Zwick Fall 2013 Section 8.1-2, 8, 13, 21, 25 Section 8.2-1, 7, 14, 17, 32 Section 8.3-1, 8, 15, 18, 24 1 Section 8.1 - Introduction and Review of Power Series 8.1.2 - Find

More information

A description of a math circle set of activities around polynomials, especially interpolation.

A description of a math circle set of activities around polynomials, especially interpolation. A description of a math circle set of activities around polynomials, especially interpolation. Bob Sachs Department of Mathematical Sciences George Mason University Fairfax, Virginia 22030 rsachs@gmu.edu

More information

Character Polynomials

Character Polynomials Character Polynomials Problem From Stanley s Positivity Problems in Algebraic Combinatorics Problem : Give a combinatorial interpretation of the row sums of the character table for S n (combinatorial proof

More information

AP Calculus Chapter 9: Infinite Series

AP Calculus Chapter 9: Infinite Series AP Calculus Chapter 9: Infinite Series 9. Sequences a, a 2, a 3, a 4, a 5,... Sequence: A function whose domain is the set of positive integers n = 2 3 4 a n = a a 2 a 3 a 4 terms of the sequence Begin

More information

POWER SERIES REVIEW SOLUTIONS

POWER SERIES REVIEW SOLUTIONS POWER SERIES REVIEW SOLUTIONS 1. Convergence of power series: For the following, find the radius of convergence: a) (m + 1)mx m In CME 10, we only teach you the ratio test, so that is the only test you

More information

Additional Practice Lessons 2.02 and 2.03

Additional Practice Lessons 2.02 and 2.03 Additional Practice Lessons 2.02 and 2.03 1. There are two numbers n that satisfy the following equations. Find both numbers. a. n(n 1) 306 b. n(n 1) 462 c. (n 1)(n) 182 2. The following function is defined

More information

Equations with regular-singular points (Sect. 5.5).

Equations with regular-singular points (Sect. 5.5). Equations with regular-singular points (Sect. 5.5). Equations with regular-singular points. s: Equations with regular-singular points. Method to find solutions. : Method to find solutions. Recall: The

More information

CIS 2033 Lecture 5, Fall

CIS 2033 Lecture 5, Fall CIS 2033 Lecture 5, Fall 2016 1 Instructor: David Dobor September 13, 2016 1 Supplemental reading from Dekking s textbook: Chapter2, 3. We mentioned at the beginning of this class that calculus was a prerequisite

More information

Some Review Problems for Exam 2: Solutions

Some Review Problems for Exam 2: Solutions Math 5366 Fall 017 Some Review Problems for Exam : Solutions 1 Find the coefficient of x 15 in each of the following: 1 (a) (1 x) 6 Solution: 1 (1 x) = ( ) k + 5 x k 6 k ( ) ( ) 0 0 so the coefficient

More information

Handbook of Ordinary Differential Equations

Handbook of Ordinary Differential Equations Handbook of Ordinary Differential Equations Mark Sullivan July, 28 i Contents Preliminaries. Why bother?...............................2 What s so ordinary about ordinary differential equations?......

More information

Notes on Paths, Trees and Lagrange Inversion

Notes on Paths, Trees and Lagrange Inversion Notes on Paths, Trees and Lagrange Inversion Today we are going to start with a problem that may seem somewhat unmotivated, and solve it in two ways. From there, we will proceed to discuss applications

More information

MATH 56A: STOCHASTIC PROCESSES CHAPTER 1

MATH 56A: STOCHASTIC PROCESSES CHAPTER 1 MATH 56A: STOCHASTIC PROCESSES CHAPTER. Finite Markov chains For the sake of completeness of these notes I decided to write a summary of the basic concepts of finite Markov chains. The topics in this chapter

More information

Introduction to Numerical Analysis

Introduction to Numerical Analysis Introduction to Numerical Analysis Lecture Notes for SI 507 Authors: S. Baskar and S. Sivaji Ganesh Department of Mathematics Indian Institute of Technology Bombay Powai, Mumbai 400 076. Contents 1 Mathematical

More information

Chapter 1 Divide and Conquer Algorithm Theory WS 2016/17 Fabian Kuhn

Chapter 1 Divide and Conquer Algorithm Theory WS 2016/17 Fabian Kuhn Chapter 1 Divide and Conquer Algorithm Theory WS 2016/17 Fabian Kuhn Formulation of the D&C principle Divide-and-conquer method for solving a problem instance of size n: 1. Divide n c: Solve the problem

More information

Math123 Lecture 1. Dr. Robert C. Busby. Lecturer: Office: Korman 266 Phone :

Math123 Lecture 1. Dr. Robert C. Busby. Lecturer: Office: Korman 266 Phone : Lecturer: Math1 Lecture 1 Dr. Robert C. Busby Office: Korman 66 Phone : 15-895-1957 Email: rbusby@mcs.drexel.edu Course Web Site: http://www.mcs.drexel.edu/classes/calculus/math1_spring0/ (Links are case

More information

(2) Dividing both sides of the equation in (1) by the divisor, 3, gives: =

(2) Dividing both sides of the equation in (1) by the divisor, 3, gives: = Dividing Polynomials Prepared by: Sa diyya Hendrickson Name: Date: Let s begin by recalling the process of long division for numbers. Consider the following fraction: Recall that fractions are just division

More information

The Method of Frobenius

The Method of Frobenius The Method of Frobenius R. C. Trinity University Partial Differential Equations April 7, 2015 Motivating example Failure of the power series method Consider the ODE 2xy +y +y = 0. In standard form this

More information

e x = 1 + x + x2 2! + x3 If the function f(x) can be written as a power series on an interval I, then the power series is of the form

e x = 1 + x + x2 2! + x3 If the function f(x) can be written as a power series on an interval I, then the power series is of the form Taylor Series Given a function f(x), we would like to be able to find a power series that represents the function. For example, in the last section we noted that we can represent e x by the power series

More information

SOLUTIONS ABOUT ORDINARY POINTS

SOLUTIONS ABOUT ORDINARY POINTS 238 CHAPTER 6 SERIES SOLUTIONS OF LINEAR EQUATIONS In Problems 23 and 24 use a substitution to shift the summation index so that the general term of given power series involves x k. 23. nc n x n2 n 24.

More information

Sequences and Summations

Sequences and Summations COMP 182 Algorithmic Thinking Sequences and Summations Luay Nakhleh Computer Science Rice University Chapter 2, Section 4 Reading Material Sequences A sequence is a function from a subset of the set of

More information

Section Example Determine the Maclaurin series of f (x) = e x and its the interval of convergence.

Section Example Determine the Maclaurin series of f (x) = e x and its the interval of convergence. Example Determine the Maclaurin series of f (x) = e x and its the interval of convergence. Example Determine the Maclaurin series of f (x) = e x and its the interval of convergence. f n (0)x n Recall from

More information

Recurrences COMP 215

Recurrences COMP 215 Recurrences COMP 215 Analysis of Iterative Algorithms //return the location of the item matching x, or 0 if //no such item is found. index SequentialSearch(keytype[] S, in, keytype x) { index location

More information

ELEMENTARY LINEAR ALGEBRA

ELEMENTARY LINEAR ALGEBRA ELEMENTARY LINEAR ALGEBRA K R MATTHEWS DEPARTMENT OF MATHEMATICS UNIVERSITY OF QUEENSLAND First Printing, 99 Chapter LINEAR EQUATIONS Introduction to linear equations A linear equation in n unknowns x,

More information

MTH Linear Algebra. Study Guide. Dr. Tony Yee Department of Mathematics and Information Technology The Hong Kong Institute of Education

MTH Linear Algebra. Study Guide. Dr. Tony Yee Department of Mathematics and Information Technology The Hong Kong Institute of Education MTH 3 Linear Algebra Study Guide Dr. Tony Yee Department of Mathematics and Information Technology The Hong Kong Institute of Education June 3, ii Contents Table of Contents iii Matrix Algebra. Real Life

More information

SYSTEMS OF NONLINEAR EQUATIONS

SYSTEMS OF NONLINEAR EQUATIONS SYSTEMS OF NONLINEAR EQUATIONS Widely used in the mathematical modeling of real world phenomena. We introduce some numerical methods for their solution. For better intuition, we examine systems of two

More information

Notes on generating functions in automata theory

Notes on generating functions in automata theory Notes on generating functions in automata theory Benjamin Steinberg December 5, 2009 Contents Introduction: Calculus can count 2 Formal power series 5 3 Rational power series 9 3. Rational power series

More information

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Discussion 6B Solution

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Discussion 6B Solution CS 70 Discrete Mathematics and Probability Theory Spring 016 Rao and Walrand Discussion 6B Solution 1. GCD of Polynomials Let A(x) and B(x) be polynomials (with coefficients in R or GF(m)). We say that

More information

Chapter 2. Divide-and-conquer. 2.1 Strassen s algorithm

Chapter 2. Divide-and-conquer. 2.1 Strassen s algorithm Chapter 2 Divide-and-conquer This chapter revisits the divide-and-conquer paradigms and explains how to solve recurrences, in particular, with the use of the master theorem. We first illustrate the concept

More information

Partitions, permutations and posets Péter Csikvári

Partitions, permutations and posets Péter Csikvári Partitions, permutations and posets Péter Csivári In this note I only collect those things which are not discussed in R Stanley s Algebraic Combinatorics boo Partitions For the definition of (number) partition,

More information

f (x) = k=0 f (0) = k=0 k=0 a k k(0) k 1 = a 1 a 1 = f (0). a k k(k 1)x k 2, k=2 a k k(k 1)(0) k 2 = 2a 2 a 2 = f (0) 2 a k k(k 1)(k 2)x k 3, k=3

f (x) = k=0 f (0) = k=0 k=0 a k k(0) k 1 = a 1 a 1 = f (0). a k k(k 1)x k 2, k=2 a k k(k 1)(0) k 2 = 2a 2 a 2 = f (0) 2 a k k(k 1)(k 2)x k 3, k=3 1 M 13-Lecture Contents: 1) Taylor Polynomials 2) Taylor Series Centered at x a 3) Applications of Taylor Polynomials Taylor Series The previous section served as motivation and gave some useful expansion.

More information

Power Series Solutions to the Legendre Equation

Power Series Solutions to the Legendre Equation Department of Mathematics IIT Guwahati The Legendre equation The equation (1 x 2 )y 2xy + α(α + 1)y = 0, (1) where α is any real constant, is called Legendre s equation. When α Z +, the equation has polynomial

More information

CSCE 222 Discrete Structures for Computing. Dr. Hyunyoung Lee

CSCE 222 Discrete Structures for Computing. Dr. Hyunyoung Lee CSCE 222 Discrete Structures for Computing Sequences and Summations Dr. Hyunyoung Lee Based on slides by Andreas Klappenecker 1 Sequences 2 Sequences A sequence is a function from a subset of the set of

More information

Generating Functions

Generating Functions Semester 1, 2004 Generating functions Another means of organising enumeration. Two examples we have seen already. Example 1. Binomial coefficients. Let X = {1, 2,..., n} c k = # k-element subsets of X

More information

Series Solutions. 8.1 Taylor Polynomials

Series Solutions. 8.1 Taylor Polynomials 8 Series Solutions 8.1 Taylor Polynomials Polynomial functions, as we have seen, are well behaved. They are continuous everywhere, and have continuous derivatives of all orders everywhere. It also turns

More information

2t t dt.. So the distance is (t2 +6) 3/2

2t t dt.. So the distance is (t2 +6) 3/2 Math 8, Solutions to Review for the Final Exam Question : The distance is 5 t t + dt To work that out, integrate by parts with u t +, so that t dt du The integral is t t + dt u du u 3/ (t +) 3/ So the

More information

a 11 x 1 + a 12 x a 1n x n = b 1 a 21 x 1 + a 22 x a 2n x n = b 2.

a 11 x 1 + a 12 x a 1n x n = b 1 a 21 x 1 + a 22 x a 2n x n = b 2. Chapter 1 LINEAR EQUATIONS 11 Introduction to linear equations A linear equation in n unknowns x 1, x,, x n is an equation of the form a 1 x 1 + a x + + a n x n = b, where a 1, a,, a n, b are given real

More information

c n (x a) n c 0 c 1 (x a) c 2 (x a) 2...

c n (x a) n c 0 c 1 (x a) c 2 (x a) 2... 3 CHAPTER 6 SERIES SOLUTIONS OF LINEAR EQUATIONS 6. REVIEW OF POWER SERIES REVIEW MATERIAL Infinite series of constants, p-series, harmonic series, alternating harmonic series, geometric series, tests

More information

Series Solutions of Linear ODEs

Series Solutions of Linear ODEs Chapter 2 Series Solutions of Linear ODEs This Chapter is concerned with solutions of linear Ordinary Differential Equations (ODE). We will start by reviewing some basic concepts and solution methods for

More information

Great Theoretical Ideas in Computer Science. Lecture 5: Cantor s Legacy

Great Theoretical Ideas in Computer Science. Lecture 5: Cantor s Legacy 15-251 Great Theoretical Ideas in Computer Science Lecture 5: Cantor s Legacy September 15th, 2015 Poll Select the ones that apply to you: - I know what an uncountable set means. - I know Cantor s diagonalization

More information

swapneel/207

swapneel/207 Partial differential equations Swapneel Mahajan www.math.iitb.ac.in/ swapneel/207 1 1 Power series For a real number x 0 and a sequence (a n ) of real numbers, consider the expression a n (x x 0 ) n =

More information

Chapter 2. Limits and Continuity 2.6 Limits Involving Infinity; Asymptotes of Graphs

Chapter 2. Limits and Continuity 2.6 Limits Involving Infinity; Asymptotes of Graphs 2.6 Limits Involving Infinity; Asymptotes of Graphs Chapter 2. Limits and Continuity 2.6 Limits Involving Infinity; Asymptotes of Graphs Definition. Formal Definition of Limits at Infinity.. We say that

More information

Chapter 5.2: Series solution near an ordinary point

Chapter 5.2: Series solution near an ordinary point Chapter 5.2: Series solution near an ordinary point We now look at ODE s with polynomial coefficients of the form: P (x)y + Q(x)y + R(x)y = 0. Thus, we assume P (x), Q(x), R(x) are polynomials in x. Why?

More information

Partial Fraction Decomposition Honors Precalculus Mr. Velazquez Rm. 254

Partial Fraction Decomposition Honors Precalculus Mr. Velazquez Rm. 254 Partial Fraction Decomposition Honors Precalculus Mr. Velazquez Rm. 254 Adding and Subtracting Rational Expressions Recall that we can use multiplication and common denominators to write a sum or difference

More information

Section 4.3. Polynomial Division; The Remainder Theorem and the Factor Theorem

Section 4.3. Polynomial Division; The Remainder Theorem and the Factor Theorem Section 4.3 Polynomial Division; The Remainder Theorem and the Factor Theorem Polynomial Long Division Let s compute 823 5 : Example of Long Division of Numbers Example of Long Division of Numbers Let

More information

ELEMENTARY LINEAR ALGEBRA

ELEMENTARY LINEAR ALGEBRA ELEMENTARY LINEAR ALGEBRA K. R. MATTHEWS DEPARTMENT OF MATHEMATICS UNIVERSITY OF QUEENSLAND Corrected Version, 7th April 013 Comments to the author at keithmatt@gmail.com Chapter 1 LINEAR EQUATIONS 1.1

More information

DS-GA 1002: PREREQUISITES REVIEW SOLUTIONS VLADIMIR KOBZAR

DS-GA 1002: PREREQUISITES REVIEW SOLUTIONS VLADIMIR KOBZAR DS-GA 2: PEEQUISIES EVIEW SOLUIONS VLADIMI KOBZA he following is a selection of questions (drawn from Mr. Bernstein s notes) for reviewing the prerequisites for DS-GA 2. Questions from Ch, 8, 9 and 2 of

More information

Dividing Polynomials: Remainder and Factor Theorems

Dividing Polynomials: Remainder and Factor Theorems Dividing Polynomials: Remainder and Factor Theorems When we divide one polynomial by another, we obtain a quotient and a remainder. If the remainder is zero, then the divisor is a factor of the dividend.

More information

Combinatorial Enumeration. Jason Z. Gao Carleton University, Ottawa, Canada

Combinatorial Enumeration. Jason Z. Gao Carleton University, Ottawa, Canada Combinatorial Enumeration Jason Z. Gao Carleton University, Ottawa, Canada Counting Combinatorial Structures We are interested in counting combinatorial (discrete) structures of a given size. For example,

More information

A matrix over a field F is a rectangular array of elements from F. The symbol

A matrix over a field F is a rectangular array of elements from F. The symbol Chapter MATRICES Matrix arithmetic A matrix over a field F is a rectangular array of elements from F The symbol M m n (F ) denotes the collection of all m n matrices over F Matrices will usually be denoted

More information

L1 2.1 Long Division of Polynomials and The Remainder Theorem Lesson MHF4U Jensen

L1 2.1 Long Division of Polynomials and The Remainder Theorem Lesson MHF4U Jensen L1 2.1 Long Division of Polynomials and The Remainder Theorem Lesson MHF4U Jensen In this section you will apply the method of long division to divide a polynomial by a binomial. You will also learn to

More information

The Exponential of a Matrix

The Exponential of a Matrix The Exponential of a Matrix 5-8- The solution to the exponential growth equation dx dt kx is given by x c e kt It is natural to ask whether you can solve a constant coefficient linear system x A x in a

More information

ACCUPLACER MATH 0311 OR MATH 0120

ACCUPLACER MATH 0311 OR MATH 0120 The University of Teas at El Paso Tutoring and Learning Center ACCUPLACER MATH 0 OR MATH 00 http://www.academics.utep.edu/tlc MATH 0 OR MATH 00 Page Factoring Factoring Eercises 8 Factoring Answer to Eercises

More information

Partition of Integers into Distinct Summands with Upper Bounds. Partition of Integers into Even Summands. An Example

Partition of Integers into Distinct Summands with Upper Bounds. Partition of Integers into Even Summands. An Example Partition of Integers into Even Summands We ask for the number of partitions of m Z + into positive even integers The desired number is the coefficient of x m in + x + x 4 + ) + x 4 + x 8 + ) + x 6 + x

More information

Answers of the MATH97 Practice Test Form A

Answers of the MATH97 Practice Test Form A Answers of the MATH97 Practice Test Form A A1) Answer B Section 1.2: concepts of solution of the equations. Pick the pair which satisfies the equation 4x+y=10. x= 1 and y=6 A2) Answer A Section 1.3: select

More information

8.3 Numerical Quadrature, Continued

8.3 Numerical Quadrature, Continued 8.3 Numerical Quadrature, Continued Ulrich Hoensch Friday, October 31, 008 Newton-Cotes Quadrature General Idea: to approximate the integral I (f ) of a function f : [a, b] R, use equally spaced nodes

More information

Computing Taylor series

Computing Taylor series TOPIC 9 Computing Taylor series Exercise 9.. Memorize the following x X e x cos x sin x X X X +x + x + x 3 +... xk +x + x + 6 x3 +... ( ) k (k)! xk ( ) k (k + )! xk+ x x +! x... For which values of x do

More information

ACCUPLACER MATH 0310

ACCUPLACER MATH 0310 The University of Teas at El Paso Tutoring and Learning Center ACCUPLACER MATH 00 http://www.academics.utep.edu/tlc MATH 00 Page Linear Equations Linear Equations Eercises 5 Linear Equations Answer to

More information

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Note 8

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Note 8 CS 70 Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Note 8 Polynomials Polynomials constitute a rich class of functions which are both easy to describe and widely applicable in

More information

One important way that you can classify differential equations is as linear or nonlinear.

One important way that you can classify differential equations is as linear or nonlinear. In This Chapter Chapter 1 Looking Closely at Linear First Order Differential Equations Knowing what a first order linear differential equation looks like Finding solutions to first order differential equations

More information

Chapter 5 Simplifying Formulas and Solving Equations

Chapter 5 Simplifying Formulas and Solving Equations Chapter 5 Simplifying Formulas and Solving Equations Look at the geometry formula for Perimeter of a rectangle P = L + W + L + W. Can this formula be written in a simpler way? If it is true, that we can

More information

Discrete Mathematics and Probability Theory Fall 2014 Anant Sahai Note 7

Discrete Mathematics and Probability Theory Fall 2014 Anant Sahai Note 7 EECS 70 Discrete Mathematics and Probability Theory Fall 2014 Anant Sahai Note 7 Polynomials Polynomials constitute a rich class of functions which are both easy to describe and widely applicable in topics

More information

Fall Math 3410 Name (Print): Solution KEY Practice Exam 2 - November 4 Time Limit: 50 Minutes

Fall Math 3410 Name (Print): Solution KEY Practice Exam 2 - November 4 Time Limit: 50 Minutes Fall 206 - Math 340 Name (Print): Solution KEY Practice Exam 2 - November 4 Time Limit: 50 Minutes This exam contains pages (including this cover page) and 5 problems. Check to see if any pages are missing.

More information

Method of Frobenius. General Considerations. L. Nielsen, Ph.D. Dierential Equations, Fall Department of Mathematics, Creighton University

Method of Frobenius. General Considerations. L. Nielsen, Ph.D. Dierential Equations, Fall Department of Mathematics, Creighton University Method of Frobenius General Considerations L. Nielsen, Ph.D. Department of Mathematics, Creighton University Dierential Equations, Fall 2008 Outline 1 The Dierential Equation and Assumptions 2 3 Main Theorem

More information

PARTIAL FRACTIONS AND POLYNOMIAL LONG DIVISION. The basic aim of this note is to describe how to break rational functions into pieces.

PARTIAL FRACTIONS AND POLYNOMIAL LONG DIVISION. The basic aim of this note is to describe how to break rational functions into pieces. PARTIAL FRACTIONS AND POLYNOMIAL LONG DIVISION NOAH WHITE The basic aim of this note is to describe how to break rational functions into pieces. For example 2x + 3 = + x 3 x +. The point is that we don

More information

CALCULUS JIA-MING (FRANK) LIOU

CALCULUS JIA-MING (FRANK) LIOU CALCULUS JIA-MING (FRANK) LIOU Abstract. Contents. Power Series.. Polynomials and Formal Power Series.2. Radius of Convergence 2.3. Derivative and Antiderivative of Power Series 4.4. Power Series Expansion

More information

L1 2.1 Long Division of Polynomials and The Remainder Theorem Lesson MHF4U Jensen

L1 2.1 Long Division of Polynomials and The Remainder Theorem Lesson MHF4U Jensen L1 2.1 Long Division of Polynomials and The Remainder Theorem Lesson MHF4U Jensen In this section you will apply the method of long division to divide a polynomial by a binomial. You will also learn to

More information

Warm Up Lesson Presentation Lesson Quiz. Holt McDougal Algebra 2

Warm Up Lesson Presentation Lesson Quiz. Holt McDougal Algebra 2 Warm Up Lesson Presentation Lesson Quiz Algebra 2 Warm Up Factor each expression. 1. 3x 6y 2. a 2 b 2 3(x 2y) (a + b)(a b) Find each product. 3. (x 1)(x + 3) 4. (a + 1)(a 2 + 1) x 2 + 2x 3 a 3 + a 2 +

More information

We consider the problem of finding a polynomial that interpolates a given set of values:

We consider the problem of finding a polynomial that interpolates a given set of values: Chapter 5 Interpolation 5. Polynomial Interpolation We consider the problem of finding a polynomial that interpolates a given set of values: x x 0 x... x n y y 0 y... y n where the x i are all distinct.

More information

Study # 1 11, 15, 19

Study # 1 11, 15, 19 Goals: 1. Recognize Taylor Series. 2. Recognize the Maclaurin Series. 3. Derive Taylor series and Maclaurin series representations for known functions. Study 11.10 # 1 11, 15, 19 f (n) (c)(x c) n f(c)+

More information

Chapter 1 Divide and Conquer Polynomial Multiplication Algorithm Theory WS 2015/16 Fabian Kuhn

Chapter 1 Divide and Conquer Polynomial Multiplication Algorithm Theory WS 2015/16 Fabian Kuhn Chapter 1 Divide and Conquer Polynomial Multiplication Algorithm Theory WS 2015/16 Fabian Kuhn Formulation of the D&C principle Divide-and-conquer method for solving a problem instance of size n: 1. Divide

More information

Chapter 1: Systems of linear equations and matrices. Section 1.1: Introduction to systems of linear equations

Chapter 1: Systems of linear equations and matrices. Section 1.1: Introduction to systems of linear equations Chapter 1: Systems of linear equations and matrices Section 1.1: Introduction to systems of linear equations Definition: A linear equation in n variables can be expressed in the form a 1 x 1 + a 2 x 2

More information

MATH 56A: STOCHASTIC PROCESSES CHAPTER 2

MATH 56A: STOCHASTIC PROCESSES CHAPTER 2 MATH 56A: STOCHASTIC PROCESSES CHAPTER 2 2. Countable Markov Chains I started Chapter 2 which talks about Markov chains with a countably infinite number of states. I did my favorite example which is on

More information

1 Solving equations 1.1 Kick off with CAS 1. Polynomials 1. Trigonometric symmetry properties 1.4 Trigonometric equations and general solutions 1.5 Literal and simultaneous equations 1.6 Review 1.1 Kick

More information

PARTIAL FRACTION DECOMPOSITION. Mr. Velazquez Honors Precalculus

PARTIAL FRACTION DECOMPOSITION. Mr. Velazquez Honors Precalculus PARTIAL FRACTION DECOMPOSITION Mr. Velazquez Honors Precalculus ADDING AND SUBTRACTING RATIONAL EXPRESSIONS Recall that we can use multiplication and common denominators to write a sum or difference of

More information