Dear everyone.

I am really sorry.

Could you help me out?

1. Consider the function f : R -> R defined by

f(x) = x^2 + 2 if x > 0 and x + 1 if x <= 0.

Find a left inverse of f.

2. Consider the function f : R -> R defined by

f(x) = x^2 - 2 if x > 0, x - 1 if x <= 0.

Find a right inverse of f.

I know if g(f(x)) = x, it has a left inverse and f(g(x)) = x it has a right inverse.

But, as for solving the questions, I can't adapt to it..

Have a great day!