Composite Function (Comparison Method) Example 1


Example 1
Given f:xhx+k,g:x(x+1)2+4   and fg:x2(x+1)2+5.  Find
(a) the value of g²(2),
(b) the value of h and of k.







Example 3


Example 3

If f:x2x+1   and g:x5x,x0  .  Find the composite functions gf , fg and the value of gf(4).


Example 2

Given f:x1x and g:xpx2+q. If the composite function gf is defined by gf:x3x26x+5, find

  1. the value of p and of q,
  2. the value of g2(1).

Example 2


Example 2

Functions f and g are defined by f:xx1   and g:x3xx+4  .  Find
(a) the value of gf(3),
(b) the value of fg(-1 ),
(c) the composite functions fg,
(d) the composite functions gf,
(e) the composite functions g²,
(f) the composite functions f².






Example 1

If f : xx + 5 and g : xx2 +2x + 3, find

  1. the value of gf (2),
  2. the value of fg (2 ),
  3. the composite functions fg,
  4. the composite functions gf,
  5. the composite functions g2 ,
  6. the composite functions f2.

correction for part (c)

fg(x)=f(x2+2x+3)=(x2+2x+3)+5=x2+2x+3+5=x2+2x+8 

1.3a Composite Function

Composite Function

If function f:XY ,
and function g:YZ ,
hence, composite function gf:XZ


Example:
If, f:x2x+5 and g:xx21 , find gf(2)

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

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

g(x)=x21gf(2)=g(9)=921=80

Example 4 and 5


Example 4
Given the function f:x3x+2  , find the value of
(a) f(2)
(b) f(5)
(c) f(13)




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


Example 2 and 3

Example 2

Function f is defined as f:x52x1,xk

Find the value of k.



Example 3

Given g:x3x52x+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 x0x 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)0f(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:XY , 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)orf:xf(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:x5x+1 , find the value of
a. f(2)
b. f(3)
c. f(25)

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

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

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