8.6 Recursion and Computer Algebra Systems

Size: px
Start display at page:

Download "8.6 Recursion and Computer Algebra Systems"

Transcription

1 8.6 Recursion and Computer Algebra Systems There is frequently debate as to if how and when computers should be introduced teaching a topic such as recurrence relations. We have chosen to append this information at the end of the chapter. If desired instructors can intersperse the following subsections with the previous sections cover this section a the end or simply ignore this section. Motivated students are welcome to read it at any time but should be warned that many instructors will still prefer that they do some of the calculations "by hand" within their courses. Note: At the present time this section only describes the topics in Mathematica. If any readers with a knowledge of Sage or any other computer algebra system would like to contribute to this section contact us through the addresses that appear at Recursive Definitions (8.1 and 8.2) Mathematica Functions can be defined recursively in Mathematica. For example the Fibonacci sequence (each number is the sum of the previous two) can be defined with the following input. fib@0d = 1; fib@1d = 1; fib@i_ ê; i > 1D := fib@i - 2D + fib@i - 1D The left side of the third line fib[i_/;i>1] indicates that fib is being defined in this case for a "pattern" called i satisfying the condition that i is greater than 1. Any "input" that fits this pattern will have this rule applied to it. Notice that the definitions for fib[0] and fib[1] coexist with this general rule and define fib for two numbers that don't fit the pattern described in the general rule. With the input above evaluated we can determine the 12th Fibonacci number. fib@12d 233 This particular definition is not efficient because previously computed values of fib are not saved. As a result the time it takes to compute fib[i] is roughly proportional to the value of fib[i] which grows exponentially. This can be demonstrated with the following bit of code. fp = ListPlot@H8Ò1 fib@ò1d< &L êü Range@3 21 3D Joined Ø True PlotLabel Ø "Plot of fib@id"d; tfp = ListPlot@H8Ò1 First@Timing@fib@Ò1DDD< &L êü Range@3 21 3D Joined Ø True PlotLabel Ø "Timing Plot for computing fib@id"d; Show@GraphicsRow@8fp tfp< ImageSize Ø `<DD Plot of fib@id Timing Plot for computing fib@id Taking over three seconds to compute the 30 th Fibonacci number is unacceptable. 8Timing@fib@30DD $System< < Mac OS X x86 H64-bitL< The timing result above depends on the system you use so you might want to execute this expression for comparison. How to get around the timing problem. You could never get a value like fib[0] using the recursive definition because of the obvious time growth. To get around the problem you can define a variation of the function that saves it's results. The following definition allows for saving the results that are computed. Notice that the SetDelay (:=) involves a Set (=). fib2@0d = 1; fib2@1d = 1; fib2@i_ ê; i > 1D := fib2@id = fib2@i - 2D + fib2@i - 1D Now let's compute the 30th number in the sequence with this new definition

2 < Now that the value of fib[30] has been computed it's value is returned almost instantly Timing@fib2@30DD < Now you can see what fib2[0] equals in a reasonable time. Timing@fib2@0DD < There is still a problem with using recursion. If we were to ask for the 500 th Fibonacci number at this point Mathematica would have difficulty because it still had 400 levels of recursion to negotiate. For this reason getting to the 500 th Fibonacci number is best reached by evaluating every 50 th or so of the numbers instead of directly asking for the 500 th Do@fib2@50 kd 8k 3 <D; fib2@500d Ö Solution of Recurrence Relations (8.3 and 8.4) Mathematica Mathematica has a function called RSolve that will solve some recurrence relations including linear recurrence relations with constant coefficients. In addition it can handle some systems of recurrence relations which we will discuss in a Chapter 12.? RSolve RSolve@eqn a@nd nd solves a recurrence equation for a@nd. RSolve@8eqn 1 eqn 2 < 8a a < nd solves a system of recurrence equations. RSolve@eqn a@n 1 n 2 D 8n 1 n 2 <D solves a partial recurrence equation. à Example. Consider the sequence S defined as follows. SHkL = 1.3 SHk - 1L with SH0L = 3 We can get the general solution to the recursive part of the definition if desired. recurence = S@kD ã 1.3 S@k - 1D - 0.7; RSolve@recurence S@kD kd 99SHkL Ø 1.3 k-1. I µ k M + c k-1. == Or we can add the initial condition to the first argument of RSolve and get a unique solution solution = RSolve@8recurence S@0D ã 3< S@kD kd 99SHkL Ø µ k I µ 1.3 k µ 1.3 k k M== Notice that since approximate numbers 1.3 and 0.7 are involved in the definition of S the solution involves approximate numbers. If we had used 13 and 7 respectively the solution would be exact. Next we assemble a list of ordered pairs based on the solution.

3 points = Table@8k S@kD< ê. First@solutionD 8k 0 8<D Here is a plot of the first few terms of the solution. ListPlot@points PlotStyle Ø 8Red PointSize@0.03D< AxesOrigin Ø 80 0<D Example. Here is the solution to a second order linear recurrence relations with constant coefficients. Initial conditions included. Notice that the exact data in the system produces exact expressions. RSolve@8T@kD - 6 T@k - 1D + 3 T@k - 2D ã 2^k T@0D ã 2 T@1D ã 3< T@kD kd ::THkL Ø - 5 µ 3 1-k k+ 1 k 2 K3-6 O - 28 µ 3 k+1 k K3-6 O k+ 1 k 2 K3 + 6 O - k k 28 µ 3 k+1 K3 + 6 O + 3 µ 2 k+4 KK3-6 O K3 + 6 OO ì 4 K O K O >> Example. Here is the solution to a recurrence relation similar to the ones described in Section 8.4. The solution is in terms of the Gamma function which is a generalization of the factorial function. Usol = U@kD ê. FirstARSolveA9U@kD - k U@k - 1D == 2 -k U@0D ã 1= U@kD kee G k Here is a table of the first few terms of the solution.

