I need help finding the inverse for this function
$\displaystyle g:[-1,\infty) \rightarrow, g(x) = x^2+2x$
What I've done so far.
Let $\displaystyle g(x) = y$
$\displaystyle y=x^2+2x$
Swap x and y, and solve for y
$\displaystyle x=y^2+2y$
$\displaystyle x=y(y+2)$
I'm stuck here, can anyone please help?
Nevermind, I got it, had to complete the square!