Preliminary Maths
Preliminary Maths
FUNCTIONS
Let A and B be two non-empty sets. A function f from A to B is a relation that assigns to each element
x in A, a unique y in B. Hence a function can be thought of as a special type of relation where any
element of A is related to exactly one element of B.
A is said to be the domain of f and B, the co-domain of f. We say that f is a function or a mapping
from A to B and we write f: A →B.
x f f(x)
Input Output
x f(x)
f(a)
a
a
The unique element in B that corresponds to x in A is said to be the image of x under f and is denoted
by f(x). x is said to be a pre-image (or an inverse image) of f(x). The set {f(x): x ∈ A} is said to be the
range of f and is denoted by f(A).
3
The set {x: f(x) = y} is said to be the pre-image set (or the inverse image set) of y and is denoted by
f -1 (y).
Note: The inverse image set of an element y in B may be a void set, or a singleton set, or a set containing
more than one elements.
A function f: A→ B is said to be
a) injective (or one-to-one) if x1 ≠ x2 in A ⇒ f(x1) ≠ f(x2) in B
b) surjective (or onto) if f(A) = B
c) bijective if it is injective as well as surjective.
EQUALITY OF FUNCTIONS
Two functions f and g are said to be equal if
(i) f and g have the same domain D, and (ii) f(x) = g(x) for all x ∈ D.
Example
Let f: ℝ → ℝ be defined by f(x) = |x|, x ∈ ℝ and g : ℝ → ℝ be defined by g(x) = x, x ≥ 0 and , = -x, x
< 0. Then f = g.
4
GRAPHS OF FUNCTIONS
1. f(x) = 𝒙𝟐 , x is a real number.
x 0 1 -1 2 -2 3 -3
f(x) 0 1 1 4 4 9 9
y=x2
=f(x)
quadratic
-4 -2 0 2 4
f(x) 3 5
5 y = 2x + 3
3
Linear
2
0
0 0.2 0.4 0.6 0.8 1 1.2
5
y = ex
-6 -4 -2 0 2 4 6
Sinusoidal
3∏/2
∏/2
6
Vertical line test: A curve in the xy-plane is the graph of a function of x if and only if no vertical
line intersects the curve more than once.
Check if any of the following is a function.
5
4
3
2
1
0
0 5 10 15 20
-1
-2
-3
-4
-5
More graphs:
5. f(x) = 1-x if x ≤ 1 y
x2 if x >1
1 x
6. f(x) = |x|, x is a real number.
7
4.5
4
3.5
3 constant function
2.5
2
1.5
1
0.5
0
0 2 4 6 8 10 12
8
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0
0 1 2 3 4 5 6
MONOTONE FUNCTIONS
A function f(x) is said to be monotone non-decreasing (increasing) if for every x1<x2 f(x1) ≤ (<)
f(x2).
It is monotone non-increasing (decreasing) if for every x1<x2, f(x1) ≥ (>) f(x2).
Note: Every linear function is either increasing or decreasing (except the constant function)
what about quadratic, exponential & logarithmic?
CONVEX AND CONCAVE FUNCTIONS
A function is said to be convex (concave) if the line segment joining any two points of the curve
lies on or above (below) it.
Concave
Convex
EVEN FUNCTION
f(x) = f(-x) for all x.
ODD FUNCTION
f(x) = - f(-x) for all x.
COMPOSITE FUNCTION
Given the functions f (.) and g (.) , the composite function fog is defined by (fog)(x)=f(g(x)).
Examples/Exercises
4
1. f(x)=√𝑥 g(x)=√2 − 𝑥 (fog)(x)=f(g(x))=√𝑔(𝑥) =√√2 − 𝑥 = √2 − 𝑥
2. f(x)=x/(x+1) g(x)=x10 (fog)(x)=?
4
3. Given (fog)(x)= √𝑥 + 9, find some choices for f(.) and g(.).
RATIONAL FUNCTION
f(x)=P(x)/Q(x), P and Q are polynomials. Domain consists of all values of x such that Q(x) ≠ 0.
10
Examples:
1. f(x)=(2x4 - x2 + 1)/(x2 - 4): Domain ={x: x ≠ ±2}
2. f(x) = (x2-1)/(x-1):
If we can make values of f(x) arbitrarily close to L (as close to L as we like) by taking x sufficiently
close to a, but not equal to a.
Notice in the figure that we have taken Q to the left of P. We could have taken it to the right of P as
well. When we approach the point x = a from left (i.e., through values of x less than a), the limit thus
obtained is the “left limit”, written as lim f(x). One the other hand, the right limit, lim f(x), is the
x→a− x→a+
limit obtained by approaching x = a through the values greater than a.
The limit exists if and only if both left and right limits exist, and are equal.
Let us see a few examples now.
𝑥−1
1. lim .
𝑥→1 𝑥 2 −1
𝑥−1 1 1
As x→1 = → = 0.5 from both left and right.
𝑥 2 −1 𝑥+1 2
sin 𝑥
2. lim
𝑥→0 𝑥
X f(x)
±1 0.84
±0.5 0.96
Hence the limit is 1.
12
±0.4 0.97
±0.3 0.98
±0.2 0.99
±0.1 0.9987
±0.05 0.9996
±0.01 0.99998
±0.005 0.99999
±0.0001 0.99999983
3. Heaviside function
f(x) = 0 if x < 0,
1 if x ≥ 0.
1
4. lim =∞
𝑥→0 𝑥 2
lim 𝑓(𝑥) =∞ f(x) can be made arbitrarily large (as large as we please) by taking x sufficiently close to 0
𝑥→0
(but not equal to 0)
1
Exercise lim = ?
𝑥→0 𝑥
13
CONTINUITY
A function f(x) is continuous at x = a if lim f(x) = f(a). If f(x) is not continuous at a, then f (x) is
x→a
discontinuous at a.
Intuitively f(x) is continuous at x = a if f(x) gets closer and closer to f(a) as x gets closer and closer to
a.
Geometrically a function is continuous in an interval if at every point in the interval as a function whose
graph has no break in it.
Example
(x−2)(x+1)
1. f(𝑥) = if x ≠ 2
x−2
= x+1 if x = 2
lim 𝑓(𝑥) = 3 = f(2). So 𝑓(𝑥) is continuous at 𝑥 = 2
𝑥→2
1
2. f(𝑥)= if 𝑥 ≠ 0
𝑥2
1 if 𝑥 = 0
14
Not continuous.
x2 −x−2
3. f(x) = if x≠2
x−2
= 1 if x = 2
The function is discontinuous at x = 2, as lim f(x) = 3 ≠ f(2).
x→2
Some results
1. A polynomial function is always continuous.
3. f (x) = ex is continuous.
f(x)
secant line
Q
tangent line
P
Let P and Q be two points on the curve as shown in Figure 1. The secant line is the straight line drawn
through P and Q .
16
a a+h x
f (a + h) − f (a)
m PQ,secant =
(a + h) − a
f (a + h) − f (a)
=
h
As Q moves closer and closer to P, the limiting portion is called the tangent line. The slope of the
tangent line mPQ,tangent then is the limiting value of mPQ,secant as h → 0 .
f (a + h) − f (a)
m PQ,tangent = lim
h →0 h
This brings us to the concept of derivative.
DERIVATIVE OF A FUNCTION
The derivative of a function f(x) at x = a is defined as
df f (a + h) − f (a)
|x =a f (a) = lim
dx h → 0 h
An alternative form of the definition is
f (x) − f (a)
f (a) = lim
x →a x −a
As x→a, the definition is nothing but the slope of the tangent line at P .
17
Example
Solution
Exercises
df(x)
1. f(x) = x 2 − 8x + 9, x is a real number. |x=a = ?
dx
2. f(x) = |x|. f ’(0) = ?
𝑑𝑓(𝑥)
3. 𝑓 (𝑥 ) = 0 if 𝑥 ≤ 0 |x=0 = ?
𝑑𝑥
1 if 𝑥 > 0
NOTATIONS OF DERIVATIVES
Derivates can be denoted in several ways. For the first derivative, the notations are
d dy
f ( x), f ( x), y, and
dx dx
For the second derivative, the notations are
d2 d2y
f ( x), f ( x ), y , and
dx 2 dx 2
For the nth derivative, the notations are
dn n
(n) d y
f ( n ) ( x ), f ( x ), y ,
dx n dx n
Relation with Continuity: f(x) is differentiable at x = a implies that f(x) is continuous at x = a but
the converse may not be true.
d d
7. {cf(x)} = c f(x)
dx dx
d d d
8. {f(x) ± g(x)} = f(x) ± g(x)
dx dx dx
d d d
9. {f(x)g(x)} = f(x) g(x) + g(x) f(x) (Product Rule)
dx dx dx
d d
d f(x) g(x)dx f(x)−f(x)dx g(x)
10. { } = (g(x) ≠ 0, Quotient Rule)
dx g(x) (g(x))2
maximum
Domain = [c,d]
minimum
c d x
Figure 3 Graph illustrating the concepts of maximum and minimum.
19
• end points c or d;
• a point in [c, d] where f ‘(x) = 0;
• a point in [c, d] where f ‘(x) does not exist.
These critical points can be the local maxima and minima of the function (See Figure 4).
●
● Local Maximum
Local Maximum
(f´′(x) does not exist)
●
●
Local ●
Minimum
● Local Minimum
● Absolute Minimum
c d x
Example
Find the minimum and maximum value of f (x) = x 2 − 2x − 5 in the interval [0,5].
20
maximum
minimum
Solution.
f (x) = x 2 − 2x − 5, so f (x) = 2x − 2,
giving f (x) = 0 at x = 1.
f ’ (x) exists everywhere in [0,5].
So the critical points are x = 0, 1 and 5.
f (0) = (0) 2 − 2(0) − 5 = - 5
f (1) = (1) 2 − 2(1) − 5 = - 6
f (5) = (5) 2 − 2(5) − 5 = 10
Hence, the minimum value of f(x) occurs at x = 1, and the maximum value occurs at x = 5.
Figure 6 shows an example of a function that has no minimum or maximum value in the domain (0,
∞).
21
A point where the function is not smooth (e.g., derivative does not exist) is called a singular point.
Figure 7 shows the maximum of the function occurring at a singular point. The function f(x) has a
sharp corner at x = a.
Figure 7 Graph demonstrates the concept of a singular point with discontinuous slope
at x = a
TABLE OF DERIVATIVES
f (x ) f (x)
xn , n 0 nx n −1
kxn , n 0 knxn−1
sin(x) cos(x)
tan(x) sec 2 ( x)
sinh(x) cosh(x)
cosh(x) sinh(x)
tanh(x) 1 − tanh 2 ( x)
1
sin −1 ( x )
1− x2
−1
cos −1 ( x )
1− x2
1
tan −1 ( x )
1+ x2
csc(x) − csc ( x)cot ( x)
cot(x) − csc 2 ( x)
coth(x) 1 − coth 2 ( x)
|x|
csc −1 ( x ) −
x2 x2 −1
|x|
sec −1 ( x )
x2 x2 −1
−1
cot −1 ( x )
1+ x2
23
ax ln(a )a x
1
ln(x)
x
1
log a (x)
xln( a )
ex ex
24
INTEGRATION
CALCULATING THE AREA UNDER A CURVE
Let us denote the area under y = f(x) between a fixed point a and a variable point x by A(x):
It is clearly a function of x since as the upper limit changes so does the area. How does the area
change if we change the upper limit by a very small amount δx? See the figure below.
To a good approximation the change in the area A(x + δx) − A(x) is:
an approximation which gets better and better as δx gets smaller and smaller, and so:
A(x + x) − A(x)
f (x) = lim .
x →0 x
But this limit is the derivative of A(x) with respect to x so we have
dA(x)
f (x) = .
dx
Now the area under the curve from a to b is clearly A(b)−A(a). Hence, the idea of the integration is
to accumulate these small changes, i.e. to write
b b
A(b) − A(a) = dA(x) = f (x)dx.
a a
The above is called the definite integral. The indefinite integral f (x)dx, on the other hand, just
represents A(x)-A(a), where x is a variable. Notice that we can rewrite this as A(x)+c, by putting c =
-A(a).
25
For example consider the graph of the positive function y(x) shown in the figure below. Suppose we
are interested in finding the area under the graph between x = a and x = b.
One way in which this area can be approximated is to divide it into a number of rectangles, find the
area of each rectangle, and then add up all these individual rectangular areas. This is illustrated in the
figure below, which shows the area divided into n rectangles:
Now, the figure below shows the dimensions of a typical rectangle which is located at x = xk:
26
INTEGRALS AS ANTI-DERIVATIVES
dy
Suppose we differentiate the function y = x2. We obtain = 2x. Integration reverses this process
dx
and we say that the anti-derivative of 2x is x2.
In general, if F(x) has the derivative f(x), then f(x) has the anti-derivative F(x). The indefinite integral
of f(x) is then F(x) + c, and the definite integral from a to b is F(b) - F(a).
Because of this reason, once we know the derivative of a function it is very simple to obtain the
integral of the corresponding derivative. For this reason we can list “standard integrals” as we do
later.
Exercises. Compute the following integrals:
1
( )
(a) x3dx; (b) xe− x dx; (c) sin ( log x ) dx; (d) x cos x 2 dx; (e) ( x + 5) dx.
2
1/3
x
PROBABILITY DENSITY FUNCTION
A probability density function f(x) is a function such that
(a) f(x) ≥ 0 for all x and (b) f (x)dx = 1.
−
1
if |x|<1 |x| if |x|<1 e −x if x>0
(a) f (x) = x 2 ; (b) f (x) = ; (c) f (x) = where λ>0.
0 otherwise 0 otherwise
0 otherwise