Functions and Algebra: Solutions
Here are some solutions to the Exercises to accompany the section Functions and Algebra. For this section, you should assume the following function
definitions:
- Let f be given by the following table:
| a |
f(a) |
-2
-1
0
1
2
3
4
5 |
1
-2
4
5
-1
0
3
2 |
- Let g(x) = 3x + 2.
- Let h be given by the following arrow diagram:

- Let p be the function which "cubes the input, then subtracts
3 from the result."
- Let q be given by the following set of ordered pairs:
{(-2, 3), (-1, 1),
(0, -2), (1, 0), (2, 4), (3, 5), (4, -1), (5, 2)}.
- Let r be given by the following plot:

- Let s(b) = (b - 2)/3.
- Let k be given by the following arrow diagram:

- Let t be the function which "takes the
reciprocal of the input, then adds 1 to the result."
- Let w be given by the following table:
| x |
w(x) |
-2
-1
0
1
2
3
4
5 |
-1
0
3
2
-2
4
5
1 |
Evaluation and Composition
- Using the definitions given above,
evaluate
each of
the following composite functions at
the given input value:
- Solution
- By the definition of the composite
function:
-
.
-
Working inside-out,
we first compute g(-1) = 3(-1) + 2 = -1 (using the definition
of g and remembering to use
parentheses). Substituting this result back in the
previous equation gives f(g(-1)) = f(-1) = -2
(by the definition of f), and so
-
- Solution
- As in part a),
, but now f(-1) = -2, and so we
compute g(-2) = 3(-2) + 2 = -4. This gives Notice that, as we said
before, the order of composition matters, since is not the same as
-
- Solution
- As in part a), , but we use the definition of k
to compute k(3) = -1, and the definition of h
to compute h(-1) = 0, so that
.
-
- Solution
- As before, , and the definition of s
gives s(11) = (11 - 2)/3 = 3. From the graph
of r, it appears that r(3) = 1, so that .
-
- Solution
- As usual,
, and the description of p
says that p(2) = 23 - 3 = 5. Since the definition
of q includes the ordered pair (5, 2), q(5) = 2,
so that .
-
- Solution
- Finally, , and the description of t
says that t(1/2) = 1/(1/2) + 1 = 2 + 1 = 3 (again, remembering to use
parentheses). From the definition of w,
w(3) = 4, so that .
Back to Exercises.
- Compute the indicated description for each of
the following composite
functions:
- Give a verbal description of
.
- Solution
- Since the composite function is the
result of first performing p then performing
t, we can describe this function by
"first cube the input, subtract 3 from the result, then take
the reciprocal of that, and add 1 to the result." Note:
As a formula, this would look like .
- Give a formula for . Hint:
First determine the formula for p.
- Solution
- As a formula, p(x) = x3 - 3,
so that, by substitution,
.
- Give the table of values for . Hint:
Compute the value of the composite on each possible input.
- Solution
- If we go down the first column of w and compute the value
of on each possible input (remembering
to apply w first and f second), we obtain:
| x |
|
-2
-1
0
1
2
3
4
5 |
-2
4
0
-1
1
3
2
5 |
- Give an arrow diagram for . Hint:
Compute the value of the composite on each possible input, then draw a
picture of the result.
- Solution
- Simply placing the arrow diagrams for h and k
together k first and
h second)
gives:
-
- Eliminating the middle column, we obtain:
-

- Give a formula for .
- Solution
- Substituting the
formula for g into that of s gives s(g(x))
= s(3x + 2) = ((3x + 2) - 2)/3 = (3x + 2 -
2)/3 = (3x)/3 = x. That is, the composite
is the "trivial" function, id(x), which as no effect on
the input! In the next
section, we will investigate this sort of "cancellation"
effect in more detail.
Back to Exercises.
Solving and Inverse Functions
- Using the definitions given above,
give all possible solutions to each of following equations:
- f(x) = 5.
- Solution
- Looking in the second column of f:
| a |
f(a) |
-2
-1
0
1
2
3
4
5 |
1
-2
4
5
-1
0
3
2 |
we see that 5 only appears as
the output for the input of 1, in the
first column. Therefore, x = 1
is the only solution.
- h(x) = 2.
- Solution
- Looking in the second column of h:
-

- we see that 2 is pointed to by two
arrows, from 1 and 3.
Therefore, x = 1 or x
= 3 are the only solutions.
- p(x) = 24.
- Solution
- Thinking about the rule for p, we notice
that 24 is 3 less than 27, which is 3 cubed. Since there is
only one cube root of 27, x = 3 is the only solution.
- r(x) = 4.
- Solution
- Looking in the plot of r,
we see that there are two points on the graph at the same level as 4
on the vertical axis:
-

