For vectors A=Axi^+Ayj^+Azk^ and B=Bxi^+Byj^+Bzk^ having magnitudes A and B respectively, which one of the following expressions gives cosϕ, where ϕ is the angle between the two vectors?
(a) AB∣A×B∣
(b) A2+B2AxBx+AyBy+AzBz
(c) ABAxBx+AyBy+AzBz
(d) AB(Ax+Ay+Az)(Bx+By+Bz)