CS1800: Sequences & Sums. Professor Kevin Gold

Size: px
Start display at page:

Download "CS1800: Sequences & Sums. Professor Kevin Gold"

Transcription

1 CS1800: Sequences & Sums Professor Kevin Gold

2 Moving Toward Analysis of Algorithms Today s tools help in the analysis of algorithms. We ll cover tools for deciding what equation best fits a sequence of numbers Which may be useful for predicting program performance given some sample running times And tools for calculating sums of sequences of numbers (series) Because we may know how much work an algorithm does every round, and may want to calculate the total work

3 Sequences Motivation Suppose we have some datapoints for a black box algorithm - we can t look at the code Processing 1 input takes 12ms Processing 2 inputs takes 20ms Processing 3 inputs takes 30ms Processing 4 inputs takes 42ms What s the general function that gives the running time of this algorithm? Plotting the points may look like a line, but it s not, exactly

4 Sequences Motivation Whether looking at real data or trying to find a pattern in a series of numbers, it can be helpful to be familiar with common sequences Identifying whether a sequence is arithmetic, quadratic, harmonic, geometric, or none of the above can help you extrapolate or bring other math facts to bear x 2 +5x+6 (quadratric)

5 Notation & Terminology We can denote a sequence of numbers with a letter for the sequence, and a subscript for the item number n a 1 = 12, a 2 = 20, a 3 = 30, a n = n 2 + 5n + 6 We ll follow the book and usually make 1 the first item number, not 0. (So not a 0 = 12, a 1 = 20, ) This may result in different equations from some you find on the Internet, or in other texts It has the advantage that a 1 a n really is n things instead of n+1 things (but be careful when we get to geometric series ) Try not to say a series of numbers unless you mean a summation over a sequence, a 1 + a a n

6 What s the Equation? 1, 1/2, 1/3 an =? 2, 4, 6, 8, 10 an =? 1,1/2,1/4,1/8 an =? 1,3,6,10,15 an =? 1,1,2,3,5,8, an =?

7 Equations 1, 1/2, 1/3 an = 1/n 2, 4, 6, 8, 10 an = 2n 1,1/2,1/4,1/8 an = (1/2) n-1 1,3,6,10,15 an = an-1 + n, or n(n+1)/2 1,1,2,3,5,8, an = an-1 + an-2

8 Terms 1, 1/2, 1/3 an = 1/n (harmonic sequence) 2, 4, 6, 8, 10 an = 2n arithmetic sequence (evens) 1,1/2,1/4,1/8 an = (1/2) n-1 geometric sequence 1,3,6,10,15 an = n(n+1)/2 quadratic sequence ( triangular numbers 1,1+2,1+2+3 ) 1,1,2,3,5,8, an = an-1 + an-2 Fibonacci numbers (recurrence)

9 Arithmetic Sequences An arithmetic sequence is recognizable by the constant difference between each term and the next. a1 = 4, a2 = 7, a3 = 10, a4 = 13, a5 =

10 Arithmetic Sequences That means each term can be defined as the first term, plus some multiple of this constant difference d. a1 = 4, a2 = 7, a3 = 10, a4 = 13, a5 =

11 Arithmetic Sequences That means each term can be defined as the first term, plus some multiple of this constant difference d. a1 = 4, a2 = 7, a3 = 10, a4 = 13, a5 = a1+d(n-1)

12 Arithmetic Sequences Represent Linear Growth a1 + d(n-1) is essentially the equation of a line, with d as the slope and (1,a1) as a point. But, we don t consider sequences to have values for inputs between integers. So it s not exactly the same as a line; it s discrete (n-1)

13 Geometric Sequences In a geometric sequence, each term is a constant multiple of the last. Multiply by 2: 1, 2, 4, 8, 16 Multiply by 1/2: 1, 1/2, 1/4, 1/8, 1/16 Multiply by -2: 1, -2, 4, -8, 16, -32 This multiple is typically called r (ratio); above, r = 2, 1/2, and -2. The sequence need not start from 1.

14 Geometric Sequence Formula Just as we can sum up all the additions of d for arithmetic sequences, we can also figure out the net effect of multiplying by r repeatedly a 1 5 a 2 = a 1 * r = a 1 r 5*2 = 10 (a 1 * r) * r = a 1 r 2 10*2 = 5*2 2 = 20 (a 1 * r 2 ) * r = a 1 r 3 20*2 = 5*2 3 = 40 In other words, the formula is a n = a 1 r n-1

15 Geometric Sequences Represent Exponential Change If r > 1, a geometric series grows exponentially. 1, 2, 4, 8 a n = 2 n-1 If 0 < r < 1, a geometric series shrinks exponentially. 1, 1/2, 1/4, a n = (1/2) n-1 Either of these is considered very rapid change. r < 0 isn t that common, but will behave like r while bouncing back and forth between - and +

16 Identifying & Finding the Equations For Arithmetic & Geometric Seqs Can you add the same number d to each term to get the next? If so, it s an arithmetic sequence. Use the d you identified and the first term a1 to get the equation a1 + d(n-1). Can you always multiply by the same number r to get the next number in the sequence? If so, it s geometric. Use the first term a1 to get formula a1r n-1

17 Quadratic Sequences It is possible to have the difference between terms ( first difference ) increase by a changing amount - but the amount of that change ( second difference ) is constant This is the mark of a quadratic sequence, with a formula of the form xn = an 2 + bn + c

