Calculus Study Guide-3 Differentaiation
Calculus Study Guide-3 Differentaiation
f (a + h) − f (a)
f ′ (a) = lim
h→0 h
This is the formal definition of the derivative, the limit of the difference quotient. Here:
1.4 Example
Let f (x) = x2 , and we want to find f ′ (x). Then:
f (0 + h) − f (0) |h|
f ′ (0) = lim = lim
h→0 h h→0 h
1
1.6 Exercises
Question 1: Find the derivatives of the following functions using the definition of the derivative.
(a) f (x) = 2x
(b) f (x) = −2
(c) f (x) = x3 − 2
(d) f (x) = 2x2 + x − 1
√
(e) f (x) = x
(f) f (x) = 5x + 7
1
(g) f (x) = x2
x
(h) f (x) = x+1
√
(i) f (x) = 3x − 4
1
Question 2: Is the function f (x) = x differentiable at x = 0? Why, or why not?
Question 4: A car’s position along a straight road is given by s(t) = 4t3 −2t2 +t where s(t) is distance
in meters and t is time in seconds. Find the velocity of the car at t = 2 by finding the derivative of
s(t). Find out at what time the car’s velocity is zero (Hint: set the derivative equal to zero and solve
for t).
• d
dx f (x)
• Df (x)
• ∂f (x)
• d
dx c = 0 for any constant c ∈ R
• d
dx cf (x)
d
= c dx f (x) = c · f ′ (x)
• Power rule: d n
dx x = nxn−1
• d
dx (f (x) ± g(x)) = f ′ (x) ± g ′ (x)
• Product rule: d
dx [f (x)g(x)] = f ′ (x)g(x) + f (x)g ′ (x)
2
d f (x) f ′ (x)g(x)−f (x)g ′ (x)
• Quotient rule:
dx g(x) = [g(x)]2
• Chain rule: d
dx f (g(x)) = f ′ (g(x)) · g ′ (x)
For example, the rules above can be used to find the derivative of a polynomial. As an example, take
f (x) = −2x2 + x3 − 5x + 4:
d d d 3 d d
f ′ (x) = (−2x2 + x3 − 5x + 4) = (−2x2 ) + x − 5x + 4
dx dx dx dx dx
d 2 d 3 d
= −2 x + x − 5 x + 0 = −4x + 3x2 − 5
dx dx dx
Thus f ′ (x) = −4x + 3x2 − 5. The power rule also applies for √
non-integer exponents, so it can be used to
differentiate radical functions as well. For example, take g(x) = x. Then:
d √ d 1 1 1 1 1 1
g ′ (x) = x= x 2 = x 2 −1 = x− 2 = √
dx dx 2 2 2 x
√
so the derivative of g(x) = x is g ′ (x) = 1
√
2 x
.
• d
dx sin(x) = cos(x)
• d
dx cos(x) = − sin(x)
• d
dx tan(x) = sec2 (x)
• d
dx cot(x) = − csc2 (x)
• d
dx sec(x) = sec(x) tan(x)
• d
dx csc(x) = − csc(x) cot(x)
3
2.3.4 Inverse Trigonometric Functions
The derivatives of the inverse trigonometric functions are:
• d
dx arcsin(x) = √ 1
1−x2
• d
dx
1
arccos(x) = − √1−x 2
• d
dx arctan(x) = 1
1+x2
• d
dx arccot(x)
1
= − 1+x 2
• d
dx arcsec(x) = √1
|x| x2 −1
• d
dx arccsc(x) = − |x|√1x2 −1
• d
dx sinh(x) = cosh(x)
• d
dx cosh(x) = sinh(x)
• d
dx tanh(x) = sech2 (x)
2.4 Examples
Using the rules introduced, let’s find the derivatives of the following functions:
For (a), the rule for exponential functions as well as the chain rule must be implemented. Thus:
d 3x+2 d
e f ′ (x) =
= ( (3x + 2))e3x+2 = 3e3x+2
dx dx
For (b), the rule for exponential functions, trigonometric functions, as well as the chain rule is used:
d d 1 1 sin(x)
g ′ (x) = (− ln(cos(x))) = ( cos(x)) · − = − sin(x) · − = = tan(x)
dx dx cos(x) cos(x) cos(x)
For (c), the power rule and the quotient rule can be used:
d d
( dx (x2 + 1)) · (3 − x) − (x2 + 1) · ( dx (3 − x)) −x2 + 6x + 1
h′ (x) = =
(3 − x)2 (3 − x)2
4
2.5 Exercises
Question 1: Find the derivatives of the following functions using the rules of differentiation:
(a) f (x) = x2 − x5
sin(t2 )
(b) d(t) = t+5
(c) g(x) = log2 (x3 − 1)
p
(d) h(x) = 3 x2 + ln(2x + 1)
√
(e) f (p) = p3 + p + 1 − p1
(f) s(t) = tan(csc(sin(t)))
(g) r(t) = t2 ln(t) + sin(t) cos(t)
1
(h) t(x) = x cos(x) − 3x+5
(i) d(t) = 2t2 (ln(t) + log2 (t))
Question 2: Let f (x) = x2 + ax. What is the value of a is f ′ (1) = 1? Show your work.
√
Question 3: What is the derivative of f (x) = x3 − x2 x − x2 ? Find the derivative using the
product rule, and without the product rule.
3.2 Exercises
Question 1: Determine the first and the second derivative of each of the following functions:
(a) f (x) = x3 − x2
(b) g(x) = ln(x)
(c) h(x) = x cos(x)
5
Question 2: How many times do you need to differentiate the function f (x) = 2xn + x2 + 100 until
it vanishes? Why? Show your work.
Question 3: Find the first, second, third, and fourth derivatives of each of the following functions.
Do they vanish? Why, or why not?
If these conditions are met, then the Mean Value Theorem guarantees that there exists at least one point
c ∈ (a, b) such that the derivative of the function at c equals the average rate of change of the function over
the interval [a, b]. Mathematically, this can be stated as follows:
f (b) − f (a)
f ′ (c) =
b−a
where c is some point in the interval (a, b).
Observe that if either of the two conditions; the continuity or the differentiabiliy, are violated, the Mean
Value Theorem does not necessarily hold.
4.2 Example
Visually, the Mean Value Theorem can be interpreted and understood as shown in the following figure for
the function f (x) = x2 (on the interval [1, 4]):
6
• The secant line connects the points (1, f (1)) and (4, f (4)), representing the average rate of change over
the interval.
• The tangent line at c = 2.5 has the same slope as the secant line, showing the instantaneous rate of
change at that point.
4.3 Exercises
Question 1: Consider the function f (x) = ln(x) over the interval [1, e].
(a) What is the average rate of change of f (x) over the interval [1, e]?
(b) Find a point c ∈ (1, e) where the instantaneous rate of change of f (x) is equal to the average rate
of change.
Question 2: Consider the function f (x) = x3 − 2x + 1 on the interval [0, 2]. Verify that the mean
value theorem holds on the given interval.
Question 3: Let f (x) = sin(x) and consider the interval [0, π].
(a) Find the average rate of change of f (x) over the given interval.
(b) Use the Mean Value Theorem to determine the value of c ∈ (0, π) where the derivative of f (x)
equals the average rate of change.
• A function is monotonically increasing on a given interval if, for any two points x1 and x2 in the
interval where x1 < x2 , we have f (x1 ) ≤ f (x2 ). Additionally, the function is strictly increasing if
f (x1 ) < f (x2 ).
• A function is monotonically decreasing on a given interval if, for any two points x1 and x2 in the
interval where x1 < x2 , we have f (x1 ) ≥ f (x2 ). Additionally, the function is strictly decreasing if
f (x1 ) > f (x2 ).
7
5.3 Formal Definition
Let f (x) be a differentiable function on an interval I.
• The function f (x) is monotonically increasing on I if f ′ (x) ≥ 0 for all x ∈ I. Additionally, if f ′ (x) > 0
for all x ∈ I, it is strictly increasing.
• The function f (x) is monotonically decreasing on I if f ′ (x) ≤ 0 for all x ∈ I. Additionally, if f ′ (x) < 0
for all x ∈ I, it is strictly decreasing.
• If f ′ (x) = 0 throughout the interval, the function is constant on that given interval.
5.5 Examples
3 2
Consider the function f (x) = x − 3x + 2. We will determine the intervals where f (x) is increasing and
decreasing based on its derivative.
First, the derivative is f ′ (x) = 3x2 − 6x according to the power rule. To find the critical points, the
equation f ′ (x) = 0 must be solved. Namely,
3x2 − 6x = 0 ⇒ 3x(x − 2) = 0
which gives the solutions x = 0 and x = 2. Now, we can consider the intervals (−∞, 0), (0, 2), and (2, +∞).
We must take test points from each interval to determine whether f (x) is increasing or decreasing on each
of the intervals. We do this as follows:
• Consider x = −1 in (−∞, 0). Observe that f ′ (−1) = 9 > 0, so the function is increasing on this
interval.
• Consider x = 1 in (0, 2). As f ′ (1) = −3 < 0, the function is decreasing on this interval.
• For x = 3 in (2, +∞), f ′ (3) = 9 > 0, so the function is increasing on this interval.
In conclusion, the function is increasing on (−∞, 0) and (2, +∞). It is decreasing on the interval (0, 2).
5.6 Exercises
Question 1: For the following functions, find their critical points and use them to determine where
the function is increasing or decreasing.
Question 2: For the following functions, determine their behavior as x → +∞ and x → −∞. In
other words, determine if the function is increasing or decreasing at large values of x.
8
1
(c) f (x) = x
(d) f (x) = x + 2x3 − x6
5
Question 3: For the following functions, find the critical points and then determine where the functions
are increasing or decreasing.
• A local maximum is a point where the function has a value greater than or equal to the values of
the function at nearby points.
• A local minimum is a point where the function has a value smaller than or equal to the values of the
function at nearby points.
In addition, extreme points can also be classified either as global (absolute) maxima or global
(absolute) minima, which represent the highest or lowest value of the function over its entire domain.
• Global (Absolute) Maximum: The function attains a global maximum at x = c if f (c) ≥ f (x) for
all x in the domain of f .
• Global (Absolute) Minimum: The function attains a global minimum at x = c if f (c) ≤ f (x) for
all x in the domain of f .
3x2 − 6x = 0 ⇒ 3x(x − 2) = 0
9
which gives the critical points x = 0 and x = 2. By considering the intervals (−∞, 0), (0, 2), and (2, +∞),
we can pick a test point from each interval to find out whether f (x) is increasing or decreasing on each of
the intervals. We did this in the previous chapter.
As f (x) is increasing on (−∞, 0) and decreasing on (0, 2), it has a global maximum at x = 0. It can
similarly be argued that it has a global minimum at x = 2. However, f (x) does not have a local minimum
or maximum, as it diverges to negative infinity and positive infinity for x → −∞ and x → +∞ respectively.
d x2 2
f ′ (x) = (e ) = 2xex
dx
2 2
To find the critical points, consider the equation 2xex = 0. As ex > 0 for all real values of x, the only
solution to this equation is x = 0, meaning that x = 0 is the only critical point.
Moreover, it can be observed that f (x) is strictly decreasing for values before x = 0, and strictly increasing
after, meaning that x = 0 is a global minimum as well as a local minimum.
6.5 Exercises
Question 1: For each of the following functions, find the critical points, and determine the nature of
the extreme points (i.e., whether they are local or global extrema, as well as whether they are minimum
or maximum points) using the first or second derivative.
Question 2: For each of the following functions, use the first derivative to classify the critical points
as either local maxima or local minima.
10
(c) f (x) = x4 − 4x2 + 2
(d) f (x) = x3 − 6x2 + 9x + 1
Question 3: A company’s profit is modeled according to the function P (x) = 10x − 0.5x2 where x is
the number of units sold. Find the number of units that maximizes the profit.
Question 4: The height h(t) of a projectile is modeled according to h(t) = −16t2 + 64t + 100, where
t is the time in seconds. Find the time at which the projectile reaches its maximum height.
At an inflection point, the function is not necessarily at a local maximum or minimum, but it marks a
change in the way the graph curves.
11
7.4 Finding Inflection Points
As an example, consider the function f (x) = x3 − 6x2 + 9x. To find its inflection points, we first must find
its second derivative. Observe that f ′ (x) = 3x2 − 12x + 9, and therefore f ′′ (x) = 6x − 12. Then, we can set
f ′′ (x) = 0 to find the inflection points, i.e., 6x − 12 = 0 ⇒ x = 2.
Now, we must test the intervals around x = 2. For x = 1, it holds that f ′′ (1) = −6, which is negative,
meaning that the graph is concave down. Similarly, for x = 3 it can be observed that f ′′ (3) = 6, which is
positive, meaning that the graph is concave up.
As a conclusion, since the concavity changes from concave down to concave up at x = 2, there must be an
inflection point at x = 2.
Try It Yourself: Consider the function f (x) = x4 − 4x2 + 6x2 − 8x. Show that the function does not have
any inflection points.
7.6 Example
For this example, we consider the function f (x) = x3 − 3x2 + 2x. We follow the given steps to find the
graph of f (x):
1. First, observe that the domain of f (x) consists of all real numbers.
2. Graph the x-intercepts of f (x). These can be found by solving the equation x3 − 3x2 + 2x = 0 ⇒
x(x2 − 3x + 2) = 0, giving x = 0, x = 1, and x = 2.
3. You can also find the y-intercept to help the graphing process. This is f (0) = 0, so the origin (0, 0).
4. Find the critical points. Observe that f ′ (x) = 3x2 − 6x + 2, so the critical points can be solved by
setting 3x2 − 6x + 2 = 0, which gives x = 1 ± √13 (using the quadratic formula).
5. You can now assess where f (x) is increasing and decreasing. Do you remember how to do this?
6. Inflection points of f (x) can be found using the second derivative, i.e., f ′′ (x) = 6x − 6. Setting
6x − 6 = 0 gives the inflection point x = 1.
7. Assess concavity. Do you remember how to do this?
8. Finally, you can assess the end behavior of f (x). Namely, the behavior at −∞ and +∞. Do you
remember how to do this? (Hint: use what you learned from the topic of limits at infinity).
12
7.7 Exercises
Question 1: For each of the following functions, find the second derivative, set it equal to zero to find
potential inflection points, and use the sign of the second derivative to determine if there is a change
in concavity.
(a) f (x) = x3 − 3x2 + 2x
(b) f (x) = ex − 2x2
(c) f (x) = x5 − 5x3 + 2x
x2
(d) f (x) = x+1
Question 2: For each of the following functions, find the second derivative and examine the change
in concavity based on their (possible) inflection points. Use these to estimate what the graph of the
function would look like, and try to sketch it.
(a) f (x) = x3 − 6x2 + 9x + 1
(b) f (x) = ln(x) + 2x
(c) f (x) = cos(x) − 2x
(d) f (x) = ln(x2 + 1)
(e) f (x) = 4x4 − 4x3 + 2x2 − x
Question 3: A car’s position along a straight road is modeled according to the function p(t) =
t4 − 8t3 + 18t2 + 10t + 1, where t is time in seconds. Find the time when the acceleration changes
direction.
Question 4: Use critical points, inflection points, monotonicity, vertical and horizontal asymptotes,
x- and y-intercepts, end behavior, and concavity to graph each of the following functions:
(a) f (x) = x2 (x − 1)(x + 2)
(b) f (x) = −x4 + 2x3 − x + 1
(c) f (x) = x21+1
3x
(d) f (x) = x2 −4x+3
(e) f (x) = 2x − 3x − x2 − x + 1
4 3
x3 −3x
(f) f (x) = x2 +x−2
13
8 Chapter 3.8: Tangent Lines and Normal Lines
8.1 Introduction to Tangent Lines and Normal Lines
In calculus, the tangent line and normal line to a curve at a given point are two important concepts
that describe the relationship between the curve and its slope at that point. Namely:
• Tangent Line: A tangent line to a curve at a given point is the straight line that just ”touches” the
curve at that point. It has the same slope as the curve at the point of contact.
• Normal Line: The normal line is the line that is perpendicular to the tangent line at the point of
contact. If the tangent line represents the rate of change of the function, the normal line represents a
direction orthogonal to that rate.
y − f (a) = f ′ (a)(x − a)
Here:
• f (a) is the value of the function at x = a, which gives the point of tangency.
• f ′ (a) is the derivative of the function at x = a, which gives the slope of the tangent line at that point.
Thus, the slope of the tangent line at any point is given by the derivative of the function at that point.
1
y − f (a) = − (x − a)
f ′ (a)
8.4 Example
Let’s find the tangent and normal lines for the curve f (x) = x2 at a point x = 1. First, we find the value of
the function at x = 1. This is f (1) = 12 = 1, so the point of tangency must be (1, 1).
Secondly, find the derivative of the function. This is f ′ (x) = 2x. Now, evaluate the derivative at x = 1.
Thus f ′ (1) = 2(1) = 2. So, the slope of the tangent line at x = 1 is 2.
Now, we can write the equation of the tangent line using the point-slope form of the equation of a line:
y − 1 = 2(x − 1) ⇒ y = 2x − 1
So, the equation of the tangent line at x = 1 of f (x) = x2 is y = 2x − 1. Now, to find the slope of the
normal line. As the product of this slope and the slope of the tangent line, which is 2, must be negative
−1, it can fairly easily be argued that the slope of the normal line is − 21 .
Writing the equation of the normal line in the point-slope form is:
1 1 3
y − 1 = − (x − 1) ⇒ y = − x +
2 2 2
The procedure is quite the same for any function, and any point of tangency, but the calculations
themselves can be quite a bit more complicated depending on the given function and the point.
14
8.5 Visual Example
This is what tangent and normal lines of a function can look like.
8.6 Exercises
Question 1: For each of the following functions, find the equation of the tangent and the normal lines
at the given point.
Question 2: For each of the following trigonometric functions, find the equation of the tangent and
normal lines at the given points.
Question 3: For each of the following functions, find the equations of the tangent and normal lines at
the given points, and sketch the functions, as well as their tangent and normal lines in the coordinate
plane.
(a) f (x) = ex at x = 0
(b) f (x) = e−x at x = 1
(c) f (x) = ln(x) at x = 1
(d) f (x) = 2x at x = 1
15
9 Chapter 3.9: L’Hospital’s Rule
9.1 Introduction to L’Hospital’s Rule
L’Hospital’s Rule is a powerful method in calculus for evaluating limits involving indeterminate forms. In
other words, it provides a way to calculate limits that result in the indeterminate forms 0/0 or ∞/∞, for
example, when using other methods.
f (x) f ′ (x)
lim = lim ′
x→c g(x) x→c g (x)
9.3 Example
For example, consider the limit limx→0 sin(x)
x . Observe that if 0 is substituted into the expression, it
becomes 00 , which is an indeterminate form. Since sin(x) and x are differentiable, L’Hospital’s rule can be
used as follows:
sin(x) cos(x)
lim = lim = lim cos(x) = cos(0) = 1
x→0 x x→0 1 x→0
ex ex ex 1
lim = lim = lim = lim (ex ) = +∞
x→∞ x2 x→∞ 2x x→∞ 2 2 x→∞
ex
lim xex = lim ,
x→−∞ x→−∞ 1
x
we can notice that this will not work. The reason is that the derivatives of the denominator will be − x12 ,
2 6 1 −x
x3 , − x4 , and so on. Thus, instead, let’s consider the identity of ex = e , and rewrite the initial limit
accordingly:
x 1
lim xex = lim = lim =0
x→−∞ x→−∞ e−x x→−∞ −e−x
16
9.6 Exercises
Question 1: Find the following limits using L’Hospital’s rule, and argue why the rule must be used.
ln(x)
(a) limx→∞ x
x2
(b) limx→0 sin(x)
ex −1
(c) limx→0 x
• Optimization: Finding the maximum or minimum values of a function (this has already been dis-
cussed in previous chapters).
• Related Rates: Solving problems where two or more quantities are changing with respect to time or
another variable.
17
10.3 Example of an Optimization Problem
Suppose you are given a fixed perimeter for a rectangle and you need to maximize its area. Let the length
of the rectangle be l and the width be w. The perimeter is given by P = 2l + 2w, and the area is
A = l × w. You want to maximize the area A, subject to the constraint of P = 100.
First, write w in terms of l using the perimeter equation. Namely,
100
w= −l
2
Thus, w = 50 − l. Then, substitute this into the area equation, i.e., A(l) = l(50 − l) = 50l − l2 . Then,
differentiate the area function, i.e., A′ (l) = 50 − 2l, and solve for A′ (l) = 0, i.e., 50 − 2l = 0 ⇒ l = 25. This
corresponds to the maximum of the function. As a conclusion, the length that maximizes the area is
l = 25, and the width is w = 50 − 25 = 25.
1. Write an equation relating the variables: Express the quantities involved in the problem as
functions of time.
2. Differentiate implicitly: Differentiate both sides of the equation with respect to time t, using the
chain rule for terms involving time-dependent variables.
3. Solve for the desired rate: Solve for the rate that is being asked in the problem.
4. Substitute known values: Plug in the known values for the variables and rates to find the unknown
rate.
As an example, consider the problem of filling a tank. Suppose water is being poured into a cone-shaped
tank at a rate of 5m3 / min. The radius of the tank is increasing at a rate of 0.2m/ min. How fast is the
height of the water rising when the radius is 2 meters and the height is 6 meters?
First, write down the equation for the volume of the cone. This is V = 31 πr2 h. Then, differentiate with
respect to time:
dV 1 dr dh
= π 2rh + r2
dt 3 dt dt
Then, substitute known values. We are given the following information:
• dV
dt = 5m3 / min
• dr
dt = 0.2m/ min
• r = 2m
• h = 6m
1 dh
5= π 2 × 2 × 6 × 0.2 + 22 ×
3 dt
dh
Solving gives dt ≈ −0.00625m/ min.
18
10.5 Exercises
Question 1: Solve the following optimization problems:
(a) A rectangular garden is to be fenced with 100 meters of fencing. What dimensions will maximize
the area of the garden?
(b) A cylindrical can is to be made from 150cm2 of material. Find the dimensions, including the
radius and the height, that will maximize the volume of the can.
(c) A box with an open top is to be made from a square piece of cardboard with side length of 30
centimeters. What dimensions will maximize the volume of the box?
(a) Water is being pumped into a spherical tank at a rate of 4 cubic meters per minute. Find the
rate at which the radius of the water is increasing when the radius is 3 meters.
(b) A ladder is leaning against a wall. The top of the ladder slides down the wall at a rate of 1 foot
per second. How fast is the base of the ladder moving when the top is 4 feet above the ground
and the ladder is 5 feet long?
(c) A balloon is being inflated. The radius of the balloon is increasing at a rate of 0.1 centimeters
per second. How fast is the volume of the balloon increasing when the radius is 10 centimeters?
f (xn )
xn+1 = xn −
f ′ (xn )
where:
The method begins with an initial guess x0 and then iterates this process to converge to a more accurate
approximation of the root. The steps usually go as follows:
1. Choose an initial guess x0 : Start with a reasonable approximation of the root. This guess should
ideally be close to the actual root for faster convergence.
2. Evaluate f (x) and f ′ (x): Compute the function value and its derivative at x0 .
3. Apply Newton’s Method: Use the given formula above to find the next approximation.
19
4. Repeat the process: Continue applying the formula iteratively until the difference between con-
secutive approximations is smaller than a predetermined tolerance level, or until the desired level of
accuracy is achieved.
5. Check: Ensure that the method is converging to a root. If there is oscillation detected, the initial
guess must be adjusted accordingly.
cos(1) − 1
x1 = 1 − ≈ 0.7503638697
− sin(1) − 1
cos(0.7503638697) − 0.7503638697
x2 = 0.7503638697 − ≈ 0.7391128909.
− sin(0.7503638697) − 1
We repeat this process until the fourth step, at which we achieve the approximation of x4 ≈ 0.7390851332.
As you can see, at each step, we get closer and closer to the real value of the root. However, it is important
to remember that Newton’s method does not solve for the root; it only can provide us with a very good
and accurate approximation if applied correctly.
11.4 Exercises
Question 1: Use Newton’s method to approximate at least one root for each of the following functions:
(a) f (x) = x3 − 2x − 5
(b) f (x) = ex − 3
(c) f (x) = ln(x) − 2
(d) f (x) = x2 + x − 6
Question 2: Use Newton’s method to find the approximate solution in the given interval for each of
the following equations:
20