loba333 said:
EDIT2: Ah yes this is exactly what I had in mind, however I've never come across one of these multi part integrals before and I'm not quite sure how to handle them, I'll post my final result in a minute and can you compare it to whatever you get?
Aha! So you haven't done double or triple integrals yet. It's a case of the physics teacher asking you to apply math you haven't been taught yet (as happens far too often). This will be covered in a course on multi-variable calculus, but here is an overview:
You can think of a function that is a function of three independent variables, rather than just one: f(x,y,z). So, in other words, the value of the function is affected by changing x, or y, or z. So, the domain over which the function varies is a volume in 3D space, rather than just a set of real numbers (a 1D space). To integrate this function over a certain volume, you can set up a triple integral:
\int\int\int_V f(x,y,z) dV = \int_a^b \int_c^d \int_e^f f(x,y,z)\,dxdydz
(Note: I was lazy about including all three integral signs to denote the volume integral some of my posts above, and it is a common shorthand to use only one until you introduce specific coordinates). The limits of integration here define the boundaries of the volume over which you are integrating (a box in this case).
The way to think about the right hand side above is as a set of NESTED 1D integrals:
\int_a^b \left( \int_c^d \left( \int_e^f f(x,y,z)\,dx\right)dy\right)dz
So, FIRST you integrate the function over x, keeping y and z constant. Then you take the result of that, and integrate it over y. Then you take the result of that, and integrate it over z.
In your case, since the function you are integrating depends ONLY on x, the nested integrals become three separate 1D integrals that are just multiplied by each other (all of which are trivial)