18 Solving for the Quadratic Sequence Equation If we have three data points, and we know the sequence is quadratic, we can solve for the equation. That s because we ll have 3 equations of the form an 2 + bn + c = d where we know n and d. The unknowns are a, b, and c. 3 equations, 3 unknowns. For example, if we know x 1 = 12, x 2 = 20, x 3 = 30, then we have a(1) 2 + b(1) + c = 12 -> a + b + c = 12 a(2) 2 + b(2) + c = 20 -> 4a+2b+ c = 20 a(3) 2 + b(3) + c = 30 -> 9a+3b+ c = 30

19 Example Solution/ Algebra Reminder We want to add equations together to cancel variables, until we know their values. a + b + c = 12 (Eq1) 4a+2b+ c = 20 (Eq2) 9a+3b+ c = 30 (Eq3) Subtract Eq1 from Eq2: 3a + b = 8 (Eq4) Subtract Eq2 from Eq3: 5a + b = 10 (Eq5) Subtract Eq4 from Eq5: 2a = 2 so a = 1 Substitute a = 1 into Eq4: 3 + b = 8 so b = 5 Substitute a = 1, b = 5 into Eq1: c = 12 so c = 6 Thus we recovered a n = n 2 + 5n + 6.

20 Another Example (The Steps Don t Need to Change Much) If we choose to use the first 3 values of the sequence, the equations won t change besides the values on the RHS - n 2 is still 1, 4, 9, for example a + b + c = 12 (Eq1) 4a+2b+ c = 25 (Eq2) 9a+3b+ c = 48 (Eq3) 12, 25, 48 Subtract Eq1 from Eq2: 3a + b = 13 (Eq4) Subtract Eq2 from Eq3: 5a + b = 23 (Eq5) Subtract Eq4 from Eq5: 2a = 10 so a = 5 Substitute a = 5 into Eq4: 15 + b = 13 so b = -2 Substitute a = 5, b = -2 into Eq1: c = 12 so c = 9 Thus we recovered a n = 5n 2-2n + 9.

21 Sums ( Series ) upper limit index of summation n Σ 1+3i = (1+3n) i=1 lower limit Σ is a capital sigma, the Greek S, short for sum. (A for product would imply multiplication.)

22 Arithmetic Series & Gauss s Trick (Like many stories about mathematicians, this may not be true) Sum the numbers from 1 to 100, said the teacher. Young Gauss thought for a bit. 5050, he answered. How did he figure it out so fast?

23 Summing the Numbers from 1 to 100 With Gauss s Trick In the series , the first and last numbers sum to 101 ( ) the 2nd and 2nd-to-last numbers sum to 101 (2 + 99) the 3rd and 3rd-to-last numbers sum to 101 (3 + 98) And so on. Every number from 1 to 50 pairs off with some number from 100 to 51 to make 101. How many pairs are there? 100/2 = pairs worth 101 each. 50*101 = 5050.

24 Gauss s Trick, Illustrated =9 3+6=9 2+7=9 1+8=9 9*(8/2) = 36

25 Gauss s Trick, Even Case An arithmetic series is one formed by summing an arithmetic sequence - all numbers are the same distance d apart. The sum of the first number a 1 and last number a n is clearly a 1 + a n a 2 + a n-1 = (a 1 + d) + (a n - d) = a 1 + a n again a 3 + a n-2 = (a 1 + 2d) + (a n - 2d) = a 1 + a n again If n is even, this will again produce n/2 pairs, each worth a 1 + a n So the sum is n(a 1 + a n )/2. n If a 1 = 1 and a n = n, this is the formula Σ i = n(n+1)/2. i=1

26 Gauss s Trick, Odd Case/General Case The pairing argument doesn t quite make sense if n is odd. It works for all numbers besides the middle number, giving (n-1)/2 pairs worth a1 + an The middle value must be the average of a1 and an since it is equidistant from both Thus the sum is ((n-1)/2)[a1 + an] + (a1+an)/2 = (a1 + an)(n/2), identical to the even case

27 Example Problem Problem: find the sum of The difference d appears to be 3. How many terms are there? a n - a 1 = 29-2 = 27. Must be 27/3 = 9 steps of adding 3. Counting the start, 2 (which we didn t add a 3 to get), that s 10 numbers; n = 10. Apply Gauss s formula: (29+2) * 10/2 = 31*5 = 155.

28 Example Problem #2 Problem: find the sum of The difference d appears to be 5. How many terms are there?

29 Example Problem #2 Problem: find the sum of The difference d appears to be 5. How many terms are there? a n - a 1 = = 500. Must be 500/5 = 100 steps of adding 5. Counting a 1 = 3, that s 101 numbers; n = 101. Apply Gauss s formula: (503+3) * 101/2 = 253*101 =

30 Arithmetic Series And Code Gauss s trick is how we know the total running time of a variety of algorithms that perform increasing or decreasing work as time goes on For example, Selection Sort (which we ll cover in full later) scans N items for the minimum, then N-1 items for their minimum, then N-2, all the way down to 2 items The total work done by the algorithm is then N + (N-1) steps We know from Gauss s trick that this is a total of N(N+1)/2-1 operations - which we can compare to other sorting algorithms

31 Geometric Series The sum of a geometric sequence, for example: 8 Σ (1/2) n = 1 + 1/2 + 1/4 + 1/ /256 n=0 A geometric series can come up in the analysis of algorithms that work on shrinking fractions of the input For example, an algorithm that works on N things, then N/2 things, then N/4 things N + N/2 + N/4 + = N(1 + 1/2 + 1/4 + ) and we d like to know what that sums to

32 Deriving a Geometric Series Equation Let S = a + ar + ar ar n, our original sum Note there are n+1 terms here; first is ar 0 If we multiply the sum by r, we get something that looks almost identical. (This is < S if r < 1.) rs = ar + ar 2 + ar ar n + ar n+1 Subtracting one of these from the other cancels the terms ar + ar ar n. S - rs = a - ar n+1 S - rs = S(1-r), so divide both sides by 1-r: S = (a - ar n+1 )/(1-r). It may be easier to remember the derivation than than the equation

