I'm trying to solve question B2 on the 2012 USAPHO semifinal exam (last page). The solutions are here on the last three pages.
I don't understand the following line:
The flux through the loop will then be $\Phi_B = \int \vec B \cdot dA = \frac{1}{2} \mu_0 q_m\int sin\theta d\theta $
If I ignore this line and the next one (which follows from this one), I understand everything until I arrive at this:
$dp=$ bla bla bla $(sin\theta)^4d\theta$. (Bottom of the second last page)
Then they integrate.
How do they even derive that first formula, where does the theta come from? I do understand that its just like electric fields and I know how to find the flux if a charge is on the axis of a loop. Theta is a constant for points on the axis of the loop, but is the monopole not on the loop? Furthermore why is it sine and not cosine, the sign component is flat on the loop and should thus contribute no flux, right? The cosine components contribute to flux. Why do they treat $\theta$ like a variable?