Given

ABC, where points D, E, F are the midpoints of the sides BC, CA, and AB, respectively, and given an arbitrary point P, show that

.
(solution in the book)
Letting

, and

be the position vectors of the vertices A, B, and C, respectively (originating from point P)
Why? How do they get that?