Well, I did that because zero, x equals zero is where we switch, where f of x switches from being x plus one to cosine pi x. So if you look at the interval from negative one to zero, f of x is x plus one. So f of x here is x plus one. And then when you go from zero to one, f of x is cosine pi x. So cosine of pi x. And so now we just have to evaluate each of these separately and add them together. So let's take the definite integral from negative one to zero of x plus one dx.