Summations Alexandra Stefan.

Slides:



Advertisements
Similar presentations
Chapter 8 Vocabulary. Section 8.1 Vocabulary Sequences An infinite sequence is a function whose domain is the set of positive integers. The function.
Advertisements

Infinite Sequences and Series
INFINITE SEQUENCES AND SERIES
Sequences & Summations Section 2.4 of Rosen Fall 2008 CSCE 235 Introduction to Discrete Structures Course web-page: cse.unl.edu/~cse235 Questions:
For a geometric sequence, , for every positive integer k.
Copyright © 2007 Pearson Education, Inc. Slide 8-1.
Sequences and Series A sequence is an ordered list of numbers where each term is obtained according to a fixed rule. A series, or progression, is a sum.
Homework Questions.
Aim: What are the arithmetic series and geometric series? Do Now: Find the sum of each of the following sequences: a)
State whether the sequence below is arithmetic, geometric or neither and then write the explicit definition of the sequence. 3, 7, 11, 15...
Lecture 9. Arithmetic and geometric series and mathematical induction
CALCULUS II Chapter Sequences A sequence can be thought as a list of numbers written in a definite order.
The importance of sequences and infinite series in calculus stems from Newton’s idea of representing functions as sums of infinite series.  For instance,
2.4 Sequences and Summations
Introduction to sequences and series
Chapter 2 Mathematical preliminaries 2.1 Set, Relation and Functions 2.2 Proof Methods 2.3 Logarithms 2.4 Floor and Ceiling Functions 2.5 Factorial and.
By Sheldon, Megan, Jimmy, and Grant..  Sequence- list of numbers that usually form a pattern.  Each number in the list is called a term.  Finite sequence.
Write the first six terms of the following sequences.
Arithmetic and Geometric Series: Lesson 43. LESSON OBJECTIVE: 1.Find sums of arithmetic and geometric series. 2.Use Sigma Notation. 3.Find specific terms.
Section 9.2 – Series and Convergence. Goals of Chapter 9.
Appendix A: Summations Motivation: Evaluating and/or bounding sums are frequently needed in the solution of recurrences Two types of evaluation problems:
Warm up 1. Find the sum of : 2. Find the tenth term of the sequence if an = n2 +1: =
Arithmetic Series 19 May Summations Summation – the sum of the terms in a sequence {2, 4, 6, 8} → = 20 Represented by a capital Sigma.
12 INFINITE SEQUENCES AND SERIES. In general, it is difficult to find the exact sum of a series.  We were able to accomplish this for geometric series.
Copyright © Cengage Learning. All rights reserved.
Math II UNIT QUESTION: How is a geometric sequence like an exponential function? Standard: MM2A2, MM2A3 Today’s Question: How do you recognize and write.
4.2 Area Definition of Sigma Notation = 14.
Appendix A: Summations Two types of summation problems in algorithms: 1) Prove by induction that formula is correct 2) Find the function that the sum equals.
Algebra Arithmetic Sequences and Series. Vocabulary Sequence – A list of numbers in a particular order Arithmetic Sequence – A sequence of numbers.
Exact Accumulation and  AP Calculus. A). Sigma Notation REM: Ex.
Unit 4: Sequences & Series 1Integrated Math 3Shire-Swift.
Math for CS Fourier Transform
Arithmetic Sequences and Series Section Objectives Use sequence notation to find terms of any sequence Use summation notation to write sums Use.
Copyright © Cengage Learning. All rights reserved The Integral Test and Estimates of Sums.
Copyright © 2011 Pearson Education, Inc. Slide
INFINITE SEQUENCES AND SERIES In general, it is difficult to find the exact sum of a series.  We were able to accomplish this for geometric series and.
SECTION 8.3 THE INTEGRAL AND COMPARISON TESTS. P2P28.3 INFINITE SEQUENCES AND SERIES  In general, it is difficult to find the exact sum of a series.
Numerical Integration
Section 11.1 Sequences Part I
The sum of the infinite and finite geometric sequence
Accel PRecalc Unit #4: Sequences & Series Lesson #3: Finite Geometric Sequences and Series
Analysis of Algorithms: Methods and Examples
11.4 The Comparison Tests In this section, we will learn:
Aim: What is the geometric series ?
Copyright © Cengage Learning. All rights reserved.
The Area Question and the Integral
Finite Differences.
Calculus II (MAT 146) Dr. Day Wednesday, April 4, 2018
Chapter 3: Calculus~Hughes-Hallett
Chapter 8: Further Topics in Algebra
After this lesson, you will be able to:
Clicker Question 1 What is 1 - 5/4 + 25/ /64 + …  5n/4n + … ?
Infinite Sequences and Series 11.
Calculus II (MAT 146) Dr. Day Friday, April 6, 2018
Copyright © Cengage Learning. All rights reserved.
Section 1.6 Sigma Notations and Summation
Recurrences (Method 4) Alexandra Stefan.
Chapter 11: Further Topics in Algebra
Copyright © Cengage Learning. All rights reserved.
TECHNIQUES OF INTEGRATION
Warm Up Look for a pattern and predict the next number or expression in the list , 500, 250, 125, _____ 2. 1, 2, 4, 7, 11, 16, _____ 3. 1, −3,
Section 8.1: Sequences.
Quiz 1, Monday 1/28/19 Chapters 1,2 and 3 HW assignments 1-5.
9.5 Series.
Geometric Sequence Skill 38.
Geometric Sequences and Series
Series.
Chapter 1 Sequences and Series
Unit 13 Pretest.
Presentation transcript:

