According to wikipedia:
Jensen's inequality is
${\displaystyle f(tx_{1}+(1-t)x_{2})\leq tf(x_{1})+(1-t)f(x_{2}).}$
With this, I can easily prove Inequality of arithmetic and geometric means, in other words to prove that:
${\frac {x_{1}+x_{2}+\cdots +x_{n}}{n}}\geq {\sqrt[ {n}]{x_{1}\cdot x_{2}\cdots x_{n}}}\,,$
My problem is that my teacher didn't define Jensen's inequality in the same way above but rather:
Let $X$ be a discrete random variable with finite expected value and let $h:\mathbb{R} \to \mathbb{R}$ be a convex function. then: $h(E[X])\leq E[h(X)]$
How can I reach (prove) the first version using my professor's version of the inequality, so I can prove the Inequality of arithmetic and geometric means?