The condition A⋅B=∣A×B∣ gives ABcosθ=ABsinθ, where θ is the angle between the two vectors. Dividing both sides by ABcosθ yields tanθ=1, so θ=45°.
The magnitude of the difference of two vectors is given by ∣A−B∣2=A2+B2−2A⋅B=A2+B2−2ABcosθ.
Substituting θ=45°, so cos45°=21, we get ∣A−B∣2=A2+B2−2AB⋅21=A2+B2−2AB.
Therefore, ∣A−B∣=A2+B2−2AB.