So the equation of the curve is;

Well, when finding the area under a curve all you have to do is find the area under the top curve and then subtract the area from the bottom curve;

so, from -1 to 3 we see that the top curve is the x-axis and the bottom curve is f(x), then from 3 to 4 the top curve if f(x) and the bottom curve is y=0