4 ê. 8k Ø j<d< 8j 0 <D µ 6 Example. Here is the solution to the recurrence for the number of derangements of a set of n elements D HnL. We use D instead of D here because Mathematica reserves the name D for the derivative function. derangementsol = ã Hn - 1L H - 1D + - 2DL ã 0 ã 1< nd 88D HnL Ø HGH2-1L GHn + 1L - GHn + 1-1LLêH2 GH2-1L - GH3-1LL<< Table@8n ê. First@derangementSolD ê. 8n Ø k< 8k 1 <D êê Round Generating Functions (8.5) The examples in Section 8.5 solving recurrence relations with generating functions were selected to keep the algebra reasonably neat. Here we will step through the solution of a second order linear recurrence relation with constant coefficients for which the numbers are not so nice. Using Mathematica the messy work isn't a problem. Mathematica Consider the recurrence relation SHkL = -SHk - 1L + 5 SHk - 2L with S H0L = 4 and S H1L = 3. In order to check our computations lets define S recursively and get its first few terms: S@0D = 4; S@1D = 3; S@k_D := S@kD = -S@k - 1D + 5 S@k - 2D Map@S Range@0 DD < We can find the generating function for S by observing that S = -SÆ +5 SÆ2. Using the formulas for the generating functions of SÆ and SÆ2 that were derived in Section 8.5 we get the following equation which we can solve for G = GHS; zl: Clear@GD gfequation = HG - S@0D - S@1D zl z 2 G - 3 z G G 0 z 2 z + H G - S@0DL z - 5 G ã 0 We solve for G and since there is only one solution we use First to extract that single solution from the output of Solve.

5 Gsol = G ê. First@Solve@gfEquation GDD -7 z z 2 - z - 1 At this stage we can extract a finite number of coefficients from the generating function. We do so here but it only verifies the list of terms we computed above. We still don't have a closed form expression for S. seriesexpansion = Series@Gsol 8z 0 <D z + 17 z 2-2 z z 4-97 z z 6-17 z z z z + OIz 11 M CoefficientList@seriesExpansion zd < In order to get a close form expression we need to get partial fractions decomposition of the generating function. The function Apart is meant to do this but the next result isn't very encouraging Apart@GsolD -7 z z 2 - z - 1 The difficulty is that Apart uses the Factor function that only factors polynomials over into factors with rational coefficients. Factor@GsolD - 7 z z 2 - z - 1 In order for factor to work on this denominator we need to tell Mathematica what square root should be included. The discriminant of the denominator is DiscriminantA5 z 2 - z - 1 ze 21 Therefore we need to extend the rational numbers to include 21. We will discuss extensions in a more formal setting in Chapter 16. FactorAGsol Extension Ø 9 21=E H20 H7 z + 4LLìKK- z O K z OO With this factored expression Apart will do its job. PF = Apart@Factor@Gsol Extension Ø 8Sqrt@21D<DD J z N J- z N We will work with the two terms above both of which is the generating function of a geometric sequence individually to get an expression that look like b 1 a 1 k + b 2 a 2 k. The problem is to find the b i ' s which are initial terms of the generating functions and the a i ' s with are the ratios of successive coefficients of the generating functions. GS1 = PF@@1DD J- z N Why isn't the first term that appears in the output for PF the same as the first part that we called GS1? It has to do with output forms in Mathematica and let's not get into that right now. This all works out believe me! A quick word on the output from Series: If the series expansion up to degree n for a function f HzL centered at 0 is a 0 + a 1 z + º + a n z n then the internal structure of the output from Series is a SeriesData expression. The variable and center of the series expansion are the first two arguments of this expression and the third is the list of coefficients which is what we will be extracting here.

6 InputFormASeriesA 2 z 8z 0 4<EE SeriesData[z 0 { /3 2/3} 0 5 1] The last three argument of the output indicate the powers of the variable to attach to the variable 0 through 5 in steps of 1 in the example above. The first part of the third argument is the first term of the first geometric sequence. b 1 = Series@GS1 8z 0 5<D@@3 1DD J N To extract the quotient of the second with the first arguments we use the pure function Hð@@3 2DDêð@@3 1DDL &. This is the common ration of the first geometric sequence. a 1 = Series@GS1 8z 0 5<D êê HÒ@@3 2DD ê Ò@@3 1DDL & We repeat the same calculations for the second geometric sequence. GS2 = PF@@2DD J z N b 2 = Series@GS2 8z 0 5<D@@3 1DD J 21-1N a 2 = Series@GS2 8z 0 5<D êê HÒ@@3 2DD ê Ò@@3 1DDL & We collect the four constants we've just computed into the sum of two geometric sequences. Ssol@k_D := b 1 a 1 k + b 2 a 2 k Next we test our expression to see if it matches the two other lists of terms if S that we've computed. The result may be disturbing but the reason for the difference is that Mathematica hold off simplifying some expressions until requested. This is the case here.

