Functions As Rules
Functions As Rules
1
For example, the rule y = x2 − 4x + 3 corresponds to a parabola facing upwards, and can
be rewritten, after completing the square, as
y = x2 − 4x + 3 = x2 − 4x + 4 − 4 + 3 = (x − 2)2 − 1 ,
so that its apex is the point (2, −1), and its range is the interval [−1, ∞), since (x−2)2 ≥ 0
for all x. y
8
7
6 y = x2 − 4x + 3
5
4
3
2
1
−3 −2 −1 1 2 3 4 x
−1
y = 1 − 6x − x2 = 1 + 9 − 9 − 6x − x2 = 10 − (x2 + 6x + 9) = 10 − (x + 3)2 .
The point (−3, 10) is the apex, and the range is (−∞, 10], since −(x + 3)2 ≤ 0 for all x.
10
9
8
7
y = 1 − 6x − x2 6
5
4
3
2
1
−8 −7 −6 −5 −4 −3 −2 −1 1 2 3 4 x
−1
2
(vii) Hyperbolas: The simplest hyperbola is the graph of the function f with rule
1
y = f (x) = .
x
For example,
( ) ( )
1 1 1 1
f (1) = 1 , f (2) = , f = 2 , f (−1) = −1 , f (−2) = − , f − = −2 .
2 2 2 2
The domain and range of f are both equal to R\{0}, the real line with the number 0
removed. The graph has two disconnected pieces, called branches, one in the first quadrant
involving only positive numbers and their reciprocals, and the other in the third quadrant
involving only negative numbers and their reciprocals.
y
7
1
6 y=
x
5
4
3
2
1
−7 −6 −5 −4 −3 −2 −1 1 2 3 4 5 6 7 x
−1
−2
−3
−4
−5
−6
−7
The x-axis is a horizontal asymptote of the graph of f , approached by the curve both
to the right and left as one moves further away from the origin. The y-axis is a vertical
asymptote, approached by the curve as the inputs x get closer and closer to, but do not
reach, zero.
Consider, as a variation, the function g with rule
1 x−1
g(x) = 1 + = .
x−2 x−2
For example,
( ) ( )
1 2 3 1 1 1 3
g(0) = , g(1) = 0 , g(3) = 2 , g(−1) = , g(−2) = , g = , g − = .
2 3 4 2 3 2 5
3
However, g(2) is undefined, and the domain of g is R\{2}, the real line with 2 removed.
1
The fraction x−2 produces all nonzero real numbers, so, when this fraction is added to 1,
the rule for g produces all real numbers other than 1, so the range is R\{1}.
7
1
6 y =1+
x−2
5
4
3
2
1
−4 −3 −2 −1 1 2 3 4 5 6 7 8 x
−1
−2
−3
−4
−5
The graph of g is another hyperbola, and obtained by shifting the graph of f horizontally
by 2 units (the effect of having x − 2 in place of x in the denominator) and vertically by
1 unit (the effect of adding 1 to the fraction). These shifting effects move the horizontal
asymptote to the line y = 1 and the vertical asymptote to the line x = 2.