33 6 Finite Geometric Series Example Σ (1/3) k = 1 + 1/3 + 1/ /3 6 n=0 a = 1, n = 6, r=1/3: (a - ar n+1 )/(1-r) = (1-1/3 7 )/(2/3) This comes out to 1.5 or so (1.499 ), which we could actually estimate with 1/(2/3) = 3/2 As the terms of a 0 < r < 1 series get small, they start having only a negligible impact For this reason, sometimes we will approximate a geometric series describing an algorithm to be infinite - then we won t need terms like (1/3) 7

34 Deriving an Infinite Geometric Series Equation Let s assume 0 < r < 1. S = a + ar + ar 2 + rs = ar + ar 2 For every ar i in one series (i >= 1), there is an ar i in the other. So they ll all cancel if we subtract: S - rs = a S(1-r) = a, so S = a/(1-r).

35 Example of Using the Approximation in an Analysis I have an algorithm that will scan N items, then N/2, then N/4, etc, down to 1 item. How much total work is being done? This is N(1 + 1/2 + 1/4 + 1/ /2 i ), where I could figure out i from n, or I could just approximate as the infinite sum N(1 + 1/2 + 1/4 ) Taking the latter approach, the sum 1 + 1/2 + is a/(1-r) = 1/(1/2) = 2. So I can approximate the total work done as 2N.

36 Picture of the Infinite Sum 1 + 1/2 + 1/4 + 1/ /2 1/4 1/8 1 2 Each term gets us halfway to 2, from wherever we are The difference from 2 approaches 0 All fractional geometric series (0 < r < 1) converge, but r > 1 obviously does not, since those terms get larger and larger

37 Another Example of Finite & Infinite Series 9 Σ (1/4) k = 1 + 1/ /4 9 n=0 Using our formula, (a - ar n+1 )/(1-r) = (1 - (1/4) 10 )/(3/4) ( / )/(3/4) is roughly 1/(3/4) = 4/3 = If we calculate it more exactly, we get

38 Other Properties of Sums As suggested earlier, we can factor common terms out of all elements of the sum. n Example: Σ 2i = 2 Σ i = 2[n(n+1)/2] = n(n+1) i=1 We can also break up a formula into parts summed separately, since addition doesn t care in what order things happen. n Example: Σ (i + (1/3) i ) = Σ i + Σ (1/3) i i=0 n i=0 = n(n+1)/2 + (1-(1/3) n+1 )/(2/3) n i=0

39 Summing Quadratic and Cubic Equations There are formulas for the sum of squares and the sum of cubes: Combined with the strategies mentioned on the previous slide, we can tackle a sum like this: n Σ 5k 2-2k + 9 = 5 Σ k 2-2 Σ k + Σ 9 k=1 = 5 n(n+1)(2n+1)/6-2(n(n+1)/2) + 9n Which we could then simplify, substitute a value for n, etc

40 Additional Series: Harmonic Series The sum of a harmonic sequence: 1 + 1/2 + 1/3 + 1/4 + 1/5 + This doesn t converge - it just keeps growing. In fact, it grows at a very specific rate - roughly like ln n = log e n. (So, slowly.) This sum can come up in algorithm analysis as well as analyzing natural problems like how long it takes to collect N random game pieces

41 Additional Series: Telescoping This is a term for a series where some element of each term cancels out an element of the next term, leaving only part of the first and part of the last. Named after a piratey collapsing spyglass, yarrr Suppose we have Σ [1/k - 1/(k+1)]. (1-1/2) + (1/2-1/3) + (1/3-1/4) + + (1/(n-1) - 1/n) Canceling the paired terms leaves us with just 1-1/n

42 Advanced Series Techniques: Bounding With Continuous Calculus Overestimate Underestimate In discrete math, we actually want the rectangle areas The difference between summing series and doing continuous calculus is that our sums care only about values for integer inputs. Nevertheless, it may sometimes be easiest to approximate with continuous calculus. We can sum a function that is definitely larger than our value, or sum a function that is definitely smaller. The true value lies in between.

43 Aside: Discrete Calculus There is a discrete version of calculus with its own power laws and such. It s complex and not that useful, but it s kind of interesting that it exists?

5.2 Infinite Series Brian E. Veitch

5.2 Infinite Series Brian E. Veitch 5. Infinite Series Since many quantities show up that cannot be computed exactly, we need some way of representing it (or approximating it). One way is to sum an infinite series. Recall that a n is the

More information

Sequences and infinite series

Sequences and infinite series Sequences and infinite series D. DeTurck University of Pennsylvania March 29, 208 D. DeTurck Math 04 002 208A: Sequence and series / 54 Sequences The lists of numbers you generate using a numerical method

More information

SECTION 9.2: ARITHMETIC SEQUENCES and PARTIAL SUMS

SECTION 9.2: ARITHMETIC SEQUENCES and PARTIAL SUMS (Chapter 9: Discrete Math) 9.11 SECTION 9.2: ARITHMETIC SEQUENCES and PARTIAL SUMS PART A: WHAT IS AN ARITHMETIC SEQUENCE? The following appears to be an example of an arithmetic (stress on the me ) sequence:

More information

Learning Objectives

Learning Objectives Learning Objectives Learn about recurrence relations Learn the relationship between sequences and recurrence relations Explore how to solve recurrence relations by iteration Learn about linear homogeneous

More information

CS1800: Mathematical Induction. Professor Kevin Gold

