Solution:
Key idea: Every function is onto its own range. So once we prove f is one-one, f:[−1,1]→Range f is a bijection and has an inverse, which we find by solving y=f(x) for x. The domain [−1,1] never contains −2, so f is defined everywhere on it.
Step 1 — Assume two inputs have the same image. Take x1,x2∈[−1,1] with f(x1)=f(x2), and cross-multiply (both denominators are positive).
x1+2x1=x2+2x2
x1(x2+2)=x2(x1+2)
Step 2 — Expand and cancel. The term x1x2 appears on both sides and cancels.
x1x2+2x1=x1x2+2x2
2x1=2x2
x1=x2
So f is one-one.
Step 3 — Find the range. We can write f(x)=1−x+22; as x increases, x+22 decreases, so f increases. Its smallest and largest values are at the ends of [−1,1].
f(−1)=1−1
f(−1)=−1
f(1)=31
So Range f=[−1,31], and f:[−1,1]→[−1,31] is one-one and onto, hence invertible.
Step 4 — Solve y=f(x) for x. Take y in the range. We multiply by x+2 and collect the x terms.
y=x+2x
xy+2y=x
x−xy=2y
x(1−y)=2y
x=1−y2y
The division is allowed because y≤31, so y=1.
Step 5 — Write the inverse with its domain. So f−1(y)=1−y2y; we rename y as x. The inverse is defined on the range of f.
f−1:[−1,31]→[−1,1]
Therefore, f is one-one, and f−1(x)=1−x2x for x∈[−1,31].