The electric field generated by a point charge is given by:
where
is the Coulomb's constant
Q is the charge
r is the distance from the charge
We want to know the net electric field at the midpoint between the two charges, so at a distance of r=5.0 cm=0.05 m from each of them.
Let's calculate first the electric field generated by the positive charge at that point:
where the positive sign means its direction is away from the charge.
while the electric field generated by the negative charge is:
where the negative sign means its direction is toward the charge.
If we assume that the positive charge is on the left and the negative charge is on the right, we see that E1 is directed to the right, and E2 is directed to the right as well. This means that the net electric field at the midpoint between the two charges is just the sum of the two fields: