The schematic diagram for the problem can be drawn as follows:

Consider the right direction to be positive. Then the field due to \( + Q\) will be positive, and the field due to \( - Q\) will be negative.
The electric field at point P due to charge \( - Q\) is calculated as follows:
\({E_1} = - \frac{{kQ}}{{{{\left( {x - a} \right)}^2}}}\)
The electric field at point P due to charge \( + Q\) is calculated as follows:
\({E_2} = \frac{{kQ}}{{{{\left( {x + a} \right)}^2}}}\)
The magnitude of the net electric field at point P can be calculated as follows:
\(\begin{aligned}{c}E = {E_1} + {E_2}\\E = - \frac{{kQ}}{{{{\left( {x - a} \right)}^2}}} + \frac{{kQ}}{{{{\left( {x + a} \right)}^2}}}\\E = kQ\left( {\frac{1}{{{{\left( {x + a} \right)}^2}}} - \frac{1}{{{{\left( {x - a} \right)}^2}}}} \right)\\E = kQ\left( {\frac{{\left( {{x^2} + {a^2} - 2ax} \right) - \left( {{x^2} + {a^2} + 2ax} \right)}}{{{{\left( {{x^2} - {a^2}} \right)}^2}}}} \right)\\E = \frac{{ - 4kQxa}}{{{{\left( {{x^2} - {a^2}} \right)}^2}}}\end{aligned}\)
Here, the negative sign shows the net field directed toward the left.
Thus, the magnitude of the net electric field at point P is \(\frac{{ - 4kQxa}}{{{{\left( {{x^2} - {a^2}} \right)}^2}}}\), and it is directed toward the left.