Lecture 2 Continuity and Differentiability
Lecture 2 Continuity and Differentiability
21-Dec-23
ftp://10.220.20.26/academic/mce/maka 1
Continuity of a Function
A function f is continuous at the point x = a if the followings are true:
y
i ) f (a ) is defined
21-Dec-23
ftp://10.220.20.26/academic/mce/maka 2
Example 1
1) f (3) = 32 − 5 = 9 − 5 = 4
3) Since f is continuous at x = 3.
lim f (x) = f (3)
x→3
21-Dec-23
3
ftp://10.220.20.26/academic/mce/maka
Properties of Continuous Functions
= lim f (4 − h) = lim f (4 + h)
h →0
h →0
= lim 2(4 − h) + 3 16
h →0
= lim 7 +
h →0
4+h
=8+3
= 7+4
= 11
= 11
Since L.H.L = R.H.L.
21-Dec-23 lim f ( x) = 11 ftp://10.220.20.26/academic/mce/maka 5
x →4
Now, when x = 4 then f(x) = 2x+3
f (4) = 2 4 + 3
= 11
Again Since, lim f ( x) = f (4)
x→4
21-Dec-23
6
ftp://10.220.20.26/academic/mce/maka
−3 x + 5; − 3 x 1
Problem 3 Determine whether the function is
If f ( x ) = 2; 1 x 2
continuous at x=1, x=2
1
Solution: 1 + x; 2 x 4
2
When x < 1 f(x) = -3x + 5 When x 1, then f ( x ) = 2
R.H.L. = lim+ f ( x)
L.H.L = lim− f ( x ) x →1
x →1
= lim f (1 + h)
h →0
= lim f (1 − h)
h →0 = lim 2
h→ 0
= lim − 3(1 − h) + 5
h →0
= 2
= -3(1-0) + 5
= 2
Since lim f ( x) = 2 = lim− f ( x)
x →1+ x →1
21-Dec-23 lim f ( x) = 2
x →1 ftp://10.220.20.26/academic/mce/maka 7
Now, when x = 1 then f(x) = 2
f (1) = 2
21-Dec-23
ftp://10.220.20.26/academic/mce/maka 8
Problem 2 −3 x + 5; − 3 x 1 Cont’d.
If f ( x) = 2; 1 x 2
Solution: 1
1 + x; 2 x 4
2
1
When x < 2 the f(x) = 2 When x 2, then f ( x ) = 1 + x
2
R.H.L. = lim+ f ( x)
L.H.L = xlim
→2 −
f ( x) x →2
= lim f (2 + h)
h →0
= lim f (2 − h)
h→0
1
= lim 1 + ( 2 + h )
h →0
2
= lim 2
h→ 0
= 2
= 2
lim f ( x) = 2
x→2
21-Dec-23
9
ftp://10.220.20.26/academic/mce/maka
1
f ( x) = 1+
Now, when x = 2 then
x
2
1
f ( 2) = 1 + ( 2)
2
=2
Again Since, lim f ( x) = f ( 2 )
x→2
21-Dec-23
ftp://10.220.20.26/academic/mce/maka 10
Problem #3 Show that f ( x ) = sin x is continuous for every x.
Solution:
f ( x) = sin xand we take an arbitrary value of x say x=a.
Now, we have to check lim f ( x ) exists or not.
x→ a
= lim sin( a − h )
h →0
Now f ( x) = sin x
f (a ) = sin a ...........(ii)
We observe that from (i) and (ii) that
lim x→a f ( x ) = f (a )
Since f(x) satisfies all conditions of continuity, thus the function f(x) is
continuous at x = a.
21-Dec-23
ftp://10.220.20.26/academic/mce/maka 12
Problem : 5 A function f(x) is defined as follows:
f(x) = cosx , if x ≥ 0
- cosx , if x < 0
Is f(x) continuous at x = 0 ?
Solution:
When x<0 then f(x) = - cos x When x ≥ 0 then f(x) = cos x
= lim f (0 − h) = lim f (0 + h)
h →0 h →0
= lim f ( −h )
h →0
= lim f (h)
h→0
Thus,
21-Dec-23 the function f(x) is not continuous at x = 0.ftp://10.220.20.26/academic/mce/maka 13
Problem : 6 Examine the continuity of the following function at x = ½
1
x when 0 x
f ( x) = 2
1
1 − x when x 1
2
Solution:
Again, when x1 then f(x) = 1 – x
When x 1 then f(x) = x 2
2
1
L.H.L= lim− f ( x ) R.H.L= 1 +
lim f ( x ) = lim f ( + h )
1 x→ h →0 2
x→ 2
2
1
= lim f ( − h ) 1
h →0 2 = lim 1 − + h
1
h →0
2
= lim ( − h)
h →0 1
2 = lim − h
1
= −0=
1 h →0
2
2 2 1
=
2
21-Dec-23
14
ftp://10.220.20.26/academic/mce/maka
Since L.H.L = R.H.L.
1
lim f ( x ) =
x→
1 2
2
1 1 1
f =1− =
2 2 2
1
Again Since, lim f ( x) = f
x→
1
2
2
1
So, f(x) is continuous at x = 2
21-Dec-23
15
ftp://10.220.20.26/academic/mce/maka
Problem : 6 Compute the value for the constant of k, that will make
the following function continuous at x=1
7 x − 2, x 1
f ( x) =
Solution: kx 2
,x 1
When x 1 then f ( x) = 7 x − 2 Whenx 1 then f ( x) = kx
2
= lim f (1 − h) = lim f (1 + h)
h →0
h →0
= lim{7(1 − h) − 2
h →0
= lim k (1 + h) 2
h →0
=5
=k
21-Dec-23
16
ftp://10.220.20.26/academic/mce/maka
When x = 1 then f ( x) = 7 x − 2
f (1) = 7 1 − 2 = 5
If the function is continuous than
lim f ( x ) = lim f ( x ) = 5
x →1+ x →1−
So, k = 5.
21-Dec-23
17
ftp://10.220.20.26/academic/mce/maka
Now, let’s see how to detect discontinuities when a function is defined by a formula.
Problem :9
Where, are each of the following functions discontinuous?
1
if x 0
x2 − x − 2 f ( x) = x 2
f ( x) = if x = 0
x−2 1
x2 − x − 2
if x 2
f ( x) = x − 2
1 if x = 2
21-Dec-23
18
ftp://10.220.20.26/academic/mce/maka
x2 − x − 2
f ( x) =
x−2
21-Dec-23
19
ftp://10.220.20.26/academic/mce/maka
1
if x 0
f ( x) = x 2
1 if x = 0
However,
1
lim f ( x) = lim 2 does not exist. The discontinuity is called
x →0 x →0 x
an infinite discontinuity.
So, f is discontinuous at 0.
Figure 1.38
21-Dec-23
20
ftp://10.220.20.26/academic/mce/maka
x2 − x − 2
if x 2
f ( x) = x − 2
1 if x = 2
Here, f(2) = 1 is defined and
x −x−2
2
lim f ( x) = lim
x→2 x→2 x−2
( x − 2)( x + 1) The kind of discontinuity illustrated
= lim here is called removable.
x→2 x−2
= lim( x + 1) = 3 exists.
x→2
lim f ( x) f (2)
x →2
21-Dec-23
21
ftp://10.220.20.26/academic/mce/maka
Practice Problem
Exercise-1.5: 29.30,31.
Exercise-1.6: 36,38,40,49,50.
21-Dec-23
22
ftp://10.220.20.26/academic/mce/maka
The Derivative and the Tangent Line
Problem
21-Dec-23
23
ftp://10.220.20.26/academic/mce/maka
The Tangent Line Problem
Each problem involves the notion of a limit, and calculus can be introduced with
any of the four problems.
21-Dec-23
24
ftp://10.220.20.26/academic/mce/maka
The Tangent Line Problem
❑ What does it mean to say that a line is tangent to a curve at a point? Essentially,
the problem of finding the tangent line at a point P boils down to the problem of
finding the slope of the tangent line at point P.
❑ You can approximate this slope using a secant line through the point of
tangency and a second point on the curve, as shown in Figure 2.3.
21-Dec-23
25
Figure 2.3
ftp://10.220.20.26/academic/mce/maka
The Tangent Line Problem
❑ If (c, f(c)) is the point of tangency and is a second point on
the graph of f, the slope of the secant line through the two points is given by
substitution into the slope formula
❑ You can obtain more and more accurate approximations of the slope of the
tangent line by choosing points closer and closer to the point of tangency, as
shown in Figure 2.4.
21-Dec-23
27
ftp://10.220.20.26/academic/mce/maka
The Tangent Line Problem
❑ The slope of the tangent line to the graph of f at the point (c, f (c)) is also
called the slope of the graph of f at x = c.
21-Dec-23
28
ftp://10.220.20.26/academic/mce/maka
Example 1 – The Slope of the Graph of a Linear Function
❑ To find the slope of the graph of f (x) = 2x – 3 when c = 2, you can apply
the definition of the slope of a tangent line, as shown.
21-Dec-23
29
ftp://10.220.20.26/academic/mce/maka
Example 1 – The Slope of the Graph of a Linear Function
21-Dec-23
30
Figure 2.5
ftp://10.220.20.26/academic/mce/maka
The Tangent Line Problem
❑ The definition of a tangent line to a curve does not cover the possibility of a
vertical tangent line.
For vertical tangent lines, you can use the following definition.
If f is continuous at c and
then the vertical line x = c passing through (c, f (c)) is a vertical tangent line to
the graph of f.
21-Dec-23
31
ftp://10.220.20.26/academic/mce/maka
The Tangent Line Problem
❑ For example, the function shown in Figure 2.7 has a vertical tangent line
at (c, f (c)).
Figure 2.7
❑ When the domain of f is the closed interval [a, b], you can extend the
definition of a vertical tangent line to include the endpoints by considering
21-Dec-23continuity and limits from the right (for x = a) and from the left (for x = b).
32
ftp://10.220.20.26/academic/mce/maka
The Derivative of a Function
❑ The limit used to define the slope of a tangent line is also used to define one
of the two fundamental operations of calculus—differentiation.
21-Dec-23
33
ftp://10.220.20.26/academic/mce/maka
The Derivative of a Function
21-Dec-23
ftp://10.220.20.26/academic/mce/maka 34
The Derivative of a Function
❑ In addition to f ′(x), which is read as “f prime of x,” other notations are used to
denote the derivative of y = f(x). The most common are
21-Dec-23
ftp://10.220.20.26/academic/mce/maka 35
The Derivative of a Function
❑ In addition to f ′(x), which is read as “f prime of x,” other notations are used to
denote the derivative of y = f(x). The most common are
21-Dec-23
36
ftp://10.220.20.26/academic/mce/maka
Example 3 – Finding the Derivative by the Limit Process
❑ To find the derivative of f(x) = x3 + 2x, use the definition of the derivative as
shown.
21-Dec-23
ftp://10.220.20.26/academic/mce/maka 37
Differentiability and Continuity
❑ Note that the existence of the limit in this alternative form requires that the
one-sided limits
❑ These one-sided limits are called the derivatives from the left and from the
right, respectively.
❑ It follows that f is differentiable on the closed interval [a, b] when if it is
differentiable on (a, b) and when the derivative from the right at a and the
derivative from the left at b both exist.
21-Dec-23
ftp://10.220.20.26/academic/mce/maka 39
Differentiability: Example 1
0
f ( x) − f (1) −3 x + 5 − 2 = lim =0
= lim− = lim x →1 x − 1
x →1 x −1 x →1 x −1
−3 x + 3 −3( x − 1) Since Lf (1) Rf (1)
= lim = lim = −3
21-Dec-23 x →1 x − 1 x →1 x −1 The function f(x) is not differentiable at x = 1.
ftp://10.220.20.26/academic/mce/maka 40
Differentiability and Continuity: Example 2
3 + 2 x, −23 x 0
Solution f ( x) =
3 − 2 x ,0 x 3
2
Now L.H.L = lim− f ( x) = lim3 + 2 x
x →0 x →0
=3 Now, when x = 0, f ( x ) = 3 + 2 x
f (0) = 3
R.H.L = lim+ f ( x) = lim3 − 2 x
x →0 x →0
=3 So, lim f ( x ) = 3 = f ( 0 )
x →0
L. H. L. = R.H.L = 3
3 + 2 x, −23 x 0
Solution f ( x) =
3 − 2 x ,0 x 3
x 0 then f ( x) = 3 + 2 x
2
When x 0 then f ( x ) = 3 − 2 x
When
Now L.H.D = Lf (0) = Rf (0)
f ( x) − f (0) 3 + 2x − 3
= lim− = lim f ( x) − f (0) 3 − 2x − 3
h →0 x−0 h →0 x−0 = lim+ = lim
h →0 x−0 h →0 x−0
2x
= lim =2 −2 x
h →0 x = lim = −2
h →0 x
and
Figure 2.12
21-Dec-23
ftp://10.220.20.26/academic/mce/maka 45
Example 6 – A Graph with a Sharp Turn
and
So, f is not differentiable at x = 2 and the graph of f does not have a tangent line
at the point (2, 0).
21-Dec-23
ftp://10.220.20.26/academic/mce/maka 46
Differentiability and Continuity
❑ A function that is not differentiable at a point at which its graph has a sharp
turn or a vertical tangent line.
❑Some functions, however, are only implied by an equation. For instance, the
function y = 1/x is defined implicitly by the equation
xy = 1. Implicit form
21-Dec-23
ftp://10.220.20.26/academic/mce/maka 48
Implicit and Explicit Functions
❑To find dy/dx for this equation, you can write y explicitly as a function of x and
then differentiate.
❑This strategy works whenever you can solve for the function explicitly.
You cannot, however, use this procedure when you are unable to solve for y as a
function of x.
21-Dec-23
ftp://10.220.20.26/academic/mce/maka 49
Implicit and Explicit Functions
✓ For instance, how would you find dy/dx for the equation
21-Dec-23
ftp://10.220.20.26/academic/mce/maka 51
Example 1 – Differentiating with Respect to x
21-Dec-23
ftp://10.220.20.26/academic/mce/maka 52
Implicit and Explicit Functions
21-Dec-23
ftp://10.220.20.26/academic/mce/maka 53
Example 2 – Implicit Differentiation
❑Solution:
1. Differentiate both sides of the equation with respect to x.
21-Dec-23
ftp://10.220.20.26/academic/mce/maka 54
Example 2 – Solution
2. Collect the dy/dx terms on the left side of the equation and move all other
terms to the right side of the equation.
21-Dec-23
ftp://10.220.20.26/academic/mce/maka 55
Example 5 – Solution
Figure 2.30
21-Dec-23
ftp://10.220.20.26/academic/mce/maka 56
21-Dec-23 ftp://10.220.20.26/academic/mce/maka 57
Practice Problem
Exercise-2.1
26,27.
Exercise-2.2
35,46,47,48,49,50.
Exercise-2.3
21,23,24,41,42,43,45,46,65,66,67,68
Exercise 2.4
16,17,23,24
Exercise 2.5
39,40,41,42
Exercise 2.6
23,24,33,34
21-Dec-23 ftp://10.220.20.26/academic/mce/maka 58
Thanks a lot …
21-Dec-23
ftp://10.220.20.26/academic/mce/maka 59