Mth102 Function
Mth102 Function
By:
Dr. O. J. OMIDIRE
May 2, 2024
Course Outline
Contents:
▶ Real-valued functions of a real variable
▶ graphs of functions of a real variable
▶ limits and idea of continuity.
Objective
f :A→B
Definition
Examples of Functions:
1. Linear Function: f (x) = mx + c, where f : R → R.
2. Quadratic Function: f (x) = a2 + bx + c, where f : R → R.
3. Exponential Function: f (x) = e x , where f : R → R.
4. Absolute Value Function: f (x) = |x|, where f : R → R.
5. Sine Function: f (x) = sin(x), where f : R → [−1, 1].
Real-valued functions of a real variable
They are all real functions because all the values they assume are
real numbers, i.e the set of images is in R : Range ⊆ R.
OR
Domain of a real-valued function of a real variable is a subset of R
in which its elements can be seen as arguments of a function for
which the expression make sense (or is defined).
Examples of Function Domains:
√
For the function f (y ) = y , the domain is D = {y ∈ R | y ≥ 0}.
1
For the function f (x) = x−2 , the domain is D = {x ∈ R | x ̸= 2}.
Examples
√
For the function f (x) = 4 − x 2 , to find the domain, we consider
the inequality:
4 − x2 ≥ 0
Solving this inequality, we get:
x2 ≤ 4
Taking the square root of both sides and considering both positive
and negative roots, we have:
|x| ≤ 2
i.e domain of function f = Df = {−2, · · · , 2}
Examples 2:
1
If function f (x) = x−7 , its domain,
Df = {x ∈ R : x ̸= 7} = R\{7}.
Inverse Image/Preimage of a Function
f −1 (y ) = {x ∈ A | f (x) = y }
f −1 (Y ) = {x ∈ A | f (x) ∈ Y }
Examples
(i) Obtain the Inverse of f (x) = 3x + 5
Solution:
y = 3x + 5
y −5
x=
3
substitute x with f −1 (y ) so, the inverse function
y −5
f −1 (y ) = .
3
Range of a real-valued function
Range is the set of all possible values that the function can have as
output for every elements in the domain.
3
Obtain the range of f (x) = x+1
3
Step 1: Find the Inverse Function: Let y = x+1 and solve for x:
3
x= −1
y
Swap x and y : y = 3
x − 1 Solve for f −1 (y ):
3
f −1 (y ) = −1
y
Step 2: Find the Domain of the Inverse Function: The function
f −1 (y ) = y3 − 1 only makes sense if y ̸= 0. Therefore, the domain
of the inverse function, which is the range of the original function
3
f (x) = x+1 , is
R = {y ∈ R | y ̸= 0}
More Examples:
x+2
Obtain the range of f (x) = x+3
x+2
Step 1: Find the Inverse Function: Let y = x+3 and solve for x:
3y − 2
x=
1−y
Swap x and y :
3x − 2
y=
1−x
Solve for f −1 (y ):
3y − 2
f −1 (y ) =
1−y
3. Find the Domain of the Inverse Function: The function
−2
x = 3y
1−y only makes sense if 1 − y ̸= 0, so y ̸= 1. Therefore, the
domain of the inverse function, which is the range of the original
function f (x) = x+2
x+3 , is
R = {y ∈ R | y ̸= 1}
Exercises a:
1. y = 5x + 2
√
2. y= 2−x
3. y = |3x|
Answers to Exercises a:
(f ◦ g )(x) = f (g (x))
Below are some steps to follow while evaluating:
1. Evaluate g (x): First, evaluate the inner function g (x).
2. Plug g (x) into f (x): Take the result from step 1 and plug it
into the outer function f (x).
(f ◦ g )(x) = f (g (x))
Function of Functions:
f (g (x)) = f (x + 3) = 2(x + 3) = 2x + 6
So, (f ◦ g )(x) = 2x + 6.
More Examples:
Solution
f (x) = y = 3x − 2 =⇒ 3x = y + 2 and
y +2
x= 3 . Then, f −1 (x) = x+2
3 .
So,
x +2
(fof −1 )(x) = x = f (f −1 (x) = f ( )
3
x +2 x +2
f( ) = 3( ) − 2 = x + 2 − 2 = x.
3 3
Function of functions; Examples:
2. If h(x) = x+4
2x−5 ; show that (hoh−1 )(x) = x.
Solution
x+4
h(x) = y = 2x−5 =⇒ y (2x − 5) = x + 4 and
5y + 4
x= .
2y − 1
Then,
5x + 4
h−1 (x) = .
2x − 1
So,
5x + 4
(hoh−1 )(x) = h(h−1 (x) = h( )
2x − 1
5x+4 4
5x + 4 2x−1 + 1
h( ) = 5x+4 .
2x − 1 2( 2x−1 ) − 51
Function of functions; Examples:
5x+4+8x−4 13x
2x−1 2x−1 13x
= 10x+8−10x+5
= 13
= = x.
2x−1 2x−1
13
Types of Function
f (x) = −f (−x)
g (x) = −g (−x) =⇒ x 3 = −x 3
p(x)
f (x) = , q(x) ̸= 0
q(x)
N=4 N=6
N=5
N=3
LIMITS
DEFINITION:
The limit of a function f (x) as ′ x ′ approaches a particular value
′ a′ , written as lim
x→a f (x) is the number L that the function f (x)
approaches as x approaches a from both right and left.
That is:
f (x) → L as x → a.
e.g
polygon → circle as n(no of sides) → ∞
INTUITIVE DEFINITION OF LIMITS:
lim f (x) = G
x→c
LIMITS
EXAMPLE:
Find the limits if it exist:
x2 − 1 1
(a.) limx→1 (b.) limx→3 (x 3 − 2x + 6) (c.) limn→∞ ( )n
x −1 3
LIMITS
SOLUTION
(a.) If
x2 − 1
f (x) =
x −1
then, f (1) does not exist.
However,
x2 − 1
f (x) = = x + 1.
x −1
If x ̸= 1 then,
x2 − 1
limx→1 = limx→1 (x + 1) = 2.
x −1
(b.)
limx→3 (x 3 − 2x + 6) = 27.
Some Rules (or Theorems) of Limits:
Let f (x), g (x), f1 (x),· · · ,fn (x) be real functions, then their limit as
x → c are expressible in the form
Then,
LIMITS
1. Sum Rule
" #
lim f (x) + g (x) = lim f (x) + lim g (x)
x→c x→c x→c
and
" #
lim f1 (x) + f2 (x) + . . . + fn (x) = lim f1 (x) + . . . + lim fn (x)
x→c x→c x→c
" #
lim f1 (x)·f2 (x), · · · fn (x) = lim f1 (x)· lim f2 (x) · · · , lim fn (x)
x→c x→c x→c x→c
2. Quotient Rule
3. Power Rule
" #p " #p
lim f1 (x) = lim f1 (x)
x→c x→c
If f1 (x) = x n , we have
Examples:
(1) Evaluate
lim (3x 3 + 4x 2 − 5x)
x→2
Solution.
(2) Solve
3x 2 + 2x − 1
lim
x→1 x 2 + 2x − 1
Solution
3x 2 + 2x − 1
lim
x→1 x 2 + 2x − 1
3x 2 + 2x − 1 x 3 + 3x + 6
a. lim b. lim
x→∞ x 2 + 2x − 1 x→∞ x 5 + 2x 2 + 9
Solution
When solving a function which tends to ∞, we need to first divide
the function in the numerator and denominator by the highest
power of variable before substituting the limit. So we have
3x 2 2x
+ − x12 3+ 2
− 1
3+ 2
− 1
x2 x2 x x2 ∞ ∞2
a. lim x2 2x
= lim 2 2
= 2 2
x→∞
x2
+ x2
− x22 x→∞ 1+ x − x2
1+ ∞ − ∞2
3
= =3
1
Limits
b.
x 3 + 3x + 6
lim
x→∞ x 5 + 2x 2 + 9
(4) Evaluate
3x 2 − 27
lim
x→3 3 − x
Solution.
3x 2 − 27 3(32 ) − 27 0
lim = = (indeterminate)
x→3 3 − x 3−3 0
Factorizing the function in numerator and simplify,
3x 2 −27 3(x 2 −9)
3−x = 3−x = 3(x−3)(x+3)
−(3−x) = −3(x + 3)
Now,
3x 2 − 27
lim = lim [−3(x + 3)] = −3(3 + 3) = −3(6) = −18
x→3 3 − x x→3
L’Hopital’s rule for finding Limit
f (x)
G (x) = = indeterminate
g (x)
Solution.
3x 2 − 27 3(32 ) − 27 0
lim = = (indeterminate)
x→3 3 − x 3−3 0
Now, differentiate the numerator, we have 6x
and differentiate the denominator, we have −1
Then,
3x 2 − 27 6x 18
lim = lim = = −18.
x→3 3 − x x→3 −1 −1
L’Hopital’s Rule for finding Limit
Example
1. Evaluate
x3 + x2 − x − 1
lim
x→1 x 2 + 2x − 3
Solution
x3 + x2 − x − 1 0
lim 2
=
x→1 x + 2x − 3 0
Then, differentiate numerator and denominator separately, and
take the limit as x → 1.
x3 + x2 − x − 1 3x 2 + 2x − 1 3+2−1
lim 2
= lim = = 1.
x→1 x + 2x − 3 x→1 2x + 2 2+2
L’Hopital’s Rule for finding Limit
Example 2.
Determine
x 2 − sin 3x
lim
x→0 x 2 + 4x
Solution
x 2 − sin 3x 0
lim =
x→0 x 2 + 4x 0
Then, differentiate numerator and denominator separately, and
take the limit as x → 0.
x 2 − sin 3x 2x − 3 cos 3x 0−3 3
lim 2
= lim = =− .
x→0 x + 4x x→0 2x + 4 0+4 4
L’Hopital’s Rule for finding Limit
Example 3.
Evaluate
ex − 1
lim
x→0 x 2 + x
Solution
ex − 1 ex
lim = lim = 1.
x→0 x 2 + x x→0 2x + 1
L’Hopital’s Rule for finding Limit
Example 4.
Evaluate
2 sin x − sin 2x
lim
x→0 x − sin x
Solution
1. Evaluate
lim (x 2 + 4x)
x→1
2. Find
4x 2 − 3x − 2
lim
x→−1 x −2
3. Evaluate
x2 − 2
lim
x→∞ x 2 − 1
4. Find " #
1 12 3 (n + 1)
lim 2
+ 2 + 2 +·+
x→∞ n n n n2
Exercises
5. Evaluate
(x 2 − 4)
lim
x→2 x − 2
6. Find
x 2 + 4x − 3
lim
x→2 5 − 2x
7. Evaluate
x − sin x
lim
x→0 x2
8. Find
tan x − x
lim
x→∞ x3
Continuity
Example 1
Solutions
Solutions
Therefore, since one of the conditions does not hold, then f (x) is
not continuous at x = 1.
Discontinuous Functions:
Examples:
Solution
Since f (x) is not defined at x = 2. Applying L’Hopitals’s rule gives
2x and limx→2 = 4.
Redefine the function as
(x − 2)(x + 2)
f (x) = =x +2
x −2
then,
f (2) = 4
and
f (2) = lim (x + 2) = 4.
x→2
Types Discontinuity:
2. Non-Removable discontinuity:
If the right and left hand limits exist but do not equal, or do not
exist, then such function f (x) is said to have non-removable
discontinuity at x = x0 .
Discontinuous Functions:
Example:
The function
1
f (x) = sin
x
is continuous for all x ̸= 0. But has non-removable discontinuity at
x = 0. (Both right and left hand limits do not exist.)
Exercises
FOR LISTENING.