# Magnetic Field Integral

1. Feb 11, 2009

### latentcorpse

I need to do the following integral:

$B_z=\frac{\mu_0 I N a^2}{2} \int_{0}^{L} (a^2+(z-z')^2)^{-\frac{3}{2}} dz'$

so far i have set $x=z-z' \Rightarrow dx=-dz'$ and the limits also change to give

$B_z = - \frac{\mu_0 I N a^2}{2} \int_{z}^{z-L} \frac{dx}{(a^2+x^2)^{\frac{3}{2}}}=\frac{\mu_0 I N a^2}{2a^3} \int_{z-L}^{z} \frac{dx}{(1+(\frac{x}{a})^2)^{\frac{3}{2}}}$

im having trouble with the power of 3/2 as otherwise its just a standard integral to arctan. any advice?

2. Feb 11, 2009

### Hootenanny

Staff Emeritus
You can evaluate this integral using exactly the same substitution. Try letting

$$\frac{x}{a} = \tan\theta$$

and see where it takes you.

3. Feb 11, 2009

### latentcorpse

cheers. this gives

$\frac{\mu_0 I N}{2a} \int_{\arctan{(\frac{z-L}{a})}}^{\arctan{(\frac{z}{a})}} \frac{1}{\sec{\theta}} d \theta =\frac{\mu_0 I N}{2a} \int_{\arctan{(\frac{z-L}{a})}}^{\arctan{(\frac{z}{a})}} \cos{\theta} d \theta =\frac{\mu_0 I N}{2a} [\sin{\theta}]_{\theta=\arctan{(\frac{z-L}{a})}}^{\arctan{(\frac{z}{a})}}$

how do i evaluate sin theta at these points though?

4. Feb 11, 2009

### nicksauce

Draw a right triangle, such than one of the angles, theta, has arctan z/a. Then find the sin of that angle.

5. Feb 12, 2009

### latentcorpse

i can draw it if tan theta = z/a but what would it look like if arctan theta = z/a?

6. Feb 12, 2009

### xboy

You have something like sin(arctan z/a). The term inside the bracket is an angle (let's call it alpha). As it is an angle, you can express it as arcsin something. So you need to know sine alpha, right? And you already know tan alpha.

7. Feb 12, 2009

### latentcorpse

so now i get:

$B_z=\frac{\mu_0 I N}{2a} [\frac{z}{\sqrt{z^2+a^2}}-\frac{z-L}{\sqrt{(z-L)^2+a^2}}]$

is there anyway to further simplify this or am i done?

8. Feb 12, 2009

### gabbagabbahey

You seem to have an extra factor of $$\frac{1}{a}$$....It probably arose when you did your substitution: $$dx=a\sec^2\theta d \theta$$

9. Feb 12, 2009

### latentcorpse

cheers. but the rest of it is correct?

10. Feb 13, 2009