Find the expression for electric field intensity in an axial position due to electric dipole

Consider an electric dipole whose length is 2a and centre at O. From the mid-point O, consider a point at the distance r, where the electric field intensity is to be determined.