Chapter 1relations Functions and Graphs
Chapter 1relations Functions and Graphs
CHAPTER 1
RELATIONS, FUNCTIONS and GRAPHS
Illustration 1: The set of ordered pairs {(-2,3), (-1,4), (0,5), (1,6), (0,8)} describes a relation
between the set X={-2, -1, 0, 1} as the domain and the set Y = (3, 4, 5, 6, 8} as
the range. The association may be viewed pictorially as
-2 3
-1 4
0 5
1 6
8
domain range
(a) (b)
x x
y y
domain: all real numbers domain: all real numbers
range : all real numbers range : y 0
(c) (d)
1
x x
-1
y y
domain: x 0 domain: all real numbers
(e) (f)
2
x -2 2 x
-4
-2
y y
domain: –2 x 2 domain: all real numbers
range : –2 y 2 range : y –4
Remarks: Observe that the domain indicates where on the x-axis the graph has an image. On
the other hand, the range indicates where on the y-axis the graph has an image.
Example 1. Find the domain and range of each of the following equations.
a) y = x + 2 b) y = x c) xy = 1 d) y x 1
Solutions:
a. For y = x + 2, x may assume any value so that the domain is the whole set of real
numbers. Since the y-value simply results by adding 2 to any x-value, the range is
also the whole set of real numbers.
b. For y = x, the domain is the set of real numbers since we can take the absolute
value of any real number. On the other hand, the range is the set of nonnegative real
numbers because the absolute value of any real number is never negative.
c. The domain and range of the equation xy = 1 excludes the number 0 because in each
case, we have the absurd result of 0 = 1. Furthermore, we can write xy = 1 into
either
1 1
y or x
x y
where we see that x = 0 or y = 0 do not yield real values.
that the range of y x 1 is only the set of positive numbers while the range of
y x 1 is the set of negative numbers only.
Usually, the domain and the range are not evident. The following is a suggested
method of finding the domain and the range.
Solutions:
a) x2 + y2 = 4
Solving for y in terms of x, we get
y 4 x2
Since there is no real square root of a negative number, we must have
4 x2 0
Using the method discussed in Trigonometry to solve this quadratic inequality, the
domain is
2 x 2
To find the range, we solve for x in terms of y. This yields
x 4 y2
Hence, by a similar analysis of the right-hand side, the range is
2 y 2
b. y(x2 – x – 2) = 3
Solving for y in terms of x yields
3
y
( x 2)( x 1)
The right side of the equation shows that x 2 or 1.
Thus,
( y) ( y) 2 4 y(2 y 3)
x
2y
y 9 y 2 12 y
x
2y
The right side of the equation shows that the range does not include the value 0
and we must have
9y 2 12 y 3y(3y 4) 0 .
y 4 / 3 or y0 -4/3
Note that graphs and equations also describe a set of ordered pairs. So, a relation may
also be defined alternatively as any set of ordered pairs (x,y).
Definition: A function is a relation such that for each element from the domain, there
corresponds exactly one element from the range.
Illustration 4. The relation {(-2,3), (-1,4), (0,5), (1,6), (0,8)} is not a function because the
element 0 from the domain is associated with the two elements 5 and 8 from the
range. (See illustration 1).
The relation {(-2,3), (-1,4), (0,5), (1,6), (2,3)} is a function. Every element in the
domain {-2, -1, 0, 1, 2} is associated with exactly one element in the range {3, 4,
5, 6}. Pictorially, we see the association as
-2 3
-1 4
0 5
1 6
2
Domain Range
Remarks: A relation described as a set is a function if and only if no two ordered pairs (x,y)
in the set have the same x-components.
Illustration 5. Among the relations represented by graphs in Illustration 2, (c) and (e) are not
functions. For a single x0 in their domains, there are generally two y-values
associated with it: (x0,y1) and (x0,y2).
(c) (e)
(x0,y2)
(x0,y2)
x x0 x x0
(x0,y1) (x0,y1)
y y
Remarks: A relation described by a graph is a function if only if a vertical line could only
intersect the graph in one and only one point. This is known as the Vertical Line
Test.
The other relations in Illustration 2 are functions. Verify this by the vertical line
test.
= –1 – 2
=3
Similarly,
f(1/2) = 1/2 – 2 = –3/2 = 3/2
f(s+1) = s+1 – 2 = s – 1
Example. Suppose that f(x) = 3x2 – 5x + 2 and g(x) = 2 – 3x. Find each of the following:
a) f(2) d) f(1/2) – g(2) + 3/2
b) g(–3/2) e) f(3) + g(2x–7)
c) f(-2) – g(4/3)
Solutions:
a) f(2) = 3(2)2 – 5(2) + 2 = 34 – 10 + 2 = 4
Sum of Two Functions . The sum or difference of two functions f and g is the function F = f
g whose functional value is F(x) = f(x) g(x).
= [x2 – 3x + 5] + [2x2 + 1]
= 3x2 – 3x + 6.
G(x) = f(x) – g(x)
= [x2 – 3x + 5] – [2x2 + 1]
= –x2 – 3x + 4.
x 1 4
(b) If h(x) = , x 1/2 and g(x) = , x –1, then
2x 1 x 1
F(x) = h(x) + g(x)
x 1 4
= +
2x 1 x 1
x 2 10 x 3
= (x -1, ½)
(2 x 1)( x 1)
Product of Two Functions. The product of two functions f and g is the function F = fg or fg
whose functional value is F(x) = f(x)g(x).
= 2x2 + 3x – 2
f
Quotient of Two Functions. The quotient of two functions f and g is the function F
g
f (x)
whose functional value is F( x ) , provided that g(x) 0.
g( x )
f (x) x 3 8
(x 2)
g( x ) x2
( x 2)( x 2 2x 4)
(x 2)
x2
= x2 + 2x + 4 (x 2)
3
(b) If f(x) = 1 and g(x) = 3 – x, then
x
3
1
f (x) x
(x 0 and 3)
g( x ) 3 x
1
=
x
Composite Function. The composite function of two functions f and g is the function f g
(read f circle g) whose functional value is F(x) = f(g(x)).
i) Find the coordinates of points (x,y) that belong to the graph. Assigning a sufficient
number of values to x and then caculating for the corresponding value of y does
this. It is advisable to make a table of x and y values like the one below in which
the corresponding values are recorded.
x
y
ii) Plot the points (x,y) thus determined on a Cartesian Coordinate System.
iii) Connect the plotted points in the order of increasing values of x with a smooth curve.
Since we can only possibly plot and connect a few points, the resulting curve is just a
portion of the graph of the relation. Nevertheless, such a portion of the graph may suggest the
complete picture of the graph, usually suggesting important behaviors of the relation. We
illustrate the process by graphing some important functions and relations.
Solution:
Following the basic steps outlined above, we generate the following table of x and
y values. For purposes of graphing, it is wise to use only small values of x.
a) f(x) = 2
x -3 -2 -1 0 1 2 3
y = f(x) 2 2 2 2 2 2 2 x
y
Prepared by: Asso.Prof. MELANIO G. ROMANO JR.
Central Luzon State University, College of Science
Department of Mathematics and Physics
10
Remarks: Any function of the form f(x) = c where c is a constant, has for its graph a
horizontal line that is c units from the x-axis. They are called constant
functions.
b) f(x) = –x + 5
x -3 -2 -1 0 1 2 3
y = f(x) 8 7 6 5 4 3 2
Remarks: Any function of the form f(x) = mx + b where m and b are constants, has for
its graph a straight line with slope m and intersecting the y-axis at y = b. They
are called linear functions. A special case is when m = 0 where we have the
constant function f(x) = b.
x -3 -2 -1 0 1 2 3
y = f(x) 3 2 1 0 1 2 3
x
The graph has the form of the letter V,
which has its “vertex” at (0,0). y
b) f(x) = x–3
x 0 1 2 3 4 5 6
y = f(x) 3 2 1 0 1 2 3
c) f(x) = x + 2
x -3 -2 -1 0 1 2 3
y = f(x) 5 4 3 2 3 4 5
x
The graph is again V-shaped similar to that
of f(x) = x, only that it is “translated” 2 y
units upward. The vertex is now at (0,2).
d) f(x) = x – 3 + 2
x 0 1 2 3 4 5 6
y = f(x) 5 4 3 2 3 4 5
Remarks: An absolute value function of the form f(x) = x+c + b where b and c are
constants takes the form of the letter V. The vertex is at (-c, b).
x -3 -2 -1 0 1 2 3
y = f(x) 9 4 1 0 1 4 9
b) f(x) = (x – 2)2
x -1 0 1 2 3 4 5
y = f(x) 9 4 1 0 1 4 9
c) f(x) = x2 + 3
x -3 -2 -1 0 1 2 3
y = f(x) 12 7 4 3 4 7 12
d) f(x) = (x–2)2 + 3
x -1 0 1 2 3 4 5
y = f(x) 12 7 4 3 4 7 12
The graph is again a parabola similar to that of f(x) = x2, only that it is
translated 2 units to the right and 3 units upward. The vertex is now at (2,3).
Remarks: A quadratic equation of the form f(x) = (x+a)2 + b has a parabolic graph that
opens upward and with vertex at (–a, b).
e) f(x) = x2 + 4x – 1
First, we rewrite the given equation by completing the square. Thus,
f(x) = x2 + 4x – 1
= (x2 + 4x + 4) – 1 – 4
= (x + 2)2 – 5
The graph is a parabola that opens upward
and with vertex at (-2,-5).
x
It is easy to verify this result by using the
basic steps of graphing.
y
x -3 -2 -1 0 1 2 3 4 5
f(x) -4 13/3 20/3 5 4/3 -7/3 -4 -5/3 20/3
b) f ( x) x 4 2x 2 3
x -2 -1 0 1 2
f(x) 11 2 3 2 11
Remarks: A degree-n polynomial function f(x) = a0xn + a1xn-1 +…+ an-1x + an where each ai
is a constant has a graph that turns n-1 times.
We now consider the graphs of relations that are not functions. Observe the Vertical
Line Test in the following examples.
Solution:
We assign values of x and find the corresponding y-values. To facilitate easy
computation of y-values, we first write the given into
y x
where we immediately see that x can not be assigned negative values (why?).
That is, the domain is nonnegative numbers.
x 0 1 2 3 4 5 6 7 8 9
y 0 1 2 3 2 5 6 7 8 3
. y
Domain
The domain of a function f(x) is the set of all values for which the function is defined,
In other words the domain is the set of all permissible values of x. To find the domain of a
function given by an equation, solve for y interms of x and the domain is composed of all
permissible values of x. The domain excludes values that cause division by zero or undefined
or caused negative values under a radical sign with an even index.
Range
The range of the function is the set of all values that function f takes. In other words
the range of a relation is the set of all y-values that are paired with the x-values. To find the
range of a function given by an equation, solve for x interms of y and the range is composed
of all permissible values of y. The range excludes values that cause division by zero or
undefined or caused negative values under a radical sign with an even index.
Intercepts
The x-intercept is point where a line crosses the x-axis. The coordinates of such points
are always (x, 0). The y-intercept is the point where the line crosses the y-axis and the
coordinates of y-intercepts are always (0, y). To find the x-intercept, let y = 0 in the given
equation then solve for x. To find the y-intercept, let x = 0 in the given equation then solve for
y.
Symmetry
A graph is said to be symmetric with respect to a line if reflecting the graph over that
line leaves the graph unchanged. This line is called an axis of symmetry of the graph. We
consider three(3) symmetries that are easily detected algebraically from its given equation.
These are symmetry with respect to x-axis, symmetry with respect to y-axis and symmetry
with respect to origin.
Asymptotes
An asymptote is a line that is always approaching the curve but never meeting the
curve. In this topic we consider only a horizontal asymptote and vertical asymptote.
Horizontal asymptotes are lines that correspond to the zeroes of the denominator(if any) when
the equation is solved for x in terms of y. While vertical asymptotes are lines that correspond
to the zeroes of the denominator(if any) when the equation is solved for y in terms of x.
y = 3x + 1 x = y + 1_
x–1 y–3
Domain: x ≠ 1 Range: y ≠ 3
Intercepts
a) x – intercept (x, 0) b) y – intercept (0, y)
let y = 0 let x = 0
x(0) – 3x = 0 + 1 0(y) – 3(0) = y + 1
x = – 1/3 y=–1
Symmetry
a) Symmetry with respect to x-axis.
xy – 3x = y + 1
x(–y) – 3x = –y + 1
–xy – 3x = –y +1
Equation is changed. Therefore not symmetric with respect to x-axis.
Asymptotes
a) Vertical Asymptote b) Horizontal Asymptote
y = 3x + 1 x = y + 1_
x–1 y–3
Graph of xy – 3x = y + 1