MAT265 Calculus for Engineering I

Similar documents
WORKBOOK. MATH 31. CALCULUS AND ANALYTIC GEOMETRY I.

Blue Pelican Calculus First Semester

ter. on Can we get a still better result? Yes, by making the rectangles still smaller. As we make the rectangles smaller and smaller, the

Chapter 2 Derivatives

Learning Objectives for Math 165

Chapter 2: Differentiation

Calculus I Review Solutions

2.1 The derivative. Rates of change. m sec = y f (a + h) f (a)

Limit. Chapter Introduction

MATH 114 Calculus Notes on Chapter 2 (Limits) (pages 60-? in Stewart)

a x a y = a x+y a x a = y ax y (a x ) r = a rx and log a (xy) = log a (x) + log a (y) log a ( x y ) = log a(x) log a (y) log a (x r ) = r log a (x).

DRAFT - Math 101 Lecture Note - Dr. Said Algarni

Chapter 2: Differentiation

Sec 4.1 Limits, Informally. When we calculated f (x), we first started with the difference quotient. f(x + h) f(x) h

KEMATH1 Calculus for Chemistry and Biochemistry Students. Francis Joseph H. Campeña, De La Salle University Manila

MSM120 1M1 First year mathematics for civil engineers Revision notes 4

Math 117: Calculus & Functions II

MAT137 Calculus! Lecture 6

Calculus I. George Voutsadakis 1. LSSU Math 151. Lake Superior State University. 1 Mathematics and Computer Science

Calculus & Analytic Geometry I

1 The Derivative and Differrentiability

Unit IV Derivatives 20 Hours Finish by Christmas

Unit IV Derivatives 20 Hours Finish by Christmas

Chapter 1 Functions and Limits

f(x 0 + h) f(x 0 ) h slope of secant line = m sec

This Week. Professor Christopher Hoffman Math 124

1.5 Inverse Trigonometric Functions

Section 1.4 Tangents and Velocity

1. Use the properties of exponents to simplify the following expression, writing your answer with only positive exponents.

Calculus I. 1. Limits and Continuity

2.2 The derivative as a Function

DRAFT - Math 101 Lecture Note - Dr. Said Algarni

Chapter 1: Limits and Continuity

Topics and Concepts. 1. Limits

2.2 The Limit of a Function

Foundations of Calculus. November 18, 2014

One of the powerful themes in trigonometry is that the entire subject emanates from a very simple idea: locating a point on the unit circle.

Final Exam Review Exercise Set A, Math 1551, Fall 2017

MATH 408N PRACTICE FINAL

1. (16pts) Use the graph of the function to answer the following. Justify your answer if a limit does not exist. lim

Tangent Lines Sec. 2.1, 2.7, & 2.8 (continued)

Chapter P: Preliminaries

Chapter P: Preliminaries

December Exam Summary

AP CALCULUS AB Study Guide for Midterm Exam 2017

Calculus. Weijiu Liu. Department of Mathematics University of Central Arkansas 201 Donaghey Avenue, Conway, AR 72035, USA

Chapter 2: Functions, Limits and Continuity

AP Calculus Summer Packet

= lim. (1 + h) 1 = lim. = lim. = lim = 1 2. lim

ECM Calculus and Geometry. Revision Notes

Math 106 Calculus 1 Topics for first exam

Math 147 Exam II Practice Problems

SOLUTIONS FOR PRACTICE FINAL EXAM

2. Theory of the Derivative

M155 Exam 2 Concept Review

MAT100 OVERVIEW OF CONTENTS AND SAMPLE PROBLEMS

Table of Contents. Module 1

Practice problems from old exams for math 132 William H. Meeks III

5.4 - Quadratic Functions

(e) 2 (f) 2. (c) + (d). Limits at Infinity. 2.5) 9-14,25-34,41-43,46-47,56-57, (c) (d) 2

Calculus: Early Transcendental Functions Lecture Notes for Calculus 101. Feras Awad Mahmoud

Calculus II Lecture Notes

Functions. Remark 1.2 The objective of our course Calculus is to study functions.

Calculus. Contents. Paul Sutcliffe. Office: CM212a.

1. Use the properties of exponents to simplify the following expression, writing your answer with only positive exponents.

Math 111: Calculus. David Perkinson

Math 111D Calculus 1 Exam 2 Practice Problems Fall 2001

m(x) = f(x) + g(x) m (x) = f (x) + g (x) (The Sum Rule) n(x) = f(x) g(x) n (x) = f (x) g (x) (The Difference Rule)

Math 106 Calculus 1 Topics for first exam

MATH 1902: Mathematics for the Physical Sciences I

Welcome to AP Calculus!!!

One-Variable Calculus

Unit #3 : Differentiability, Computing Derivatives

Fall 2016, MA 252, Calculus II, Final Exam Preview Solutions

Finding Limits Analytically

M152: Calculus II Midterm Exam Review

MTH30 Review Sheet. y = g(x) BRONX COMMUNITY COLLEGE of the City University of New York DEPARTMENT OF MATHEMATICS & COMPUTER SCIENCE

Math 2250 Final Exam Practice Problem Solutions. f(x) = ln x x. 1 x. lim. lim. x x = lim. = lim 2

Review Problems for Test 1

1.1 Definition of a Limit. 1.2 Computing Basic Limits. 1.3 Continuity. 1.4 Squeeze Theorem

2.1 The Tangent and Velocity Problems

Unit #3 : Differentiability, Computing Derivatives, Trig Review

Review for Final Exam, MATH , Fall 2010

Section 1.1: A Preview of Calculus When you finish your homework, you should be able to

Solutions to Math 41 Final Exam December 10, 2012

Section 2.1, Section 3.1 Rate of change, Tangents and Derivatives at a point

SOLUTIONS TO MIXED REVIEW

AP Calculus Free-Response Questions 1969-present AB

True or False. Circle T if the statement is always true; otherwise circle F. for all angles θ. T F. 1 sin θ

Free Response Questions Compiled by Kaye Autrey for face-to-face student instruction in the AP Calculus classroom

(x + 3)(x 1) lim(x + 3) = 4. lim. (x 2)( x ) = (x 2)(x + 2) x + 2 x = 4. dt (t2 + 1) = 1 2 (t2 + 1) 1 t. f(x) = lim 3x = 6,

Review for the Final Exam

Math 229 Mock Final Exam Solution

MLC Practice Final Exam

Workbook for Calculus I

TRIGONOMETRY OUTCOMES

Limits and Their Properties

Derivatives and Rates of Change

1 Limits Finding limits graphically. 1.3 Finding limits analytically. Examples 1. f(x) = x3 1. f(x) = f(x) =

Find the indicated derivative. 1) Find y(4) if y = 3 sin x. A) y(4) = 3 cos x B) y(4) = 3 sin x C) y(4) = - 3 cos x D) y(4) = - 3 sin x

Transcription:

MAT65 Calculus for Engineering I Joe Wells April 8, 06 Contents 0 Prerequisites 3 0. Review of Functions..................................... 3 0.. The Definition..................................... 3 0.. Catalog of Essential Functions............................ 3 0..3 Transformations of Functions............................ 4 0..4 Inverse Functions................................... 4 0. Trigonometric Identities................................... 6 0.. The Unit Circle.................................... 7 Functions and Limits 8.3 The Limit of a Function................................... 8.4 Calculating Limits.......................................5 Continuity........................................... 7.6 Limits Involving Infinity................................... 3 Derivatives 7. Derivatives and Rates of Change.............................. 7. The Derivative as a Function................................. 30.3 Basic Differentiation Formulas................................ 34.4 The Product and Quotient Rules.............................. 37.5 The Chain Rule........................................ 4.6 Implicit Differentiation.................................... 44

