# Math Help - Piecewise functions and Integrals

1. ## Piecewise functions and Integrals

I am not sure what my limits of integration should be? Can anyone help me set this problems up.
It gives f(x) as a piecewise function where f(x) = x when x is less than or equal to 1 and (-x+2) when x is greater than one. I am suppose to put the answer in the form of a piecewise function only of F(x).

I can integrate x and (-x+2) however Im not sure what my limits of integration should be to solve this problem.

Here is the the page with the exact problem just in case I didn't make any since.
http://webwork.math.uwyo.edu/UWCalcI...cIIapplet1.pdf

Thanks to anyone who can help
AC

2. See attachment