The problem:
Assume $f:R^n→R$ is a convex function. Show that the function $g(t)=f(x_0+td), t∈R$ is convex for arbitrary $d, x_0∈R^n$. Explain the statement graphically when $n-2$.
My attempt at the solution:
To show that $g(x)$ is convex I have to use the convexity inequality.
$g(αt_1+(1-α)t_2)≤αg(t_2)+(1-α)g(t_2)$
Using the formula for $g(t)$ that was given we get
$f(α(x_0+t_1d)+(1-α)(x_0+t_2d))≤αf(x_0+t_1d)+(1-α)f(x_0+t_2d)$
After changing the left hand side I get something like this
$f(αt_1d+x_0+t_2d-αt_2d)≤αf(x_0+t_1d)+(1-α)f(x_0+t_2d)$
I'm stuck here. How can I make this look like a convexity formula for $f$?