Functions
Functions
Functions
Dr. B. O. Bainson
Kwame Nkrumah University of Science and Technology
f (x) = a0 + a1 x + a2 x 2 + · · · + an x n , an 6= 0
f (x) = a0 + a1 x + a2 x 2 + · · · + an x n , an 6= 0
f (x) = a0 + a1 x + a2 x 2 + · · · + an x n , an 6= 0
Definition
A function of the form f (x) = x a , where a is a constant, is
called a power function.
2. Power functions
Definition
A function of the form f (x) = x a , where a is a constant, is
called a power function.
Examine the power function for
1. a ∈ N
1
2. a = for n ∈ N.
n
3. a = −1.
3. Rational functions
Definition
A rational function f is a ratio of two polynomial functions
p(x)
f (x) = .
q(x)
4. Algebraic functions
Definition
An algebraic function is a function constructed out of algebraic
operations such as addition, subtraction, multiplication,
division, roots, raising to fractional powers and many more.
4. Algebraic functions
Definition
An algebraic function is a function constructed out of algebraic
operations such as addition, subtraction, multiplication,
division, roots, raising to fractional powers and many more.
Example
The following are examples of algebraic functions
√
5x 4 − 16x 3 5. f (x) = x x +3
1. f (x) = 2 √
√ x + x
6. g (x) = x
2. h(x) = 3 x 2 + 1 √
2/3 7. f (x) = 1 − x2
3. h(a) = a (a − 3)4
x m0
4. f (x) = 8. f (v ) = p
x +1 1 − v 2/c 2
Transcendental Functions
Definition
A transcendental function is a function which is not an
algebraic function. These are mostly expressible as infinite sum
of polynomials.
The basic transcendental functions are the following
1. Exponential functions: Functions of the form
f (x) = ax where a is a positive constant.
The basic transcendental functions are the following
1. Exponential functions: Functions of the form
f (x) = ax where a is a positive constant.
2. Logarithmic functions: Functions of the form
f (x) = loga x where the base a is a positive constant.
The basic transcendental functions are the following
1. Exponential functions: Functions of the form
f (x) = ax where a is a positive constant.
2. Logarithmic functions: Functions of the form
f (x) = loga x where the base a is a positive constant.
3. Trigonometric functions: Functions such as
sin x, cos x, tan x, cot x, csc x etc.
The basic transcendental functions are the following
1. Exponential functions: Functions of the form
f (x) = ax where a is a positive constant.
2. Logarithmic functions: Functions of the form
f (x) = loga x where the base a is a positive constant.
3. Trigonometric functions: Functions such as
sin x, cos x, tan x, cot x, csc x etc.
4. Inverse trigonometric functions:These are the inverse
of the trigonometric functions. Examples include
cos−1 x, sin−1 x, tan−1 x etc
The basic transcendental functions are the following
1. Exponential functions: Functions of the form
f (x) = ax where a is a positive constant.
2. Logarithmic functions: Functions of the form
f (x) = loga x where the base a is a positive constant.
3. Trigonometric functions: Functions such as
sin x, cos x, tan x, cot x, csc x etc.
4. Inverse trigonometric functions:These are the inverse
of the trigonometric functions. Examples include
cos−1 x, sin−1 x, tan−1 x etc
5. Hyperbolic functions: comprises the functions
sin x, cosh x, tanh x etc. These are mostly written in
terms of exponential functions eg.
1 1
sinh x = [e x − e −x ], cosh x = [e x + e −x ]
2 2
The basic transcendental functions are the following
1. Exponential functions: Functions of the form
f (x) = ax where a is a positive constant.
2. Logarithmic functions: Functions of the form
f (x) = loga x where the base a is a positive constant.
3. Trigonometric functions: Functions such as
sin x, cos x, tan x, cot x, csc x etc.
4. Inverse trigonometric functions:These are the inverse
of the trigonometric functions. Examples include
cos−1 x, sin−1 x, tan−1 x etc
5. Hyperbolic functions: comprises the functions
sin x, cosh x, tanh x etc. These are mostly written in
terms of exponential functions eg.
1 1
sinh x = [e x − e −x ], cosh x = [e x + e −x ]
2 2
6. Inverse hyperbolic functions: These are the inverse of
the hyperbolic functions. Examples include
sinh−1 x, cosh−1 x, tanh−1 x.
Graphs of functions
1. f (x) = x 2 3. f (x) = x 3
2. f (x) = 1 − x 4 4. f (x) = x 5 + x
Periodic
Definition
A function f is said to be periodic with period t if it satisfies
f (x + t) = f (x) for all x in the domain of f .
Bounded
Definition
A function is said to be bounded above if there is u ∈ R
such that f (x) ≤ u for all x in the domain of f .
Bounded
Definition
A function is said to be bounded above if there is u ∈ R
such that f (x) ≤ u for all x in the domain of f .
Example
The function f (x) = x 2 + 1 defined on 0 ≤ x ≤ 1 is bounded
above by 2 since f (x) ≤ 2 for 0 ≤ x ≤ 1.
Bounded
Definition
A function is said to be bounded above if there is u ∈ R
such that f (x) ≤ u for all x in the domain of f .
Example
The function f (x) = x 2 + 1 defined on 0 ≤ x ≤ 1 is bounded
above by 2 since f (x) ≤ 2 for 0 ≤ x ≤ 1.
Example
1
The function f (x) =
x
Bounded
Definition
A function is said to be bounded above if there is u ∈ R
such that f (x) ≤ u for all x in the domain of f .
Example
The function f (x) = x 2 + 1 defined on 0 ≤ x ≤ 1 is bounded
above by 2 since f (x) ≤ 2 for 0 ≤ x ≤ 1.
Example
1
The function f (x) = is not bounded above since one can not
x
find U such that f (x) ≤ U. For values close to 0, we have
that f (x) gets larger and larger.
Example
The function f (x) = sin x is bounded above by 1 for x ∈ R.
Definition
A function, f , is said to be bounded below if there is ` ∈ R
such that f (x) ≥ ` for all x in the domain of f .
Example
The function f (x) = x − 1 defined in [0, 1] is bounded below
by −1 since −1 ≤ f (x) for x ∈ [0, 1].
Example
√
The function g (x) = | x + 1| is bounded below by 0 on the
interval [0, 4] since 0 ≤ g (x) for x ∈ [0, 4].
Monotonic
Definition
A function f , is said to be monotonic increasing in an
interval if f (x1 ) ≤ f (x2 ) whenever x1 ≤ x2 in the interval.
Example
The function f (x) = e x is monotonic increasing on R+ .
Example
The function f (x) = x 2 + 1 is strictly increasing for x ≥ 0.
Definition
A function f , is said to be monotonic decreasing in an
interval if there is f (x1 ) ≥ f (x2 ) whenever x1 ≤ x2 in the
interval.
Example
The function f (x) = −x 2 is monotonic decreasing on R+ .
Maxima and Minima
Definition
Let c be in the domain of f and f (x) ≤ f (c) for all x in the
domain of f , then f (c) is called the absolute maxima of f .
On the other hand if f (x) ≤ f (c) for all x ∈ (a, b, ) and
c ∈ (a, b), then f (c) is called a relative maximum.
Definition
Let c be in the domain of f and f (x) ≥ f (c) for all x in the
domain of f , then f (c) is called the absolute minima of f .
On the other hand if f (x) ≥ f (c) for all x ∈ (a, b, ) and
c ∈ (a, b), then f (c) is called a relative minimum.
Limit of functions
1 1 1
= lim √ = =
x→0 ( x 2 + 9 + 3) 3+3 6
Solution
1. limx→2 (2x 2 − x + 2) =
2 limx→2 x 2 − limx→2 x + limx→2 2 = 2 · 22 − 2 + 2 = 8.
x −1 x −1
2. limx→1 2 = limx→1 =
x −1 (x − 1)(x + 1)
1 1
limx→1 = .
(x + 1) 2
3.
√ √ √
x2 + 9 − 3 x2 + 9 − 3 x2 + 9 + 3
lim = lim · √
x→0 x2 x→0 x2 x2 + 9 + 3
2
x
= lim √
x→0 x 2 ( x 2 + 9 + 3)
1 1 1
= lim √ = =
x→0 ( x 2 + 9 + 3) 3+3 6
x 3 + 2x 2 − 1 (−2)3 + 2 · (−2)2 − 1 1
4. limx→−2 = =−
5 − 3x 5 − 3 · (−2) 11
Solution
1. limx→2 (2x 2 − x + 2) =
2 limx→2 x 2 − limx→2 x + limx→2 2 = 2 · 22 − 2 + 2 = 8.
x −1 x −1
2. limx→1 2 = limx→1 =
x −1 (x − 1)(x + 1)
1 1
limx→1 = .
(x + 1) 2
3.
√ √ √
x2 + 9 − 3 x2 + 9 − 3 x2 + 9 + 3
lim = lim · √
x→0 x2 x→0 x2 x2 + 9 + 3
2
x
= lim √
x→0 x 2 ( x 2 + 9 + 3)
1 1 1
= lim √ = =
x→0 ( x 2 + 9 + 3) 3+3 6
x 3 + 2x 2 − 1 (−2)3 + 2 · (−2)2 − 1 1
4. limx→−2 = =−
5 − 3x 5 − 3 · (−2) 11
5. lim f (x) = lim (2x + 1) = 2 · 2 + 1 = 5
Some functions are defined differently while approaching a
value from the left and from the right. Hence one needs to be
cautious in describing the limit as we approach such points.
This leads to left-sided and right-sided limits. We write
limx→a− f (x) = `1 and limx→a+ f (x) = `2 for the left- and
right-sided limits respectively and limx→a f (x) = ` if
`1 = ` = `2 .
Example
Evaluate the following limits.
√
x −4 :x >4
1. limx→4 f (x) if f (x) =
8 − 2x : x < 4
2. limx→0 |x|
0 :t<0
3. limt→0 h(t) if h(t) =
1 :t≥0
Solution
8 − 2x = 8√− 2 · 4 = 0. Also
1. limx→4− f (x) = limx→4− √
limx→4 f (x) = limx→4 x − 4 = 0 = 0. Since
+ +
lim g (x) = ` .
x→a
Example
1
Evaluate limx→0 x 2 sin .
x
Example
1
Evaluate limx→0 x 2 sin .
x
Solution
1 1
We have that limx→0 x 2 sin = limx→0 x 2 · limx→0 sin . It is
x x
1 1
noted that limx→0 sin does not exist. But −1 ≤ sin ≤ 1
x x
and so
1
−x 2 ≤ x 2 sin ≤ x 2 .
x
and so since limx→0 −x = 0 = limx→0 x 2 , by the squeeze
2
theorem,
1
lim x 2 sin = 0 .
x→0 x
Continuity
This means the limit exist, f (x) is defined at a i.e f (a) exist
and the limit equals the function value at a.
If any of the conditions above fails we say that f is
discontinuous at a or has a discontinuity at a.
Example
Determine whether the following are continuous at the given
points.
x2 − x − 2
1. f (x) = at x = 2
x −2
1
2. f (x) = 2 at x = 0
x
x 3 + 2x 2 − 1
3. f (x) = at x = −2
5 − 3x
Solution
1. The function f (x) is not defined at x = 2, hence the
function is discontinuous at x = 2.
Solution
1. The function f (x) is not defined at x = 2, hence the
function is discontinuous at x = 2.
2. The limit of function does not exist as x approaches 0
hence the function is discontinuous at x = 0.
Solution
1. The function f (x) is not defined at x = 2, hence the
function is discontinuous at x = 2.
2. The limit of function does not exist as x approaches 0
hence the function is discontinuous at x = 0.
1
3. We have that f (−2) = − and
11
x 3 + 2x 2 − 1 1
limx→−2 f (x) = limx→−2 = − . Hence
5 − 3x 11
limx→−2 f (x) = f (−2) and so the function the function is
continuous at x = −2.
Theorem
Every polynomial, rational, root and trigonometric function is
continuous on its domain
Definition
A function is continuous in an interval if it is continuous at
every number in the interval.
Theorem
Suppose f and g are continuous at a and α is a constant.
Then the following are continuous at a.
1. f ± g
2. fg
f
3.
g
4. αf
Example
Determine whether the following functions are continuous at
the given points.
x2 − x − 2
: x 6= 2
1. h(x) = at x = 2
1 x −2 :x =2
1
(
: x 6= 0
2. f (x) = x2 at x = 0
1 :x =0
1 + x2 : x < 1
3. g (x) = at x = 1
4−x :x ≥1
Solution
1. We have that
x2 − x − 2
limx→2 h(x) = limx→2 = 3 6= h(2). Hence the
x −2
function is discontinuous at x = 2.
1
2. We have limx→2 f (x) = limx→0 2 = ∞ and so the
x
function is not continuous at x = 0.
3. Now limx→1− g (x) = limx→1− 1 + x 2 = 2 and
limx→1+ g (x) = limx→1+ 4 − x = 3. Since
limx→1− 1 + x 2 = 2 and
limx→1− g (x) 6= limx→1− 1 + x 2 = 2 and limx→1+ g (x), the
limit does not exist and the function is not continuous at
x = 1.
If the limit exist but it not equal to the function value at the
given point, we can redefine the function value to be the value
of the limit so that the new function is continuous there. Such
kind of discontinuity is called removable discontinuity. On
the other hand if the limit does not exist i.e it is infinity, then
we say that we have infinite discontinuity.
Theorem
Suppose f is continuous on [a, b] and let f (a) < m < f (b).
Then there exist a number c ∈ [a, b] such that f (c) = m.
Example
Show that there is a root of 4x 3 − 6x 2 + 3x − 2 = 0 in [1, 2].
Solution
Let f (x) = 4x 3 − 6x 2 + 3x − 2. Then f (1) = −1 and
f (2) = 12. Thus −1 < 0 < 12 and so there is some x ∈ [1, 2]
such that f (x) = 0.
Definition
A function f (x) is said to be piecewise continuous [a, b] if
[a, b] can be written as a union of subintervals each of which f
is continuous.
Definition
A function f (x) is said to be uniformly continuous [a, b] if
the continuity in [a, b] does not depend on any x ∈ [a, b].