Suppose $f: \mathbb{R}^n \rightarrow \mathbb{R}$ is a differentiable function. Define $g(t)=f(x+t(y-x))$ for all $x, y \in \mathbb{R}^n$ and $t\geq 0$. Show when $\langle \nabla f(y) - \nabla f(x), y-x \rangle \geq 0$, $g'(t)=\langle \nabla f(x + t(y-x)),y-x \rangle$ is an increasing function where $g'$ is the directional derivative of function $f$ along $y-x$.
My try:
Since $f$ is differentiable, using chain rule we can write $g'(t)=\langle \nabla f(x + t(y-x)),y-x \rangle$. Suppose $t_2>t_1$, we should show $g(t_2)\geq g(t_1)$.