then the potentials of A and D are given as