I have the following equation:
$$V = \int \pi \ f^2(x) \mathrm dx \text{ where } f(x) = 0.4x$$
My answer was:
Integrate $\pi$: $\int \pi =\left(\frac12\right)\pi^2$
Integrate $ f^2(x) $: $\int f^2(x)=\left(\frac13\right)(0.4x)^3$
Add together: $V = $$\int \pi \ f^2(x) dx = \left(\frac12\right)\pi^2 \cdot \left(\frac13\right)(0.4x)^3$
This was not corrent, the correct answer was: $$V = \int \pi \ f^2(x)\mathrm dx = \int \pi \cdot (0.4x)^2 \mathrm dx = \left(\frac{4 \pi}{25}\right)\int x^2 \mathrm dx = \left(\frac{4 \pi}{25}\right) \left(\frac13\right)x^3$$
So why does $\left(\frac{4 \pi}{25}\right)$ come in front of the integral sign in the third step of the solution?
Because, for any constant $k$, $\int kf(x)\,\mathrm dx=k\int f(x)\,\mathrm dx$.