- One point is on the vertical axis, where x = 0, and the
other appears to be above x = -2 on the horizontal
axis. Therefore, x = 0 or x = -2 are
the only solutions.
- q(x) = -1.
- Solution
- Looking in the second entries of q, we see
that -1 only appears in the ordered pair (4,
-1), with a corresponding input of 4.
Therefore, x = 4 is the only
solution.
- w(x) = 3.
- Solution
- Looking in the second column of w:
| x |
w(x) |
-2
-1
0
1
2
3
4
5 |
-1
0
3
2
-2
4
5
1 |
-
- we see that 3 only appears as the output for the input of 0, in the first column. Therefore, x
= 0 is the only solution.
Back to Exercises.
-
Using the definitions given above, compute
the reverse
in the indicated form of each of following functions:
- The reverse of f
as a table.
- Solution
- To obtain the reverse relation, we switch columns:
1
-2
4
5
-1
0
3
2 |
-2
-1
0
1
2
3
4
5 |
- The reverse of h
as an arrow diagram.
- Solution
- To obtain the reverse relation, we reverse the arrows to get:
-
or 
- The reverse of p
in words.
- Solution
- Since p
first "cubes" and then "subtracts 3", the
reverse would first "add 3" and then "take the cube
root".
- The reverse of r
as a plot. Hint: First make a table of 4 - 6 points,
reverse the table, then plot.
- Solution
- If we reverse the plot, switching the horizontal and vertical
axes, the graph would be pointing to the right. If we first
make a table of points on the graph:
-3
-2
-1
0
1
2
3 |
3
4
5
4
3
2
1 |
- we can calculate points on the reversed graph:
3
4
5
4
3
2
1 |
-3
-2
-1
0
1
2
3 |
- and plot the results:
-
- The reverse of q
as a table.
- Solution
- To obtain the reverse relation, we put the 2nd coordinates in the
1st column and the corresponding 1st coordinates in the 2nd column:
3
1
-2
0
4
5
-1
2 |
-2
-1
0
1
2
3
4
5 |
- The reverse of w
as an arrow diagram.
- Solution
- We can make a arrow diagram for w, and
then reverse the arrows to get:
-
or 
- The reverse of t
as a formula.
- Solution
- Since t
first "takes the reciprocal" and then "adds 1", the
reverse would first "subtract 1" and then "take the
reciprocal". That is because to get back the original
input to a reciprocal, such as 1/2, we only need to take a
reciprocal again; for example, 1/(1/2) = 2.
- The formula which "subtracts 1" and then "takes the
reciprocal" is 1/(x - 1) (simply follow the instructions
on a typical input, x).
Back to Exercises.
-
Explain why each of the functions from the previous
Exercise are or are not invertible.
- f.
- Solution
- From part a) of the previous exercise, we can
see that the reverse relation of f is a function
(i.e., only one output for each input), so f is
invertible.
- h.
- Solution
- From part b) of the previous exercise, we can
see that the reverse relation of h is not function,
since an "input" of 0 has two
possible outputs, -1 and 2;
in terms of h itself, h(x) = 0 has two
solutions, x = -1 and x
= 2. Again, this implies that h is not
invertible.
- p.
- Solution
- From part c) of the previous exercise, we can
see that the reverse relation of p is a function,
since the inverse relation gives a clearly defined functional rule
(i.e., only one output for each input), so p is
invertible.
- r.
- Solution
- From part d) of the previous exercise, we can
see that the reverse relation of r is not function;
it fails the vertical line test,
say for the vertical line crossing the horizontal axis at 4:
-

- since it intersects the graph at points with vertical coordinates 0
and -2. Equivalently, the graph
of r itself fails the horizontal
line test:
-

- so that r is not invertible.
- q.
- Solution
- From part e) of the previous exercise, we can
see that the reverse relation of q is a function
(i.e., only one output for each input), so q is
invertible.
- w.
- Solution
- From part f) of the previous exercise, we can
see that the reverse relation of w is a function,
since there is only one arrow from each input; alternatively, w(x)
= y has one solution for each output, y, so w is
invertible.
- t.
- Solution
- From part g) of the previous exercise, we can
see that the reverse relation of t is a function,
since the inverse relation gives a clearly defined functional rule
(i.e., only one output for each input), so t is
invertible.
Back to Exercises.
-
This Exercise is designed to help you see why
"division by 0" is "not allowed" in Algebra.
- Let s be the "multiply by 0" function. Complete
the following arrow diagram for s:
- Solution
- Since 0 times anything is 0, all arrows should lead to 0:
-

