Professional Documents
Culture Documents
Unit Two (16) FUNCTIONS PDF
Unit Two (16) FUNCTIONS PDF
UNIT TWO
RELATIONS
A relation between two objects is called a binary relation, and these give rise to ordered pairs.
If R denotes a binary relation between two objects a and b, then R gives rise to the ordered pair
(a, b). Note: a is the first element and b the second element.
The Cartesian product of the sets A and B (in that order), is defined as:
A B a, b a A and b B .
The set of all ordered pairs from the Set A to the Set B.
By mapping diagram: A B
1 a
b
2
23
ECON 1003 Mathematics for Social Sciences I
Determine
Solution:
(b) A R B
2 2
3 4
c
24 c
ECON 1003 Mathematics for Social Sciences I
dom R = {2, 3}
ran R = {2, 3, 4, 6, 9}
R-1 = {(2, 2), (4, 2), (6, 2), (3, 3), (6, 3), (9, 3}
FUNCTIONS
f is a function from a Set A to a Set B, the domain of f equals A and the range of f
is a subset of B.
Determine whether or not the following are functions from A to B. Give reasons for those which
are not functions.
f1 :1, 2 , 3, 4 , 5,3
f 2 :1, 4 , 3,3
f3 1,3 , 3,3 , 5, 4
25
ECON 1003 Mathematics for Social Sciences I
Solution:
f1 is a function since each element in the domain A has an image in B. For the same reason f3 and
f5 are functions.
Definition: A function f : A B is called onto iff f ( A) B (i.e. all elements in the range
has pre-images in the domain).
26
ECON 1003 Mathematics for Social Sciences I
Note: f5 is a constant function since all the elements in A map to the element 4.
The domain and range of any relation may be interchanged to form a new
relation. Each ordered pair in the new relation is obtained by interchanging
the elements of its corresponding ordered pair in the original relation. Two
such sets or ordered pairs are said to be inverse relations; each relation is
said to be the inverse of the other. If both relations are functions, they are
called inverse functions. The inverse of a function f is denoted by f –1.
The rule for the inverse function can be evaluated by using the following steps:
Note f 1 : (3, 2), (5, 4), (3, 6) and f 1is not a function sin ce 3
domain has more than one image.
Solution: Let y = 2x – 3
Solving for x y 3 2x
y 3 2x
2 2
y3
x
2
x3
Hence f 1 ( x) where the y and x variables are interchanged.
2
27
ECON 1003 Mathematics for Social Sciences I
Solution:
Definition: Given two functions f(x) and g(x) on the same domains, the sum of f(x) and
g(x) is the function f + g which is defined as follows (f + g) x = f(x) + g(x).
Example 2.6: Given f(x) = 2x + 1 and g(x) = x2 + 4 both defined on the same real line R.
(f + g) x = f(x) + g(x)
= 2x + 1 + x2 + 4
= x2 + 2x + 5
Definition: Given two functions f(x) and g(x), defined on the same domains, the
difference of f(x) and g(x) is the function f – g which is defined as (f – g) x =
f(x) – g(x).
28
ECON 1003 Mathematics for Social Sciences I
Example 2.7: Given f(x) = 2x + 1 and g(x) = x2 + 4 both defined on the real line R.
(f – g) x = f(x) – g(x)
= (2x + 1) – (x2 + 4)
= 2x + 1 – x2 – 4
= 2 x – x2 – 3
= – x2 + 2x – 3
Definition: Given two functions f(x) and g(x) defined on the same domains, the quotient
f
of f(x) and g(x) is the function x which is defined as f
g g
x
f x
g x
provided that g x 0 .
f x 2x 1
Using Example 2.7 the quotient function is given by . Hence the quotient function
g x x2 4
f x 2x 1
h x .
g x x2 4
Also the composite function of two functions f : A B and g : B C is the function from A
to C given by g 0 f a, c c ( g 0 f ) (a) g f (a) .
Solution:
(i) As a mapping:
(g 0 f) (x) f g
A B C
29
ECON 1003 Mathematics for Social Sciences I
2 1 4
3 2 6
5 3 7
Solution:
OR
(iii) gf(2)
f(2) = 2(2) + 3
= 4+3=7
g + (2 )= g(7)
=4-7
=-3
(iv) gf(2)
gf(x) = 1 – 2x hence in (i)
gf(2) = 1 – 2(2)
= 1 – 4 = -3
30
ECON 1003 Mathematics for Social Sciences I
Solution:
(iii) f ( a – 1) = 2 (a – 1)2 + (a – 1) – 3
= 2 (a2 – 2a + 1) + a – 1 – 3
= 2a2 – 3a - 2
Solution:
OR
(g 0 f) (1) = gf (1)
f(1) =12 + 2
=1+2=3
gf(1) = g(3)
= 2(3) – 3
=6 – 3
=3
31
ECON 1003 Mathematics for Social Sciences I
x 3 if x 4
f ( x) 3 2 if 4 x 1
2 if x 1
Evaluate: (i) f(-4) (ii) f(0) (iii) f(1) (iv) f(3) (v) ff(-6)
f(x) = 3-2x given values of x greater than or equal to -4 and less than 1.
Solution:
(iii) f(1) = 2
(iv) f(3) =2 3
32
ECON 1003 Mathematics for Social Sciences I
Graph of Functions
Example 2.12: Let the function f : A B be defined by f = {(a, 1), (b, 1), (c, 2), (d, 3)}.
a 1
b 2
c 3
f(x)
8
6
4
1 2 3 4 x
33
ECON 1003 Mathematics for Social Sciences I
2 x 3 if x 2
f ( x) 1 if 2 x 3 where x R
3x 4 if x 3
Graph f(x).
Solution:
(i) f(x) = 2x + 3 if x < -2 using values of x as –2 and any value less than –2.
f(-3) = 2(-3) + 3
= -3 (-3, -3)
34
ECON 1003 Mathematics for Social Sciences I
Graph
f(x)
8 (iii)
2 (ii)
x
-5 -4 -3 -2 -1 1 2 3 4 5 6 7
(i)
4
Other special functions would be mentioned below. In many cases these functions would
give rise to equations.
Polynomials can be added, subtracted and multiplied. It is also possible to divide the polynomial
by another polynomial.
35
ECON 1003 Mathematics for Social Sciences I
The degree of a polynomial is the same as the degree of its highest term (variable).
When the degree = 1, the polynomial is linear and of the form f(x) = ax + b where a and b are
constants. a 0 .
When the degree = 2, the polynomial is quadratic and of the form f(x) = ax2 + bx + c where a,
b, c are constants. a 0 .
When the degree = 3, the polynomial is cubic and of the form f(x) = ax3 + bx2 + cx + d where a,
b, c, d are constants. a 0 .
Note: Linear, quadratic and cubic equations are all polynomial equations.
Solution to polynomials:
Hence x=0 or ax + b = 0
x=0 x b
a
36
ECON 1003 Mathematics for Social Sciences I
Solve ax2 = + c
x2 = c
a
x= c
a
Form ax2 + bx + c = 0
b b 2 4ac
Factorise or use formula x
2a
Example 2.16:
Solution: x(3x – 5) =0
x = 0 ; 3x – 5= 0
3x = 5
x= 5 Solution x =0, 5
3 3
Solution: 5x2 = 80
80
x2 =
5
x2 = 16
x = 16
x= 4, -4 Solution x = 4, -4
(iii)Solve x 2 – 5x –6 = 0
Solution: By factorizing
(x – 6) (x + 1) = 0
x – 6 = 0; x + 1 = 0
x = 6 x = -1 Solution x = -1; 6
37
ECON 1003 Mathematics for Social Sciences I
b b 2 4ac
x
2a
3 32 4(2)(3)
x
2(2)
3 9 24 3 33
x
4 4
3 5.74 3 5.74
x ; x
4 4
x 0.69 x 2.19
In order to solve polynomials of higher order than two one would need to establish the remainder
and factor theorems.
Dividing a polynomial by a polynomial can give the remainder or the remainder theorem can be
used.
38
ECON 1003 Mathematics for Social Sciences I
i.e. the remainder when a polynomial f(x) is divided by x-k can be found by writing
xk 0
.
xk
And evaluating the polynomial when x=k that is also written by f(k)
Example 2.17: Find the remainder when f(x) = x3 – 2x2 + 3x +2 is divided by x – 1 using
both long division and the Remainder Theorem.
Solution: In the long division method we divide the dividend by the divisor, that is,
we divide f(x) = x3 – 2x2 + 3x +2 by x – 1 as follows:
Quotient
x x22
x 1 x 2 x 2 3x 2
3
x3 x 2
x 2 3x
x2 x
2x 2
2x 2
4
Remainder
39
ECON 1003 Mathematics for Social Sciences I
Divide x3, the first term of the dividend by x, the first term of the divisor and get x2.
Divide 2x by x to get 2.
Hence substituting for x = 1 in the polynomial f(x) = x3 – 2x2 + 3x + 2 gives f(1) = 13 – 2(1)2 +
3(1) + 2
Hence x + 1 = 0
x = -1 f(-1) = 0
40
ECON 1003 Mathematics for Social Sciences I
We conclude both long division and the Remainder Theorem give the same remainder.
However, the Remainder Theorem is shorter and requires less work.
Application of Theorems
Example 2.18 a: Find the constants b such that x + 1 is a factor of the polynomial
f ( x) 3x3 2 x 2 2b 3
Solution:
Hence x +1=0
x = -1
41
ECON 1003 Mathematics for Social Sciences I
f (1) 0
3 1 2 1 2b(1) 3 0
3 2
3(1) 2(1) 2b 3 0
3 2 2b 3 0
2 2b
1 b
Answer b 1
Solution:
f ( x) 3x3 2ax 2 4 x b
x + 2 = 0 since x + 2 is a factor
x = -2 hence f (2) 0 3 2 2a 2 4 2 b 0
3 2
x–1=0
x = 1 hence f (1) 9 3 1 2a 1 4 1 b 9
3 2
3 2a 4 b 9 2a b 2 (2)
-6a = 30
a = -5 and b=8
42
ECON 1003 Mathematics for Social Sciences I
Solution:
One factor must be found by using the remainder theorem. This is done by choosing any factor
of the constant term in f(x) and evaluating the remainder.
x2 x 6
x 1 x3 2 x 2 5 x 6
x3 x 2
x2 5x
x2 x
6x 6
6 x 6
0
(x – 1) (x – 3) (x + 2) = 0 hence
x – 1 = 0; x – 3 = 0; x + 2 = 0
x = 1; x=3; x = -2 .
43
ECON 1003 Mathematics for Social Sciences I
The general form of a straight line is ay + bx + c = 0. This can be written in the form y = mx + c
where m is the slope or gradient and c is the intercept on the y axis.
change in y y2 y1
m
change in x x2 x1
Example 2.20: Given the points A = (-2, 1) and B = (1, 4), find the gradient of AB and the
equation of the line which passes through A and B.
Solution:
y2 y1 4 1 3
The gradient m 1
x2 x1 1 (2) 3
y = mx + c
1 = 1(-2) + c
3=c
44
ECON 1003 Mathematics for Social Sciences I
(1) If F is the fixed cost, V the variable cost per unit and C the total cost of producing q units,
then C = Vq + F.
(2) If P is the selling price per unit and R the total revenue for selling q units, then the
revenue function is defined by R = Pq.
(3) If Pr is the profit from producing and selling q units, then the profit function is defined by
Pr = R – C
Pr = Pq – (Vq + F)
Pr = Pq – Vq – F
= (P - V) q – F.
Example 2.21: A firm’s fixed cost is $40,000. It costs the firm $100 to produce each unit
of its product, and it sells each unit for $120.
(b) The firm’s cost, revenue and profit if it makes and sells
4000 units.
C = 100q + 40,000
Revenue function = Pq
R = 120q
Profit function = R – C
45
ECON 1003 Mathematics for Social Sciences I
Profit = R – C
= $480,000 - $440,000
= $40,000
OR 20 (4000) – 40,000
= $40,000
Break-Even Analysis
When the graphs of the cost and revenue functions intersect as shown below, the point of
intersection is called the break-even point and its q-coordinate is called the break-even quantity.
This can be solved by setting C = R and solving for q.
C = Vq + F
R = Pq
F
units
q
Break-even quantity
Hence the firm breaks even when 2000 units are produced and sold.
46
ECON 1003 Mathematics for Social Sciences I
State which of the following is not a function from A to B. Give reasons for your
answers.
f ( x) 2 x3 3x 2 2 x 3 is divided by x 1
(a) 2 x2 x 1 0
(b) x 2 2 x 24
47
ECON 1003 Mathematics for Social Sciences I
x 1
(5) Given f : x and g : x 2x 1
2
x x 1
(7) If g ( x)
3x 1 x 1
(b) Evaluate: (i) g(-1) (ii) g(-4) (iii) g(0) (iv) g(1)
(v) gg (2)
f ( x) 2 x3 4 x 2 2ax 8
48