- #1

- 241

- 0

## Homework Statement

Consider a generic point (-x,0,0). Calculate the distancrs of this point from all charges:

q at (-a,0,a)

q at (a,0,,a)

-q at (-a,0,-a)

-q at (a,0,-a)

and calculate the total electric field generated by each of them in terms of these distances, and the magnitude of the electric field produced by each charge. Find the z component of the total electric field

## Homework Equations

E=(1/4pi*epsilon0)(q/r^2)*r-hat

## The Attempt at a Solution

distance of q from charge -a,0,a:

=sqrt(2a^2 +x^2 -2ax)

distance from charge (-a,0,-a)

=sqrt(-2ax+x^2)

distance from charge (a,0,a)

=sqrt(2a^2 +x^2 +2ax)

distance from charge (-a,0,-a)

=sqrt(2a^2 +x^2 -2ax)

but I don't know how to use the equation to calculate the electric field because the r-hat term in the equation confuses me. please help