Solution:
Key idea: The composite (g∘f)(x) means g(f(x)), and (f∘g)(x) means f(g(x)). To simplify a fraction inside a fraction, multiply its numerator and denominator by the inner denominator.
Step 1 — Check that both composites are defined.
The composite g(f(x)) needs f(x)=53. Suppose instead that f(x) equals 53, and cross-multiply.
5(3x+4)=3(5x−7)
15x+20=15x−21
20=−21
This is impossible. In the same way, f(g(x)) needs g(x)=57. Supposing that g(x) equals 57 and cross-multiplying gives the lines below.
5(7x+4)=7(5x−3)
35x+20=35x−21
20=−21
This is also impossible, so both composites exist for every allowed x.
Step 2 — Find (g∘f)(x).
We replace x in g by f(x), then multiply the top and bottom by (5x−7).
(g∘f)(x)=5(5x−73x+4)−37(5x−73x+4)+4
(g∘f)(x)=5(3x+4)−3(5x−7)7(3x+4)+4(5x−7)
(g∘f)(x)=15x+20−15x+2121x+28+20x−28
(g∘f)(x)=4141x
(g∘f)(x)=x
Step 3 — Find (f∘g)(x).
Now we replace x in f by g(x) and multiply the top and bottom by (5x−3).
(f∘g)(x)=5(5x−37x+4)−73(5x−37x+4)+4
(f∘g)(x)=5(7x+4)−7(5x−3)3(7x+4)+4(5x−3)
(f∘g)(x)=35x+20−35x+2121x+12+20x−12
(f∘g)(x)=4141x
(f∘g)(x)=x
Step 4 — Compare the two results.
Both composites simplify to the same expression, x. (So f and g are inverses of each other.)
Therefore, (g∘f)(x) and (f∘g)(x) both equal x, so (g∘f)(x)=(f∘g)(x).