q1 visualise three dimensionally
u will get
|
|
|
|
z |
|
|
|
|
|_______________________
a2
hypotenuse length is √(a2)2+z2
cosθ=a2 √(a2)2+z2
so find the electric field due to a wire of length a from a distance
√(a2)2+z2 from it cente and multiply it by cosθ and multiply it by 4