Canonical: https://knowlpedia.com/real-analysis/subalgebra-of-continuous-functions/

# Subalgebra of continuous functions

A subset of continuous functions closed under linear combinations and pointwise products.

A **subalgebra of continuous functions** on a [topological space](https://knowlpedia.com/topology/topological-space/) \(X\) is a subset \(A\subseteq C(X)\) (where \(C(X)\) is the [space of continuous functions](https://knowlpedia.com/real-analysis/space-of-continuous-functions/)) such that whenever \(f,g\in A\) and \(\alpha,\beta\in\mathbb{R}\), the functions \(\alpha f+\beta g\) and \(f\cdot g\) (pointwise product) also belong to \(A\). If \(A\) contains the constant function \(1\), it is called a unital subalgebra.

With pointwise operations, \(C(X)\) is a commutative [ring](https://knowlpedia.com/algebra-rings/ring/), and a subalgebra is a subset stable under the same structure. Subalgebras that [separate points](https://knowlpedia.com/real-analysis/separates-points/) are central in the [Stone–Weierstrass theorem](https://knowlpedia.com/real-analysis/stone-weierstrass-theorem/).

## Examples

- On a closed interval \([a,b]\), the set of restrictions of real [polynomials](https://knowlpedia.com/real-analysis/polynomial/) to \([a,b]\) is a subalgebra of \(C([a,b])\).
- On \([-1,1]\), the set of even continuous functions \(\{f\in C([-1,1]) : f(x)=f(-x)\}\) is a subalgebra of \(C([-1,1])\).
