Hello fitzfool,
Welcome to Physics Forums!
fitzfool said:
Homework Statement
Calculate the charge and electric field at the origin of non-uniform line of charge on the x-axis from -10cm to 10 cm on the x-axis. Where linear charge density is given by 2x^4
Homework Equations
dq=lambda dx
de=(k dq)/r^2
E=integral of (Kdq)/r^2 = k integral of (lambda dx/r^2)The Attempt at a Solution
Charge is easy you just integrate the linear charge density equation from -10 to 10.
For the electric field at the origin I believe it is zero but am not sure how to calculate it.
Every example problem puts the point P at some distance away from the line of charge not at the center or even on the line of charge.
Yes, it doesn't make sense to put the "test charge" on top of an actual charge, since the electric field blows up as
r → 0.
But it's okay for this problem, since there technically is no charge at the origin. The charge density,
λ = 2
x4 is 0 when
x = 0, so it's okay to put the "test charge" at the origin in this case.
The only thing I can think of is that I need to treat the single line of charge like two separate lines(by a extremely small negligible amount) starting at the origin. Then integrate from -10 to 0 and 0 to 10 adding them together to get the total Electric Field.
However, I am not sure if I am even allowed to do it this way.
Treat the line as an infinite number of infinitesimal point charges. The charge
dQ of each infinitesimal point charge is
λdx. Integrate Coulombs law for point charges, using that.
[Edit: you even have the proper equation in your list of relevant equations. Just change
r to
x.]
[Another edit: And yes, you should find that it goes to zero due to symmetry. You'll need to treat the negative x-axis differently than the positive x-axis, because the unit vector \hat {a_r} is in different directions for each. So yes, treating it as two different lines is the right way to go here.

]
[Still, yet another edit: This problem is a good example of why vector calculus is more tricky than plain old run-of-the-mill calculus. Remember, electric field is a vector, that has magnitude
and direction. Coulomb's law states, in differential form,
\vec {dE} = k \frac{dQ}{r^2} \hat{a_r}
And it's those pesky unit vectors, \hat{a_r} that cannot be ignored, and can make things tricky. In this problem, \hat{a_r} is different for points on the negative x-asis than it is for points on the positive x-axis. So you'll need to take that into account. This will not be the last time that the pesky unit vectors make things tricky. You can look forward to more of this in future problems.

]