A thin glass rod is bent into a semicircular shape of radius R. A charge +Q is uniformly distributed along the upper half and a charge −Q is distributed uniformly along the lower half as shown. The electric field at the centre P is:
Consider two element of length Rdθ for negative and positive charge. Due to symmetry sine component of electric field cancel each other and only cosine component will contribute the electric field at P.
The charge on element , dq=λRdθ where λ= line charge density.
The electric field due to element at P is dEP=2dEcosθ=2(dq4πϵ0)cosθ=2(λRdθ4πϵ0)cosθ
Thus, EP=2λ4πϵ0R∫π/20cosθdθ=2(2Q/πR)4πϵ0R=Qπ2ϵ0R2 where Q=λπ2R