The eletric field produced due to the charged rod is .
Assume .
Apply derivative on each side.
Substitute the corresponding values in the integral.
The expression for the electric field is .
.