.7 Related Rates......................................... 47.8 Linear Approximations and Differentials.......................... 5 3 Inverse Functions 57 3. Exponential Functions.................................... 57 3. Inverse Functions and Logarithms.............................. 6 3.. Calculus of Inverse Functions............................ 63 3.. Logarithms...................................... 65 3.3 Derivatives of Logarithmic and Exponential Functions................... 67 3.3. Logarithmic Differentiation............................. 68 3.3. Derivatives of Exponentials............................. 70 3.5 Inverse Trigonometric Functions............................... 7 3.5. Preinaries..................................... 7 3.5. Calculus of Inverse Trigonometric Functions.................... 74 3.6 Indeterminate Forms and L Hospital s Rule......................... 76 3.6. 0/0 and / Indeterminate Forms........................ 76 3.6. 0 and - indeterminate forms....................... 78 3.6.3 0 0,, and 0 indeterminate forms........................ 79 4 Applications of Differentiation 8 4. Minimum and Maximum Values............................... 8 4. The Mean Value Theorem.................................. 86 4.3 Derivatives and the Shapes of Graphs............................ 88 4.3. What Does f Say About f?............................ 88 4.3. What Does f Say About f?............................ 90 4.4 Curve Sketching........................................ 9 4.5 Optimization Problems.................................... 94 4.7 AntiDerivatives........................................ 97 5 Integrals 99 5. Area and Distances...................................... 99 5.. Area in General.................................... 0 5. The Definite Integral..................................... 03

5.3 Evaluating Definite Integrals................................. 09 5.3. Indefinite Integrals.................................. 0 5.4 The Fundamental Theorem of Calculus........................... 3 5.4. Average Value of a Function............................. 5 3

0 Prerequisites 0. Review of Functions 0.. The Definition Definition. A function f is a rule that assigns to each element x in a set A exactly one element, called f(x), in a set B. We write f : A B to formally represent the above. The set A above is called the domain and the set B is called the codomain, if every element in B can be written as f(x) for some x, then we call B the range. There are many important terms associated with functions: Independent Variable: associated with the domain of a function, i.e. the x variable. Dependent Variable: associated with the range of a function, i.e. the f(x) s. Graph of a Function: the set of all points of the form (x, f(x)) where x varies throughout the entire domain. Argument of a Function: the expression on which the function is evaluated. For example: x is the argument of f(x); 7 is the argument of f(7); x 5 45 is the argument of f(x 5 45) 0.. Catalog of Essential Functions. Polynomials: are functions of the form f(x) = a n x n + a n x n + + a x + a 0 The a i s are called the coefficients of the polynomial. The number n is called the degree of the polynomial.. Rational Functions: are functions of the form p(x) where p and q are functions q(x) 5x 3 3 For example: x x + 5 3. Algebraic Functions: are functions constructed using algebraic operations For example: f(x) = x 5 7x + 5; g(x) = x /7 (x ) 4. Exponential Functions: have the form f(x) = b a, where b is a positive real number. Logarithmic functions go hand-in-hand with these. For the following important rules of exponential and logarithmic functions, let b be a positive real number. b x b y = b x+y for all real numbers x and y (b x ) y = b xy log b (xy) = log b (x) + log b (y) for all positive x and y log b (x y ) = y log b (x) for all real numbers y and positive real numbers x 5. Trigonometric Functions: sin(x), cos(x), tan(x) and so on. These are fundamental to many branches of mathematics and engineering. 4

6. Piece-wise Functions: As the name suggests, these are functions comprised of pieces of other functions. For example: sin(x) if x < 0 f(x) = x if 0 x e x if x > 0..3 Transformations of Functions Shifts/Translations: let c > 0. f(x) + c shifts the function f up by c. f(x) c shifts the function f down by c 3. f(x + c) shifts the function f to the left by c 4. f(x c) shifts the function f to the right by c Stretches and Reflections: let c >. cf(x) stretches f vertically by a factor of c. f(x) compresses f vertically by a factor of c c 3. f(cx) compresses f horizontally by a factor of c 4. f( x) stretches f horizontally by a factor of c c 5. f(x) reflects f about the x-axis 6. f( x) reflects f about the y-axis Combinations of Functions:. (f + g)(x) = f(x) + g(x). (f g)(x) = f(x) g(x) 3. (f g)(x) = f(x) g(x) 4. ( f g f(x) )(x) =, on the proper domain g(x) 5. IMPORTANT! (f g)(x) = f(g(x)), a composition of functions 0..4 Inverse Functions Definition. Let f : A B be a function. If there exists a function g : B A so that f g : B B is the identity function for B and g f : A A is the identity function for A, we call g the inverse function of f and denote it f. There may not always be an inverse function for any given f. This brings up the need for the following definitions. Definition. A function f : A B is called one-to-one if for every element b in the set B, there is at most one element a in the set A such that f(a) = b. 5

Definition. A function f : A B is called onto if for every element b in the set B, there is at least one element a in the set A such that f(a) = b. Proposition 0... A function f : A B has an inverse function if and only if f is both one-to-one and onto. If a function does not have an inverse, not all is lost. The trick is to find an interval where f is both one-to-one and onto, then just pretend that the restricted domain and range were the original ones. Basic idea for finding inverses of a function f:. Find an interval where f is one-to-one and onto.. Replace f(x) with a simpler symbol (might I suggest the letter y?). 3. Switch the roles of x and y in the equation. 4. Solve the above equation for y. 5. Replace the symbol y with f (x). 6

0. Trigonometric Identities Trigonometric Functions θ c a b From the right triangle pictured above, we have the following function definitions Half-Angle Formulas ( ) θ cos(θ) sin = ± ( ) θ + cos(θ) cos = ± ( ) θ cos(θ) tan = ± + cos(θ) sin(θ) = b c cos(θ) = a c tan(θ) = b a csc(θ) = c b sec(θ) = c a cot(θ) = a b Product-to-Sum Formulas Angle Sum/Difference Formulas cos(α ± β) = cos α cos β sin α sin β sin(α ± β) = sin α cos β ± cos α sin β tan α ± tan β tan(α ± β) = tan α tan β sin α sin β = [cos(α β) cos(α + β)] cos α cos β = [cos(α β) + cos(α + β)] sin α cos β = [sin(α + β) + sin(α β)] cos α sin β = [sin(α + β) sin(α β)] Double-Angle Formulas sin(θ) = sin θ cos θ cos(θ) = cos θ sin θ tan(θ) = tan θ tan θ Power Reducing Formulas sin θ = cos(θ) cos θ = + cos(θ) tan θ = cos(θ) + cos(θ) Sum-to-Product Formulas ( ) ( ) α + β α β sin α + sin β = sin cos ( ) ( ) α β α + β sin α sin β = sin cos ( ) ( ) α + β α β cos α + cos β = cos cos ( ) ( ) α + β α β cos α cos β = sin sin 7

0.. The Unit Circle Points on the unit circle are given by (x, y) = (cos θ, sin θ). The most important angles to know are listed below, along with the relevant coordinates on the unit circle. To remember this most efficiently, it really suffices just to remember the first quadrant as there is plenty of symmetry. ( ( ) 3,, ( ) 5π 6, 3 3π 4 ) π 3 35 0 (0, ) π 90 60 π 3 45 (, ) 3 π 4 (, π 6 ) ( ) 3, 50 30 (, 0) π 80 0 or 360 0π or π (, 0) 0 330 ( ) 3, ( 7π 6 ), ( 5π 4, 3 ) 5 40 4π 3 70 300 3π (0, ) 35 5π 3 7π 4 π 6 ( ), ( ) 3, ( ) 3, 8

