Let $P_1,P_2,P_3$ be $3$ different points in $\mathbb{R}$, then $P_1,P_2,P_3$ form a triangle.
What is the relation between the (one of the) angles of this triangle and $\langle P_2-P_1,P_3-P_1 \rangle$ ?
I am having trouble figuring out which angle of the triangle it is - and even why it is an angle in the triangle...
Note: $\langle ,\rangle$ denotes the standard inner product of $\mathbb{R}^2$.
From the definition of the inner product for vectors $\vec{a},\vec{b}$ we got:
$$ \vec{a}\cdot\vec{b}=\|\vec{a}\| \|\vec{b}\|\cos(\widehat{\vec{a},\vec{b}}) $$
Applying this rule in your case:
$$ \langle P_2-P_1,P_3-P_1 \rangle =\|P_2-P_1\|\cdot \| P_3-P_1\|\cdot \cos(\widehat{P_2-P_1,P_3-P_1}), $$
so by reforming:
$$ \cos(\widehat{P_2-P_1,P_3-P_1})=\frac{\langle P_2-P_1,P_3-P_1\rangle}{\|P_2-P_1\|\cdot \| P_3-P_1\|} $$
The angle inside the $\cos$ is actually the angle between the two vectors that you're computing their inner product, in other words the angle between the two sides of your triangle formed by $P_2,P_1$ and $P_3,P_1$ respectively. So because the only mutual point is $P_1$, the angle is actually the angle corresponding to this point.