Proof for Dot Product

Pasted image 20250525172147.png|centre|300

Let AB, be a vector from A to B. Based on the cos rule. Cos Rule

AB→=OB→−OA→|AB|2=|OA|2+|OB|2−2|OA||OB|cos⁡θ

Let OA=A and OB=B.

|A||B|cos⁡θ=12(|A|2+|B|2−|B−A|2)=12(∑n=1(an2+bn2)−∑n=1(bn−an)2)=12(∑n=1(an2+bn2)−∑n=1(bn2−2anbn+an2))=∑n=1anbn

Thus

A⋅B=∑n=1anbn