(a) It is clear from symmetry considerations that vector E must be directed as shown in the figure. This shows the way of solving this problem: we must find the component dEr of the field created by the element dl of the rod, having the charge dq and then integrate the result over all the elements of the rod. In this case
where λ = q/2a is the linear charge density. Let us reduce this equation of the form convenient for integration.
(b) Let, us consider the element of length dl at a distance l from the centre of the rod, as shown in the figure.
The field at P, due to this element.
if the element **** on the side, shown in the diagram, and