Functions and Limits.3 The Limit of a Function Definition. Let f be a function and suppose that f(x) is defined for all x very near the number a. If we can pick x-values so that f(x) is arbitrarily close to some number L when x sufficiently close to a (when both x < a and x > a), then we write f(x) = L x a and say the it of f(x), as x approaches a, is L. Remark. Notice that the definition does not require that f(x) be defined when x = a. Notice that the it also requires that we can approach from either side of a to get the same L value. Example.3.. Using a table of values, guess the it of the function f(x) = x 6 x + 4 as x 4. x < 4 f(x) 4. 8. 4.0 8.0 4.00 8.00 4.000 8.000 4.0000 8.0000 x > 4 f(x) 3.9 7.9 3.99 7.99 3.999 7.999 3.9999 7.9999 3.99999 7.99999 Limit: 8 Example.3.. Let g be the function given by x 6 if x 4, g(x) = x + 4 0 if x = 4. Use a graph to determine x 4 g(x). 8 4 4 Limit: 8 8 9

Remark. This last example demonstrates that, even if f(a) is defined, x a f(x) is independent of the function s value at a. ( π Example.3.3. Consider the function f(x) = cos. Using a table of values, guess the it x) f(x). x 0 x < 0 f(x) 0.05 0.0 0.005 0.00 0.0005 x > 0 f(x) 0.05 0.0 0.005 0.00 0.0005 Limit:? Now look at the graph of f below. Notice that the output doesn t just settle on, but rather oscillates rapidly at x 0. Since f(x) never actually settles on a number at all (it hits every value between and infinitely many times), we have that the it does not exist. This is one of the pitfalls that we can run into if we just use the calculator to guess and check what its may be. Example.3.4. Using a table of values, determine the it, if it exists. x (x ) x < f(x).9 00.99 0 4.999 0 6.9999 0 8 x > f(x) 3. 00.0 0 4.00 0 4.000 0 8 Limit: Does Not Exist 0

