To find the components of the electric field at P , you need to divide the semicircle into infinitesimal segments ds , each of which is a short circular arc of radius a and angle dθ . What is the length of such a segment?

Answer:
The length of an arc segment:
S = a Θ where a = radius and Θ the angle subtended by the arc
Thus dS = a dΘ