CS1800: Mathematical Induction. Professor Kevin Gold CS1800: Mathematical Induction Professor Kevin Gold Induction: Used to Prove Patterns Just Keep Going For an algorithm, we may want to prove that it just keeps working, no matter how big the input size

More information

Induction 1 = 1(1+1) = 2(2+1) = 3(3+1) 2

Induction 1 = 1(1+1) = 2(2+1) = 3(3+1) 2 Induction 0-8-08 Induction is used to prove a sequence of statements P(), P(), P(3),... There may be finitely many statements, but often there are infinitely many. For example, consider the statement ++3+

More information

EECS 1028 M: Discrete Mathematics for Engineers

EECS 1028 M: Discrete Mathematics for Engineers EECS 1028 M: Discrete Mathematics for Engineers Suprakash Datta Office: LAS 3043 Course page: http://www.eecs.yorku.ca/course/1028 Also on Moodle S. Datta (York Univ.) EECS 1028 W 18 1 / 16 Sequences and

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

Introduction to Series and Sequences Math 121 Calculus II Spring 2015

Introduction to Series and Sequences Math 121 Calculus II Spring 2015 Introduction to Series and Sequences Math Calculus II Spring 05 The goal. The main purpose of our study of series and sequences is to understand power series. A power series is like a polynomial of infinite

More information

Precalculus idea: A picture is worth 1,000 words

Precalculus idea: A picture is worth 1,000 words Six Pillars of Calculus by Lorenzo Sadun Calculus is generally viewed as a difficult subject, with hundreds of formulas to memorize and many applications to the real world. However, almost all of calculus

More information

CS1800: Strong Induction. Professor Kevin Gold

CS1800: Strong Induction. Professor Kevin Gold CS1800: Strong Induction Professor Kevin Gold Mini-Primer/Refresher on Unrelated Topic: Limits This is meant to be a problem about reasoning about quantifiers, with a little practice of other skills, too

More information

STEP Support Programme. Hints and Partial Solutions for Assignment 17

STEP Support Programme. Hints and Partial Solutions for Assignment 17 STEP Support Programme Hints and Partial Solutions for Assignment 7 Warm-up You need to be quite careful with these proofs to ensure that you are not assuming something that should not be assumed. For

More information

Topic 7 Notes Jeremy Orloff

Topic 7 Notes Jeremy Orloff Topic 7 Notes Jeremy Orloff 7 Taylor and Laurent series 7. Introduction We originally defined an analytic function as one where the derivative, defined as a limit of ratios, existed. We went on to prove

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

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

ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS 1 MATH00030 SEMESTER /2018

ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS 1 MATH00030 SEMESTER /2018 ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS 1 MATH00030 SEMESTER 1 2017/2018 DR. ANTHONY BROWN 1. Arithmetic and Algebra 1.1. Arithmetic of Numbers. While we have calculators and computers

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

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

O Notation (Big Oh) We want to give an upper bound on the amount of time it takes to solve a problem.

O Notation (Big Oh) We want to give an upper bound on the amount of time it takes to solve a problem. O Notation (Big Oh) We want to give an upper bound on the amount of time it takes to solve a problem. defn: v(n) = O(f(n)) constants c and n 0 such that v(n) c f(n) whenever n > n 0 Termed complexity:

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

Complex Numbers: A Brief Introduction. By: Neal Dempsey. History of Mathematics. Prof. Jennifer McCarthy. July 16, 2010

Complex Numbers: A Brief Introduction. By: Neal Dempsey. History of Mathematics. Prof. Jennifer McCarthy. July 16, 2010 1 Complex Numbers: A Brief Introduction. By: Neal Dempsey History of Mathematics Prof. Jennifer McCarthy July 16, 2010 2 Abstract Complex numbers, although confusing at times, are one of the most elegant

More information

Grades 7 & 8, Math Circles 10/11/12 October, Series & Polygonal Numbers

Grades 7 & 8, Math Circles 10/11/12 October, Series & Polygonal Numbers Faculty of Mathematics Waterloo, Ontario N2L G Centre for Education in Mathematics and Computing Introduction Grades 7 & 8, Math Circles 0//2 October, 207 Series & Polygonal Numbers Mathematicians are

More information

C if U can. Algebra. Name

C if U can. Algebra. Name C if U can Algebra Name.. How will this booklet help you to move from a D to a C grade? The topic of algebra is split into six units substitution, expressions, factorising, equations, trial and improvement

More information

Quiz 07a. Integers Modulo 12

Quiz 07a. Integers Modulo 12 MA 3260 Lecture 07 - Binary Operations Friday, September 28, 2018. Objectives: Continue with binary operations. Quiz 07a We have a machine that is set to run for x hours, turn itself off for 3 hours, and

More information

What is proof? Lesson 1

What is proof? Lesson 1 What is proof? Lesson The topic for this Math Explorer Club is mathematical proof. In this post we will go over what was covered in the first session. The word proof is a normal English word that you might

More information

An Intuitive Introduction to Motivic Homotopy Theory Vladimir Voevodsky

An Intuitive Introduction to Motivic Homotopy Theory Vladimir Voevodsky What follows is Vladimir Voevodsky s snapshot of his Fields Medal work on motivic homotopy, plus a little philosophy and from my point of view the main fun of doing mathematics Voevodsky (2002). Voevodsky

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

SEQUENCES & SERIES. Arithmetic sequences LESSON

SEQUENCES & SERIES. Arithmetic sequences LESSON LESSON SEQUENCES & SERIES In mathematics you have already had some experience of working with number sequences and number patterns. In grade 11 you learnt about quadratic or second difference sequences.

More information

Given a sequence a 1, a 2,...of numbers, the finite sum a 1 + a 2 + +a n,wheren is an nonnegative integer, can be written

