Find the inverse of a quadratic function with restricted domain (#352)

Find the inverse of a quadratic function with restricted domain (#352)

Swap xx and yy, solve for yy, and choose the appropriate branch based on domain.