- How would you describe the "opposite" of s in
words?
- Solution
- Since the opposite of multiplication is division, the opposite of
"multiplication by 0" would be "division by 0".
- As in the previous Exercise, explain why s
is or is not invertible.
- Solution
- The reverse of s is not a function, since 0 has many
possible "outputs". This means that s is not
invertible, i.e., "division by 0" is not a well-defined
function.
Back to Exercises.
More on Inverse Functions
- Following the example
in
the text, and using the definitions given above,
give all possible solutions to each of following equations.
- 2p(x - 1) - 3 = 7.
- Solution
- Adding 3 to both sides and dividing by 2 gives p(x
- 1) = 5. Applying p -1
to both sides gives x
- 1 = p -1(5) = (5 + 3)1/3 = 2,
using the formula from part c) of a previous
exercise. Then, x
- 1 + 1 = 2 + 1, so x = 3.
- (-1/2)f(3x - 1) + 5 = 3.
- Solution
- Subtracting 5 from both sides and multiplying by -2 gives f(3x
- 1) = 4. Applying f -1
to both sides gives 3x
- 1 = f -1(4) = 0, using the table
from part a) of a previous exercise.
Then, 3x
- 1 + 1 = 0 + 1, so 3x
= 1 and x = 1/3.
- 5t(2 - x) + 3 = 3.
- Solution
- Subtracting 3 from both sides and dividing by 5 gives t(2
- x) = 0. Applying t -1
to both sides gives 2 - x = t -1(0)
= 1/(0 - 1) = -1, using the formula from part g) of a previous
exercise. Then, 2 - x - 2 = -1 -
2 = -3, so -x
= -3 and x = 3.
- -3h(x - 1) + 1 = -5. Note: Since is
not invertible, you will get more than one solution.
- Solution
- Subtracting 1 from both sides and dividing by -3 gives h(x
- 1) = 2. Since h
takes the value 2 for inputs of 1
and 3, we have x - 1 = 1
or x - 1 = 3. Then, adding 1 to
both sides of both equations, either x = 2
or x = 4.
Back to Exercises.
- For each of following functions, use the Theorem
in text to compute its inverse. Verify each answer by showing that
it satisfies the cancellation equations.
- If g(x) = 3x + 2, compute g -1.
- Solution
- By the Theorem, we first
set y = g(x) = 3x + 2,
and then solve for x.
Subtracting 2 from both sides and dividing by 3 gives (y
- 2)/3 = (3x + 2 - 2)/3 = 3x/3 = x.
This gives the reverse relation x = g -1(y),
so that g -1(y) = (y
- 2)/3. This corresponds with our intuition that the
reverse of "multiply by 3, then add 2" is "subtract
2, then divide by 3".
- If p(x) = x3 - 3, compute p -1.
- Solution
- Again, we set y = p(x) = x3
- 3, and solve for x. Adding 3 to both sides and
taking a cube root gives (y + 3)1/3 = (x3
- 3 + 3)1/3 = (x3)1/3 = x3/3
= x. This gives the reverse relation x
= p -1(y) = (y + 3)1/3.
Again, this corresponds with our intuition that the reverse of
"cube, then subtract 3" is "add 3, then take a cube
root".
- If f(x) = 1/(x + 4), compute f -1.
- Solution
- Starting with y = f(x) = 1/(x +
4), we can take reciprocals of both sides to get 1/y = x +
4. Subtracting 4 from both sides gives the reverse
relation x = f -1(y) = 1/y
- 4. In words, the reverse of "add 4, then take a
reciprocal" is "take a reciprocal, then subtract
4". This means that the inverse of the reciprocal
function is the reciprocal function (just as the inverse of
multiplication by -1 is multiplication by -1).
Back to Exercises.
- Solve each of following equations for x.
Leave your answer as a formula in y, involving an appropriate inverse
function.
- Solve 2p(x - 1) - 3 = y for x, in
terms of p -1.
- Solution
- Adding 3 to both sides and dividing by 2 gives p(x
- 1) = (y + 3)/2. Applying p -1
to both sides gives x
- 1 = p -1((y +
3)/2). Then, x
- 1 + 1 = p -1((y
+ 3)/2) + 1, so x = p -1((y
+ 3)/2) + 1.
- (-1/2)f(3x - 1) + 5 = y for x, in
terms of f -1.
- Solution
- Subtracting 5 from both sides and multiplying by -2 gives f(3x
- 1) = -2(y - 5). Applying f -1
to both sides gives 3x
- 1 = f -1(-2(y - 5)), and 3x
- 1 + 1 = f -1(-2(y - 5)) + 1.
Then, 3x
= f -1(-2(y - 5)) + 1 or x = (f -1(-2(y
- 5)) + 1)/3.
- 5t(2 - x) + 3 = y for x, in terms of t
-1.
- Solution
- Subtracting 3 from both sides and dividing by 5 gives t(2
- x) = (y - 3)/5. Applying t -1
to both sides gives 2 - x = t -1((y
- 3)/5). Then, 2 - x - 2 = t -1((y
- 3)/5) -
2, so -x
= t -1((y - 3)/5) -
2 and x = 2 - t -1((y
- 3)/5).
Back to Exercises.
Go to More Operations with Functions.