Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How would I go about finding the inverse of a piecewise function? In this case the function is

$$ f(x) = \left\{ \begin{array}{lr} x, & \text{if } 0\leq x \leq 1,\\ x-1, & \text{if } 2 < x \leq 3. \end{array} \right. $$

share|cite|improve this question

You have $y=x$ when $0 \le x \le 1$ and $y=x-1$ when $2 < x \le 3,$ which is to say when $1<y\le 2$ since $y=x-1$. And the inverse function is obtained by switching $x$ and $y$. So when $0 \le y \le 1$ the inverse value is $y$, while when $1<y\le 2$ the inverse value is $y+1$.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.