How to use these solutions#
These are the worked solutions to the Mixed Practice questions in the lesson Composition, Inverses and Mixed Practice . Try each question first, then read the steps and compare. Remember the order in a composite: ( g ∘ f ) ( x ) = g ( f ( x ) ) (g \circ f)(x) = g(f(x)) ( g ∘ f ) ( x ) = g ( f ( x )) means apply f f f first, then g g g .
Question 1: Composing functions given as sets of pairs#
The problem#
f = { ( 1 , 3 ) , ( 2 , 5 ) , ( 3 , 1 ) } f = \{(1, 3), (2, 5), (3, 1)\} f = {( 1 , 3 ) , ( 2 , 5 ) , ( 3 , 1 )} and g = { ( 1 , 2 ) , ( 3 , 4 ) , ( 5 , 6 ) } g = \{(1, 2), (3, 4), (5, 6)\} g = {( 1 , 2 ) , ( 3 , 4 ) , ( 5 , 6 )} . Find g ∘ f g \circ f g ∘ f .
Understanding the problem#
Each pair ( a , b ) (a, b) ( a , b ) in f f f means f ( a ) = b f(a) = b f ( a ) = b . So f ( 1 ) = 3 f(1) = 3 f ( 1 ) = 3 , f ( 2 ) = 5 f(2) = 5 f ( 2 ) = 5 , f ( 3 ) = 1 f(3) = 1 f ( 3 ) = 1 , and g ( 1 ) = 2 g(1) = 2 g ( 1 ) = 2 , g ( 3 ) = 4 g(3) = 4 g ( 3 ) = 4 , g ( 5 ) = 6 g(5) = 6 g ( 5 ) = 6 . The domain of g ∘ f g \circ f g ∘ f is the domain of f f f : { 1 , 2 , 3 } \{1, 2, 3\} { 1 , 2 , 3 } .
The idea#
For each x x x in the domain of f f f , find f ( x ) f(x) f ( x ) , then feed that into g g g .
Step-by-step solution#
Step 1. x = 1 x = 1 x = 1 : f ( 1 ) = 3 f(1) = 3 f ( 1 ) = 3 , then g ( 3 ) = 4 g(3) = 4 g ( 3 ) = 4 . So ( g ∘ f ) ( 1 ) = 4 (g \circ f)(1) = 4 ( g ∘ f ) ( 1 ) = 4 .
Step 2. x = 2 x = 2 x = 2 : f ( 2 ) = 5 f(2) = 5 f ( 2 ) = 5 , then g ( 5 ) = 6 g(5) = 6 g ( 5 ) = 6 . So ( g ∘ f ) ( 2 ) = 6 (g \circ f)(2) = 6 ( g ∘ f ) ( 2 ) = 6 .
Step 3. x = 3 x = 3 x = 3 : f ( 3 ) = 1 f(3) = 1 f ( 3 ) = 1 , then g ( 1 ) = 2 g(1) = 2 g ( 1 ) = 2 . So ( g ∘ f ) ( 3 ) = 2 (g \circ f)(3) = 2 ( g ∘ f ) ( 3 ) = 2 .
Step 4. Write the result as a set of pairs.
g ∘ f = { ( 1 , 4 ) , ( 2 , 6 ) , ( 3 , 2 ) } g \circ f = \{(1, 4), (2, 6), (3, 2)\} g ∘ f = {( 1 , 4 ) , ( 2 , 6 ) , ( 3 , 2 )}
Checking the answer#
Every output of f f f (3 3 3 , 5 5 5 , 1 1 1 ) is in the domain of g g g , so g ∘ f g \circ f g ∘ f is defined at every point.
Answer#
g ∘ f = { ( 1 , 4 ) , ( 2 , 6 ) , ( 3 , 2 ) } g \circ f = \{(1, 4), (2, 6), (3, 2)\} g ∘ f = {( 1 , 4 ) , ( 2 , 6 ) , ( 3 , 2 )}
The problem#
f ( x ) = x + 3 f(x) = x + 3 f ( x ) = x + 3 , g ( x ) = x 2 − 2 g(x) = x^2 - 2 g ( x ) = x 2 − 2 . Find f ∘ g f \circ g f ∘ g , g ∘ f g \circ f g ∘ f and f ∘ f f \circ f f ∘ f .
Understanding the problem#
( f ∘ g ) ( x ) = f ( g ( x ) ) (f \circ g)(x) = f(g(x)) ( f ∘ g ) ( x ) = f ( g ( x )) : put g ( x ) g(x) g ( x ) into f f f . ( g ∘ f ) ( x ) = g ( f ( x ) ) (g \circ f)(x) = g(f(x)) ( g ∘ f ) ( x ) = g ( f ( x )) : put f ( x ) f(x) f ( x ) into g g g .
The idea#
Replace the input of the outer function by the whole inner expression, then simplify.
Step-by-step solution#
Step 1. f ∘ g f \circ g f ∘ g : f f f adds 3 3 3 to its input.
( f ∘ g ) ( x ) = f ( x 2 − 2 ) = ( x 2 − 2 ) + 3 = x 2 + 1 (f \circ g)(x) = f(x^2 - 2) = (x^2 - 2) + 3 = x^2 + 1 ( f ∘ g ) ( x ) = f ( x 2 − 2 ) = ( x 2 − 2 ) + 3 = x 2 + 1
Step 2. g ∘ f g \circ f g ∘ f : g g g squares its input and subtracts 2 2 2 .
( g ∘ f ) ( x ) = g ( x + 3 ) = ( x + 3 ) 2 − 2 = x 2 + 6 x + 9 − 2 = x 2 + 6 x + 7 \begin{aligned}
(g \circ f)(x) = g(x + 3) &= (x + 3)^2 - 2\\
&= x^2 + 6x + 9 - 2 = x^2 + 6x + 7
\end{aligned} ( g ∘ f ) ( x ) = g ( x + 3 ) = ( x + 3 ) 2 − 2 = x 2 + 6 x + 9 − 2 = x 2 + 6 x + 7
Step 3. f ∘ f f \circ f f ∘ f : add 3 3 3 , then add 3 3 3 again.
( f ∘ f ) ( x ) = f ( x + 3 ) = x + 6 (f \circ f)(x) = f(x + 3) = x + 6 ( f ∘ f ) ( x ) = f ( x + 3 ) = x + 6
Checking the answer#
At x = 1 x = 1 x = 1 : g ( 1 ) = − 1 g(1) = -1 g ( 1 ) = − 1 , f ( − 1 ) = 2 f(-1) = 2 f ( − 1 ) = 2 , and 1 2 + 1 = 2 1^2 + 1 = 2 1 2 + 1 = 2 . Also f ( 1 ) = 4 f(1) = 4 f ( 1 ) = 4 , g ( 4 ) = 14 g(4) = 14 g ( 4 ) = 14 , and 1 + 6 + 7 = 14 1 + 6 + 7 = 14 1 + 6 + 7 = 14 .
Answer#
f ∘ g = x 2 + 1 f \circ g = x^2 + 1 f ∘ g = x 2 + 1 ; g ∘ f = x 2 + 6 x + 7 g \circ f = x^2 + 6x + 7 g ∘ f = x 2 + 6 x + 7 ; f ∘ f = x + 6 f \circ f = x + 6 f ∘ f = x + 6 .
Common mistake to avoid#
Mixing up the order. f ∘ g f \circ g f ∘ g and g ∘ f g \circ f g ∘ f are different here.
Question 3: A function that is its own inverse#
The problem#
f ( x ) = 3 x + 2 5 x − 3 \displaystyle f(x) = \frac{3x + 2}{5x - 3} f ( x ) = 5 x − 3 3 x + 2 , x ≠ 3 5 \displaystyle x \ne \frac{3}{5} x = 5 3 . Show ( f ∘ f ) ( x ) = x (f \circ f)(x) = x ( f ∘ f ) ( x ) = x . What is f − 1 f^{-1} f − 1 ?
Understanding the problem#
We need f ( f ( x ) ) f(f(x)) f ( f ( x )) : substitute the whole fraction f ( x ) f(x) f ( x ) in place of x x x in f f f . If the result is x x x , then applying f f f twice brings you back, so f f f undoes itself.
The idea#
Simplify the numerator and denominator of f ( f ( x ) ) f(f(x)) f ( f ( x )) separately over the common denominator 5 x − 3 5x - 3 5 x − 3 .
Step-by-step solution#
Step 1. Write f ( f ( x ) ) f(f(x)) f ( f ( x )) .
f ( f ( x ) ) = 3 ( 3 x + 2 5 x − 3 ) + 2 5 ( 3 x + 2 5 x − 3 ) − 3 \displaystyle f(f(x)) = \frac{3\left(\dfrac{3x + 2}{5x - 3}\right) + 2}{5\left(\dfrac{3x + 2}{5x - 3}\right) - 3} f ( f ( x )) = 5 ( 5 x − 3 3 x + 2 ) − 3 3 ( 5 x − 3 3 x + 2 ) + 2
Step 2. Simplify the numerator.
3 ( 3 x + 2 ) + 2 ( 5 x − 3 ) 5 x − 3 = 9 x + 6 + 10 x − 6 5 x − 3 = 19 x 5 x − 3 \displaystyle \frac{3(3x + 2) + 2(5x - 3)}{5x - 3} = \frac{9x + 6 + 10x - 6}{5x - 3} = \frac{19x}{5x - 3} 5 x − 3 3 ( 3 x + 2 ) + 2 ( 5 x − 3 ) = 5 x − 3 9 x + 6 + 10 x − 6 = 5 x − 3 19 x
Step 3. Simplify the denominator.
5 ( 3 x + 2 ) − 3 ( 5 x − 3 ) 5 x − 3 = 15 x + 10 − 15 x + 9 5 x − 3 = 19 5 x − 3 \displaystyle \frac{5(3x + 2) - 3(5x - 3)}{5x - 3} = \frac{15x + 10 - 15x + 9}{5x - 3} = \frac{19}{5x - 3} 5 x − 3 5 ( 3 x + 2 ) − 3 ( 5 x − 3 ) = 5 x − 3 15 x + 10 − 15 x + 9 = 5 x − 3 19
Step 4. Divide; the 5 x − 3 5x - 3 5 x − 3 and the 19 19 19 cancel.
f ( f ( x ) ) = 19 x 5 x − 3 ⋅ 5 x − 3 19 = x \displaystyle f(f(x)) = \frac{19x}{5x - 3}\cdot\frac{5x - 3}{19} = x f ( f ( x )) = 5 x − 3 19 x ⋅ 19 5 x − 3 = x
Step 5. Since f ∘ f f \circ f f ∘ f is the identity, f f f is its own inverse: f − 1 = f f^{-1} = f f − 1 = f .
Checking the answer#
f ( 0 ) = 2 − 3 = − 2 3 \displaystyle f(0) = \frac{2}{-3} = -\frac{2}{3} f ( 0 ) = − 3 2 = − 3 2 ; f ( − 2 3 ) = − 2 + 2 − 10 3 − 3 = 0 \displaystyle f\left(-\frac{2}{3}\right) = \frac{-2 + 2}{-\frac{10}{3} - 3} = 0 f ( − 3 2 ) = − 3 10 − 3 − 2 + 2 = 0 . Back to 0 0 0 .
Answer#
( f ∘ f ) ( x ) = x (f \circ f)(x) = x ( f ∘ f ) ( x ) = x , so f − 1 ( x ) = f ( x ) = 3 x + 2 5 x − 3 \displaystyle f^{-1}(x) = f(x) = \frac{3x + 2}{5x - 3} f − 1 ( x ) = f ( x ) = 5 x − 3 3 x + 2 .
Question 4: Finding inverses#
The problem#
Find the inverse of: (a) f ( x ) = 6 − 5 x f(x) = 6 - 5x f ( x ) = 6 − 5 x ; (b) f ( x ) = x − 1 3 f(x) = \sqrt[3]{x - 1} f ( x ) = 3 x − 1 ; (c) f ( x ) = x x + 2 \displaystyle f(x) = \frac{x}{x + 2} f ( x ) = x + 2 x on R − { − 2 } \mathbf{R} - \{-2\} R − { − 2 } .
Understanding the problem#
To find f − 1 f^{-1} f − 1 , write y = f ( x ) y = f(x) y = f ( x ) and solve for x x x in terms of y y y . The resulting formula is f − 1 ( y ) f^{-1}(y) f − 1 ( y ) .
The idea#
Undo the operations of f f f in reverse order.
Step-by-step solution#
Part (a)
Step 1. y = 6 − 5 x ⇒ 5 x = 6 − y ⇒ x = 6 − y 5 \displaystyle y = 6 - 5x \;\Rightarrow\; 5x = 6 - y \;\Rightarrow\; x = \frac{6 - y}{5} y = 6 − 5 x ⇒ 5 x = 6 − y ⇒ x = 5 6 − y .
f − 1 ( y ) = 6 − y 5 \displaystyle f^{-1}(y) = \frac{6 - y}{5} f − 1 ( y ) = 5 6 − y
Part (b)
Step 1. y = x − 1 3 y = \sqrt[3]{x - 1} y = 3 x − 1 . Cube both sides: y 3 = x − 1 y^3 = x - 1 y 3 = x − 1 .
Step 2. x = y 3 + 1 x = y^3 + 1 x = y 3 + 1 .
f − 1 ( y ) = y 3 + 1 f^{-1}(y) = y^3 + 1 f − 1 ( y ) = y 3 + 1
Part (c)
Step 1. y = x x + 2 \displaystyle y = \frac{x}{x + 2} y = x + 2 x . Multiply by x + 2 x + 2 x + 2 : y ( x + 2 ) = x y(x + 2) = x y ( x + 2 ) = x , that is x y + 2 y = x xy + 2y = x x y + 2 y = x .
Step 2. Collect the x x x terms: 2 y = x − x y = x ( 1 − y ) 2y = x - xy = x(1 - y) 2 y = x − x y = x ( 1 − y ) .
Step 3. Divide by 1 − y 1 - y 1 − y (so y ≠ 1 y \ne 1 y = 1 ).
f − 1 ( y ) = 2 y 1 − y , y ≠ 1 \displaystyle f^{-1}(y) = \frac{2y}{1 - y}, \qquad y \ne 1 f − 1 ( y ) = 1 − y 2 y , y = 1
The value y = 1 y = 1 y = 1 is never taken by f f f , because x x + 2 = 1 \displaystyle \frac{x}{x + 2} = 1 x + 2 x = 1 would need 0 = 2 0 = 2 0 = 2 .
Checking the answer#
(a) f ( 1 ) = 1 f(1) = 1 f ( 1 ) = 1 and 6 − 1 5 = 1 \displaystyle \frac{6 - 1}{5} = 1 5 6 − 1 = 1 . (b) f ( 9 ) = 2 f(9) = 2 f ( 9 ) = 2 and 2 3 + 1 = 9 2^3 + 1 = 9 2 3 + 1 = 9 . (c) f ( 2 ) = 1 2 \displaystyle f(2) = \frac{1}{2} f ( 2 ) = 2 1 and 2 ⋅ 1 2 1 − 1 2 = 2 \displaystyle \frac{2 \cdot \frac{1}{2}}{1 - \frac{1}{2}} = 2 1 − 2 1 2 ⋅ 2 1 = 2 .
Answer#
(a) 6 − y 5 \displaystyle \frac{6 - y}{5} 5 6 − y (b) y 3 + 1 y^3 + 1 y 3 + 1 (c) 2 y 1 − y \displaystyle \frac{2y}{1 - y} 1 − y 2 y , y ≠ 1 y \ne 1 y = 1
Question 5: Is this function invertible?#
The problem#
Is f : { 1 , 2 , 3 } → { a , b , c } f : \{1, 2, 3\} \to \{a, b, c\} f : { 1 , 2 , 3 } → { a , b , c } , f = { ( 1 , b ) , ( 2 , a ) , ( 3 , b ) } f = \{(1, b), (2, a), (3, b)\} f = {( 1 , b ) , ( 2 , a ) , ( 3 , b )} invertible? Why?
Understanding the problem#
A function is invertible exactly when it is a bijection: one-one (different inputs give different outputs) and onto (every element of the codomain is used).
The idea#
Check whether two inputs share an output.
Step-by-step solution#
Step 1. f ( 1 ) = b f(1) = b f ( 1 ) = b and f ( 3 ) = b f(3) = b f ( 3 ) = b . Two different inputs give the same output, so f f f is not one-one.
Step 2. (Also, c c c is never an output, so f f f is not onto either.)
Step 3. Since f f f is not a bijection, it is not invertible. An inverse would not know whether to send b b b back to 1 1 1 or to 3 3 3 .
Checking the answer#
Range = { a , b } ≠ { a , b , c } = \{a, b\} \ne \{a, b, c\} = { a , b } = { a , b , c } , which confirms it is not onto.
Answer#
No. f ( 1 ) = f ( 3 ) = b f(1) = f(3) = b f ( 1 ) = f ( 3 ) = b , so f f f is not one-one (and not onto), hence not a bijection.
Question 6: A self-inverse bijection on N \mathbf{N} N #
The problem#
Show that f : N → N f : \mathbf{N} \to \mathbf{N} f : N → N , with f ( n ) = n + 1 f(n) = n + 1 f ( n ) = n + 1 for odd n n n and f ( n ) = n − 1 f(n) = n - 1 f ( n ) = n − 1 for even n n n , is a bijection and is its own inverse.
Understanding the problem#
List a few values: f ( 1 ) = 2 f(1) = 2 f ( 1 ) = 2 , f ( 2 ) = 1 f(2) = 1 f ( 2 ) = 1 , f ( 3 ) = 4 f(3) = 4 f ( 3 ) = 4 , f ( 4 ) = 3 f(4) = 3 f ( 4 ) = 3 , … . The function swaps each odd number with the next even number.
The idea#
Show f ( f ( n ) ) = n f(f(n)) = n f ( f ( n )) = n for every n n n . Then f f f has an inverse (itself), and a function with an inverse is a bijection.
Step-by-step solution#
Step 1. Let n n n be odd. Then f ( n ) = n + 1 f(n) = n + 1 f ( n ) = n + 1 , which is even, so
f ( f ( n ) ) = ( n + 1 ) − 1 = n f(f(n)) = (n + 1) - 1 = n f ( f ( n )) = ( n + 1 ) − 1 = n
Step 2. Let n n n be even. Then f ( n ) = n − 1 f(n) = n - 1 f ( n ) = n − 1 , which is odd (and at least 1 1 1 , since n ≥ 2 n \ge 2 n ≥ 2 ), so
f ( f ( n ) ) = ( n − 1 ) + 1 = n f(f(n)) = (n - 1) + 1 = n f ( f ( n )) = ( n − 1 ) + 1 = n
Step 3. So f ∘ f = I N f \circ f = I_{\mathbf{N}} f ∘ f = I N . This says f f f is an inverse of itself: f − 1 = f f^{-1} = f f − 1 = f .
Step 4. A function is invertible exactly when it is a bijection, so f f f is a bijection.
Checking the answer#
Direct check: one-one, since if f ( m ) = f ( n ) f(m) = f(n) f ( m ) = f ( n ) then m = f ( f ( m ) ) = f ( f ( n ) ) = n m = f(f(m)) = f(f(n)) = n m = f ( f ( m )) = f ( f ( n )) = n . Onto, since any k k k equals f ( f ( k ) ) f(f(k)) f ( f ( k )) , the image of f ( k ) f(k) f ( k ) .
Answer#
f ( f ( n ) ) = n f(f(n)) = n f ( f ( n )) = n for all n n n , so f f f is a bijection with f − 1 = f f^{-1} = f f − 1 = f .
Question 7: An equivalence relation on Z \mathbf{Z} Z #
The problem#
On Z \mathbf{Z} Z , a R b ⟺ a + b a \, R \, b \iff a + b a R b ⟺ a + b is even. Is R R R an equivalence relation? What are its classes?
Understanding the problem#
An equivalence relation must be reflexive (a R a a \, R \, a a R a ), symmetric (a R b ⇒ b R a a \, R \, b \Rightarrow b \, R \, a a R b ⇒ b R a ) and transitive (a R b a \, R \, b a R b and b R c ⇒ a R c b \, R \, c \Rightarrow a \, R \, c b R c ⇒ a R c ). An equivalence class is the set of all elements related to a given one.
The idea#
Check the three properties one by one using facts about even numbers.
Step-by-step solution#
Step 1. Reflexive: a + a = 2 a a + a = 2a a + a = 2 a is even. So a R a a \, R \, a a R a for every a a a .
Step 2. Symmetric: if a + b a + b a + b is even, then b + a b + a b + a is the same number, so it is even. So b R a b \, R \, a b R a .
Step 3. Transitive: suppose a + b a + b a + b and b + c b + c b + c are both even. Then
a + c = ( a + b ) + ( b + c ) − 2 b a + c = (a + b) + (b + c) - 2b a + c = ( a + b ) + ( b + c ) − 2 b
is a sum and difference of even numbers, so it is even. Hence a R c a \, R \, c a R c .
Step 4. Classes: a + b a + b a + b is even exactly when a a a and b b b are both even or both odd. So there are two classes: all even integers, and all odd integers.
Checking the answer#
3 R 7 3 \, R \, 7 3 R 7 (10 10 10 is even) and 3 3 3 is not related to 4 4 4 (7 7 7 is odd). Consistent with the two classes.
Answer#
Yes, R R R is an equivalence relation. Its classes are the even integers { … , − 2 , 0 , 2 , … } \{\dots, -2, 0, 2, \dots\} { … , − 2 , 0 , 2 , … } and the odd integers { … , − 1 , 1 , 3 , … } \{\dots, -1, 1, 3, \dots\} { … , − 1 , 1 , 3 , … } .
Question 8: An equivalence relation on pairs#
The problem#
On A = N × N A = \mathbf{N} \times \mathbf{N} A = N × N , ( a , b ) R ( c , d ) ⟺ a + d = b + c (a, b) \, R \, (c, d) \iff a + d = b + c ( a , b ) R ( c , d ) ⟺ a + d = b + c . Show R R R is an equivalence relation.
Understanding the problem#
The elements are ordered pairs of natural numbers. We must prove reflexive, symmetric and transitive properties for all pairs.
The idea#
Each property reduces to a simple equation between natural numbers. For transitivity, add two equations and cancel.
Step-by-step solution#
Step 1. Reflexive: for any ( a , b ) (a, b) ( a , b ) , is ( a , b ) R ( a , b ) (a, b) \, R \, (a, b) ( a , b ) R ( a , b ) ? We need a + b = b + a a + b = b + a a + b = b + a , which is true.
Step 2. Symmetric: suppose ( a , b ) R ( c , d ) (a, b) \, R \, (c, d) ( a , b ) R ( c , d ) , so a + d = b + c a + d = b + c a + d = b + c . We need ( c , d ) R ( a , b ) (c, d) \, R \, (a, b) ( c , d ) R ( a , b ) , that is c + b = d + a c + b = d + a c + b = d + a . This is the same equation read from right to left, so it holds.
Step 3. Transitive: suppose ( a , b ) R ( c , d ) (a, b) \, R \, (c, d) ( a , b ) R ( c , d ) and ( c , d ) R ( e , f ) (c, d) \, R \, (e, f) ( c , d ) R ( e , f ) .
a + d = b + c ( 1 ) , c + f = d + e ( 2 ) a + d = b + c \quad (1), \qquad c + f = d + e \quad (2) a + d = b + c ( 1 ) , c + f = d + e ( 2 )
Add (1) and (2):
a + d + c + f = b + c + d + e a + d + c + f = b + c + d + e a + d + c + f = b + c + d + e
Cancel c + d c + d c + d from both sides:
a + f = b + e a + f = b + e a + f = b + e
This says ( a , b ) R ( e , f ) (a, b) \, R \, (e, f) ( a , b ) R ( e , f ) .
Checking the answer#
( 3 , 1 ) R ( 5 , 3 ) (3, 1) \, R \, (5, 3) ( 3 , 1 ) R ( 5 , 3 ) since 3 + 3 = 1 + 5 3 + 3 = 1 + 5 3 + 3 = 1 + 5 ; and ( 5 , 3 ) R ( 4 , 2 ) (5, 3) \, R \, (4, 2) ( 5 , 3 ) R ( 4 , 2 ) since 5 + 2 = 3 + 4 5 + 2 = 3 + 4 5 + 2 = 3 + 4 ; transitivity predicts ( 3 , 1 ) R ( 4 , 2 ) (3, 1) \, R \, (4, 2) ( 3 , 1 ) R ( 4 , 2 ) : 3 + 2 = 1 + 4 3 + 2 = 1 + 4 3 + 2 = 1 + 4 . True.
Answer#
R R R is reflexive, symmetric and transitive, so it is an equivalence relation.
Question 9: Testing three properties#
The problem#
Is R = { ( a , b ) : b = a + 1 } R = \{(a, b) : b = a + 1\} R = {( a , b ) : b = a + 1 } on { 1 , 2 , 3 , 4 } \{1, 2, 3, 4\} { 1 , 2 , 3 , 4 } reflexive, symmetric, transitive?
Understanding the problem#
First list R R R . Both entries must be in { 1 , 2 , 3 , 4 } \{1, 2, 3, 4\} { 1 , 2 , 3 , 4 } .
The idea#
To show a property fails, one counterexample is enough.
Step-by-step solution#
Step 1. List R R R .
R = { ( 1 , 2 ) , ( 2 , 3 ) , ( 3 , 4 ) } R = \{(1, 2), (2, 3), (3, 4)\} R = {( 1 , 2 ) , ( 2 , 3 ) , ( 3 , 4 )}
Step 2. Reflexive? We would need ( 1 , 1 ) ∈ R (1, 1) \in R ( 1 , 1 ) ∈ R , but 1 ≠ 1 + 1 1 \ne 1 + 1 1 = 1 + 1 . Not reflexive.
Step 3. Symmetric? ( 1 , 2 ) ∈ R (1, 2) \in R ( 1 , 2 ) ∈ R but ( 2 , 1 ) ∉ R (2, 1) \notin R ( 2 , 1 ) ∈ / R . Not symmetric.
Step 4. Transitive? ( 1 , 2 ) ∈ R (1, 2) \in R ( 1 , 2 ) ∈ R and ( 2 , 3 ) ∈ R (2, 3) \in R ( 2 , 3 ) ∈ R , but ( 1 , 3 ) ∉ R (1, 3) \notin R ( 1 , 3 ) ∈ / R . Not transitive.
Checking the answer#
In fact no pair ( a , a ) (a, a) ( a , a ) is in R R R and no reversed pair is in R R R , so the failures are not just one-off.
Answer#
None of the three: R R R is not reflexive, not symmetric and not transitive.
Question 10: Verifying an inverse#
The problem#
Let f ( x ) = 3 x + 2 f(x) = 3x + 2 f ( x ) = 3 x + 2 and g ( x ) = x − 2 3 \displaystyle g(x) = \frac{x - 2}{3} g ( x ) = 3 x − 2 . Verify g = f − 1 g = f^{-1} g = f − 1 by computing both composites.
Understanding the problem#
g g g is the inverse of f f f exactly when g ∘ f g \circ f g ∘ f and f ∘ g f \circ g f ∘ g are both the identity, that is, both give back x x x .
The idea#
Compute g ( f ( x ) ) g(f(x)) g ( f ( x )) and f ( g ( x ) ) f(g(x)) f ( g ( x )) .
Step-by-step solution#
Step 1. g ∘ f g \circ f g ∘ f :
g ( f ( x ) ) = g ( 3 x + 2 ) = ( 3 x + 2 ) − 2 3 = 3 x 3 = x \displaystyle g(f(x)) = g(3x + 2) = \frac{(3x + 2) - 2}{3} = \frac{3x}{3} = x g ( f ( x )) = g ( 3 x + 2 ) = 3 ( 3 x + 2 ) − 2 = 3 3 x = x
Step 2. f ∘ g f \circ g f ∘ g :
f ( g ( x ) ) = 3 ⋅ x − 2 3 + 2 = ( x − 2 ) + 2 = x \displaystyle f(g(x)) = 3\cdot\frac{x - 2}{3} + 2 = (x - 2) + 2 = x f ( g ( x )) = 3 ⋅ 3 x − 2 + 2 = ( x − 2 ) + 2 = x
Step 3. Both composites are the identity, so g = f − 1 g = f^{-1} g = f − 1 .
Checking the answer#
f ( 1 ) = 5 f(1) = 5 f ( 1 ) = 5 and g ( 5 ) = 3 3 = 1 \displaystyle g(5) = \frac{3}{3} = 1 g ( 5 ) = 3 3 = 1 .
Answer#
g ( f ( x ) ) = x g(f(x)) = x g ( f ( x )) = x and f ( g ( x ) ) = x f(g(x)) = x f ( g ( x )) = x , so g = f − 1 g = f^{-1} g = f − 1 .