I have to find the direction of electric field due to this rod at point P
$dE_x =[Kdq/(d/cos\theta)^2]cos\theta$ and $dq = \lambda (d/cos\theta) d\theta$ Writing similar equations for $E_y$, then integrating these two from 0 to $pi/3$ followed by $tan^{-1}E_y/E_x$ gives me the wrong answer
I know I can get the correct answer by integrating along the length of the rod but why is using a polar system giving me the wrong answer? (I understand in this case I have chosen my intervals incorrectly since they don't even sum up to $\sqrt 3 d$).
My main question is:
Is it necessary that the intervals chosen for a Riemann sum have to be of equal size? What are the conditions/rules while choosing intervals?