Given a sequence a 1, a 2,...of numbers, the finite sum a 1 + a 2 + +a n,wheren is an nonnegative integer, can be written A Summations When an algorithm contains an iterative control construct such as a while or for loop, its running time can be expressed as the sum of the times spent on each execution of the body of the

More information

80 Wyner PreCalculus Spring 2017

80 Wyner PreCalculus Spring 2017 80 Wyner PreCalculus Spring 2017 CHAPTER NINE: DERIVATIVES Review May 16 Test May 23 Calculus begins with the study of rates of change, called derivatives. For example, the derivative of velocity is acceleration

More information

Chapter 1 Review of Equations and Inequalities

Chapter 1 Review of Equations and Inequalities Chapter 1 Review of Equations and Inequalities Part I Review of Basic Equations Recall that an equation is an expression with an equal sign in the middle. Also recall that, if a question asks you to solve

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

1.1.1 Algebraic Operations

1.1.1 Algebraic Operations 1.1.1 Algebraic Operations We need to learn how our basic algebraic operations interact. When confronted with many operations, we follow the order of operations: Parentheses Exponentials Multiplication

More information

The Derivative of a Function

The Derivative of a Function The Derivative of a Function James K Peterson Department of Biological Sciences and Department of Mathematical Sciences Clemson University March 1, 2017 Outline A Basic Evolutionary Model The Next Generation

More information

d 1 µ 2 Θ = 0. (4.1) consider first the case of m = 0 where there is no azimuthal dependence on the angle φ.

d 1 µ 2 Θ = 0. (4.1) consider first the case of m = 0 where there is no azimuthal dependence on the angle φ. 4 Legendre Functions In order to investigate the solutions of Legendre s differential equation d ( µ ) dθ ] ] + l(l + ) m dµ dµ µ Θ = 0. (4.) consider first the case of m = 0 where there is no azimuthal

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

3.1 Induction: An informal introduction

3.1 Induction: An informal introduction Chapter 3 Induction and Recursion 3.1 Induction: An informal introduction This section is intended as a somewhat informal introduction to The Principle of Mathematical Induction (PMI): a theorem that establishes

More information

1 5 π 2. 5 π 3. 5 π π x. 5 π 4. Figure 1: We need calculus to find the area of the shaded region.

1 5 π 2. 5 π 3. 5 π π x. 5 π 4. Figure 1: We need calculus to find the area of the shaded region. . Area In order to quantify the size of a 2-dimensional object, we use area. Since we measure area in square units, we can think of the area of an object as the number of such squares it fills up. Using

More information

Solving Quadratic & Higher Degree Equations

Solving Quadratic & Higher Degree Equations Chapter 9 Solving Quadratic & Higher Degree Equations Sec 1. Zero Product Property Back in the third grade students were taught when they multiplied a number by zero, the product would be zero. In algebra,

More information

Objectives. Materials

Objectives. Materials Activity 8 Exploring Infinite Series Objectives Identify a geometric series Determine convergence and sum of geometric series Identify a series that satisfies the alternating series test Use a graphing

More information

4.1 Induction: An informal introduction

4.1 Induction: An informal introduction Chapter 4 Induction and Recursion 4.1 Induction: An informal introduction This section is intended as a somewhat informal introduction to The Principle of Mathematical Induction (PMI): a theorem that establishes

More information

Math Lecture 23 Notes

Math Lecture 23 Notes Math 1010 - Lecture 23 Notes Dylan Zwick Fall 2009 In today s lecture we ll expand upon the concept of radicals and radical expressions, and discuss how we can deal with equations involving these radical

More information

1.20 Formulas, Equations, Expressions and Identities

1.20 Formulas, Equations, Expressions and Identities 1.0 Formulas, Equations, Expressions and Identities Collecting terms is equivalent to noting that 4 + 4 + 4 + 4 + 4 + 4 can be written as 6 4; i.e., that multiplication is repeated addition. It s wise

More information

Ch1 Algebra and functions. Ch 2 Sine and Cosine rule. Ch 10 Integration. Ch 9. Ch 3 Exponentials and Logarithms. Trigonometric.

Ch1 Algebra and functions. Ch 2 Sine and Cosine rule. Ch 10 Integration. Ch 9. Ch 3 Exponentials and Logarithms. Trigonometric. Ch1 Algebra and functions Ch 10 Integration Ch 2 Sine and Cosine rule Ch 9 Trigonometric Identities Ch 3 Exponentials and Logarithms C2 Ch 8 Differentiation Ch 4 Coordinate geometry Ch 7 Trigonometric

More information

Some Review Problems for Exam 3: Solutions

Some Review Problems for Exam 3: Solutions Math 3355 Spring 017 Some Review Problems for Exam 3: Solutions I thought I d start by reviewing some counting formulas. Counting the Complement: Given a set U (the universe for the problem), if you want

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

Our first case consists of those sequences, which are obtained by adding a constant number d to obtain subsequent elements:

Our first case consists of those sequences, which are obtained by adding a constant number d to obtain subsequent elements: Week 13 Sequences and Series Many images below are excerpts from the multimedia textbook. You can find them there and in your textbook in sections 7.2 and 7.3. We have encountered the first sequences and

More information

Hi, my name is Dr. Ann Weaver of Argosy University. This WebEx is about something in statistics called z-

Hi, my name is Dr. Ann Weaver of Argosy University. This WebEx is about something in statistics called z- Hi, my name is Dr. Ann Weaver of Argosy University. This WebEx is about something in statistics called z- Scores. I have two purposes for this WebEx, one, I just want to show you how to use z-scores in

More information

Finite Mathematics : A Business Approach

