A function \(f: R \rightarrow R\) is an affine function if it is a sum of linear function and a constrant. It has the form
\(f(x) = Ax + b\)
An affine function is convex