The given situation is shown below.
On straight wire
λ= charge per unit length
=LQ small charge on length element
dl is
dq=λ×dl .....(i)
Electric field at centre due to a point charge
=K×r2dq When each electric line is broken into 2 components, horizontal component of electric field balance each other, only vertical components remain.
So, net electric field along vertical
dEvertical=2dEcosθ=2r2Kdqcosθ=r22Kcosθ×λdl( But
dθ=rdl⇒dl=rdθ)
Integrating the electric field,
E=0∫2πr2Kλcosθdθbut length of semi-circular path is
L=πr⇒r=πL∴E=L×πL2KQ=L22KπQ∴E=4πε02×L2πQ=2ε0L2Q.