For a convex function $h(x)$, what conditions must hold for $$g_2(x) = ah(x) - b, \\ a, b \in R$$ is also convex?
My intuition is that for a convex $h(x)$ then $a > 0$ because if $a < 0$ then we 'flip' the function and it becomes concave. I also think that $b \in R$ because this will only shift the function vertically. How can I formalise this in a mathematical manner?