Electrostatic field created by an electrified segment - Corrected electromagnetism exercises

Consider a density of electrified segment AB linear homogeneous length λ 2 and a middle O.

1. Determine the electrostatic field at a point M of the axis of symmetry Ox. We set x = OM.
2. deduct on this point M the field created by an "infinite" thread.