7 J N J N : - 21 J N 2 21 J 21-1N 2 N 0 J N 0 J N 00 J N 00 J N 21 J 21-1N 3 21 J N 3 21 J J 21-1N N N 000 J N 000 J N J N J N 21 J 21-1N 5 21 J J J 21-1N J N 21 J 21-1N 7 + K K OOì 21 K O J N 21 J N 8 - K K OOì 21 K 21-1O 9 K K OOì 21 K 21-1O K K OOì 21 K O 11 K K OOì 21 K 21-1O The simplified result should look familiar. Map@Ssol Range@0 DD êê Simplify < Finally the closed form expression for our sequence can be examined. Ssol@kD 1 21 K O H-Lk K 21-1O Exercises for Section 8.6 A Exercises -k K K OOì 21 K O 8 - K K OOì 21 K 21-1O 11 + K K OOì 21 K O > + 1 -k-1 21 K O k K O 1. If BH0L = 00 and BHnL = ên BHn - 1L + 00 for n 1 compute BH20L and plot the values of B for 0 n Compute the a closed form expression for FHnL where FH0L = 1 FH1L = 2 FH2L = 2.5 and if k 3 FHkL = 0.9 FHk - 1L FHk - 2L FHk - 3L. As k gets large what does FHkL tend toward? 3. Use generating functions to find a closed form expression for WH0L = 1 WH1L = 1 WHnL = 3 WHn - 1L + WHn - 2L when n 2

12.4 The Diagonalization Process

12.4 The Diagonalization Process Chapter - More Matrix Algebra.4 The Diagonalization Process We now have the background to understand the main ideas behind the diagonalization process. Definition: Eigenvalue, Eigenvector. Let A be an

More information

Tricks of the Trade Edited by Paul Abbott

Tricks of the Trade Edited by Paul Abbott The Mathematica Journal Tricks of the Trade Edited by Paul Abbott This is a column of programming tricks and techniques, most of which, we hope, will be contributed by our readers, either directly as submissions

More information

chapter 12 MORE MATRIX ALGEBRA 12.1 Systems of Linear Equations

chapter 12 MORE MATRIX ALGEBRA 12.1 Systems of Linear Equations chapter MORE MATRIX ALGEBRA GOALS In Chapter we studied matrix operations and the algebra of sets and logic. We also made note of the strong resemblance of matrix algebra to elementary algebra. The reader

More information

Sequences of Real Numbers

Sequences of Real Numbers Chapter 8 Sequences of Real Numbers In this chapter, we assume the existence of the ordered field of real numbers, though we do not yet discuss or use the completeness of the real numbers. In the next

More information

Introduction to Techniques for Counting

Introduction to Techniques for Counting Introduction to Techniques for Counting A generating function is a device somewhat similar to a bag. Instead of carrying many little objects detachedly, which could be embarrassing, we put them all in

More information

chapter 12 MORE MATRIX ALGEBRA 12.1 Systems of Linear Equations GOALS

chapter 12 MORE MATRIX ALGEBRA 12.1 Systems of Linear Equations GOALS chapter MORE MATRIX ALGEBRA GOALS In Chapter we studied matrix operations and the algebra of sets and logic. We also made note of the strong resemblance of matrix algebra to elementary algebra. The reader

More information

16. Deblurring Gaussian blur

16. Deblurring Gaussian blur 6. Deblurring Gaussian blur 277 6. Deblurring Gaussian blur 6. Deblurring To discuss an application where really high order Gaussian derivatives are applied, we study the deblurring of Gaussian blur by

More information

2. Limits at Infinity

2. Limits at Infinity 2 Limits at Infinity To understand sequences and series fully, we will need to have a better understanding of its at infinity We begin with a few examples to motivate our discussion EXAMPLE 1 Find SOLUTION

More information

ME201/MTH281/ME400/CHE400 Zeros of Bessel Function Derivatives

ME201/MTH281/ME400/CHE400 Zeros of Bessel Function Derivatives ME201/MTH281/ME400/CHE400 Zeros of Bessel Function Derivatives In[42]:= We write code here to find the n th zero of the derivative of the Bessel function J m. Here n is a positive integer, and m is any

More information

MITOCW watch?v=y6ma-zn4olk

MITOCW watch?v=y6ma-zn4olk MITOCW watch?v=y6ma-zn4olk PROFESSOR: We have to ask what happens here? This series for h of u doesn't seem to stop. You go a 0, a 2, a 4. Well, it could go on forever. And what would happen if it goes

More information

There are four irrational roots with approximate values of

There are four irrational roots with approximate values of Power of the Quadratic Formula 1 y = (x ) - 8(x ) + 4 a = 1, b = -8, c = 4 Key 1. Consider the equation y = x 4 8x + 4. It may be a surprise, but we can use the quadratic formula to find the x-intercepts

More information

Section 8.2: Dicrete models

Section 8.2: Dicrete models Section8_.nb Section 8.: Dicrete models Created by Tomas de-camino-beck tomasd@math.ualberta.ca Simple Population Models ü Exponnetial growth Solving for the equation x t+ = r x t where x t is the population

More information

Chapter 11 - Sequences and Series

