Relations - Functions (A)
Relations - Functions (A)
Representing relations
An Arrow Diagram is often used to represent a
relation. The diagram below, shows the sets:
X = {7, 8, 9, 10} and Y = {15, 17, 19, 21}.
Example 1
The relation can also be represented as a set of A relation is represented by the ordered pairs:
ordered pairs: (1, 5), (2, 7), (3, 9), (4, ?).
a. State the rule for the relation.
(7, 15), (8, 17), (9, 19), (10, 21). b. What is the image of 4?
c. What is the input for an output of 23?
We can also refer to the members of the set X as the d. Draw an Arrow Diagram to represent the relation.
input and the members of set Y as the output. The
direction of the arrows is always from the input to the
output. The corresponding y value in Y is described Solution
as the image of the x value in X. a. By inspection, the rule for the relation is
2x + 3 .
If we plot ordered pairs on a Cartesian Plane, we b. The image of 4 is calculated by substituting
obtain a graph of a relation. We have met such graphs x = 4 in 2 x + 3 .
in our study of coordinate geometry and quadratic 2 ( 4) + 3 = 11 . The image of 4 is 11.
functions. Hence, graphs are also used to represent
relations.
c. The input when the output is 23 is found by One to one functions are extremely common in the
solving for x when 2 x + 3 = 23 . real world. For example, if the cost of an orange is $2
2x + 3 = 23,⇒ 2x = 20, x = 10 . and we map the number of oranges (X) onto the cost
(Y), then each member of X will be assigned to one
The input is 10 for an output of 23.
and only one member of Y.
d. The Arrow diagram which illustrates this The arrow diagram below shows an example of this
relation is shown below. one-one function. Each quantity can only be assigned
one cost.
The set X
represents
the number
of oranges.
The set Y
represents
the cost of
the oranges.
-1 1
1
-2 2
2
This is not a
function. There are
two members of
the domain not
mapped onto any
An onto function since A function that is NOT member of the co-
all outputs have inputs. onto, there is no input domain.
for the output, 8.
Range = Co-domain Range ≠ Co-domain
Vertical Line Test for a function
Examples of functions The vertical line test may be used to determine if a
The arrow diagrams below illustrate mappings that graph represents a function. If a vertical line cuts the
are examples and non-examples of functions. In a graph at most once then the graph represents a
function, each element of the domain must be function. This test works because a function has only
mapped onto one element of the co-domain. Hence, if one output for each input.
one arrow, only, leaves EACH element of the
domain, then the mapping is a function. Vertical line test for a function
A function that is
both one-to-one
and onto. Every
output has an
input so the
range and the
codomain are the
same. This graph represents a function since the vertical
lines cut the curve once, regardless of its position.
A function that is This indicates there are no one-to-many
one-to-one but relationships.
not onto. The
range is not the
same as the
codomain.
A many to one
and onto
function. The
range is the same
as the codomain. This graph does NOT represent a function, since
the vertical line cuts the curve more than once,
indicating that there is more than one output for
one input.
Horizontal Line Test for a One to One Function Describing the range of a function
If a horizontal line intersects a graph of a function at The set of numbers on a number line is infinite with a
most once, then the graph represents a one-to-one range from negative infinity to positive infinity. In
function. order to describe a subset of real numbers, we must
be familiar with interval notation.
One-one
The graph represents a The set of all numbers between two endpoints is
one to one function since called an interval.
the horizontal lines cut the A closed interval includes the endpoints.
curve once. Note, the An open interval does not include the endpoints.
graph also must pass the A half-open interval includes one of the endpoints.
vertical line test.
Not one-one
Although this function
passes the vertical line test
and represents a function,
it does not represent a
one-to-one function since
the horizontal lines cut the
curve more than once.
We have already defined the range of a function as
the set of members of the codomain that are used. We
may refer to these members as output values or
Example 2 images. For a function from a set A to a set B, the
Show that f ( x) = x 2 + 1 is not one-to-one for subset of B which contains all the elements of A
xÎR. under f is called the range.
Solution
Example 5 Now f (x) = (x − 2) − 4 − 5 = (x − 2) − 9
2 2
Undefined values
;
When a function is expressed in the form f(x) = < , the
function is undefined or not-defined when B = 0. This
;
is because, = → ∞.
When 2x – 4 = 0, x = 2.
Hence, f(x) is undefined at x = 2.
When a function is undefined at a point, say 𝑥 = 𝑘,
there is no corresponding value for y at 𝑥 = 𝑘, that
the function does not exist for this value of x.
5 674
Example, f(x) = (634)( 675) will not exist at x = 1 and
The inverse of non-linear functions
at x = -3.
If a non-linear function has an inverse, then the above
The Graph of a Function and its Inverse principle for a linear function is still applicable. We
can draw the graph of the inverse function, f -1 by
If a function, f (x) maps the element a onto b, then reflecting the function f in the line y = x.
−1
its inverse f x will map b onto a. This means that The diagram below shows the graph of a non-linear
function and the graph of its inverse. The line y = x
any point (a, b) on the graph of f will be mapped onto
−1
will be an axis of symmetry for the function, f and its
(b, a) on the graph of f . inverse, f -1 .
Geometrically speaking, the inverse function is seen
as a reflection of f (x) in the line y = x . This is
because a reflection in the line 𝑦 = 𝑥 maps a point
(𝑎, 𝑏) onto the image (𝑏, 𝑎). Hence, if f (x) is
−1
known, then we may easily sketch the graph of f x .
Example 9
On the same diagram, show the graph of
−1
f (x) = 2x + 3 and the graph of f (x) .
Solution
First, draw the graph of y = 2x + 3 by plotting a pair
of points.
Next, draw the line y = x (shown as a broken line In general, curves such as quadratics do not have an
inverse for x Î R , since they are clearly not one-to-
below).
one. However, if we restrict the domain of a If we obtain the image of, say 5, in f(x).
quadratic function, an inverse may exist for the f (5) = 2(5) + 1 = 11
restricted interval. Then we use this image as the input in g(x).
If we draw a line of symmetry on a quadratic graph 11 + 3 14
and define the domain to the right or to the left of the g (11) = = = 7.
2 2
line, we will have a one-one and onto function. Our result after applying these two functions in the
This is illustrated in the diagrams below for the order, 𝑓 followed by 𝑔, is 7. Illustrating this process
quadratic function 𝑦 = 𝑥 8 − 2 with the axis of in two separate diagrams, we have:
symmetry, 𝑥 = 0.
𝑓(5) = 11 𝑔(11) = 7
𝑓(𝑥) is not one-one if If we restrict the domain The single function that maps 5 onto the final image
we look at the entire to, say, the interval [0, ∞), 7 is written as 𝑔𝑓(𝑥), where 𝑔𝑓(5) = 7.
domain (−∞, ∞). then the function is one-
one.
Example 10 Solution
Use the definition of inverse functions to
determine if the functions f and g are inverses g ( x) = x + 5
of each other, where f (x) = x
Let
f (x) = 8x - 7 and g(x) = x + 7 Let y = x
y = x+5
8 x= y x = y +5
Solution y = x2 y = x -5
f −1 (x) = x 2 g -1 ( x ) = x - 5
æ x + 7ö g[ f (x)] = g(8x - 7)
f [g(x)] = f ç
è 8 ÷ø (8x - 7) + 7 g 2 (x) = g[g(x)] gf -1 (x) = g[ f -1 (x)]
=
æ x + 7ö 8 = g(x + 5) = g(x 2 )
= 8ç -7
è 8 ÷ø =
8x
= (x + 5) + 5
8 = x2 + 5
= x+7-7 = x + 10
=x
=x
Example 11
f ( x ) = x + 2 and g ( x ) = x , where 𝑥 ∈ 𝑅.
Determine the composite function gf (x) . Hence
state its domain.