When does “swap x and y” for inverses actually work?

I know to swap x and y and solve, but I get lost on when that’s legitimate-like with f(x)=x^2 I end up with ±√x and don’t know which branch to keep or how to explain it.

3 Responses

  1. Swapping x and y gives a true inverse only if the function is one-to-one on the domain you’ve chosen (horizontal-line test); for f(x)=x^2 you must first restrict the domain-x≥0 gives the inverse √x, while x≤0 gives the inverse −√x-so the ± just reflects those two possible choices. Which restriction (x≥0 or x≤0) fits the inputs you actually want to allow?

  2. Great question! The “swap x and y” move really finds the inverse relation; it becomes a true inverse function only when the original f is one-to-one on its domain (passes the horizontal line test). If f isn’t one-to-one, you must first restrict its domain to a region where it’s strictly increasing or strictly decreasing; then the inverse is single-valued. For f(x) = x^2 on all real numbers, it’s not one-to-one, so swapping y = x^2 to x = ±√y gives two branches. To get an inverse function, pick a monotone branch of f. Example: restrict f to x ≥ 0; then y = x^2 with x ≥ 0 implies x = √y (the positive root), so the inverse function is f^{-1}(x) = √x with domain [0, ∞) and range [0, ∞). Alternatively, if you restrict to x ≤ 0, the inverse is f^{-1}(x) = −√x. A quick “always works” case: if f(x) = x^3 + 1 (which is one-to-one on all reals), swapping y = x^3 + 1 to x = ³√(y − 1) gives f^{-1}(x) = ³√(x − 1) immediately. The rule of thumb: ensure injectivity first, then swap-and-solve.

Leave a Reply

Your email address will not be published. Required fields are marked *

Join Our Community

Ready to make maths more enjoyable, accessible, and fun? Join a friendly community where you can explore puzzles, ask questions, track your progress, and learn at your own pace.

By becoming a member, you unlock:

  • Access to all community puzzles
  • The Forum for asking and answering questions
  • Your personal dashboard with points & achievements
  • A supportive space built for every level of learner
  • New features and updates as the Hub grows