# Finding current from current density of wire

maherelharake

## Homework Statement

A cylindrical wire of radius 3mm has current density, J=3s |φ-$$\pi$$| z_hat. Find the total current in the wire.

## The Attempt at a Solution

I believe all I have to do is integrate over the area, but for some reason I can't get it to work. Is the differential area going to be da=s ds dφ? In that case s goes from 0 to 3mm and φ goes from 0 to 2Pi? The 'z' direction is throwing me off a bit. Thanks.

Staff Emeritus
Homework Helper
Yes, that's right. Post your work if you still can't get it to work out so we can see where you're going wrong.

maherelharake
I just tried to work it out on a napkin, because I am not near a scanner at the moment. I ended up with a net result of 0 though. If you don't think this is correct, I can try to rewrite it and take a picture with my phone and upload it. Thanks again.

Mentor
I just tried to work it out on a napkin, because I am not near a scanner at the moment. I ended up with a net result of 0 though. If you don't think this is correct, I can try to rewrite it and take a picture with my phone and upload it. Thanks again.

Yes, please upload it. Or you could use the Latex editor in the Advanced Reply window to write out your equations. Click on the $$\Sigma$$ symbol to the right in the toolbar to see your Latex options.

maherelharake
Alright here you go. If you can't read it, let me know. Thanks.
http://i77.photobucket.com/albums/j72/maherelharake/photo-31.jpg

Staff Emeritus
Homework Helper
You're not dealing with the absolute value correctly. Break the integral over the angle into two ranges, one from 0 to π and the other from π to 2π. For the first integral, |φ-π|=-(φ-π), and for the other, |φ-π|=φ-π.

Staff Emeritus
Homework Helper
Your integrals look fine, but you made a mistake somewhere evaluating them.

maherelharake
Hmm I can't find it. I checked it a few times after I posted it. Did you work it out and get a different result?

Staff Emeritus
Homework Helper
I entered it into Mathematica and got a different result. It looks like you messed up the angular integrations in several spot. Every integral should be proportional to π2, but you have π, π2, and π3.

You can simplify the algebra a bit by separating the s integral and φ integral:

$$I=\int_0^{R} 3s^2ds \int_0^{2\pi} |\varphi-\pi|\,d\varphi$$

and using the substitution u=φ-π to do the angular integrals.

maherelharake
I seem to have gotten R3 Pi2where R=3 mm. Am I close? And of course, the answer is in Amps. Thanks.

Staff Emeritus