Remark. is not a real number, so the above it does not exist. However, we will discuss these situations more in a future lecture. Definition. Let f be a function and suppose that f(x) is defined for all x very near the number a with x < a. If we can pick x-values so that f(x) is arbitrarily close to some number L when x sufficiently close to a, then we write f(x) = L x a and say the it of f(x), as x approaches a from the left, is L. Similarly, if instead requiring that x > a, we write f(x) = L x a + and say the it of f(x), as x approaches a from the right, is L. Example.3.5. The Heaviside function is the function is given by { 0 if x < 0, H(x) = if x. Use a graph to determine the it of H(x) as x 0. Limit: Does Not Exist The Heaviside function helps to motivate the following result. Proposition.3.6. Given a function f and a real number a, x a f(x) = L if and only if both f(x) = L and x a f(x) = L. x a +

You will not be expected to use it or memorize it in this course, but I think it s good to have seen the formal definition of a it. As I mentioned on the first day - this definition right here came 50 years after calculus had been invented and is what allowed mathematicians to make Newton s and Leibniz s ideas rigorous. Definition. Let f be a function defined on an open interval containing a, except possibly at a itself, and let L be a real number. Then we say f(x) = L x a if for every ε > 0 there exists δ > 0 such that if 0 < x a < δ then f(x) L < ε. In words, this definition says that, given any small vertical ε-sized window, we can find some horizontal δ-sized window containing the line x = a so that the entire graph of the function of f in the horizontal window also sits inside the vertical window. Pictorially, a δ a a+δ L ε L L+ε Thinking briefly about the graph of f(x) =, with this definition it s clear why the function (x ) has no it as x - no matter what vertical window we set, there s always some part of the graph of f near that will sit outside of that vertical window.

.4 Calculating Limits Theorem.4. (Algebraic Laws of Limits). Let c be a constant and let f and g be functions such that the its f(x) and g(x) x a x a exist. We have the following algebraic rules for its:. x a [f(x) + g(x)] x a f(x) + x a g(x). [f(x) g(x)] f(x) g(x) x a x a x a [ ] 3. [cf(x)] = c f(x) x a x a 4. x a [f(x) g(x)] = [ ] [ f(x) x a 5. If x a g(x) 0, then x a [ f(x) g(x) ] g(x) x a ] x a f(x) x a g(x) [ ] n 6. If n is a positive integer, then [f(x)] n f(x) x a x a 7. x a c = c 8. x a x = a 9. If n is a positive integer, then x a x n = a n 0. If n is a positive integer, then x a n x = n a [If n is even, we assume a > 0.]. If n is a positive integer, then x a n f(x) = n x a f(x) [If n is even, we assume x a f(x) > 0.] Example.4.. Evaluate the following it and justify each step: x (4x + 3). x (4x + 3) 4x + 3 (By # ) x [ ] x = 4 x x + 3 (By # 3) [ x = 4 + 3 (By # 7) x x ] = 4() + 3 (By # 9) = 9 3

x + x + Example.4.3. Evaluate the following it and justify each step:. x x + x + x + x x + x (x + x + ) x (x + ) x x + x x + x ) x x + x x x + x x + ) x x + = () + () + ) () + (By # 5) (By # ) (By # 7) (By # 9) = 8 3. Proposition.4.4 (Direct Substitution Property). If f is a polynomial or rational function and a is in the domain of f, then x a f(x) = f(a). Remark. The trigonometric functions also satisfy this property, as do exponential functions. As we ll see, there are many general types of functions with this property. Example.4.5. Find x 4 f(x) where f(x) = x 6 x + 4. Note that for its, we only need x to be arbitrarily close to 4 and not actually equal to it. This means that x 4, i.e., that x + 4 0. x 6 x 4 x + 4 (x + 4)(x 4) x 4 x + 4 (x 4) x 4 = 8. This shows us that f behaves exactly like the function g(x) = x 4 everywhere except at x = 4. Proposition.4.6. If f(x) = g(x) when x a, then, provided the it exists, x a f(x) = g(x) 4

Example.4.7. Find t 0 t +. t Once again, with its, we only care that t get arbitrarily close to 0. Since t 0, ( ) t + t + t + + t 0 t t 0 t t + + (t + ) t 0 t 0 t( t + + ) t t( t + + ) t 0 t + + = 0 + + =. Example.4.8. Find t 0 t. First recall that t = { t if t 0 t if t < 0. We have to use this piecewise definition of t and take its from the left and right, because we don t have a rule that says what to do with absolute values. and t 0 t 0 t 0 t t (since t < 0) = 0 t 0 t t (since t > 0) + + = 0 since t t = 0, we must have that t 0 t 0 + t = 0. t 0 Theorem.4.9. If f(x) g(x) when x is near a (except possibly at a) and the its of f and g both exist as x approaches a, then f(x) g(x) x a x a 5

Theorem.4.0 (The Squeeze Theorem*). If f(x) g(x) h(x) when x is near a (except possibly at a) and f(x) h(x) = L, then x a x a ( ) Example.4.. Show that x sin = 0. x 0 x g(x) = L. x a First recall that the range of sin(t) is [, ], so sin(t) for all t. So sin(x) x x sin(x) x (since x 0) Since x 0 x x 0 x = 0, by the Squeeze theorem, we have that x 0 x sin(x) = 0. The following result uses the Squeeze Theorem, but the proof is a bit geometric and round-about (although you can read it in the book). Instead, we ll accept it as fact for now and we will provide a slicker proof later. Fact. x 0 sin(x) x = tan(x) Example.4.. Find. x 0 x Recall that tan(x) = sin(x) cos(x). Then tan(x) sin(x) x 0 x x 0 x cos(x) ( ) ( ) sin(x) x 0 x cos(x) ( ) ( ) sin(x) x 0 x x 0 cos(x) = ()() = *In some languages, like German and Russian, the Squeeze Theorem is also known as the Two Policemen (and a Drunk) Theorem. 6

3 sin(4x) Example.4.3. Find. x 0 5x 3 sin(4x) x 0 5x ( ) 3 sin(4x) 4 x 0 5x 4 ( ) sin(4x) x 0 5 4x = ( ) sin(4x) 5 x 0 4x We make the substitution t = 4x. Then as x 0, t 0, so we get = ( ) sin(t) 5 t 0 t = 5 () = 5. 7

.5 Continuity Definition. A function f is continuous at a if x a f(x) = f(a). Remark. The definition above implicitly requires the following three things if f is continuous at a: x a f(x) exists f(a) exists The two values agree. Intuitively, it means that we can draw the graph of f (near a) without having to lift the pencil off of the page. Definition. If f(x) is defined for all x near a but f is not continuous at a, we say that f is discontinuous at a, or alternatively that f has a discontinuity at a. All discontinuities are not created equal. Example.5.. Where is the following function discontinuous? Graph the function. f(t) = t 9 t 3 6 3 Discontinuity: t = 6 3 3 8

Example.5.. Where is the following function discontinuous? Graph the function. f(x) = (x ) Discontinuity: x = Example.5.3. Where is the following function discontinuous? Graph the function. f(x) = x This function is called the floor function. It rounds a number down to the nearest integer. Discontinuities: x = n, for every integer n Definition. Let f be a function that is discontinuous at a. We say that a is a removable discontinuity if we can find a function g such that g is continuous at a and f(x) = g(x) for all x a. [See Example.5.] We say that a is an infinite discontinuity if ± ). [See Example.5.] x a x a f(x) or f(x) are unbounded (i.e. go to + We say that a is a jump discontinuity if f(x) f(x) when both one-sided its exist. x a x a + [See Example.5.3] 9

Theorem.5.4 (Algebraic Laws of Continuous Functions). Let c be some constant and let f and g be functions. Suppose that f and g are continuous at a. Then each of the following functions are continuous at a:. f + g, where (f + g)(x) = f(x) + g(x). f g, where (f g)(x) = f(x) g(x) 3. cf, where (cf)(x) = cf(x) 4. fg, where (fg)(x) = f(x)g(x) 5. f g if g(a) 0, where ( f g ) (x) = f(x) g(x) We will prove that fg is continuous at a, but the rest all follow similarly and are left as an exercise to the reader. Proof. Since f and g are both continuous at a, we have that f(x) = f(a) and g(x) = g(a). x a x a Since these its exist, we can apply our algebraic laws of its to get and so fg is continuous at a. x a (fg)(x) [f(x)g(x)] x a [ ] [ ] f(x) g(x) x a x a = f(a)g(a) = (fg)(a), 0

Proposition.5.5. Every polynomial p(x) = c n x n + + c x + c 0 is continuous on (, ). Proof. Certainly p(a) = c n a n + + c a + c 0 is defined for every real number a. So, using our algebraic it laws, we get p(x) (c nx n + + c x + c 0 ) x a x a (c n x n ) + + (c x) + c 0 x a ) x a ) x a = c n ( x a xn + + c ( x + c 0 x a x a = c n a n + + c a + c 0 = p(a), and therefore p(x) is continuous at every real number a. Corollary.5.6. Every rational function f(x) = p(x), where p and q are polynomials, is continuous q(x) on its domain. Fact. Root functions, trigonometric functions, exponential functions, and logarithmic functions are all continuous on their domains. The following theorem demonstrates an important fact about the interplay between its and continuous functions. ( ) Theorem.5.7. If f is continuous at b and g(x) = b, then f(g(x)) = f g(x) x a x a x a Proof. See Appendix D.

Proposition.5.8. If g is continuous at a and f is continuous at g(a), then the composite function f g given by (f g)(x) = f(g(x)) is continuous at a. Proof. Since g is continuous at a, g(x) = g(a). x a Since f is continuous at g(a), then by Theorem.5.7 and therefore f g is continuous at a. x a (f g)(x) f(g(x)) x a ( ) = f g(x) x a = f(g(a)) = (f g)(a), Definition. Let f be a function. f is continuous from the left at a if f(x) = f(a) and x a is continuous from the right at a if f(x) = f(a). f is continuous on an interval if it is x a + continuous at every point in that interval (here we assume that it is only continuous from the left/right at the endpoints of the interval, if they are included). Remark. If we say f is continuous without any further qualification, in this class we will assume that f is continuous on (, ). Example.5.9. The floor function from Example.5.3 is continuous from the right, but not from the left. To see this, let a = n for any integer n. We then have that x n x = n n, so at each n, x is not continuous from the left. However, so at each n, x is continuous from the right. x n + x = n = n,

Theorem.5.0 (Intermediate Value Theorem). Suppose that f is continuous on the closed interval [a, b] and let N be any number between f(a) and f(b), where f(a) f(b). Then there exists a number c in the open interval (a, b) such that f(c) = N. Although the proof of this theorem is beyond the scope of the course, we can demonstrate with a graph below why it intuitively makes sense. f(a) a c b N f(b) Another way to think about it is to ask the following question (incredulously). If f is continuous, how can we possibly draw its graph without crossing the line y = N? Example.5.. Show that the polynomial p(x) = 5x 5 + 7x 4 8x 3 has a root between 0 and. Recall that a root of a polynomial is a number c such that p(c) = 0, and corresponds to an x-intercept of the graph of p. 3 c 0.5 Since p(x) is continuous, p(0) =, and p() = 3, by the Intermediate Value Theorem there must exist some real number 0 < c < such that p(c) = 0. 3

.6 Limits Involving Infinity We saw previously that did not exist, as the function grew unbounded as x. Similarly, (x ) does not exist, but the graph is different - rather than growing positively unbounded, x (x ) this functions becomes negatively unbounded. Just saying that a it does not exist does not really capture the behavior of the graph. So, to emphasize the difference, we write x x = and (x ) x (x ) =. Now, is not a real number so we re not contradicting our statement that the it does not exist. This is just a slight abuse of notation. Remark. This same notation can be used for its from the left and its from the right also. Definition. The vertical line x = a is called a vertical asymptote for the curve y = f(x) if at least one of the following is true: f(x) = x a f(x) = x a f(x) = x a f(x) = x a f(x) = x a + f(x) =. x a + Example.6.. Let f(t) =. Find f(t) and f(t). List any vertical asymptotes of the t t t + graph of f(t). Notice that f(t) < 0 for t <, and since the denominator is getting smaller and smaller as t approaches from the left, we have that f(t) =. t Similarly, f(t) > 0 for t >, and since the denominator is getting smaller and smaller as t approaches from the right, we have that f(t) =. t + Indeed, f(t) has only a single discontinuity at t =, so x = is the only vertical asymptote. Example.6.. Determine all vertical asymptotes of the curve y = csc(x). Recall that csc(x) =. Recall also that sin(x) = 0 when x = nπ for any integer n. The behavior of the left and right sin(x) its is different depending on whether n is even or odd. Notice that csc(x) is undefined whenever sin(x), i.e., whenever x = nπ for any integers n. By a similar argument as in Example.6., we see that we have vertical asymptotes at x = nπ, for all integers n. 4

Example.6.3. Graph the function f(x) = e x +. What do you notice about about f(x) as x gets arbitrarily large? As x becomes larger and larger, f(x) gets closer and closer to. Indeed, we can get arbitrarily close to by choosing sufficiently large x. So, we write f(x) =. x Remark. Because all real numbers are less than infinity, we can only ever really approach from the left. Similarly, we can only ever really approach from the right. We do not use the from the left or from the right it notation when looking at x ±. Definition. The horizontal line y = L is a horizontal asymptote for the curve y = f(x) if either Example.6.4. Find x x. Find x x. f(x) = L or f(x) = L. x x Notice that as x tends toward, x becomes positively smaller and smaller, hence x x = 0. Similarly, as x tends toward, x becomes negatively smaller and smaller, hence x x = 0. Proposition.6.5. x = 0 and xn x x n = 0 Proof. The proof follows from the previous example and the product of its property. 5

Example.6.6. Find any horizontal asymptotes for the function f(x) = 8x3 + x + 6x 3 47. To find the horizontal asymptotes, we must take its as x ±. 8x 3 + x + x 6x 3 47 x ( ) 3 8 + + x x 3 x x ( ) 3 6 47 x 3 8 + + x x 3 x 6 47 x 3 = 8 + 0 + 0 6 0 = 8 6 =. By a similar argument, we have x f(x) =, hence we have a single horizontal asymptote y =. The technique applied in this example proves the following proposition. Proposition.6.7. Consider the rational function f(x) = a nx n + + a x + a 0 b m x m + + b x + b 0, where m, n are positive integers, a 0,..., a n, b 0,..., b m are real numbers, and a n, b m are nonzero. If n > m, then f has no horizontal asymptotes. If n = m, then f has one horizontal asymptote: y = an b m. If n < m, then f has one horizontal asymptote: y = 0. Example.6.8. Find all horizontal asymptotes of the function f(x) = 3x + 7x +. 5x We ll use an alternative definition of the absolute value, x = x, then appeal to the piecewise definition. 3x + 7x + x ( 3 + 7x + ) x x 5x x x ( ) 5 x x 3 + 7 + x x x x ( ) 5 x 3 + 7 + x x x 5 (since x = x for x < 0) x 3 + 0 + 0 x 5 0 3 = 5, 3. So we have two horizontal asymp- 5 and a similar argument shows us that x totes: x = 3 and x = 3. 5 5 3x + 7x + 5x 6 =

Example.6.9. Find x cos ( x By Proposition.6.5, we have that ). and so by Theorem.5.7, we have that ( ) cos x x x x = 0 ( = cos x = cos(0) =. ) x Example.6.0. Find x cos(x) if it exists. Notice that as x tends toward, cos(x) achieves every value in the interval [, ] infinitely many times. As such, cos(x) never tends toward any single real number and the it does not exist. Given a function f, the following notation indicates that the value f(x) grows without bound (positively or negatively) as x or x : f(x) = x f(x) = x f(x) = x f(x) = x Again, we re not saying that is a number or that f(x) has a horizontal asymptote y =. This notation is merely suggestive of the behavior of the graph. Remark. Although we re throwing around all over the place, we have to remember to exercise caution; we cannot treat it like a real number and/or blindly apply our algebraic it laws as though it were. Example.6.. Consider f(x) = x 3 x, and suppose we want to find x f(x). If we could apply the algebraic laws of its, we would have x x3 x x 3 x =. x x But is undefined. You may be tempted to make it 0, but then this would disagree with the graph of f(x). Instead, we can write x x3 x x (x ) = x as both x and x grow arbitrarily large as x. 7

Derivatives. Derivatives and Rates of Change Definition. Given a function f defined on an interval [a, b], the average rate of change from x = a to x = b is f(a) f(b). a b Remark. The average rate of change is the slope of the line connecting the two points (a, f(a)) and (b, f(b)). Example... The function s(t) = 6t + 3t, [0, ], represents the vertical height in feet (as a function of time) of a dropped rubber ball during one bounce. What is the average velocity of the ball from t = 0 s to t = s? How about from t = 0.5 s to t = s? From t = 0.9 s to t = s? From t = 0.99 s to t = s? Conjecture about the instantaneous vertical velocity of the ball at t = s. Average Velocity on [0, ] = Average Velocity on [0.5, ] = Average Velocity on [0.9, ] = Average Velocity on [0.99, ] = s(0) s() = 6 ft/s 0 s(0.5) s() = 8 ft/s 0 s(0.9) s() =.6 ft/s 0 s(0.99) s() 0.006 ft/s 0 We conjecture that the instantaneous vertical velocity of the ball at t = s is 0 ft/s. Indeed, this makes sense as t = corresponds to the vertex of the parabola y = s(t), which is exactly when the ball stops moving upward and starts moving back downward. Definition. Given a function f defined on an interval [a, b], the instantaneous rate of change at x = a is x a f(x) f(a). x a Remark. The instantaneous rate of change tells us the slope of the tangent line (to the curve y = f(x)) at the point (a, f(a)). Example... Find the equation of the line tangent to the curve y = x at the point (3, 9). x + 3 x 3 x 3 x 3 (x 3)(x + 3) x 3 x 3 (x + 3) = (3 + 3) = 6. 8

Using the point-slope form of a line with slope 6 passing through the point (3, 9), we have y + 9 = 6(x 3) y = 6x 7 is the equation of the tangent line we wanted. Definition. The derivative of a function f at a number a, denoted f (a), is given by provided the it exists. f f(x) f(a) (a). x a x a By making the substitution h = x a, we get the following equivalent definition: Definition. The derivative of a function f at a number a, denoted f (a), is given by provided the it exists. f f(a + h) f(a) (a). h 0 h Remark. Here the h represents the distance away from the point a. For reasons that we will see in the next chapter, this latter definition is the more common of the two definitions of a derivative at a point. Example..3. Let g(x) = x 4. Find g () and g ( 3). We ll use the first definition to find g () and the second definition to find g ( 3). ( g () 4) ( 4) x x x x x ( x ) x ) ( x x x (x ) x x(x ) x x = 9

and g ( 3) h 0 h 0 h 0 h 0 ( 4) ( 4) 3+h 3 h ) ( + 3+h 3 h ( (3)+( 3+h) 3( 3+h) h h h( 9 + h) h 0 9 + h = 9. ) Example..4. Find f (a) for the function f(x) = 3x. [Here we are assuming that a < 3.] Using the definition of the derivative at a point a, we have 3(a + h) 3a f (a) h 0 h h 0 3(a + h) 3a [ 3(a + h)] [ 3a] ( h 0 ) h 3(a + h) + 3a h 0 h 3h ( ) h 3(a + h) + 3a 3 h 0 3(a + h) + 3a 3 = 3a. ( ) 3(a + h) + 3a 3(a + h) + 3a 30

. The Derivative as a Function Definition. Given a function f, the derivative of f is defined to be the function provided the it exists. f f(x + h) f(x) (x), h 0 h The derivative is a function that tells you the slope of the tangent line at every point along the curve. In a physical system, the first derivative of the position function is the velocity function. Remark. There are several equivalent notations for the derivative of y = f(x). They are f (x) = y = dy dx = df dx = d dx f(x) = Df(x) = D xf(x), and we will be using them (notably the first four) interchangeably. Example... Let f(x) = x +. Find the derivative df dx. df (x + h) + x + dx h 0 h (x + h) + x + h 0 (x + h + ) (x + ) h 0 h( (x + h) + + x + ) h h 0 h( (x + h) + + x + ) h 0 (x + h) + + x + = x +. h ( ) (x + h) + + x + (x + h) + + x + Definition. A function f is differentiable at a if f (a) exists. It is differentiable on an open interval (a, b) if it is differentiable at every number in the interval. Example... Where is f(x) = x differentiable? [Hint: consider separately the cases when x < 0, x = 0, x > 0, and also the its as h 0 + and h 0.] It s up to the reader to prove that f (x) exists when x 0. The interesting case happens when x = 0. If f (0) exists, the it (in the definition of the derivative) must exist. Examining the left and right its, we see that and x 0 x 0 x 0 x x 0 x = x 0 x 0 + x 0 x x 0 + x =, so since the its do not agree, f (0) does not exist and thus f is differentiable on (, 0) (0, ). 3

Below is a graph of f(x) = x. Notice what the graph of the function looks like at the single point of non-differentiability. This previous example tells us that functions with cusps are not differentiable at these cusps. The following result tells us another way in which a function can fail to be differentiable at a point. Theorem..3. If f is differentiable at a, then f is continuous at a. Proof. The proof of this result is an ε-δ argument that we won t go into. Heuristically, it comes down to the fact that the numerator (in the definition of a derivative at a point) implies that f(x) = f(a); x a without this, the it (in the definition of a derivative at a point) simply would not exist. Corollary..4. If f is discontinuous at a point, f is not differentiable at that point. Example..5. Where is f(x) = { x + 7 if x < x if x differentiable? As we saw in class, if we naïvely took the left and right its, we might be inclined to say that f is differentiable at as f(x) f() x x x + f(x) f() x However, f(x) is clearly discontinuous at x =, Corollary..4 tells us that f is not differentiable at x =. For the case when x <, we have f(x + h) f(x) h 0 h =. h 0 [(x + h) + 7] [x + 7] h so f is differentiable on (, ). Also, when x >, we have f(x + h) f(x) h 0 h h 0 (x + h) x h = x, so f is differentiable on (, ) as well. Therefore f is differentiable on (, ) (, ). =, 3

There is another way that we can tell graphically if a function is differentiable at a point. If the tangent line is vertical, this corresponds to a derivative that would be or (which means the derivative does not exist). Example..6. Graph the function f(x) = 3 x. Where, if anywhere, does f fail to be differentiable? Using the definition of the derivative, check your answer. It looks like there might be a problem at x = 0. Indeed f (0) x 0 x 0 3 x 3 0 x 0 3 x x = Does Not Exist. x/3 x 0 So f(x) = 3 x is differentiable on (, 0) (0, ). Definition. The second derivative of f is the function f = (f ). It is the derivative of the derivative f. In Leibniz notation, we write d f dx or d y dx. The third derivative of f is the function f = (f ). It is the derivative of the second derivative f. In Leibniz notation, we write d3 f dx or d3 y 3 dx. 3 The n th derivative of f is the function f (n) = (f (n ) ). It is the derivative of the (n ) st derivative f (n ). In Leibniz notation, we write dn f dx or dn y n dx. n Remark. In a physical system, the first derivative of the position function is the velocity function. The second derivative of the position function is the acceleration function. The third derivative is the jerk function. The fourth derivative is the snap function. The fifth derivative is the crackle function. The sixth derivative is the pop function. 33

Example..7. Find the fourth derivative f (4) (t) of the function f(t) = t 4. First we find f (t): Now we find f (t): Then we find f (t): Finally we find f (4) (t): f (t) h 0 f(t + h) f(t) h f (t) h 0 f (t + h) f (t) h f (t) h 0 f (t + h) f (t) h f (4) (t) h 0 f (t + h) f (t) h h 0 (t + h) 4 t 4 h h 0 4t 3 + 6t h + 4th 3 + h 4 h h 0 4t 3 + 6t h + 4th t + h 3 = 4t 3. h 0 4(t + h) 3 + 4t 3 h h 0 t h + th h h 0 t + th = t. (t + h) t h 0 h th h 0 h t h 0 = t. h 0 (t + h) t h h h 0 =. h 0 h 34

.3 Basic Differentiation Formulas As we saw previously, finding derivatives by taking its is an absolute nightmare. Thankfully, there are some general patterns that arise that will make finding derivatives much faster for us. Theorem.3. (Derivative of a Constant). Let c be any real number. Then d [c] = 0. dx Proof. The proof is left as a very simple exercise. Just use the it definition of a derivative. Theorem.3. (Power Rule for Derivatives). Let n be any real number. Then d dx [xn ] = nx n. We can see from Example..7 that this seems to be true (and indeed it is, I promise). When n is a nonnegative integer, the proof is again straightforward (although clunky given that you have to expand the binomial (x + h) n ). Theorem.3.3 (Constant Multiple Rule for Derivatives). Let c be any real number and f(x) any function. Then d dx [c f(x)] = c d dx [f(x)]. Proof. The proof of this result follows from the constant multiple rule of its. Theorem.3.4 (Sum/Difference Rule for Derivatives). If f(x) and g(x) are both differentiable, then d d [f(x) ± g(x)] = dx dx [f(x)] ± d dx [g(x)]. Proof. The proof of this result follows from the sum/difference rules for its. Remark. Note that the product and quotient rules for derivatives do not behave as nicely as you might expect. We ll address these in a future lecture. With these new rules, it now becomes very quick to find its of things like polynomials and rational functions. 35

Example.3.5. Find df dx where f(x) = x3 7x + 8x +. df dx = d [ x 3 7x + 8x + ] dx = d [ ] x 3 d [ ] 7x + d dx dx dx [8x] + d dx [] = d [ ] x 3 7 d [ ] x + 8 d dx dx dx [x] + d dx [] (sum/difference rule) (constant multiple rule) = 3x 30 54x + 8 (power rule) Example.3.6. Find dg dt where g(t) = t4 + t 7 + 3t 3 + t 5. dg dt = d dt [ ] t 4 + t 7 + 3t 3 + t 5 = d [ t 9 + t + 3t + t 5] dt = d [ ] t 9 + d [ ] t + d [ ] 3t + d [ ] t 5 dt dt dt dt = 9t 8 + 4t 6t 3 5t 6 Example.3.7. Given f(x) = x 3 6x + x 6, sketch a graph f and f. First we find f. By the power rule and sum/difference rules, we have that f (x) = 3x x +. Notice the relationship between points with horizontal tangents in f(x) correspond to x-intercepts of f (x). We also have a correspondence between positive (resp. negative) slopes of tangent lines of f(x) with positive (resp. negative) y-values of f (x). This means that, given a graph of a function and its derivative, we should be able to determine which is which. 5 y=f(x) 5 y=f (x).5.5 3 4 3 4.5.5 5 5 36

Proposition.3.8 (Derivative of Sine/Cosine). d dx [sin(x)] = cos(x) and d [cos(x)] = sin(x). dx Proof. Recall from Section.4 that sin(h) h 0 h = and h 0 cos(h) h = 0. d sin(x + h) sin(x) [sin(x)] dx h 0 h [sin(x) cos(h) + sin(h) cos(x)] sin(x) h 0 h sin(x)[cos(h) ] + sin(h) cos(x) h 0 h sin(x) cos(h) sin(h) + cos(x) h 0 h h 0 h = sin(x)(0) + () cos(x) = cos(x). (angle sum/difference identity) And similarly, d cos(x + h) cos(x) [cos(x)] dx h 0 h [cos(x) cos(h) sin(x) sin(h)] cos(x) h 0 h cos(x)[cos(h) ] sin(h) sin(x) h 0 h cos(x) cos(h) sin(h) sin(x) h 0 h h 0 h = cos(x)(0) () sin(x) = sin(x). (angle sum/difference identity) 37

.4 The Product and Quotient Rules From last time we had some nice properties of derivatives - we could differentiate across scalar multiplication and addition (formally, we say that d is a linear operator ). However, as we will see, dx derivatives of products and quotients do not behave quite as obviously as derivatives of sums and differences. Theorem.4. (Product Rule). Let f and g be differentiable functions. Then d dx [f(x)g(x)] = f (x)g(x) + f(x)g (x). Proof. Again, using the it definition of the derivative, we have d dx [f(x)g(x)] f(x + h)g(x + h) f(x)g(x) h 0 h f(x + h)g(x + h) f(x)g(x + h) + f(x)g(x + h) f(x)g(x) h 0 h [f(x + h) f(x)]g(x + h) f(x)[g(x + h) g(x)] + [ h 0 h ] h 0 h f(x + h) f(x) [ ] [ ] [ h 0 h g(x + h) + f(x) h 0 h 0 h 0 = f (x)g(x) + f(x)g (x). ] g(x + h) g(x) h Example.4.. Let h(x) = (x 3 + 7) (x 5 x). Find h (x) using the product rule. Check your answer by first expanding out the function (FOIL) and then taking the derivative. We first identify two functions f(x) = x 3 +7 and g(x) = x 5 x = x 5x / so that h(x) = f(x)g(x). Now, and f (x) = d dx [x3 + 7] = d dx [x3 ] + d dx [7] = [3x ] + 0 = 6x, g (x) = d dx [x 5x/ ] = d dx [x] 5 d [ ] dx [x/ ] = 5 x / = 5 x /. Thus, by the product rule, h (x) = 6x ( x 5x /) + ( x 3 + 7 ) ( 5 x / ). 38

Unsurprisingly, the quotients of differentiable functions do not behave as obviously as we might like them to either. Theorem.4.3 (Quotient Rule). Let f and g be differentiable functions. g(x) 0, [ ] d f(x) = f (x)g(x) f(x)g (x). dx g(x) [g(x)] Then for any x where Proof. The proof of this theorem uses a similar trick as in the proof of the product rule: add f(x)g(x) f(x)g(x) in the numerator, then split up the its. It is left as an exercise to the reader. Example.4.4. Let s(t) = 5 t 3 9. Find s (). Let f(t) = 5 and g(t) = t 3 9 so that s(t) = f(t) g(t). Then f (t) = 0 and g (t) = 3t. So by the quotient rule, and thus s (t) = 0(t3 9) 5(3t ) (t 9) = 5t (t 9) s () = 5() [() 9] = 60. Example.4.5. Let f and g be differentiable functions, and let F (x) = f(x)g(x) and G(x) = f(x) g(x). Suppose f( ) = 5, f ( ) =, g( ) = 3, and g ( ) = 8. Find F ( ) and G ( ). The product rule tells us that The quotient rule tells us that F ( ) = f ( )g( ) + f( )g ( ) = ()( 3) + (5)(8) = 36 + 40 = 4. G ( ) = f ( )g( ) f( )g ( ) [g( )] ()( 3) (5)(8) = [ 3] = 76 9. 39

Since tan(x) = sin(x) cos(x), csc(x) = sin(x), sec(x) = cos(x), and cot(x) =, we can now use the cos(x) sin(x) quotient rule to complete our list of derivatives of trigonometric functions. Proposition.4.6 (Derivatives of Trigonometric Functions). d d [sin(x)] = cos(x) dx d d [sec(x)] = sec(x) tan(x) dx d dx [tan(x)] = sec (x) [cos(x)] = sin(x) dx [csc(x)] = csc(x) cot(x) dx d dx [cot(x)] = csc (x) Proof. We ll obtain the derivative of tan(x), and leave the remaining derivatives as an exercise for the reader. Let f(x) = sin(x) and g(x) = cos(x) so that tan(x) = sin(x) cos(x) = f(x) g(x). Then f (x) = cos(x) and g (x) = sin(x). Thus, by the quotient rule d dx [tan(x)] = d dx [ sin(x) cos(x) ] = cos(x) cos(x) sin(x)[ sin(x)] cos (x) = cos (x) + sin (x) cos (x) = cos (x) = sec (x). (since cos θ + sin θ = ) Example.4.7. Find dh dx where h(x) = 7x [ tan(x) + 3 sec(x)]. Again, let f(x) = 7x and g(x) = tan(x) + 3 sec(x). Then So, by the product rule, we have that f (x) = 4x and g (x) = sec (x) + 3 sec(x) tan(x). h (x) = f (x)g(x) + f(x)g (x) = 4x[ tan(x) + 3 sec(x)] + 7x [ sec (x) + 3 sec(x) tan(x) ]. 40

Example.4.8. Find f (x) for f(x) = x3 sin(x) x +. Notice that our numerator is a product of functions, so we re going to have to apply a product rule within the quotient rule. f (x) = d [ ] x 3 sin(x) dx x + = = d dx [x3 sin(x)](x + ) x 3 sin(x) d [x + ] dx (quotient rule) (x + ) ( d dx [x3 ] sin(x) + x 3 d [sin(x)]) (x + ) x 3 sin(x) d [x + ] dx dx (product rule) (x + ) = 3x sin(x)(x + ) + x 3 cos(x)(x + ) x 3 (x + ). Example.4.9. Find f (θ) for f(θ) = sin θ. f (θ) = d [sin θ sin θ] dθ = d dθ [sin θ] sin θ + sin θ d [sin θ] (product rule) dθ = cos θ sin θ + sin θ cos θ = sin θ cos θ. Example.4.0. Find f (θ) for f(θ) = sin 3 θ. f (θ) = d [ sin 3 θ ] dθ = d [ sin θ sin θ ] dθ = d dθ [sin θ] sin θ + sin θ d dθ [ sin θ ] = d dθ [sin θ] sin θ + sin θ d [sin θ sin θ] dθ = d ( d dθ [sin θ] sin θ + sin θ dθ [sin θ] sin θ + sin θ d ) [sin θ] dθ = cos θ sin θ + sin θ (cos θ sin θ + sin θ cos θ) = 3 sin θ cos θ. There appears to be a pattern forming here. We conjecture that d dθ [sinn θ] = n sin n θ cos θ. Indeed, if we think about sin n (x) = f(g(x)) where f(x) = x n and g(x) = sin(x), we see that somehow it s like there s a combination of the derivatives f (x) = nx n and g (x) = cos(x) involved in the derivative of f(g(x)). We ll make this formal in the next section. 4

.5 The Chain Rule What if you were asked to find the derivative of a composite function f(g(x))? Certainly you could approach with its, but its are extremely messy and it d be much nicer if we had a rule that gave us an all-inclusive approach to composite functions. Indeed, there is such a rule: Theorem.5. (Chain Rule). Suppose f and g are both differentiable functions. Then the composite (f g)(x) = f(g(x)) is differentiable and the derivative is given by (f g) (x) = f (g(x)) g (x). In Leibniz notation, letting y = f(u) and u = g(x), we have that y = f(g(x)) and so we would write dy dx = dy du du dx. Remark. When it comes to the chain rule, often times the most difficult part is determining what the two functions that form your composite function are. Example.5.. Find the derivative of h(x) = tan(3x) Let f(x) = tan(x) and g(x) = 3x so that h(x) = f(g(x)). Then and so f (x) = sec (x) g (x) = 3, h (x) = f (g(x)) g (x) = sec (g(x)) 3 = 3 sec (3x). Example.5.3. Find dh dt where h(t) = (t 7) 86547. Let f(t) = t 86 and g(t) = (t 7) so that h(t) = f(g(t)). Then and so f (t) = 86t 860 g (t) = t, h (t) = f (g(t)) g (t) = 86(t 7) 860 t. 4

Sometimes you may need to use the chain rule in conjunction with the product or quotient rules. Example.5.4. Find r (θ) where r(θ) = (θ + ) sin θ. Let f(θ) = θ, and g(θ) = (θ + ) sin θ. Then f (θ) = θ / and, using the product rule, we have g (θ) = sin θ + (θ + ) cos θ, so using the chain rule r (θ) = f (g(θ)) g (θ) = [(θ + ) sin θ] / [sin θ + (θ + ) cos θ]. Example.5.5. Find the derivative of F (x) = cos( x) csc(x). Let f(x) = cos(x), g(x) = x and h(x) = csc(x). Then the numerator is f(g(x)) and the denominator is h(x). We have that and so We also have that so using the quotient rule, f (x) = sin(x) g (x) = x /, (f g) (x) = f (g(x)) g (x) = cos( x)x /. h (x) = csc(x) cot(x), F (x) = (f g) (x)h(x) (f g)(x)h (x) [h(x)] = cos( x)x / csc(x) + cos( x) csc(x) cot(x). csc (x) 43

Sometimes, we may even have to use an embedded chain rule (chain rule-ception). Example.5.6. Find the derivative dt of T (ϕ) = sin(tan(csc ϕ)). Let f(ϕ) = sin ϕ, g(ϕ) = tan ϕ, dϕ and h(ϕ) = csc ϕ, so then T (ϕ) = f(g(h(ϕ)). We have that f (ϕ) = cos ϕ, g (ϕ) = sec ϕ, and h (ϕ) = csc ϕ cot ϕ. So then T (ϕ) = f (g(h(ϕ))) (g h) (ϕ) = f (g(h(ϕ)) g (h(ϕ)) h (ϕ) = cos(tan(csc ϕ)) sec (csc ϕ) [ csc ϕ cot ϕ] = cos(tan(csc ϕ)) sec (csc ϕ) csc ϕ cot ϕ Example.5.7. Find all points on the graph of y = + 8x x 4 where the tangent line is horizontal. Confirm your results by sketching a graph. The slope of a horizontal tangent line is 0, so we re looking for places where y = 0. Let f(x) = + x and g(x) = 8x x 4 so that y = f(g(x)). Then and so y = f (g(x)) g (x) = f (x) = x / = x g (x) = 6x 4x 3, 6x 4x3 8x x = 4x(4 x ) 4 4x x. 4 We see that y = 0 when x = 0, ±. However, 0 is not in the domain of y, so in fact the only horizontal tangent lines occur when x = ±. 5 4 3 3 3 44

.6 Implicit Differentiation Every function we ve encountered up to this point can be described as one variable explicilty in terms of another variable, for example y = x y = 47x sin(x) However, there are some functions that may be defined implicitly by a relation between x and y, for example x + y = 69 (circle of radius 3) x = 3 y (parabola opening to the right) 4(x + y ) = (x + y xy) (cardioid) In some of these cases, it s easy to represent the implicit function as at least one explicit function, but in general that need not happen (as is the case with the cardioid, which requires a minimum of four explicit functions). In these cases, we would still like to be able to find the derivative dy, say to find dx the equation of the tangent line. The key is to use the chain rule and treat y = y(x) as a function of x. Example.6.. If x + y = 400, find dy dx. Since we re treating y as a function of x, we actually have that y = [y(x)] = g(y(x)), where g = x. Since this is a composite function, we ll need to use the chain rule. Indeed, we have that d dx [y ] = d dx [g(y(x))] = g (y(x)) y (x) = g (y(x)) dy dx = [y(x)]dy dx = y dy dx. Since equal functions have equal derivatives everywhere, we can take a derivative of both sides of our given relation and now we can solve for dy dx d dx x + y = 400 d [ x + y ] = d dx dx [400] [ ] x + d [ ] y = 0 dx x + y dy dx = 0 as we would for any other variable dy dx = x y. 45

Example.6.. Find y (x) implicitly for the equation y = sin(xy). Taking a derivative of both sides of the given equation (with respect to x), we get d dx [y] = d dx [sin(xy)] y (x) = cos(xy) d dx [xy] y (x) = cos(xy) (y + xy (x)) dy dx = y cos(xy) + x cos(xy)y (x) y cos(xy) = x cos(xy)y (x) dy dx y cos(xy) = (x cos(xy) )y (x) y (x) = y cos(xy) x cos(xy). (chain rule) (product rule) Example.6.3. Given the relation x y = 8, find the second derivative d y dx. We begin by finding the first derivative d [ x y ] = d dx dx [8] x y dy dx = 0 dy dx = x y. (.6.) Now we take the derivative of each side of this new equation (with respect to x) [ ] d dy = d [ ] x dx dx dx y d y dx = y x dy dx. (.6.) y Now, we re not quite done yet as we want to represent the second derivative entirely in terms of x and y. So, we substitute Equation.6. into Equation.6. and get ( ) d y dx = y x dy x y x dx y = = y x. y y y 3 46

Example.6.4. Find the equation of the tangent lines to the cardioid given by 4(x + y ) = (x + y x) at the point (0, ) To find the horizontal tangent lines, we use implicit differentiation to find dy and then plug in (0, ) to find the slope of the tangent line. Taking a derivative of dx both sides of the given equation (with respect to x), we get d [ 4(x + y ) ] = d [ (x + y x ) ] dx ( dx 4 x + y dy ) = ( x + y x ) d [ x + y x ] dx dx ( 4 x + y dy ) = ( x + y x ) ( x + y dy ) dx dx ( 4 x + y dy ) ( = x 3 + x y dy dx dx x + xy + y 3 dy dx y 4x 4xy dy ) dx + 4x ( 4 x + y dy ) ( = 4 x 3 + x y dy dx dx x + xy + y 3 dy dx y x xy dy ) dx + x x + y dy dx = x3 + x y dy dx 3x + xy + y 3 dy dx y xy dy dx + x x x 3 + 3x xy + y x = x y dy dy dy dy + y3 xy y dx dx dx dx x x 3 + 3x xy + y x = ( x y + y 3 xy y ) dy dx dy dx = x x3 + 3x xy + y x. x y + y 3 xy y Plugging in x = 0 and y =, we get that dy dx (0, ) is y = x. = and thus the equation of our tangent line through 3 3 4 5 3 y= x 47

.7 Related Rates We will motivate this topic with the following example. Example.7.. Suppose water is being drained out of a conical tank. Given that the volume of a cone is V = π 3 r h, rate of change in the volume of water, dv, should be related to both the rate dt of change of the radius of the water s surface, dr, and the rate of change of the height of the water, dt dh. Indeed, since V = V (t), r = r(t), and h = h(t) are all functions of time, we can use implicit dt differentiation to get d dt [V ] = d [ π h] dt 3 r dv dt = π ( rh dr ) dh + r 3 dt dt So now we know how the rates dv equation., dr dt dt, and dh dt (product rule). are related. We may call this equation a related rates Example.7.. A stone is dropped into a calm lake, which causes concentric circular ripples to emanate from the splash point. The radius r of the outermost ripple is increasing a rate of feet per second. When the radius gets to be 7 feet, at what rate is the total area A of the rippled water changing? Recall that A = πr. Using implicit differentiation, we see that the changing area is related to the changing radius by We re given that dr dt d dt [A] = d [ ] πr dt da dr = πr dt dt. = ft/s, so when r = 7 ft, we have da dt = π(7)() = 8π ft /s. 48

Example.7.3. A 5-foot ladder is leaning against the wall of a building. The base of the ladder is being pulled away from the building at a rate of feet per second, and the top of the ladder is sliding down the wall. a. How fast is the top of the ladder sliding down the wall when the base is 8 feet away from the wall? b. At what rate is the angle between the ladder and the ground changing when the base is 8 feet away from the wall? Let x = x(t) represent the distance of the base of the ladder from the wall, y = y(t) be the height of the top of the latter, and θ = θ(t) the angle formed between the ground and the base of the ladder. 5 y θ x a. We want to relate dx dt With implicit differentiation, we have that We re given that dx dt dy and. From the picture above, it s clear that x and y are related by dt x + y = 5 = 65. d [ x + y ] = d dt dt [65] x dx dy + y dt dt = 0 dy dt = x dx y dt = = ft/s, so when x = 8, we have x 65 x dx dt. dy dt = (8) 6 () = 0.676 ft/s. 65 64 56 b. Now we want to relate dx and dθ. Again, from the picture above, we have that x, y, and θ are dt dt related by cos θ = x and sin θ = y. With implicit differentiation, 5 5 d dt dt[ [cos θ] = d x ] 5 sin θ dθ dt = dx 5 dt dθ dt = dx 5 sin θ dt = dx y dt = dx 65 x dt. We re given that dx dt = ft/s, so when x = 8, we get dθ dt = 65 64 () = 56 0.084 rad/s 4.838 deg/s. 49