I am trying to understand this specific proof of the Jensen inequality.
Let f be a convex function, X a random variable then $f(E(X))\leq E(f(X))$.
Proof: Consider that for all $\omega \in \Omega$:
(*)$f(E(X))+f'(E(X))(X(\omega)-E(X)) \leq f(X(\omega))$
Applying the expected value to this inequality yields the result.
My main Problem is that I do not understand where we get the inequality $f(E(X))+f'(E(X))(X(\omega)-E(X)) \leq f(X(\omega))$.
The rest of the proof seems to be just a plain calculation. Applying the expected value to this inequality gets us $E(f(E(X)))+E(f'(E(X))(X(\omega)-E(X)))\leq E(f(X(\omega)))$.
By the linearity of the expected value and since $f(E(X)),f'(E(X)),E(X)$ are scalars I get
$f(E(X))+f'(E(X))(E(X)-E(X))\leq E(f(X))$.
Thus yielding $f(E(X))\leq E(f(X))$.
I would be happy if someone could tell/explain the origin of the inequality (*).