L2 Graphs of Functions
L2 Graphs of Functions
Mathematics 100
Institute of Mathematics
4 Lecture Exercises
Definition
R
The graph of an equation in 2 is the set of all points in R2 whose
coordinates are numbers satisfying the equation.
Remarks:
1 The domain and range of a relation may be determined from its graph.
domain - horizontal extent of the graph
range - vertical extent of the graph
2 Determining if an equation y = f (x) is a function or not may be
determined from its graph.
Theorem
If every vertical line intersects the graph of an equation at most once, then the
equation defines y as a function of x.
Example
Consider the graph of y = x + 1.
domain = R
−3 −2 −1 1 2 3
R
−1
range =
−2
−3
1
domain = [−2, 2]
−3 −2 −1 1 2 3
−1 range = [−2, 2]
−2
−3
Recall that:
dom f = R
ran f = {c}
Graph of f (x) = c
dom f = R
To sketch the graph of a linear function, consider the x-intercept and the
y-intercept.
Example
Sketch the graph of the linear function defined by f (x) = 2x + 4.
Solution:
Solve for the y-intercept:
x = 0 =⇒ y = 2 · 0 + 4 =⇒ y = 4
y = 0 =⇒ 0 = 2x + 4 =⇒ x = −2
2 dom f = R
R
1
(−2, 0)
ran f =
−3 −2 −1 1 2 3
−1
Graph of f (x) = 2x + 4
Example
Sketch the graph of the linear function defined by g(x) = −3x + 1. (Try this at
home.)
Example
Sketch the graph of the quadratic function defined by f (x) = x2 − 5x + 4.
Solution:
Its graph is a parabola that opens upward since a > 0.
The vertex is the point
b 4ac − b2 4 · 1 · 4 − (−5)2
−5 5 9
− , = − , = ,− .
2a 4a 2·1 4·1 2 4
Solution cont’d.:
0 = x2 − 5x + 4 = (x − 4)(x − 1).
x = 4 and x = 1
The x-intercepts are x = 4 and x = 1.
Thus, (1, 0) and (4, 0) are points on the parabola.
For the y-intercept, let x = 0 and solve for y:
y = 02 − 5 · 0 + 4 = 4.
The y-intercept is 4 and the parabola passes through the point (0, 4).
4 dom f = R
3
ran f = − 49 , +∞
2
1
(1, 0) (4, 0)
−2 −1 1 2 3 4 5
−1
−2
( 25 , − 94 )
−3
Graph of f (x) = x2 − 5x + 4
Example
Sketch the graph of the quadratic function defined by g(x) = −2x2 + 3x + 2.
(Try this at home.)
where P and Q are polynomial functions and Q is not the constant zero
R
function. The domain of the rational function above is {x ∈ : Q(x) 6= 0}.
Example
x2 − 4
Sketch the graph of the rational function defined by f (x) = .
x−2
Solution:
To sketch its graph, we note that if x 6= 2, then we can write the given
function as
x2 − 4 (x − 2)(x + 2)
f (x) = = = x + 2.
x−2 x−2
Hence, the graph of the given function is the same as the graph of
f (x) = x + 2 but with the point (2, 4) excluded.
5 dom f = R \ {2}
4 (2, 4)
3
ran f = R \ {4}
2
−3 −2 −1 1 2 3 4
−1
x2 − 4
g(x)
Graph of f (x) = x + 2
x−2
Example
x2 − 2x + 1
Sketch the graph of the rational function defined by g(x) = . (Try
1−x
this at home.)
Example
Sketch the graph of the rational function defined by
(x − 1)(x2 − x − 6)
h(x) = .
x−3
Solution:
If x 6= 3, we have
10
dom h = R \ {3}
9
8
ran h = − 94 , +∞
7
6
5
4
3
2
1
−4 −3 −2 −1−1 1 2 3 4
−2 (− 12 , − 94 )
(x − 1)(x2 − x − 6)
Graph of f (x) = x2 + x − 2
h(x)
x−3
Example
Sketch the graph of the split function defined by
3 , if x > 0
f (x) =
−2 , if x ≤ 0.
Solution:
This means that we graph f (x) = 3 when x > 0 and graph f (x) = −2 when
x ≤ 0.
4 dom f = R
3
2 ran f = {−2, 3}
1
−4 −3 −2 −1 1 2 3 4
−1
−2
−3
−4
Graph of f
Example
Sketch the graph of the split function defined by
x − 12 , if x < 1
g(x) =
1 2
4 x + 1 , if x ≥ 1.
Solution:
1
We sketch g(x) = x − 2 when x < 1 and sketch the graph of g(x) = 41 x2 + 1
when x ≥ 1.
Solution cont’d.:
2
dom g = R
ran g = −∞, 12 ∪ 54 , +∞
1
−1 1 2
−1
Graph of g
4 dom f = R
3
−3 −2 −1 1 2 3
−1
Example
Sketch the graph of the function f (x) = |x + 2|.
Solution:
By definition, f is a split function given by
x+2 , if x + 2 ≥ 0
f (x) = |x + 2| =
− (x + 2) , if x + 2 < 0.
x+2 , if x ≥ −2
=
−(x + 2) , if x < −2.
Thus, the graph of f is the graph of f (x) = x + 2 if x ≥ −2 and its graph is the
graph of f (x) = −(x + 2) if x < −2.
Solution cont’d.:
4 dom f = R
3
−5 −4 −3 −2 −1 1
−1
Graph of f (x) = |x + 2|
Example
Sketch the graph of g(x) = |x − 5| + 3. (Try this at home.)
The greatest integer function is the function whose value at any real
number x is the greatest integer less than or equal to x, denoted by [[x]].
Formally, we have
Example
1 [[2.4]] = 2
2 [[1.9]] = 1
3 [[0]] = 0
4 [[−3.2]] = − 4
3 dom f = R
2
1
ran f = Z
−3 −2 −1 1 2 3 4
−1
−2
−3
Example
Sketch the graph of the function f (x) = [[x + 2]].
Solution:
Let us first compute some function values of f .
and so on.
Solution cont’d.:
4 dom f = R
3
2
ran f = Z
1
−4 −3 −2 −1 1 2 3
−1
−2
Example
Let
x−1 , if x < −1
f (x) = −3x2 + 1 , if − 1 ≤ x < 1
[[x − 4]] , if 1 ≤ x ≤ 6.
2 dom f = (−∞, 6]
1
ran f = (−∞, 1] ∪ {2}
−2 −1 1 2 3 4 5 6
−1
−2
−3
Graph of f
Example
Let 2
x −4
x + 2 , if − 3 ≤ x ≤ −1, x 6= −2
h(x) =
[[x]] + 1 , if − 1 < x < 1
|x − 5| , if 1 ≤ x ≤ 7.
−3 −2 −1 1 2 3 4 5 6 7
−1
−2
−3
−4
−5
Graph of h