# Finding magnitude of x-component Electric Field due to a Line Charge

1. Feb 16, 2013

### Arrhenius7991

1. The problem statement, all variables and given/known data

A rod lies on the x-axis with one end at the origin and another at x=2. The linear charge density is given by λ(x)=C(x^(3) + 3x^(2)). Find the x-component of the electric field Ex at the origin in terms of q.

2. Relevant equations
Ex = ƩdEx
||dE||= (k|dq|/r^(2)) (z/r)
dq = λ dx

3. The attempt at a solution

I took z = 0 since there is no z dimension. r to be 2 since the rod is 2m long. So Ex = (1/4)kq. But the answer solution says (-2/3)kq.

2. Feb 16, 2013

### tms

Re: Finding magnitude of x-component Electric Field due to a Line Char

Since you only want the x component, this is just a simple one-dimensional integration from one end of the rod to another.

3. Feb 16, 2013

### Arrhenius7991

Re: Finding magnitude of x-component Electric Field due to a Line Char

I'm not seeing this integral then.

4. Feb 16, 2013

### tms

Re: Finding magnitude of x-component Electric Field due to a Line Char

You want to add up the contribution to the field from each infinitesimal charge element on the rod.