Set f(x) = g(x) and solve for x. This will define the limits of integration.
The limits of integration are therefore a = −1 and b = 2.