Strictly speaking, this function does not have an inverse, since it's not injective (i.e. it's not "one to one", which is to say that two domain elements can map to the same element in the range). However, if we restrict the domain to $x\geq -2$, we can invert the function. To do this, just swap $x$ and $y$ and solve for $y$: $$0 = y^2+4y-x$$ using the quadratic formula, $$y = \frac{-4 +\sqrt{16+4x}}{2} = -2+\sqrt{4+x}$$