Summations Alexandra Stefan

Math background - Review Series (the terms) and their summations: Geometric Arithmetic (This information is in the following slides and the class cheat sheet) Integrals From the Integrals cheat sheet see: The fundamental theorem of calculus Part II: Common integrals Cheat sheets and other useful links are on the Slides and Resources webpage.

Book Reference Book (CLRS) references for this lecture: Apendix A, especially pages 1145-1147, page 1150 (bounding the terms), Pages 1154-1156 (approximation by integrals)

Overview Summations Summation of arithmetic series: Where a1 is the first term and d is the step. Summation of geometric series: 𝑘=0 𝑛 𝑥𝑘 0< 𝑥<1 , 𝛩(1) 𝑥>1 , 𝛩( 𝑥 𝑛 ) 𝑥=1 , 𝛩(𝑛) (easy to check: 1+1+…+1) Approximation by integrals Induction You suspect/guess that a summation S = 𝛩 𝑓 𝑁 and prove/verify it using induction. See Dr. Bob Weems, “Notes 3: Summations”, section 3.D. Very useful exercise in strengthening one’s math skills.

Summations Summations are formulas of the sort: 𝑘=0 𝑛 𝑓(𝑘) Used to solve recurrences. Oftentimes, establishing upper bounds is sufficient, since we use big-Oh notation. If 𝑓 𝑘 ≥0 , then: 𝑘=0 𝒏 𝑓 𝑘 ≤ 𝑘=0 ∞ 𝑓 𝑘 Summing to infinity may give a simpler formula.

Summation of Arithmetic Series Examples: 1,5,9,13,17,21,…., ‘Step’ between terms: d = 4 First term: a1 = 1 Note that 1,2,3,…,n is a special case where the step is +1. 3,13,23,33,43,…. Step? First term (a1)? General formula: Here d is the step and a1 is the first term Summation: Summation of consecutive terms: Do not confuse the summation of terms with the count of terms! (See a future slide)

Summation of Geometric Series 0< 𝑥<1 Suppose that 𝟎< 𝒙<𝟏: Finite summations: 𝑘=0 𝑛 𝑥𝑘 = 1 − 𝑥 𝑛+1 1 − 𝑥 = 𝛩 ?? Infinite summations: 𝑘=0 ∞ 𝑥𝑘 = 1 1 − 𝑥 Important to note: 𝑘=0 𝑛 𝑥𝑘 ≤ 𝑘=0 ∞ 𝑥𝑘 = 1 1 − 𝑥 Therefore, 𝑘=0 𝑛 𝑥𝑘 =𝛩 1 . Why?

Summation of Geometric Series 0< 𝑥<1 Suppose that 𝟎< 𝒙<𝟏: Finite summations: 𝑘=0 𝑛 𝑥𝑘 = 1 − 𝑥 𝑛+1 1 − 𝑥 = 𝛩 1 Infinite summations: 𝑘=0 ∞ 𝑥𝑘 = 1 1 − 𝑥 Important to note: 𝑘=0 𝑛 𝑥𝑘 ≤ 𝑘=0 ∞ 𝑥𝑘 = 1 1 − 𝑥 Therefore, 𝑘=0 𝑛 𝑥𝑘 =𝛩 1 . Why? Because 1 1 − 𝑥 is independent of n. Strictly speaking we showed that it is O(1), but the sum is also ≠ 0 and so it is Ω(1).

Summation of Geometric Series 𝑥≥1 𝑥>1 The formula is the same, and can be rewritten as: 𝑘=0 𝑛 𝑥𝑘 = 𝑥 𝑛+1 −1 𝑥−1 Remember this formula! For example: 1 + 5 + 52 + 53 + … + 5𝑛= 5 𝑛+1 −1 5−1 =𝛩 5𝑛 5 is a constant and so: 5 𝑛+1 = 5∗5 𝑛 =𝛩 5𝑛 (Exponential!) 𝑥=1 =>