Finite Mathematics : A Business Approach Finite Mathematics : A Business Approach Dr. Brian Travers and Prof. James Lampes Second Edition Cover Art by Stephanie Oxenford Additional Editing by John Gambino Contents What You Should Already Know

More information

Vectors. Vector Practice Problems: Odd-numbered problems from

Vectors. Vector Practice Problems: Odd-numbered problems from Vectors Vector Practice Problems: Odd-numbered problems from 3.1-3.21 After today, you should be able to: Understand vector notation Use basic trigonometry in order to find the x and y components of a

More information

Math Lecture 3 Notes

Math Lecture 3 Notes Math 1010 - Lecture 3 Notes Dylan Zwick Fall 2009 1 Operations with Real Numbers In our last lecture we covered some basic operations with real numbers like addition, subtraction and multiplication. This

More information

Some Review Problems for Exam 3: Solutions

Some Review Problems for Exam 3: Solutions Math 3355 Fall 018 Some Review Problems for Exam 3: Solutions I thought I d start by reviewing some counting formulas. Counting the Complement: Given a set U (the universe for the problem), if you want

More information

Algebra Year 10. Language

Algebra Year 10. Language Algebra Year 10 Introduction In Algebra we do Maths with numbers, but some of those numbers are not known. They are represented with letters, and called unknowns, variables or, most formally, literals.

More information

Table of Contents. 2013, Pearson Education, Inc.

Table of Contents. 2013, Pearson Education, Inc. Table of Contents Chapter 1 What is Number Theory? 1 Chapter Pythagorean Triples 5 Chapter 3 Pythagorean Triples and the Unit Circle 11 Chapter 4 Sums of Higher Powers and Fermat s Last Theorem 16 Chapter

More information

Objectives 1. Understand and use terminology and notation involved in sequences. A number sequence is any list of numbers with a recognizable pattern.

Objectives 1. Understand and use terminology and notation involved in sequences. A number sequence is any list of numbers with a recognizable pattern. 1. Understand and use terminology and notation involved in sequences A number sequence is any list of numbers with a recognizable pattern. The members of a sequence are called terms (or sometimes members).

More information

Area. A(2) = sin(0) π 2 + sin(π/2)π 2 = π For 3 subintervals we will find

Area. A(2) = sin(0) π 2 + sin(π/2)π 2 = π For 3 subintervals we will find Area In order to quantify the size of a -dimensional object, we use area. Since we measure area in square units, we can think of the area of an object as the number of such squares it fills up. Using this

More information

Lecture 10: Powers of Matrices, Difference Equations

Lecture 10: Powers of Matrices, Difference Equations Lecture 10: Powers of Matrices, Difference Equations Difference Equations A difference equation, also sometimes called a recurrence equation is an equation that defines a sequence recursively, i.e. each

More information

Take the Anxiety Out of Word Problems

Take the Anxiety Out of Word Problems Take the Anxiety Out of Word Problems I find that students fear any problem that has words in it. This does not have to be the case. In this chapter, we will practice a strategy for approaching word problems

More information

n=1 ( 2 3 )n (a n ) converges by direct comparison to

n=1 ( 2 3 )n (a n ) converges by direct comparison to . (a) n = a n converges, so we know that a n =. Therefore, for n large enough we know that a n

More information

Lesson 3-2: Solving Linear Systems Algebraically

Lesson 3-2: Solving Linear Systems Algebraically Yesterday we took our first look at solving a linear system. We learned that a linear system is two or more linear equations taken at the same time. Their solution is the point that all the lines have

More information

Basics Quantum Mechanics Prof. Ajoy Ghatak Department of physics Indian Institute of Technology, Delhi

Basics Quantum Mechanics Prof. Ajoy Ghatak Department of physics Indian Institute of Technology, Delhi Basics Quantum Mechanics Prof. Ajoy Ghatak Department of physics Indian Institute of Technology, Delhi Module No. # 03 Linear Harmonic Oscillator-1 Lecture No. # 04 Linear Harmonic Oscillator (Contd.)

More information

Getting Started with Communications Engineering. Rows first, columns second. Remember that. R then C. 1

Getting Started with Communications Engineering. Rows first, columns second. Remember that. R then C. 1 1 Rows first, columns second. Remember that. R then C. 1 A matrix is a set of real or complex numbers arranged in a rectangular array. They can be any size and shape (provided they are rectangular). A

More information

Getting Started with Communications Engineering

Getting Started with Communications Engineering 1 Linear algebra is the algebra of linear equations: the term linear being used in the same sense as in linear functions, such as: which is the equation of a straight line. y ax c (0.1) Of course, if we

More information

Math Circle at FAU 10/27/2018 SOLUTIONS

Math Circle at FAU 10/27/2018 SOLUTIONS Math Circle at FAU 10/27/2018 SOLUTIONS 1. At the grocery store last week, small boxes of facial tissue were priced at 4 boxes for $5. This week they are on sale at 5 boxes for $4. Find the percent decrease

More information

5.9 Representations of Functions as a Power Series

5.9 Representations of Functions as a Power Series 5.9 Representations of Functions as a Power Series Example 5.58. The following geometric series x n + x + x 2 + x 3 + x 4 +... will converge when < x

More information

We are going to discuss what it means for a sequence to converge in three stages: First, we define what it means for a sequence to converge to zero

We are going to discuss what it means for a sequence to converge in three stages: First, we define what it means for a sequence to converge to zero Chapter Limits of Sequences Calculus Student: lim s n = 0 means the s n are getting closer and closer to zero but never gets there. Instructor: ARGHHHHH! Exercise. Think of a better response for the instructor.

More information

Q: How can quantum computers break ecryption?

