Affine composition Suppose g is convex, then $f(x ) = g(Ax + b )$ is convex.
Proof: \begin{align*}
epi f &= \{(x, t ): f(x ) \le t\}\\
& = \{(x, t ): g(Ax + b ) \le t\}\\
& = \{(x,t ) : (Ax + b,t ) \in epi(g)\}\\
& = \{(x,t ) : h(x,t) \in epi(g)\}\\
& = h^{-1} epi(g)
\end{align*}
Define $h$ as a function(affine actually) that maps $(x,t )$ to $(Ax + b, t)$. It's affine because \begin{align*}
h(\theta(x_1,t_1) + (1-\theta)(x_2,t_2)) &= \left( A(\theta x_1 + (1-\theta)x_2) + b, \theta t_1 + (1-\theta)t_2 \right) \\
&= \theta(Ax_1 + b, t_1) + (1-\theta)(Ax_2 + b, t_2)\\
&= \theta h(x_1,t_1) + (1-\theta)h(x_2,t_2)
\end{align*}
Therefore, epi(f) is the inverse image of h. Since epi g is convex and h is affine, we obtain that epi f is a convex set and thus f is a convex function (Refer to 2.3.2 Affine functions in Boyd Convex-Optimization).