Do not confuse the summation of terms with the count of terms! Progression: 1,2,3,…n Summation of terms: 1+2+…+n = n(n+1)/2=Θ(n2) Count of terms: 1,2,3,…,n => n terms => Θ(n) Progression:1, 2, 4, …, 2i, ...2n Summation: Count of terms: n+1 Progression:1, 2, 4, …, 2i, ...2p≤n (last power of 2 less or equal to n) Count of terms: 1+lgn (more precisely: 1+floor(lgn))

Approximation by Integrals 𝑚−1 𝑛 𝑓 𝑥 𝑑𝑥 ≤ 𝑘=𝑚 𝑛 𝑓(𝑘) ≤ 𝑚 𝑛+1 𝑓 𝑥 𝑑𝑥 when f(x) is a monotonically increasing function. In most cases***, our end result will be: 𝑘=1 𝑛 𝑓(𝑘) = Θ( 0 𝑛 𝑓 𝑥 𝑑𝑥 ) when f(x) is monotonically increasing *** For the problems we look at, you can adjust the borders since the differences should result in lower order terms (see the worked-out example). But always be prepared to check the correctness.

Approximation by Integrals - Theory 𝑚−1 𝑛 𝑓 𝑥 𝑑𝑥 ≤ 𝑘=𝑚 𝑛 𝑓(𝑘) ≤ 𝑚 𝑛+1 𝑓 𝑥 𝑑𝑥 Suppose that f(x) is a monotonically increasing function: This means that 𝑥≤𝑦⇒𝑓 𝑥 ≤𝑓(𝑦). Then, we can approximate summation 𝑘=𝑚 𝑛 𝑓(𝑘) using integral 𝑚 𝑛+1 𝑓 𝑥 𝑑𝑥 . Why? Because 𝑘−1 𝑘 𝑓 𝑥 𝑑𝑥 ≤ 𝑓(𝑘) ≤ 𝑘 𝑘+1 𝑓 𝑥 𝑑𝑥 . Proof for: 𝑓(𝑘) ≤ 𝑘 𝑘+1 𝑓 𝑥 𝑑𝑥 For every 𝑥 in the interval [𝑘, 𝑘+1], 𝑥≥ 𝑘. Since 𝑓(𝑥) is increasing, if 𝑥 ≥ 𝑘 then 𝑓 𝑥 ≥ 𝑓(𝑘). (Remember that the integral is the sum of 𝑓 𝑥 on the interval [𝑘, 𝑘+1]of size 1. ) Similar proof for 𝑘−1 𝑘 𝑓 𝑥 𝑑𝑥 ≤ 𝑓(𝑘)

Approximation by Integrals - Example 𝑚−1 𝑛 𝑓 𝑥 𝑑𝑥 ≤ 𝑘=𝑚 𝑛 𝑓(𝑘) ≤ 𝑚 𝑛+1 𝑓 𝑥 𝑑𝑥 Example: approximate T(n) = 𝒌=𝟏 𝒏 𝒌𝟐 using an integral: Notice that T(n) is a sum of 𝒌𝟐 terms. We will use 𝑓(𝑥) = 𝑥2 to approximate this summation. 𝑓(𝑥) = 𝑥2 is a monotonically increasing function. O: T(n) = 𝑘=1 𝑛 𝑘2 ≤ 1 𝑛+1 𝑥2𝑑𝑥 = 𝑛+1 3 −13 3 = 𝑛3+2𝑛2+2𝑛+1 −1 3 =𝑂(𝑛3) Ω : T(n) = 𝑘=1 𝑛 𝑘2 ≥ 0 𝑛 𝑥2𝑑𝑥 = 𝑛3 −03 3 = 𝑛3 3 =Ω(𝑛3) => 𝑓 𝑛 = 𝛩(𝑛3)

Approximation by Integrals 𝑚−1 𝑛 𝑓 𝑥 𝑑𝑥 ≤ 𝑘=𝑚 𝑛 𝑓(𝑘) ≤ 𝑚 𝑛+1 𝑓 𝑥 𝑑𝑥 when f(x) is a monotonically increasing function. 𝑚 𝑛+1 𝑓 𝑥 𝑑𝑥 ≤ 𝑘=𝑚 𝑛 𝑓(𝑘) ≤ 𝑚−1 𝑛 𝑓 𝑥 𝑑𝑥 when f(x) is a monotonically decreasing function.

Worksheet 1) Find Θ for 2) Given summation: 1 + 25 + 35 + … + N5 Hint: pay attention to the borders for b). 2) Given summation: 1 + 25 + 35 + … + N5 Can you solve this in terms of Θ, Ω or O ?