Integral of following fractional part

139 Views Asked by At

How would I evaluate this integral, where $n\in R$ and $\{\,.\}$ is the fractional part?

$$\int_{-4}^4\{nx\}\,dx$$

I want to use it in one of problems of the ellipse. Thanks. I haven't shown any effort as I got no good step towards the solution.