I was watching a Khan Academy video on the Cauchy-Schwarz Inequality, and I just can't seem to understand the proof, and the comments on the video don't seem to help. The video is here.
First, he creates an artificial function: $$ p(t)=||t\vec{y}-\vec{x}||^2\geq0 $$
What is the motivation behind this function? What does it mean?
Next, after substituting in the dot product of $t\vec{y}-\vec{x}$ with itself, he obtains: $$ p(t)=(\vec{y}\cdot\vec{y})t^2-2(\vec{x}\cdot\vec{y})t+\vec{x}\cdot\vec{x} \geq 0\\a\equiv(\vec{y}\cdot\vec{y})\\b\equiv2(\vec{x}\cdot\vec{y})\\c\equiv\vec{x}\cdot\vec{x}\\p(t)=at^2-bt+c \geq 0 $$
I get this part, but it's the next part that confuses me; he chooses $t=\frac{b}{2a}$. Why choose that particular value for t? At first I thought that it had something to do with minimizing the value of the function, but then I realized that it's not $-\frac{b}{2a}$; which further confuses me as for the significance of the chosen value.
I'm currently a high school student taking AP Calculus trying to study linear algebra on my own, so if it's not too much trouble, please dumb things down for me a bit.