There is one I could not understand in the process of proving the first order convexity condition, which is $f$ is convexif and only if dom $f$ is convex and $f(y) \gt f(x) + \nabla f(x)^T (y-x)$ holds for all $x, y\in$ dom $f$.
It is $$g'(t) = \nabla f(ty + (1-t)x)^T (y-x),$$ where $g(t) = f(ty + (1-t)x)$, and $x,y$ are in $\Bbb{R}^n$, but $t$ is in $\Bbb{R}$.
$t$ is not a vector but a scalar value!!
Why does there exists $\nabla$ in the equation of $g'(t)$??