Euclidean distance and dot product I've been reading that the Euclidean distance between two points, and the dot product of the two points, are related. Specifically, the Euclidean distance is equal to the square root of the dot product. But this doesn't work for me in practice.
For example, let's say the points are $(3, 5)$ and $(6, 9)$. The Euclidean distance is $\sqrt{(3 - 6)^2 + (5 - 9)^2}$, which is equal to $\sqrt{9 + 16}$, or $5$. However, the dot product is $(3 * 6 + 5 * 9)$, which is $63$, and the square root of this is not $5$.
What am I getting wrong?

distance=$D=\sqrt{((|A|^2-(A\cdot B)^2)+(|B|-(A\cdot B))^2)}$
I found this geometrically like this:

sorry for the lousy formatting, this is my first time posting here. I needed to find D in terms of norms and dot products for my linear algebra homework, as I assume most people asking this question are, and the other answers weren't helpful to me. I don't know where the original asker got that $D=\sqrt{A\cdot B}$, but hopefully the equation I found for my homework will be useful to others trying to find how D is related to the dot product.