Q: How can quantum computers break ecryption? Q: How can quantum computers break ecryption? Posted on February 21, 2011 by The Physicist Physicist: What follows is the famous Shor algorithm, which can break any RSA encryption key. The problem: RSA,

More information

Solving with Absolute Value

Solving with Absolute Value Solving with Absolute Value Who knew two little lines could cause so much trouble? Ask someone to solve the equation 3x 2 = 7 and they ll say No problem! Add just two little lines, and ask them to solve

More information

HAMPSHIRE COLLEGE: YOU CAN T GET THERE FROM HERE : WHY YOU CAN T TRISECT AN ANGLE, DOUBLE THE CUBE, OR SQUARE THE CIRCLE. Contents. 1.

HAMPSHIRE COLLEGE: YOU CAN T GET THERE FROM HERE : WHY YOU CAN T TRISECT AN ANGLE, DOUBLE THE CUBE, OR SQUARE THE CIRCLE. Contents. 1. HAMPSHIRE COLLEGE: YOU CAN T GET THERE FROM HERE : WHY YOU CAN T TRISECT AN ANGLE, DOUBLE THE CUBE, OR SQUARE THE CIRCLE RAVI VAKIL Contents 1. Introduction 1 2. Impossibility proofs, and 2 2 3. Real fields

More information

Grade 7/8 Math Circles October 28/29, Series

Grade 7/8 Math Circles October 28/29, Series Faculty of Mathematics Waterloo, Ontario NL 3G1 Centre for Education in Mathematics and Computing Sequence Recap Grade 7/8 Math Circles October 8/9, 014 Series Before starting series lets recap last weeks

More information

No Solution Equations Let s look at the following equation: 2 +3=2 +7

No Solution Equations Let s look at the following equation: 2 +3=2 +7 5.4 Solving Equations with Infinite or No Solutions So far we have looked at equations where there is exactly one solution. It is possible to have more than solution in other types of equations that are

More information

Math 308 Midterm Answers and Comments July 18, Part A. Short answer questions

Math 308 Midterm Answers and Comments July 18, Part A. Short answer questions Math 308 Midterm Answers and Comments July 18, 2011 Part A. Short answer questions (1) Compute the determinant of the matrix a 3 3 1 1 2. 1 a 3 The determinant is 2a 2 12. Comments: Everyone seemed to

More information

2. FUNCTIONS AND ALGEBRA

2. FUNCTIONS AND ALGEBRA 2. FUNCTIONS AND ALGEBRA You might think of this chapter as an icebreaker. Functions are the primary participants in the game of calculus, so before we play the game we ought to get to know a few functions.

More information

MATH 115, SUMMER 2012 LECTURE 12

MATH 115, SUMMER 2012 LECTURE 12 MATH 115, SUMMER 2012 LECTURE 12 JAMES MCIVOR - last time - we used hensel s lemma to go from roots of polynomial equations mod p to roots mod p 2, mod p 3, etc. - from there we can use CRT to construct

More information

1 The distributive law

1 The distributive law THINGS TO KNOW BEFORE GOING INTO DISCRETE MATHEMATICS The distributive law The distributive law is this: a(b + c) = ab + bc This can be generalized to any number of terms between parenthesis; for instance:

More information

2.1 Definition. Let n be a positive integer. An n-dimensional vector is an ordered list of n real numbers.

2.1 Definition. Let n be a positive integer. An n-dimensional vector is an ordered list of n real numbers. 2 VECTORS, POINTS, and LINEAR ALGEBRA. At first glance, vectors seem to be very simple. It is easy enough to draw vector arrows, and the operations (vector addition, dot product, etc.) are also easy to

More information

Chapter One. Quadratics 20 HOURS. Introduction

Chapter One. Quadratics 20 HOURS. Introduction Chapter One Quadratics 0 HOURS Introduction Students will be introduced to the properties of arithmetic and power sequences. They will use common differences between successive terms in a sequence to identify

More information

ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS 1 MATH00030 SEMESTER / Quadratic Equations

ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS 1 MATH00030 SEMESTER / Quadratic Equations ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS 1 MATH00030 SEMESTER 1 018/019 DR ANTHONY BROWN 31 Graphs of Quadratic Functions 3 Quadratic Equations In Chapter we looked at straight lines,

