Moin,
To calculate the overall electric field along the x axis (starting from x1 to x2) we take the integral with limit x1 to x2.
I suggest you to watch the solution of this question again.
Kindly let us know if you have any serious doubt or confusion.
© 2024 GoodEd Technologies Pvt. Ltd.