Chapter 11 - Sequences and Series Calculus and Analytic Geometry II Chapter - Sequences and Series. Sequences Definition. A sequence is a list of numbers written in a definite order, We call a n the general term of the sequence. {a, a

More information

T i t l e o f t h e w o r k : L a M a r e a Y o k o h a m a. A r t i s t : M a r i a n o P e n s o t t i ( P l a y w r i g h t, D i r e c t o r )

T i t l e o f t h e w o r k : L a M a r e a Y o k o h a m a. A r t i s t : M a r i a n o P e n s o t t i ( P l a y w r i g h t, D i r e c t o r ) v e r. E N G O u t l i n e T i t l e o f t h e w o r k : L a M a r e a Y o k o h a m a A r t i s t : M a r i a n o P e n s o t t i ( P l a y w r i g h t, D i r e c t o r ) C o n t e n t s : T h i s w o

More information

8. Limit Laws. lim(f g)(x) = lim f(x) lim g(x), (x) = lim x a f(x) g lim x a g(x)

8. Limit Laws. lim(f g)(x) = lim f(x) lim g(x), (x) = lim x a f(x) g lim x a g(x) 8. Limit Laws 8.1. Basic Limit Laws. If f and g are two functions and we know the it of each of them at a given point a, then we can easily compute the it at a of their sum, difference, product, constant

More information

How do we analyze, evaluate, solve, and graph quadratic functions?

How do we analyze, evaluate, solve, and graph quadratic functions? Topic: 4. Quadratic Functions and Factoring Days: 18 Key Learning: Students will be able to analyze, evaluate, solve and graph quadratic functions. Unit Essential Question(s): How do we analyze, evaluate,

More information

8.6 Partial Fraction Decomposition

8.6 Partial Fraction Decomposition 628 Systems of Equations and Matrices 8.6 Partial Fraction Decomposition This section uses systems of linear equations to rewrite rational functions in a form more palatable to Calculus students. In College

More information

chapter 11 ALGEBRAIC SYSTEMS GOALS

chapter 11 ALGEBRAIC SYSTEMS GOALS chapter 11 ALGEBRAIC SYSTEMS GOALS The primary goal of this chapter is to make the reader aware of what an algebraic system is and how algebraic systems can be studied at different levels of abstraction.

More information

Instructor Notes for Chapters 3 & 4

Instructor Notes for Chapters 3 & 4 Algebra for Calculus Fall 0 Section 3. Complex Numbers Goal for students: Instructor Notes for Chapters 3 & 4 perform computations involving complex numbers You might want to review the quadratic formula

More information

chapter 5 INTRODUCTION TO MATRIX ALGEBRA GOALS 5.1 Basic Definitions

chapter 5 INTRODUCTION TO MATRIX ALGEBRA GOALS 5.1 Basic Definitions chapter 5 INTRODUCTION TO MATRIX ALGEBRA GOALS The purpose of this chapter is to introduce you to matrix algebra, which has many applications. You are already familiar with several algebras: elementary

More information

This chapter follows from the work done in Chapter 4 of the Core topics book involving quadratic equations.

This chapter follows from the work done in Chapter 4 of the Core topics book involving quadratic equations. Mathematics: analysis and approaches SL Chapter 1: The binomial theorem A Factorial notation B Binomial expansions C The binomial theorem In this chapter, students are introduced to factorial notation.

More information

MATH 320, WEEK 11: Eigenvalues and Eigenvectors

MATH 320, WEEK 11: Eigenvalues and Eigenvectors MATH 30, WEEK : Eigenvalues and Eigenvectors Eigenvalues and Eigenvectors We have learned about several vector spaces which naturally arise from matrix operations In particular, we have learned about the

More information

Partial Fractions. Combining fractions over a common denominator is a familiar operation from algebra: 2 x 3 + 3

Partial Fractions. Combining fractions over a common denominator is a familiar operation from algebra: 2 x 3 + 3 Partial Fractions Combining fractions over a common denominator is a familiar operation from algebra: x 3 + 3 x + x + 3x 7 () x 3 3x + x 3 From the standpoint of integration, the left side of Equation

More information

16. . Proceeding similarly, we get a 2 = 52 1 = , a 3 = 53 1 = and a 4 = 54 1 = 125

16. . Proceeding similarly, we get a 2 = 52 1 = , a 3 = 53 1 = and a 4 = 54 1 = 125 . Sequences When we first introduced a function as a special type of relation in Section.3, we did not put any restrictions on the domain of the function. All we said was that the set of x-coordinates

More information

Quadratic Equations Part I

Quadratic Equations Part I Quadratic Equations Part I Before proceeding with this section we should note that the topic of solving quadratic equations will be covered in two sections. This is done for the benefit of those viewing

More information

Recursion. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Fall 2007

Recursion. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Fall 2007 Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry Fall 2007 1 / 47 Computer Science & Engineering 235 to Discrete Mathematics Sections 7.1-7.2 of Rosen Recursive Algorithms 2 / 47 A recursive

More information

19. TAYLOR SERIES AND TECHNIQUES

19. TAYLOR SERIES AND TECHNIQUES 19. TAYLOR SERIES AND TECHNIQUES Taylor polynomials can be generated for a given function through a certain linear combination of its derivatives. The idea is that we can approximate a function by a polynomial,

More information

Sequences and Series

Sequences and Series Sequences and Series What do you think of when you read the title of our next unit? In case your answers are leading us off track, let's review the following IB problems. 1 November 2013 HL 2 3 November

More information

3.4 Complex Zeros and the Fundamental Theorem of Algebra

3.4 Complex Zeros and the Fundamental Theorem of Algebra 86 Polynomial Functions 3.4 Complex Zeros and the Fundamental Theorem of Algebra In Section 3.3, we were focused on finding the real zeros of a polynomial function. In this section, we expand our horizons

More information

ME201/MTH281/ME400/CHE400 Newton's Law of Cooling

ME201/MTH281/ME400/CHE400 Newton's Law of Cooling ME1/MTH281/ME0/CHE0 Newton's Law of Cooling 1. Introduction This notebook uses Mathematica to solve the problem presented in class, in section 5.1 of the notes. The problem is one of transient heat conduction

More information

Fun with Continued Fractions. Fun with Continued Fractions. Fun with Continued Fractions. Fun with Continued Fractions

Fun with Continued Fractions. Fun with Continued Fractions. Fun with Continued Fractions. Fun with Continued Fractions A simple continued fraction is an expression of the form a 0 + a + a 2 +!+ an where the a i are real, and a n! 0. Let us agree to denote this continued fraction by @a 0, a, a 2,, a n D. Example: @, 2,

More information

4.5 Rational functions.

4.5 Rational functions. 4.5 Rational functions. We have studied graphs of polynomials and we understand the graphical significance of the zeros of the polynomial and their multiplicities. Now we are ready to etend these eplorations

More information

CHAPTER 2. The Derivative

CHAPTER 2. The Derivative CHAPTER The Derivative Section.1 Tangent Lines and Rates of Change Suggested Time Allocation: 1 to 1 1 lectures Slides Available on the Instructor Companion Site for this Text: Figures.1.1,.1.,.1.7,.1.11

More information

Notes on uniform convergence

Notes on uniform convergence Notes on uniform convergence Erik Wahlén erik.wahlen@math.lu.se January 17, 2012 1 Numerical sequences We begin by recalling some properties of numerical sequences. By a numerical sequence we simply mean

More information

1 Examples of Weak Induction

1 Examples of Weak Induction More About Mathematical Induction Mathematical induction is designed for proving that a statement holds for all nonnegative integers (or integers beyond an initial one). Here are some extra examples of

More information

Data Structure Lecture#4: Mathematical Preliminaries U Kang Seoul National University

Data Structure Lecture#4: Mathematical Preliminaries U Kang Seoul National University Data Structure Lecture#4: Mathematical Preliminaries U Kang Seoul National University U Kang 1 In This Lecture Set Concepts and Notation Relation Logarithm and Summations Recurrence Relations Recursion

More information

M30-1: Polynomial, Radical and Rational Functions, Graphs and Equations Exam /20

M30-1: Polynomial, Radical and Rational Functions, Graphs and Equations Exam /20 Class: Date: ID: A M30-1: Polynomial, Radical and Rational Functions, Graphs and Equations Exam /20 Multiple Choice Identify the choice that best completes the statement or answers the question. 1. Which

More information

Calculus II. Calculus II tends to be a very difficult course for many students. There are many reasons for this.

Calculus II. Calculus II tends to be a very difficult course for many students. There are many reasons for this. Preface Here are my online notes for my Calculus II course that I teach here at Lamar University. Despite the fact that these are my class notes they should be accessible to anyone wanting to learn Calculus

More information

Algebra , Martin-Gay

Algebra , Martin-Gay A Correlation of Algebra 1 2016, to the Common Core State Standards for Mathematics - Algebra I Introduction This document demonstrates how Pearson s High School Series by Elayn, 2016, meets the standards

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

Horizontal asymptotes

Horizontal asymptotes Roberto s Notes on Differential Calculus Chapter 1: Limits and continuity Section 5 Limits at infinity and Horizontal asymptotes What you need to know already: The concept, notation and terminology of

More information

and the compositional inverse when it exists is A.

and the compositional inverse when it exists is A. Lecture B jacques@ucsd.edu Notation: R denotes a ring, N denotes the set of sequences of natural numbers with finite support, is a generic element of N, is the infinite zero sequence, n 0 R[[ X]] denotes

More information

HW #6. 1. Inflaton. (a) slow-roll regime. HW6.nb 1

HW #6. 1. Inflaton. (a) slow-roll regime. HW6.nb 1 HW6.nb HW #6. Inflaton (a) slow-roll regime In the slow-roll regime, we neglect the kinetic energy as well as f ÿÿ term in the equation of motion. Then H = ÅÅÅ 8 p 3 G N ÅÅÅ m f, 3 H f ÿ + m f = 0. We

More information

Calculus Favorite: Stirling s Approximation, Approximately

Calculus Favorite: Stirling s Approximation, Approximately Calculus Favorite: Stirling s Approximation, Approximately Robert Sachs Department of Mathematical Sciences George Mason University Fairfax, Virginia 22030 rsachs@gmu.edu August 6, 2011 Introduction Stirling

More information

Problem Solving in Math (Math 43900) Fall 2013

Problem Solving in Math (Math 43900) Fall 2013 Problem Solving in Math (Math 43900) Fall 203 Week six (October ) problems recurrences Instructor: David Galvin Definition of a recurrence relation We met recurrences in the induction hand-out. Sometimes

More information

Sequences and the Binomial Theorem

Sequences and the Binomial Theorem Chapter 9 Sequences and the Binomial Theorem 9. Sequences When we first introduced a function as a special type of relation in Section.3, we did not put any restrictions on the domain of the function.

More information

Dublin City Schools Mathematics Graded Course of Study Algebra I Philosophy

Dublin City Schools Mathematics Graded Course of Study Algebra I Philosophy Philosophy The Dublin City Schools Mathematics Program is designed to set clear and consistent expectations in order to help support children with the development of mathematical understanding. We believe

More information

Sequences and Series

Sequences and Series Sequences and Series Consider the following sum: 2 + 4 + 8 + 6 + + 2 i + The dots at the end indicate that the sum goes on forever. Does this make sense? Can we assign a numerical value to an infinite

More information

Generation X and Y. 1. Experiment with the following function using your CAS (for instance try n = 0,1,2,3): 1 2 t + t2-1) n + 1 (

Generation X and Y. 1. Experiment with the following function using your CAS (for instance try n = 0,1,2,3): 1 2 t + t2-1) n + 1 ( 13 1. Experiment with the following function using your CAS (for instance try n = 0,1,2,3): 1 ( 2 t + t2-1) n + 1 ( 2 t - t2-1) n Ï P 0 The generating function for the recursion Ì P 1 Ó P n = P n-1 + 6P

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

CHAPTER 3. Sequences. 1. Basic Properties

CHAPTER 3. Sequences. 1. Basic Properties CHAPTER 3 Sequences We begin our study of analysis with sequences. There are several reasons for starting here. First, sequences are the simplest way to introduce limits, the central idea of calculus.

More information

gap> G:=ReducedGroebnerBasis(B,MonomialGrlexOrdering(y,x)); [ x^2-x, x*y-x, y^2-x ]

gap> G:=ReducedGroebnerBasis(B,MonomialGrlexOrdering(y,x)); [ x^2-x, x*y-x, y^2-x ] Mathematics 667 Gröbner bases in GAP A. Hulpke To start using it, one has to define indeterminates (variables) and polynomials. Indeterminates are displayed either by their internal numbers or you can

More information

Sequences and Series. 256 Chapter 11 Sequences and Series. and then lim 1 1 = 1 0 = 1.

Sequences and Series. 256 Chapter 11 Sequences and Series. and then lim 1 1 = 1 0 = 1. 256 Chapter Sequences and Series Consider the following sum: Sequences and Series 2 + 4 + 8 + 6 + + 2 + i The dots at the end indicate that the sum goes on forever Does this make sense? Can we assign a

More information

COMP 355 Advanced Algorithms

COMP 355 Advanced Algorithms COMP 355 Advanced Algorithms Algorithm Design Review: Mathematical Background 1 Polynomial Running Time Brute force. For many non-trivial problems, there is a natural brute force search algorithm that

More information

Subject Area Algebra I Grade Level 9_

Subject Area Algebra I Grade Level 9_ MVNTA COMMON CORE TEMPLATE Subject Area Algebra I Grade Level 9_ BUCKET ONE BIG ROCKS Reason quantitatively and use units to solve problems. Understand the concept of a function and use function notation.

More information

Standard forms for writing numbers

Standard forms for writing numbers Standard forms for writing numbers In order to relate the abstract mathematical descriptions of familiar number systems to the everyday descriptions of numbers by decimal expansions and similar means,

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

are the q-versions of n, n! and . The falling factorial is (x) k = x(x 1)(x 2)... (x k + 1).

are the q-versions of n, n! and . The falling factorial is (x) k = x(x 1)(x 2)... (x k + 1). Lecture A jacques@ucsd.edu Notation: N, R, Z, F, C naturals, reals, integers, a field, complex numbers. p(n), S n,, b(n), s n, partition numbers, Stirling of the second ind, Bell numbers, Stirling of the

More information

The Laplace Transform

The Laplace Transform The Laplace Transform Inverse of the Laplace Transform Philippe B. Laval KSU Today Philippe B. Laval (KSU) Inverse of the Laplace Transform Today 1 / 12 Outline Introduction Inverse of the Laplace Transform

More information

SUMMATION TECHNIQUES

SUMMATION TECHNIQUES SUMMATION TECHNIQUES MATH 53, SECTION 55 (VIPUL NAIK) Corresponding material in the book: Scattered around, but the most cutting-edge parts are in Sections 2.8 and 2.9. What students should definitely

More information

Discrete Structures Lecture Sequences and Summations

Discrete Structures Lecture Sequences and Summations Introduction Good morning. In this section we study sequences. A sequence is an ordered list of elements. Sequences are important to computing because of the iterative nature of computer programs. The

More information

COMP 355 Advanced Algorithms Algorithm Design Review: Mathematical Background

COMP 355 Advanced Algorithms Algorithm Design Review: Mathematical Background COMP 355 Advanced Algorithms Algorithm Design Review: Mathematical Background 1 Polynomial Time Brute force. For many non-trivial problems, there is a natural brute force search algorithm that checks every

More information

The Harvard Calculus Program in a Computer Classroom

The Harvard Calculus Program in a Computer Classroom The Harvard Calculus Program in a Computer Classroom Carmen Q. Artino Department of Mathematics The College of Saint Rose Albany, NY 103 Office: (518) 454-516 Fa: (518) 458-5446 e-mail: artinoc@rosnet.strose.edu

More information

Overview (90 Days) Properties of Equality Properties of Inequality Solve Linear Function

Overview (90 Days) Properties of Equality Properties of Inequality Solve Linear Function Pre- Requisites Skills: Overview (90 Days) Students need to know the meanings of exponents (2 4 = 2 2 2 2) Students need to know how to graph a simple inequality on a number line (i.e. x > 4) Students

More information

Math101, Sections 2 and 3, Spring 2008 Review Sheet for Exam #2:

Math101, Sections 2 and 3, Spring 2008 Review Sheet for Exam #2: Math101, Sections 2 and 3, Spring 2008 Review Sheet for Exam #2: 03 17 08 3 All about lines 3.1 The Rectangular Coordinate System Know how to plot points in the rectangular coordinate system. Know the

More information

Finding small factors of integers. Speed of the number-field sieve. D. J. Bernstein University of Illinois at Chicago

Finding small factors of integers. Speed of the number-field sieve. D. J. Bernstein University of Illinois at Chicago The number-field sieve Finding small factors of integers Speed of the number-field sieve D. J. Bernstein University of Illinois at Chicago Prelude: finding denominators 87366 22322444 in R. Easily compute

More information

Assessment Report. Level 2, Mathematics

Assessment Report. Level 2, Mathematics Assessment Report Level 2, 2006 Mathematics Manipulate algebraic expressions and solve equations (90284) Draw straightforward non-linear graphs (90285) Find and use straightforward derivatives and integrals

More information

Many proofs that the primes are infinite J. Marshall Ash 1 and T. Kyle Petersen

Many proofs that the primes are infinite J. Marshall Ash 1 and T. Kyle Petersen Many proofs that the primes are infinite J. Marshall Ash and T. Kyle Petersen Theorem. There are infinitely many prime numbers. How many proofs do you know that there are infinitely many primes? Nearly

More information

This format is the result of tinkering with a mixed lecture format for 3 terms. As such, it is still a work in progress and we will discuss

This format is the result of tinkering with a mixed lecture format for 3 terms. As such, it is still a work in progress and we will discuss Version 1, August 2016 1 This format is the result of tinkering with a mixed lecture format for 3 terms. As such, it is still a work in progress and we will discuss adaptations both to the general format

More information

Miller Objectives Alignment Math

Miller Objectives Alignment Math Miller Objectives Alignment Math 1050 1 College Algebra Course Objectives Spring Semester 2016 1. Use algebraic methods to solve a variety of problems involving exponential, logarithmic, polynomial, and

More information

Juan Juan Salon. EH National Bank. Sandwich Shop Nail Design. OSKA Beverly. Chase Bank. Marina Rinaldi. Orogold. Mariposa.

Juan Juan Salon. EH National Bank. Sandwich Shop Nail Design. OSKA Beverly. Chase Bank. Marina Rinaldi. Orogold. Mariposa. ( ) X é X é Q Ó / 8 ( ) Q / ( ) ( ) : ( ) : 44-3-8999 433 4 z 78-19 941, #115 Z 385-194 77-51 76-51 74-7777, 75-5 47-55 74-8141 74-5115 78-3344 73-3 14 81-4 86-784 78-33 551-888 j 48-4 61-35 z/ zz / 138

More information

Algebra. Here are a couple of warnings to my students who may be here to get a copy of what happened on a day that you missed.

Algebra. Here are a couple of warnings to my students who may be here to get a copy of what happened on a day that you missed. This document was written and copyrighted by Paul Dawkins. Use of this document and its online version is governed by the Terms and Conditions of Use located at. The online version of this document is

More information

CS 2110: INDUCTION DISCUSSION TOPICS

CS 2110: INDUCTION DISCUSSION TOPICS CS 110: INDUCTION DISCUSSION TOPICS The following ideas are suggestions for how to handle your discussion classes. You can do as much or as little of this as you want. You can either present at the board,

More information

Damped harmonic motion

Damped harmonic motion Damped harmonic motion March 3, 016 Harmonic motion is studied in the presence of a damping force proportional to the velocity. The complex method is introduced, and the different cases of under-damping,

More information

Day 1: Over + Over Again

Day 1: Over + Over Again Welcome to Morning Math! The current time is... huh, that s not right. Day 1: Over + Over Again Welcome to PCMI! We know you ll learn a great deal of mathematics here maybe some new tricks, maybe some

More information

Math 192r, Problem Set #3: Solutions

Math 192r, Problem Set #3: Solutions Math 192r Problem Set #3: Solutions 1. Let F n be the nth Fibonacci number as Wilf indexes them (with F 0 F 1 1 F 2 2 etc.). Give a simple homogeneous linear recurrence relation satisfied by the sequence

More information

Students should read Sections of Rogawski's Calculus [1] for a detailed discussion of the material presented in this section.

Students should read Sections of Rogawski's Calculus [1] for a detailed discussion of the material presented in this section. Chapter 3 Differentiation ü 3.1 The Derivative Students should read Sections 3.1-3.5 of Rogawski's Calculus [1] for a detailed discussion of the material presented in this section. ü 3.1.1 Slope of Tangent

More information

8.5 Taylor Polynomials and Taylor Series

8.5 Taylor Polynomials and Taylor Series 8.5. TAYLOR POLYNOMIALS AND TAYLOR SERIES 50 8.5 Taylor Polynomials and Taylor Series Motivating Questions In this section, we strive to understand the ideas generated by the following important questions:

More information

Practical Algebra. A Step-by-step Approach. Brought to you by Softmath, producers of Algebrator Software

Practical Algebra. A Step-by-step Approach. Brought to you by Softmath, producers of Algebrator Software Practical Algebra A Step-by-step Approach Brought to you by Softmath, producers of Algebrator Software 2 Algebra e-book Table of Contents Chapter 1 Algebraic expressions 5 1 Collecting... like terms 5

More information

Prentice Hall CME Project, Algebra

Prentice Hall CME Project, Algebra Prentice Hall Advanced Algebra C O R R E L A T E D T O Oregon High School Standards Draft 6.0, March 2009, Advanced Algebra Advanced Algebra A.A.1 Relations and Functions: Analyze functions and relations

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

WSMA Algebra - Expressions Lesson 14

WSMA Algebra - Expressions Lesson 14 Algebra Expressions Why study algebra? Because this topic provides the mathematical tools for any problem more complicated than just combining some given numbers together. Algebra lets you solve word problems

More information

Catholic Central High School

Catholic Central High School Catholic Central High School Course: Basic Algebra 2 Department: Mathematics Length: One year Credit: 1 Prerequisite: Completion of Basic Algebra 1 or Algebra 1, Basic Plane Geometry or Plane Geometry,

More information

Recurrence Relations

Recurrence Relations Recurrence Relations Recurrence Relations Reading (Epp s textbook) 5.6 5.8 1 Recurrence Relations A recurrence relation for a sequence aa 0, aa 1, aa 2, ({a n }) is a formula that relates each term a k

More information

PYTHAGOREAN TRIPLES KEITH CONRAD

PYTHAGOREAN TRIPLES KEITH CONRAD PYTHAGOREAN TRIPLES KEITH CONRAD 1. Introduction A Pythagorean triple is a triple of positive integers (a, b, c) where a + b = c. Examples include (3, 4, 5), (5, 1, 13), and (8, 15, 17). Below is an ancient

More information

Asymptotics of Integrals of. Hermite Polynomials

Asymptotics of Integrals of. Hermite Polynomials Applied Mathematical Sciences, Vol. 4, 010, no. 61, 04-056 Asymptotics of Integrals of Hermite Polynomials R. B. Paris Division of Complex Systems University of Abertay Dundee Dundee DD1 1HG, UK R.Paris@abertay.ac.uk

More information

REFERENCE Limits of Polynomial Sequences Clark Kimberling Fibonacci Quarterly, , pp Outline of Talk

REFERENCE Limits of Polynomial Sequences Clark Kimberling Fibonacci Quarterly, , pp Outline of Talk COEFFICIENT CONVERGENCE OF RECURSIVELY DEFINED POLYNOMIALS West Coast Number Theory Conference 2014 Russell Jay Hendel Towson University, Md RHendel@Towson.Edu REFERENCE Limits of Polynomial Sequences

More information

Trinity Christian School Curriculum Guide

Trinity Christian School Curriculum Guide Course Title: Calculus Grade Taught: Twelfth Grade Credits: 1 credit Trinity Christian School Curriculum Guide A. Course Goals: 1. To provide students with a familiarity with the properties of linear,

More information

IB Mathematics HL Year 2 Unit 11: Completion of Algebra (Core Topic 1)

IB Mathematics HL Year 2 Unit 11: Completion of Algebra (Core Topic 1) IB Mathematics HL Year Unit : Completion of Algebra (Core Topic ) Homewor for Unit Ex C:, 3, 4, 7; Ex D: 5, 8, 4; Ex E.: 4, 5, 9, 0, Ex E.3: (a), (b), 3, 7. Now consider these: Lesson 73 Sequences and

More information

Solving Recurrences. 1. Express the running time (or use of some other resource) as a recurrence.

Solving Recurrences. 1. Express the running time (or use of some other resource) as a recurrence. Solving Recurrences Recurrences and Recursive Code Many (perhaps most) recursive algorithms fall into one of two categories: tail recursion and divide-andconquer recursion. We would like to develop some

More information

/633 Introduction to Algorithms Lecturer: Michael Dinitz Topic: Dynamic Programming II Date: 10/12/17

/633 Introduction to Algorithms Lecturer: Michael Dinitz Topic: Dynamic Programming II Date: 10/12/17 601.433/633 Introduction to Algorithms Lecturer: Michael Dinitz Topic: Dynamic Programming II Date: 10/12/17 12.1 Introduction Today we re going to do a couple more examples of dynamic programming. While

More information

At the start of the term, we saw the following formula for computing the sum of the first n integers:

At the start of the term, we saw the following formula for computing the sum of the first n integers: Chapter 11 Induction This chapter covers mathematical induction. 11.1 Introduction to induction At the start of the term, we saw the following formula for computing the sum of the first n integers: Claim

More information

Algebra 2 Honors: Final Exam Review

Algebra 2 Honors: Final Exam Review Name: Class: Date: Algebra 2 Honors: Final Exam Review Directions: You may write on this review packet. Remember that this packet is similar to the questions that you will have on your final exam. Attempt

More information

Teacher: Mr. Chafayay. Name: Class & Block : Date: ID: A. 3 Which function is represented by the graph?

Teacher: Mr. Chafayay. Name: Class & Block : Date: ID: A. 3 Which function is represented by the graph? Teacher: Mr hafayay Name: lass & lock : ate: I: Midterm Exam Math III H Multiple hoice Identify the choice that best completes the statement or answers the question Which function is represented by the

More information

Warm-up Simple methods Linear recurrences. Solving recurrences. Misha Lavrov. ARML Practice 2/2/2014

Warm-up Simple methods Linear recurrences. Solving recurrences. Misha Lavrov. ARML Practice 2/2/2014 Solving recurrences Misha Lavrov ARML Practice 2/2/2014 Warm-up / Review 1 Compute 100 k=2 ( 1 1 ) ( = 1 1 ) ( 1 1 ) ( 1 1 ). k 2 3 100 2 Compute 100 k=2 ( 1 1 ) k 2. Homework: find and solve problem Algebra

More information

Unit 2-1: Factoring and Solving Quadratics. 0. I can add, subtract and multiply polynomial expressions

Unit 2-1: Factoring and Solving Quadratics. 0. I can add, subtract and multiply polynomial expressions CP Algebra Unit -1: Factoring and Solving Quadratics NOTE PACKET Name: Period Learning Targets: 0. I can add, subtract and multiply polynomial expressions 1. I can factor using GCF.. I can factor by grouping.

More information

High School Programs. Math 2 II UNIT 2 OVERVIEW: Modeling with Quadratic Functions Parent Guide

High School Programs. Math 2 II UNIT 2 OVERVIEW: Modeling with Quadratic Functions Parent Guide Unit Outcomes At the end of this unit, your student should be able to: Determine whether an expression is a polynomial. Add and subtracting polynomials. Multiply up to three linear expressions. Create

More information

INFINITE SUMS. In this chapter, let s take that power to infinity! And it will be equally natural and straightforward.

INFINITE SUMS. In this chapter, let s take that power to infinity! And it will be equally natural and straightforward. EXPLODING DOTS CHAPTER 7 INFINITE SUMS In the previous chapter we played with the machine and saw the power of that machine to make advanced school algebra so natural and straightforward. In this chapter,

More information

This is Solving Linear Systems, chapter 4 from the book Beginning Algebra (index.html) (v. 1.0).

This is Solving Linear Systems, chapter 4 from the book Beginning Algebra (index.html) (v. 1.0). This is Solving Linear Systems, chapter 4 from the book Beginning Algebra (index.html) (v. 1.0). This book is licensed under a Creative Commons by-nc-sa 3.0 (http://creativecommons.org/licenses/by-nc-sa/

More information

Differentiation 1. The METRIC Project, Imperial College. Imperial College of Science Technology and Medicine, 1996.

Differentiation 1. The METRIC Project, Imperial College. Imperial College of Science Technology and Medicine, 1996. Differentiation 1 The METRIC Project, Imperial College. Imperial College of Science Technology and Medicine, 1996. 1 Launch Mathematica. Type

More information