More information

ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS 1 MATH00030 SEMESTER / Lines and Their Equations

ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS 1 MATH00030 SEMESTER / Lines and Their Equations ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS 1 MATH00030 SEMESTER 1 017/018 DR. ANTHONY BROWN. Lines and Their Equations.1. Slope of a Line and its y-intercept. In Euclidean geometry (where

More information

Review (11.1) 1. A sequence is an infinite list of numbers {a n } n=1 = a 1, a 2, a 3, The sequence is said to converge if lim

Review (11.1) 1. A sequence is an infinite list of numbers {a n } n=1 = a 1, a 2, a 3, The sequence is said to converge if lim Announcements: Note that we have taking the sections of Chapter, out of order, doing section. first, and then the rest. Section. is motivation for the rest of the chapter. Do the homework questions from

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

Infinite Limits. Infinite Limits. Infinite Limits. Previously, we discussed the limits of rational functions with the indeterminate form 0/0.

Infinite Limits. Infinite Limits. Infinite Limits. Previously, we discussed the limits of rational functions with the indeterminate form 0/0. Infinite Limits Return to Table of Contents Infinite Limits Infinite Limits Previously, we discussed the limits of rational functions with the indeterminate form 0/0. Now we will consider rational functions

More information

Lecture 2. More Algorithm Analysis, Math and MCSS By: Sarah Buchanan

Lecture 2. More Algorithm Analysis, Math and MCSS By: Sarah Buchanan Lecture 2 More Algorithm Analysis, Math and MCSS By: Sarah Buchanan Announcements Assignment #1 is posted online It is directly related to MCSS which we will be talking about today or Monday. There are

More information

Adding and Subtracting Terms

Adding and Subtracting Terms Adding and Subtracting Terms 1.6 OBJECTIVES 1.6 1. Identify terms and like terms 2. Combine like terms 3. Add algebraic expressions 4. Subtract algebraic expressions To find the perimeter of (or the distance

More information

Direct Proofs. the product of two consecutive integers plus the larger of the two integers

Direct Proofs. the product of two consecutive integers plus the larger of the two integers Direct Proofs A direct proof uses the facts of mathematics and the rules of inference to draw a conclusion. Since direct proofs often start with premises (given information that goes beyond the facts of

More information

The following are generally referred to as the laws or rules of exponents. x a x b = x a+b (5.1) 1 x b a (5.2) (x a ) b = x ab (5.

The following are generally referred to as the laws or rules of exponents. x a x b = x a+b (5.1) 1 x b a (5.2) (x a ) b = x ab (5. Chapter 5 Exponents 5. Exponent Concepts An exponent means repeated multiplication. For instance, 0 6 means 0 0 0 0 0 0, or,000,000. You ve probably noticed that there is a logical progression of operations.

More information

Assignment 16 Assigned Weds Oct 11

Assignment 16 Assigned Weds Oct 11 Assignment 6 Assigned Weds Oct Section 8, Problem 3 a, a 3, a 3 5, a 4 7 Section 8, Problem 4 a, a 3, a 3, a 4 3 Section 8, Problem 9 a, a, a 3, a 4 4, a 5 8, a 6 6, a 7 3, a 8 64, a 9 8, a 0 56 Section

More information

Objectives 1. Understand and use terminology and notation involved in sequences

Objectives 1. Understand and use terminology and notation involved in sequences Go over Exp/Log and Transformations Quizzes 1. Understand and use terminology and notation involved in sequences A number sequence is any list of numbers with a recognizable pattern. The members of a sequence

More information

(x 1 +x 2 )(x 1 x 2 )+(x 2 +x 3 )(x 2 x 3 )+(x 3 +x 1 )(x 3 x 1 ).

(x 1 +x 2 )(x 1 x 2 )+(x 2 +x 3 )(x 2 x 3 )+(x 3 +x 1 )(x 3 x 1 ). CMPSCI611: Verifying Polynomial Identities Lecture 13 Here is a problem that has a polynomial-time randomized solution, but so far no poly-time deterministic solution. Let F be any field and let Q(x 1,...,

More information

Commutative Rings and Fields

Commutative Rings and Fields Commutative Rings and Fields 1-22-2017 Different algebraic systems are used in linear algebra. The most important are commutative rings with identity and fields. Definition. A ring is a set R with two

More information

Chapter 2. Mathematical Reasoning. 2.1 Mathematical Models

Chapter 2. Mathematical Reasoning. 2.1 Mathematical Models Contents Mathematical Reasoning 3.1 Mathematical Models........................... 3. Mathematical Proof............................ 4..1 Structure of Proofs........................ 4.. Direct Method..........................

More information

Operation and Supply Chain Management Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras

Operation and Supply Chain Management Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras Operation and Supply Chain Management Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras Lecture - 3 Forecasting Linear Models, Regression, Holt s, Seasonality

More information

Infinite series, improper integrals, and Taylor series

Infinite series, improper integrals, and Taylor series Chapter 2 Infinite series, improper integrals, and Taylor series 2. Introduction to series In studying calculus, we have explored a variety of functions. Among the most basic are polynomials, i.e. functions

More information

Lesson 3: Using Linear Combinations to Solve a System of Equations

Lesson 3: Using Linear Combinations to Solve a System of Equations Lesson 3: Using Linear Combinations to Solve a System of Equations Steps for Using Linear Combinations to Solve a System of Equations 1. 2. 3. 4. 5. Example 1 Solve the following system using the linear

More information

Algebra 2: Semester 2 Practice Final Unofficial Worked Out Solutions by Earl Whitney

Algebra 2: Semester 2 Practice Final Unofficial Worked Out Solutions by Earl Whitney Algebra 2: Semester 2 Practice Final Unofficial Worked Out Solutions by Earl Whitney 1. The key to this problem is recognizing cubes as factors in the radicands. 24 16 5 2. The key to this problem is recognizing

More information

Properties of Arithmetic

Properties of Arithmetic Excerpt from "Prealgebra" 205 AoPS Inc. 4 6 7 4 5 8 22 23 5 7 0 Arithmetic is being able to count up to twenty without taking o your shoes. Mickey Mouse CHAPTER Properties of Arithmetic. Why Start with

More information

Differential Equations

Differential Equations 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

Linear algebra and differential equations (Math 54): Lecture 10

Linear algebra and differential equations (Math 54): Lecture 10 Linear algebra and differential equations (Math 54): Lecture 10 Vivek Shende February 24, 2016 Hello and welcome to class! As you may have observed, your usual professor isn t here today. He ll be back

More information

STEP Support Programme. Pure STEP 1 Questions

STEP Support Programme. Pure STEP 1 Questions STEP Support Programme Pure STEP 1 Questions 2012 S1 Q4 1 Preparation Find the equation of the tangent to the curve y = x at the point where x = 4. Recall that x means the positive square root. Solve the

More information

Section 20: Arrow Diagrams on the Integers

Section 20: Arrow Diagrams on the Integers Section 0: Arrow Diagrams on the Integers Most of the material we have discussed so far concerns the idea and representations of functions. A function is a relationship between a set of inputs (the leave

More information