Sitemap
Towards AI

We train AI Engineers. We deploy Enterprise AI. Join 100K+ AI practitioners at Towards AI Academy or reach out for help making your company AI native. towardsai.com

Member-only story

Linear Algebra But With Functions

10 min readMay 12, 2026

--

Press enter or click to view image in full size
Photo by Rishi on Unsplash

Linear algebra is usually introduced through vectors treated as arrows in space, or columns of numbers. But it is more general than that. Vectors do not have to be vectors in the conventional sense. They just need to support addition, scaling by a constant, and a few other basic rules. Functions satisfy these rules. You can add two functions, scale them by a constant, ask whether a set of functions is linearly independent, and even define a notion of orthogonality between them. Ideas from linear algebra generalize to functions.

This view is powerful. It underpins numerical techniques like the Finite Element Method, and quadrature, and the Fourier decomposition of signals. It shows up in physics, notably in quantum theory, and in fields like control theory and machine learning. I will not dive into any of these here. Instead, I will introduce some concepts and, as an example, the Legendre polynomials.

I assume you have a working knowledge of linear algebra. I start by building up concepts, and close with a numerical example using Python.

Consider a set of functions {f₁, f₂, ..fₙ} and a linear combination of them equated to zero as follows.

--

--

Towards AI
Towards AI

Published in Towards AI

We train AI Engineers. We deploy Enterprise AI. Join 100K+ AI practitioners at Towards AI Academy or reach out for help making your company AI native. towardsai.com