Cal1 Week 9
Cal1 Week 9
Lecture Notes:Week # 9
Instructor: Mohsin Ali Oct 30-Nov 3, 2023
Polynomials
Definition
The domain of a polynomial function is the set of all real numbers, so we can sketch only a small
portion of the graph. However, for values of x outside the portion of the graph we have drawn,
we can describe the behavior of the graph. The end behavior of a polynomial is a description of
what happens as x becomes large in the positive or negative direction. To describe end behavior,
we use the following result.
________________________________________________________
Math 101-S6 Page 1 of 15 Prepared by Mohsin Ali
The same end behavior of any general function f (x) can be determined using limits of that
function as x approaches to ±∞
lim f (x)
x→±∞
if c is a zero of P and the corresponding factor x − c occurs exactly m times in the factorization
of P , then we say that c is a zero of multiplicity m.
Figure 1: A function’s first derivative tells how the graph rises and falls
We can summarize this as a test for classifying the extreme values using the first derivative test.
(c) if f ′ does not change sign at c (that is, f ′ is positive on both sides of c or negative on
both sides), then f has no local extremum at c
Example
Using the First Derivative Test for Local Extrema
f (x) = x1/3 (x − 4)
Identify the intervals on which f is increasing and decreasing. Find the function’s local and
absolute extreme values.
Sol: The function f (x) is continuous for all values of x (why?). The first derivative of f (x) can
be evaluated using product rule.
4 4 4(x − 1)
f ′ (x) = x1/3 − x−2/3 =
3 3 3x2/3
Hence, critical points are x = 1 (where the first derivative is zero ) and x = 0 (where the first
derivative is undefined). There are no endpoints in the domain, so the critical points x = 0 and
x = 1 are the only places where f might have an extreme value.
________________________________________________________
Math 101-S6 Page 3 of 15 Prepared by Mohsin Ali
The critical points partition the x-axis into intervals on which f ′ is either positive or negative.
The sign pattern of f ′ reveals the behavior of f between and at the critical points.
The function f is increasing on (1, ∞) and decreasing on interval (−∞, 1). The First Derivative
Test for Local Extrema tells us that f does not have an extreme value at x = 0 ( does not change
sign) and that f has a local minimum at x = 0 ( changes from negative to positive).
Example
Find the local maximum and minimum values of the function
g(x) = x + 2 sin(x), 0 ≤ x ≤ 2π
Sol:
We are interested in finding the local maximum and minimum, so we should look for the critical
points in the defined domain.
g ′ (x) = 1 + 2 cos(x)
=⇒ g ′ (x) = 0 for critical points
1
1 + 2 cos(x) = 0 =⇒ cos(x) = −
2
2π 4π
=⇒ x = , x=
3 3
2π
Because g ′ (x) changes from positive to negative at x = , the First Derivative Test tells us
3
2π
that there is a local maximum at x = and the local maximum value is
3
( ) ( )
2π 2π 2π 2π √
g = + 2 sin = + 3
3 3 3 3
________________________________________________________
Math 101-S6 Page 4 of 15 Prepared by Mohsin Ali
4π
Similarly, g ′ (x) changes from negative to positive at x = , the First Derivative Test tells us
3
4π
that there is a local maximum at x = and the local minimum value is
3
( ) ( )
4π 4π 4π 4π √
g = + 2 sin = − 3
3 3 3 3
Figure 2: Concavity on y = x3
As you can see in Figure 2, the curve rises as x increases, but the portions defined on the intervals
(−∞, 0) and (0, ∞) turn in different ways. As we approach the origin from the left along the
curve, the curve turns to our right and falls below its tangents. The slopes of the tangents are
decreasing on the interval (−∞, 0). As we move away from the origin along the curve to the
right, the curve turns to our left and rises above its tangents. The slopes of the tangents are
increasing on the interval (0, ∞). This turning or bending behavior defines the concavity of the
curve
(iii) A point where the concavity changes is a point of inflection or f ′′ (c) = 0 (provided
f ′′ changes its sign around c)
________________________________________________________
Math 101-S6 Page 5 of 15 Prepared by Mohsin Ali
Second Derivative Test for Local Extrema
Scheme
(iii) If f ′ (c) = 0 and f ′′ (c) = 0, then the test fails. The function f may have a local
maximum, a local minimum, or neither
Example
Consider the function
f (x) = x4 − 4x3
(d) Find the intervals on which f is increasing and the intervals on which f is decreasing
(e) Find where the graph of f is concave up and where it is concave down.
Sol:
(a) The function is a polynomial of degree 4 with a positive leading coefficient. The end behaviour
of the f (x) is
x→∞ y→∞
x → −∞ y→∞
Using the First Derivative Test for local extrema and the table above, we see that there. is
no extremum at x = 0 and a local minimum at x = 3
(d) Using the table above, we see that f is decreasing on (−∞, 0) and (0, 3), and increasing on
(3, ∞)
(e) The second derivative f ′′ (x) = 12x2 − 24x = 12x(x − 2) is zero when x = 0 and x = 2
We see that f is concave up on the intervals (−∞, 0), and (2, ∞) and concave down on (0, 2)
________________________________________________________
Math 101-S6 Page 7 of 15 Prepared by Mohsin Ali
Hence, the final sketch will become as
Example
1
Sketch y = e x , using the first,second derivative, and asymptotes
Sol:
1
(i) Notice that the domain of the function y = e x is {x|x ̸= 0}.
(ii) Finding the vertical asymptote
1
lim+ e x = ∞
x→0
So x = 0 is a vertical asymptote Also,
1
lim− e x = 0
x→0
dx x
1
′ ex
f (x) = − 2
x
Since e x > 0 and x2 > 0 for all x ̸= 0, which shows that f ′ (x) is negative on all the domain
1
( )
1 1 1
−x2 e x − 2
− e x (2x)
f ′′ (x) = x
x4
1
e x (2x + 1)
f ′′ (x) =
x4
1 1
Since e x > 0 and x4 > 0, we have f ′′ (x) > 0 for x > − (x ̸= 0) and f ′′ (x) < 0 for x < − .
1
2 ( ) 2
1 1
Hence, the function f (x) = e x is concave down on interval −∞, − and concave up on
( ) ( )2
1 1
− , 0 and (0, ∞). Thus the point of inflection become − , e−2
2 2
Concave up
1
Figure 4: graph of e x
The following checklist is intended as a guide to sketching a curve y = f (x) by hand. Not every
item is relevant to every function.
(A) Domain
It’s often useful to start by determining the domain D of f (x), that is, the set of values of
x for which f (x) is defined
(B) Intercepts
The y-intercept is f (0) and this tells us where the curve intersects the y-axis. To find the
x-intercepts, we set y = 0 and solve for x. (You can omit this step if the equation is difficult
to solve. or you can find the interval using the Intermediate value theorem.)
(C) Symmetry
Look at the symmetry of the function. If f (−x) = f (x) for all x in D, that is, the equation
of the curve is unchanged when x is replaced by −x, then f is an even function, and the
curve is symmetric about the y-axis. Similarly, we can check about the odd function(see
definition), which is symmetric about the origin.
________________________________________________________
Math 101-S6 Page 9 of 15 Prepared by Mohsin Ali
If function satisfy f (x + p) = f (x) for all x in D with positive p, then f (x) is periodic
function with period p.
(D) Asymptotes
We have two major kinds of asymptotes: Horizontal and Vertical Asymptotes
Horizontal Asymptote: Using the definition of limit at infinity, we can determine the end
behavior/ Horizontal asymptote of f (x)
Then, y = b is the horizontal asymptote of f (x). Note that you may have different limits
for positive infinity and negative infinity, resulting in more than two horizontal asymptotes.
Vertical Asypmtote: Using the definition of infinite limits, we can determine the vertical
behavior/ vertical asymptote of f (x)
Scheme
(A) Domain
(B) Intercepts
(C) Symmetry
(D) Asymptotes
(A) Domain
The domain is {x|x ̸= ±1}
(B) Intercepts
The x− and y− are both zero.
(C) Symmetry
Since f (−x) = f (x), the function is even. The curve is symmetric about y− axis.
(D) Asymptotes
2x2
lim =2
x→±∞ x2 − 1
Therefore, the line y = 2 is horizontal asymptote (at both the left and right)
Since the denominator is 0 when x = ±1
−4x
f ′ (x) =
(x2− 1)2
f ′ (x) is positive when x < 0(x ̸= −1) and f ′ (x) is negative when x > 0(x ̸= 1).
Hence, f (x) is increasing on (−∞, −1) ∪ (−1, 0) and decreasing on (0, 1) ∪ (1, ∞)
12x2 + 4
f ′′ (x) =
(x2 − 1)3
Since 12x2 + 4 > 0 for all x, we have f ′′ (x) > 0 =⇒ x2 − 1 > 0 =⇒ x < −1 and x > 1,
which is f (x) is concave up on (−∞, −1) and (1, ∞). Similarly, f ′′ (x) < 0 =⇒ x2 − 1 <
0 =⇒ −1 < x < 1. f (x) is concave down on (−1, 1).
________________________________________________________
Math 101-S6 Page 11 of 15 Prepared by Mohsin Ali
(H) Sketch the Curve
2x2
Figure 5: sketch of y =
x2 − 1
Practice Problem
x2 cos(x)
(a) f (x) = √ (c) f (x) =
x+1 2 + sin(x)
(b) f (x) = xex (d) f (x) = ln(4 − x2 )
________________________________________________________
Math 101-S6 Page 12 of 15 Prepared by Mohsin Ali
Example
Sketch the graph of f (x) where f ′ (x) is given by
Sol:
(i) We can observe that f ′ (x) is defined from 0 to 9, Hence the domain of the f (x) is (0, 9).
f ′ (x) intercepts the x− axis at x = 1, x = 6, x = 8, Hence these values are critical points.
(ii) Now, f ′ (x) is positive on (1, 6) and (8, 9) then f (x) is increasing on these intervals.
(iii) Similarly, f ′ (x) is negative on (0, 1) and (6, 8) then f (x) is decreasing on these intervals.
(iv) f (x) is concave up where f ′ (x) is increasing, looking at slope/ gradient of f ′ (x), that is, on
(0, 2), (3, 5), and (7, 8)
(v) f (x) is concave down where f ′ (x) is decreasing, looking at slope/ gradient of f ′ (x), that is,
on (2, 3), and (5, 7).
(vi) The points where the function changes its concavity i,e. point of inflections are x = 2, x =
3, x = 5, x = 7.
For more practice questions please see section 4.3 and 4.5 exercise of book by james stewart
________________________________________________________
Math 101-S6 Page 13 of 15 Prepared by Mohsin Ali
4 L’Hôpital Rule
John Bernoulli discovered a rule for calculating limits of fractions whose numerators and denom-
inators both approach zero or ∞ The rule is known today as l’Hôpital’s Rule, after Guillaume
de l’Hôpital. He was a French nobleman who wrote the first introductory differential calculus
text, where the rule first appeared in print.
L’Hôpital Rule
Theorem
Suppose that f (a) = g(a) = 0, that f and g are differentiable on an open interval I
containing a, and that g ′ (x) ̸= 0 on I if x ̸= a. Then
f (x) f ′ (x)
lim = x→a
lim ′
x→a g(x) g (x)
Example
Find
3x − sin(x)
lim
x→0 x
Sol:
3x − sin(x) 0
= lim form Applying l’Hôpital Rule
x→0 x 0
3 − cos(x)
= lim = 3 − cos(0) = 3 − 1 = 2
x→0 1
Example
Find √
x+1−1
lim
x→0 x
Sol:
√
x+1−1 0
= lim form Applying l’Hôpital Rule
x→0 x 0
(1/2)(x + 1)(1/2) (1/2)(0 + 1)(1/2) 1
= lim = =
x→0 1 1 2
Example
Find the limit of the function √
x+1−1− x
2
lim
x→0 x2
________________________________________________________
Math 101-S6 Page 14 of 15 Prepared by Mohsin Ali
Sol:
√
x + 1 − 1 − x2 0
= lim form Applying l’Hôpital Rule
x→0 x2 0
(1/2)(x + 1)−1/2 − 12 0
= lim Still form Applying l’Hôpital Rule again
x→0 2x 0
(−1/4)(x + 1)−3/2 1 0
= lim =− Not form Limit is found
x→0 2 8 0
Example
Find
x − sin(x)
lim
x→0 x3
Sol:
x − sin(x) 0
= lim form Applying l’Hôpital Rule
x→0 x3 0
1 − cos(x) 0
= lim Still form Applying l’Hôpital Rule again
x→0 3x2 0
sin(x) 0
= lim Still form Applying l’Hôpital Rule again
x→0 6x 0
cos(x) cos(0) 1
= lim = =
x→0 6 6 6
0 ∞
NOTE: The L’Hôpital Rule is valid for only and . It is not valid for other inderteminent
0 ∞
forms such as ∞ − ∞, 0 × ∞ etc
Example
Find
sec(x)
lim
π 1 + tan(x)
x→
2
Sol:
sec(x) ∞
= limπ form Applying l’Hôpital Rule
x→ 2 1 + tan(x) ∞
sec(x) tan(x)
= limπ
x→ 2 sec2 (x)
= limπ sin(x) = 1
x→ 2
Practice Problem
________________________________________________________
Math 101-S6 Page 15 of 15 Prepared by Mohsin Ali