MAT1051 Lecture3
MAT1051 Lecture3
MAT1051 Lecture3
LIMITS
MAT1051
BAU
Lecture 3 Objectives
◦ Find the equation of the tangent line to a given graph of a function.
◦ Find the average and instantaneous velocity.
◦ Determine the limit of a function graphically.
◦ Use analytical methods to find the limit of a function.
◦ Apply algebraic techniques to find the limit of a function.
◦ Compute infinite limits and find vertical asymptotes of a function.
Why Study Limits?
◦ Limits are the founding blocks of calculus; that is of differentiation and integration
◦ They allow us to talk about:
◦ Velocity and acceleration;
◦ Population growth
◦ Marginal cost
◦ Instantaneous heart rate
◦ Optimization algorithms used in machine learning
◦ Areas under curves
◦ Surface areas
◦ Volumes
The Tangent Problem
◦ Tangent is derived from the Latin word tangens, meaning ”touching.”
◦ A tangent to a curve is a line that touches the curve, but at how many points?
◦ Euclid defined the tangent as a line that intersects the circle at exactly one point.
◦ We will adopt the same definition for a tangent to a curve but bearing in mind that the tangent line
should have the same direction as the curve at the point of intersection.
Observations:
• The line 𝑡 passing through P is not a tangent line to the curve
𝐶 since it intersects the curve at two points.
• The line 𝑙 passing through P intersects the curve 𝐶 only once, yet it
does not have the same direction as the curve at the point P.
◦ Goal: Find a precise meaning to the tangent line to a given curve.
Example 1
◦ Find an equation of the tangent line to the parabola 𝑦 = 𝑥 2 at
the point 𝑃 1,1 .
◦ Solution:
◦ An equation of a line is of the form 𝑦 = 𝑚𝑥 + 𝑏, where 𝑚 is
the slope and 𝑏 is the 𝑦- intercept.
◦ Challenge: To find the slope we need two points, but we are
only given one point 𝑃 on the line 𝑡!
◦ We will attempt to compute an approximation of the slope
by choosing a nearby point, call it 𝑄 𝑥, 𝑥 2 on the parabola as
shown in the graph.
◦ Now, we have a new line, called the secant line, on which we
have two points, namely 𝑃 and 𝑄.
◦ We can, thus, compute the slope 𝑚𝑃𝑄 of the secant line.
◦ Choose 𝑥 ≠ 1, so that 𝑄 ≠ 𝑃, then
𝑥2 − 1
𝑚𝑃𝑄 =
𝑥−1
Example 1 Continued
◦ For instance, choose the point 𝑄 1.5, 2.25 . Thus,
2.25 − 1
𝑚𝑃𝑄 = = 2.5.
1.5 − 1
◦ However, choosing just one nearby point does not give us the complete picture. So, we
need to experiment more with different nearby points, to make sure that we have the
”best” approximation. Calculations are shown in the tables on the right.
◦ Any guess what the slope of the tangent line 𝑡 is?
◦ Yes! It appears that 𝑚 = 2.
◦ We observe that as the point Q gets closer and closer to the point 𝑃, the slope of the
secant line approaches the slope of the tangent line at the point 𝑃 1,1 . We express this
as a limit and write
𝑥2 − 1
𝑚 = lim 𝑚𝑃𝑄 = lim =2
𝑄→𝑃 𝑥→1 𝑥 − 1
◦ Thus, we can write the equation of the tangent line to the curve 𝑦 = 𝑥 2 at the point
𝑃 1,1 .
𝑦 − 1 = 2 𝑥 − 1 ⟹ 𝑦 = 2𝑥 − 1.
Example 1
Continued
The limiting process adopted in
this example is illustrated
geometrically.
Observe that as 𝑄 gets closer
and closer to 𝑃 along the
parabola, the secant lines
approach the tangent line 𝑡.
Instantaneous Velocity
◦ The velocity problem
◦ When driving your car in Istanbul traffic, you notice that your speedometer is constantly changing. In other
words, the velocity of the car is not constant. Therefore, you would come to the conclusion that the car has
definite velocity at each moment, and hence leading us to ask the following question:
How can one define the “instantaneous” velocity?
◦ Example: Suppose that a ball is dropped from the top of a tower, 450 m above the ground. Find the
velocity of the ball after 5 seconds.
◦ Solution: Galileo, the Italian astronomer, physicist and engineer in the 16th century, provided us with a
law to find the distance of a freely falling body. More specifically he stated that any freely falling body is
proportional to the square of the time it has been falling (neglecting air resistance). If the distance fallen
after 𝑡 seconds is denoted by 𝑠(𝑡) and measured in meters, using Galileo’s law, we get the equation
𝑠 𝑡 = 4.9𝑡 2 .
Instantaneous Velocity
◦ Challenge: The question asks us to find the velocity after 5 seconds, that at 𝑡 = 5, so we are not dealing
with a time interval!
◦ To tackle this challenge, we are going to do our best by approximating the definite velocity at 𝑡 = 5
using the average velocity over small time periods.
◦ For instance, choose a brief time interval such as 𝑡 = 5 to 𝑡 = 5.1 seconds.
◦ Thus, the average velocity is computed as follows:
𝑐ℎ𝑎𝑛𝑔𝑒 𝑖𝑛 𝑝𝑜𝑠𝑖𝑡𝑖𝑜𝑛
𝑎𝑣𝑒𝑟𝑎𝑔𝑒 𝑣𝑒𝑙𝑜𝑐𝑖𝑡𝑦 =
𝑡𝑖𝑚𝑒 𝑒𝑙𝑎𝑝𝑠𝑒𝑑
𝑠 5.1 − 𝑠(5)
=
0.1
4.9 5.1 2 − 4.9 5 2
= = 49.49 m/s
0.1
Instantaneous Velocity
◦ Decreasing the time periods will give us a better approximation of the
velocity at the instant 𝑡 = 5 second.
◦ The table gives the average velocity over different time intervals.
◦ What are your observations?
◦ As the time interval is getting smaller and smaller, the average velocity
approaches 49 𝑚/𝑠.
◦ It is safe to assume that the instantaneous velocity when 𝑡 = 5 is
𝑣 = 49 m/s.
The Tangent Problem and The Velocity
Problem
◦ Wait a minute!
◦ Is there a connection between both problems?
◦ In the tangent problem, the idea relied on the power of what we call the limit. More specifically, as 𝑥 → 1,
slopes of secant lines approach the slope of the tangent line.
◦ In the velocity problem, we have a similar notion, that is, as 𝑡 → 5, average velocities approach an
instantaneous velocity.
◦ Note that the computation of the average velocity mimics the one of the slope of the secant line.
Computing the average velocity is analogous to computing the slope of
the secant line 𝑃𝑄 passing through the points 𝑃(𝑎, 4.9𝑎2 ) and
𝑄(𝑎 + ℎ, 4.9 𝑎 + ℎ 2 ).
4.9 𝑎 + ℎ 2 − 4.9𝑎2
𝑎𝑣𝑒𝑟𝑎𝑔𝑒 𝑣𝑒𝑙𝑜𝑐𝑖𝑡𝑦 = = 𝑚𝑃𝑄
𝑎+ℎ −𝑎
Definition:
Suppose the function 𝑓 is defined for all 𝑥 near 𝑎 except possibly at 𝑎. If we can make the values 𝑓 𝑥
arbitrarily close to 𝐿 (as close to 𝐿 as we like) by taking 𝑥 to be sufficiently close to 𝑎 (on either side of 𝑎),
we write
lim 𝑓 𝑥 = 𝐿
𝑥→𝑎
and say “the limit of 𝑓 𝑥 , as 𝑥 approaches 𝑎, equals 𝐿.”
• The definition of limits says that 𝑓(𝑥) gets closer and closer to 𝐿 as 𝑥 gets closer and closer to 𝑎 from both sides of
𝑎.
• The value lim 𝑓 𝑥 (if it exists) depends on how 𝑓 behaves near 𝑎 and not at 𝑎.
𝑥→𝑎
The Three Different Scenarios of Existence
of Limits
◦ Solution:
◦ We see that 𝑓 1 = 2 (no holes or cuts). As 𝑥 approaches 1
from either side, 𝑓 𝑥 approaches 2. Thus, lim 𝑓 𝑥 = 2.
𝑥→1
Example 2 Continues
◦ We see that 𝑓 2 is defined and is equal 5. ◦ We see that 𝑓 3 is undefined. However,
However, as 𝑥 approaches 2 from either side, as 𝑥 approaches 3 from either side,
𝑓 𝑥 tends to 3 since the points on the graph of 𝑓 𝑓 𝑥 tends to 4 since the points on the graph of 𝑓
approach the open circle 2,3 . Therefore, approach the open circle 3,4 . Therefore,
lim 𝑓 𝑥 = 3 ≠ 𝑓 2 . lim 𝑓 𝑥 = 4.
𝑥→2 𝑥→3
Example 3
𝑥−1
◦ Guess the value of lim .
𝑥→1 𝑥 2 −1
◦ Solution:
𝑥−1
◦ The function 𝑓 𝑥 = 2 is undefined at 𝑥 = 1, but we
𝑥 −1
can still investigate the limit by definition. In order to
find the limit of 𝑓 𝑥 as 𝑥 → 1, we only need to
consider the values of 𝑥 that are close to 1 but not
exactly 1.
◦ If we investigate the values of the function 𝑓(𝑥) (in the
given tables) for different values of 𝑥 that approach 1
(but not equal to 1) from the right and the left of 1, we
can make an educated guess that
𝑥−1 1
lim = .
𝑥→1 𝑥 2 − 1 2
One-Sided Limits
◦ To motivate the idea of one-sided limits, consider the Heaviside
function 𝐻, defined by
0, if 𝑡 < 0
𝐻 𝑡 =
1, if 𝑡 ≥ 0
◦ This function is used to describe an electric current that is switched on
at time 𝑡 = 0. The name is due to the electrical engineer Oliver
Heaviside (1850-1925).
◦ By looking at the graph of this function, it is clear that as 𝑡 approaches
0, we get two different values from the right and the left. Thus, we
cannot talk about lim 𝐻 𝑡 .
𝑡→0
◦ So, we say that lim 𝐻 𝑡 does not exist (DNE).
𝑡→0
◦ However, we can talk about how the function behaves as 𝑡 approaches
0 from the right, i.e., for values of 𝑡 > 0 but near 0, as well as the
behavior of 𝐻(𝑡) as 𝑡 approaches 0 from the left (values of 𝑡 < 0 but
near 0).
One-Sided Limits
◦ From the graph on the right, we note that the Heaviside function tends to
0 as 𝑡 approaches 0 from the left, and we write,
• Left-sided limit Suppose 𝑓 is defined for all 𝑥 near 𝑎 with 𝑥 < 𝑎. If 𝑓(𝑥) is arbitrarily close to 𝐿 for all 𝑥
sufficiently close to 𝑎 with 𝑥 < 𝑎, we write
lim− 𝑓 𝑥 = 𝐿
𝑥→𝑎
and say the limit of 𝑓(𝑥) as 𝑥 approaches 𝑎 from the left equals 𝐿.
Relationship Between One-Sided and Two-
Sided Limits
Theorem 1
Assume 𝑓 is defined for all 𝑥 near 𝑎 except possibly at 𝑎.
◦ Solution:
◦ lim− 𝑔(𝑥) = 3 but lim+ 𝑔(𝑥) = 1, therefore lim 𝑔(𝑥) does not exist. Note that g(2) is
𝑥→2 𝑥→2 𝑥→2
undefined.
◦ lim− 𝑔(𝑥) = 2 and lim+ 𝑔(𝑥) = 2, thus lim 𝑔(𝑥) = 2. Note that 𝑔 5 = 1 ≠ lim 𝑔(𝑥).
𝑥→5 𝑥→5 𝑥→5 𝑥→5
Example 5 𝜋
◦ Investigate lim sin 𝑥 .
𝑥→0
◦ Solution:
𝜋
◦ Note that the function 𝑓 𝑥 = sin is undefined at 0. When we evaluate some
𝑥
values of 𝑥 close to 0, we get
1
𝑓 1 = sin 𝜋 = 0 𝑓 = sin 2𝜋 = 0
2
1 1
𝑓 = sin 3𝜋 = 0 𝑓 = sin 4𝜋 = 0
3 4
𝑓 0.1 = sin 10𝜋 = 0 𝑓 0.01 = sin 100𝜋 = 0
𝑓 0.001 = 0 𝑓 0.0001 = 0
𝜋
◦ We might incorrectly conclude that lim sin 𝑥 = 0, but not so fast! It is true that
1 𝑥→0
𝑓 = 0 for any integer 𝑛, but also 𝑓(𝑥) oscillates between 1 and − 1 for
𝑛
infinitely many values of 𝑥 that approach 0.
◦ Since the values of 𝑓(𝑥) do not approach a fixed number as x approaches 0, then
𝜋
lim sin DNE
𝑥→0 𝑥
Techniques for Computing Limits
◦ In the previous examples, we used graphs and numerical
tables to intuitively guess the limit of a function. As in
the previous examples, we witnessed the drawbacks of
such techniques. 𝑓 𝑥 approaches 𝑓 𝑎
Example:
Evaluate the following limit
1
lim 𝑥+5 .
𝑥→−1 2
Solution:
Based on the above theorem, the limit of this linear function can be computed by direct substitution:
1 1 9
lim 𝑥 + 5 = 2 −1 + 5 = 2 .
𝑥→−1 2
Theorem 3 Limit Laws
Assume lim 𝑓 𝑥 𝑎nd lim 𝑔 𝑥 exist. The following properties hold, where 𝑐 is a real number, and 𝑚 > 0 and 𝑛 > 0 are
𝑥→𝑎 𝑥→𝑎
integers.
1. Sum lim 𝑓 𝑥 + 𝑔 𝑥 = lim 𝑓 𝑥 + lim 𝑔 𝑥
𝑥→𝑎 𝑥→𝑎 𝑥→𝑎
𝑓(𝑥) lim 𝑓 𝑥
5. Quotient lim 𝑔(𝑥) = 𝑥→𝑎 , provided that lim 𝑔 𝑥 ≠ 0
𝑥→𝑎 lim 𝑔 𝑥 𝑥→𝑎
𝑥→𝑎
𝑛 𝑛
6. Power lim 𝑓 𝑥 = lim 𝑓 𝑥
𝑥→𝑎 𝑥→𝑎
𝑛/𝑚 𝑛/𝑚
7. Fractional Power lim 𝑓 𝑥 = lim 𝑓 𝑥 , provided that 𝑓 𝑥 ≥ 0, for 𝑥 near 𝑎, if 𝑚 is even and 𝑛/𝑚 is
𝑥→𝑎 𝑥→𝑎
reduced to lowest terms.
Example 6
◦ Use the Limit Laws and the graphs of 𝑓 and 𝑔 to evaluate the following limits, if
they exist.
◦ lim 𝑓 𝑥 + 5𝑔 𝑥
𝑥→−2
◦ Solution: From the graph, we see that the limit of both functions exist,
thus we can use the Limit Laws to evaluate the given limit.
◦ lim 𝑓 𝑥 = 1 𝑎𝑛𝑑 lim 𝑔 𝑥 = −1
𝑥→−2 𝑥→−2
◦ lim [5 𝑔(𝑥)] = 5 lim 𝑔 𝑥 = 5(−1) = −5 (By Law 3)
. 𝑥→−2 𝑥→−2
◦ lim 𝑓 𝑥 + 5𝑔 𝑥 = 1 + −5 = −4.
𝑥→−2
Example 6 Continued
◦ Use the Limit Laws and the graphs of 𝑓 and 𝑔 to evaluate the following limits, if they
exist.
◦ lim 𝑓 𝑥 𝑔 𝑥
𝑥→1
◦ Solution: From the graph, we see that
lim 𝑓 𝑥 = 2 but lim 𝑔 𝑥 does not exist since lim− 𝑔 𝑥 = −2, whereas
𝑥→1 𝑥→1 𝑥→1
lim 𝑔 𝑥 = −1.
𝑥→1+
◦ Thus, we cannot use Law 4 to evaluate this limit.
◦ On the other hand, we can use Law 4 to evaluate the one-sided limits as
follows:
Theorem 4
Assume 𝑝 and 𝑞 are polynomials and 𝑎 is a constant.
• Polynomial functions: lim 𝑝 𝑥 = 𝑝(𝑎).
𝑥→𝑎
𝑝 𝑥 𝑝 𝑎
• Rational functions: lim = , provided that 𝑞 𝑎 ≠ 0.
𝑥→𝑎 𝑞 𝑥 𝑞 𝑎
𝑥 2 +3𝑥+1
◦ Example: Evaluate lim .
𝑥→2 𝑥+2
Note: In this example we used
𝑥 2 +3𝑥+1 22 +3 2 +1 11
◦ Solution: lim 𝑥+2 = = • The theorem above
𝑥→2 2+2 4
• Limit Laws 1, 3, and 5.
Example 6: An Algebraic Function
2𝑥 3 +9+3𝑥−1
◦ Evaluate lim 4𝑥+1
.
𝑥→2
◦ Solution:
◦ Using the Limit Laws and limits of polynomial and rational functions, we have,
Theorem 5
Assume 𝑚 > 0 and 𝑛 > 0 are integers. The fractional power law (Law 7) in Theorem 3 is modified as follows:
𝑛/𝑚 𝑛/𝑚
• lim+ 𝑓 𝑥 = lim+ 𝑓 𝑥 , if 𝑚 is even and 𝑛/𝑚 is reduced to lowest term, we assume 𝑓 𝑥 ≥ 0,
𝑥→ 𝑎 𝑥→𝑎
for 𝑥 near 𝑎 with 𝑥 > 𝑎.
𝑛/𝑚
𝑛/𝑚
• lim 𝑓 𝑥 = lim 𝑓 𝑥 , if 𝑚 is even and 𝑛/𝑚 is reduced to lowest term, we assume 𝑓 𝑥 ≥ 0,
𝑥→ 𝑎− 𝑥→𝑎−
for 𝑥 near 𝑎 with 𝑥 < 𝑎.
Example 7
◦ Let
−2𝑥 + 4, 𝑖𝑓 𝑥 ≤ 1
𝑓 𝑥 = .
𝑥−1 𝑖𝑓 𝑥 > 1
◦ Find the values of lim− 𝑓(𝑥) and lim+ 𝑓 𝑥 , and lim 𝑓 𝑥 , if they exist. If not,
𝑥→ 1 𝑥→ 1 𝑥→1
state the reason.
◦ Solution:
◦ For 𝑥 ≤ 1, 𝑓 𝑥 = −2𝑥 + 4,
𝑥−1 1 1
lim = lim = .
𝑥→1 𝑥 − 1 𝑥→1 𝑥 + 1 2
The Squeeze Theorem
◦ The Squeeze Theorem is another useful
property for evaluating limits when direct
substitution and other algebraic techniques
fail.
◦ The following graph provides a visual
explanation of the Squeeze Theorem.
◦ From the graph, we see that ℎ and 𝑓 have the
same limit 𝐿 at 𝑎.
◦ In addition, the function 𝑔 is squeezed
between ℎ and 𝑓 near 𝑎.
◦ What can you say about the limit of 𝑔 at 𝑎?
The Squeeze Theorem
Theorem 6
◦ Recall:
◦ For 𝑥 → 𝑎− , we consider values of 𝑥 that are less than 𝑎.
◦ For 𝑥 → 𝑎+ , we consider values of 𝑥 that are greater than 𝑎.
Vertical Asymptotes
◦ In all the infinite limits we have investigated above, the line 𝑥 = 𝑎 is called a vertical asymptote; that is the graph
of 𝑓(𝑥) approaches this vertical line as 𝑥 approaches 𝑎 but never crosses it.
Defintion
If lim 𝑓 𝑥 = ±∞, lim+ 𝑓 𝑥 = ±∞, or lim− 𝑓 𝑥 = ±∞ , the line 𝑥 = 𝑎 is called a vertical
𝑥→𝑎 𝑥→𝑎 𝑥→𝑎
asymptote of 𝑓.
1
◦ For example, the line 𝑥 = 0 (𝑦-axis) is a vertical asymptote of the curve .
𝑥2
Example 11
2𝑥 2𝑥
◦ Find lim+ and lim− .
𝑥→3 𝑥−3 𝑥→3 𝑥−3
◦ Solution:
◦ As 𝑥 → 3+ (𝑥 approaches 3 but larger than 3), the numerator approaches 6 and the denominator
𝑥 − 3 is positive and approaches 0. approaches 6
◦ Therefore,
2𝑥 6
lim = + = +∞
𝑥→3+ 𝑥 − 3 0
Positive and approaches 0
◦ As 𝑥 → 3− (𝑥 approaches 3 but smaller than 3), the numerator approaches 6 and the denominator
𝑥 − 3 is negative and approaches 0.
approaches 6
◦ Therefore,
2𝑥 6
lim = − = −∞
𝑥→3− 𝑥 − 3 0
Negative and approaches 0
Example 11 Continued
◦ In both cases, the limit does not exist.
◦ 𝑥 = 3 is a vertical asymptote of 𝑓.
Example 12
◦ Find the vertical asymptotes of 𝑓 𝑥 = tan 𝑥.
◦ Solution:
◦ To find vertical asymptotes (VA) of a given function, we need to find the 𝑥 values that make the
denominator 0.
sin 𝑥
◦ Since 𝑓 𝑥 = tan 𝑥 = , possible VA could occur when cos 𝑥 = 0 .
cos 𝑥
+ 𝜋 − − 𝜋 +
◦ We note that as cos 𝑥 → 0 , 𝑥 → and as cos 𝑥 → 0 , 𝑥 → .
2 2
◦ Thus,
sin 𝑥 1 sin 𝑥 1
lim
𝜋 −
= + = +∞ 𝑎𝑛𝑑 lim + = − = −∞
𝑥→ 2 cos 𝑥 0 𝑥→
𝜋 cos 𝑥 0
2
𝜋
◦ Therefore, the line 𝑥 = is a vertical asymptote of 𝑓 𝑥 = tan 𝑥.
2
2𝑛+1 𝜋
◦ Similarly, the lines 𝑥 = , where 𝑛 is an integer, are vertical asymptotes for 𝑓 𝑥 = tan 𝑥.
2