
What a jumbled mess!...please use \hat{} to represent unit vectors and \vec{} for normal vectors; it will make things less confusing...and be careful with your brackets! ((E) \vec x means E times the vector
x; while E(x)\hat{i} means E as a function of x, directed along the x-axis--which is what I'm sure you meant to write)
I'm sorry if this sounds rude, but I think you should consider getting a tutor. I think some face to face assistance could really benefit you.
At this point, you seem to have made at least 3 assumptions without justification; (1) the first is that the dipole consists of two point charges \pm Q separated by a distance dx, (2) the second is that the dipole points in the x-direction, (3) and the third is that the negative charge is located at \vec{r}=x\hat{i}
From your original problem statement, I see absolutely no reason to make these assumptions:
Is this how the original problem is worded on your assignment sheet/textbook?
Again I ask what level course this is for, and what the course textbook is? (If I have a copy of the same text, I can point to any helpful sections)