1.3a Composite Function

Composite Function

If function f : X Y ,
and function g : Y Z ,
hence, composite function g f : X Z


Example:
If, f : x 2 x + 5 and g : x x 2 1 , find g f ( 2 )

Answer:
f ( x ) = 2 x + 5 f ( 2 ) = 2 ( 2 ) + 5 = 9

g f ( 2 ) = g [ f ( 2 ) ] = g ( 9 )

g ( x ) = x 2 1 g f ( 2 ) = g ( 9 ) = 9 2 1 = 80

Example 4 and 5


Example 4
Given the function f : x 3 x + 2  , find the value of
(a) f ( 2 )
(b) f ( 5 )
(c) f ( 1 3 )




Example 5
If f ( x ) = x 2 + 3 x + 2  , express each of the following in terms of x:
(a) f ( 2 x )
(b) f ( 3 x + 1 )
(c) f ( x 2 )


Example 2 and 3

Example 2

Function f is defined as f : x 5 2 x 1 , x k

Find the value of k.



Example 3

Given g : x 3 x 5 2 x + 7  

Function g is defined for all values of x except x = a. Find the value of a.



Domain, Range, Objects, Images and Absolute Value Functions


(B) Domain, Range, Objects and Images of a Function

Example:

The arrow diagram above represents the function f : x → 2x2 – 5. State
(a) the domain,
(b) the range,
(c) the image of –2,
(d) the objects of
(i) –3,
(ii) –5.  

Solution:
(a) Domain = {–2, –1, 0, 1, 2}.
(b) Range = {–5, –3, 3}.
(c) The image of –2 is 3.
(d) (i) The objects of –3 are 1 and –1.
(d) (ii) The objects of –5 is 0.

(C) Absolute Value Functions

1. Symbol |  | is read as ‘the modulus’ of a number. In general, the modulus of x, that is | x |, is defined as

| x |={ x if x0 x if x<0

2. In other words, modulus of a number always positive.
3. The absolute value function | f(x) | is defined by

| f(x) |={ f(x) if f(x)0 f(x) if f(x)<0


Example:
Given function f : x|x + 2|.
(a) Find the image of –4, –3, 0 and 2.
(b) Sketch the graph of f (x) for the domain –4 ≤ x ≤ 2.
Hence, state the range of values of  f (x) based on the given domain.


Solution:
(a)
Given f (x) = |x + 2|
Image of –4 is f(–4) = | –4 + 2| = | –2| = 2
Image of –3 is f(–3) = | –3 + 2| = | –1| = 1
Image of 0 is f(0) = | 0 + 2| = | 2 | = 2
Image of 2 is f(2) = | 2 + 2| = | 4 | = 4

(b)
From (a),
f(–4) = 2
f(–3) = 1
f(0) = 2
f(2) = 4

Determine the point where the graph touches the x-axis.
At x-axis, f (x) = 0
|x + 2| = 0
x + 2 = 0
x = –2


Therefore, range of values of f (x) is 0 ≤ f (x) ≤ 4.

Notation of Function


As shown in figure above, for a function f : X Y , each element x in the domain X has a unique image y in the codomain Y. 

The function can be written as:
y = f ( x ) o r f : x f ( x )
  1. For y = f ( x ) , we say y is a function of x.
  2. f(x) is also called the value of the function f at x.
  3. f(x) is read as "f of x".

Example:
Given the function f : x 5 x + 1 , find the value of
a. f ( 2 )
b. f ( 3 )
c. f ( 2 5 )

Answer:
(a)
f ( x ) = 5 x + 1 f ( 2 ) = 5 ( 2 ) + 1 = 11

(b)
f ( x ) = 5 x + 1 f ( 3 ) = 5 ( 3 ) + 1 = 14

(c)
f ( x ) = 5 x + 1 f ( 2 5 ) = 5 ( 2 5 ) + 1 = 3

1.1b Domain and Codomain

[adinserter block="3"]

Domain and Codomain

  1. In the relation between one set and another, the first set is known as the domain and the second set is known as the codomain.
  2. Elements in the domain is called objects, whereas elements in the codomain mapped to the objects is called the image.
  3. Elements in the codomain not mapped to the objects are not the image.
  4. All images in codomain can be written as a set known as range.
Example:

Domain = {3, 4, 5}
Codomain = {7, 9, 12, 15}
Range = {9, 12, 15} [Note: 7 is not an image because it is not mapped to any object.]

3 is the object of 9, 12 and 15.
4 is the object of 12.
5 is the object of 15.

9, 12 and 15 are the images of 3.
12 is the image of 4.
15 is the image of 5.