Given, AB = BC = a and Charges at A, B and C are +q, +2q and +q respectively. Found this problem in a textbook. I did it this way :
Charges at A and C will have no effect at this point since electric field due to them at D are equal and acts along opposite directions.
Distance BD will be $$\frac{a}{\sqrt2}$$
Now, electric field due to B on D is given by $$\frac{k.2q}{\left(\frac{a}{\sqrt2}\right)^2}$$ , where k is $$\frac{1}{4\pi\epsilon_0}$$
This gives me the answer : $$\frac{k.4q}{a^2}$$
But the answer given on the textbook is : $$\frac{k.q.2\sqrt2}{a^2}$$
Where am I doing wrong ?