Canonical: https://knowlpedia.com/convex-analysis/convexity-preserved-under-affine-composition/

# Convexity Preserved Under Affine Composition

Precomposition of a convex function with an affine map preserves convexity.

Let \(B:X\to Y\) be an [affine mapping](https://knowlpedia.com/convex-analysis/affine-mapping/) between real [vector spaces](https://knowlpedia.com/linear-algebra/vector-space/), and let \(f:Y\to\overline{\mathbb R}\) be a [convex function](https://knowlpedia.com/convex-analysis/convex-function-via-epigraph/). Then \(f\circ B\) is convex on \(X\).

## Proof idea

Use \(B(\lambda x+(1-\lambda)y)=\lambda B(x)+(1-\lambda)B(y)\) for \(0\leq\lambda\leq1\), then apply convexity of \(f\).
