Support our work
← All projects

Community project

Span in 3D

An interactive 3D explainer that shows when three vectors span a plane versus all of 3D space.

Created by

Yihang Xu

The idea

Span in 3D is a one-page interactive study tool for a core linear algebra midterm concept: span and linear independence. Two fixed vectors u = [2, 0, 1] and v = [0, 2, 1] span a blue plane through the origin. You drag the 3D scene to rotate it and move a third vector w with three sliders (or presets: w = u + v, w = u − v, w straight up). How it works: the page puts u, v, w as the columns of a matrix A and computes det A live as the dot product of w with the normal u × v. When det A = 0, w lies in the plane: the panel reports rank 2, labels the set linearly dependent, and writes w as a combination a·u + b·v. When det A ≠ 0, a dashed line shows w's gap from the plane, the rank becomes 3, and the panel confirms the three vectors span all of R³. Below the scene is a short exam recipe (vectors as columns → row reduce → count pivots → compare with the number of vectors), common mistakes, and a quick check question. Built with plain HTML, CSS, and a hand-written canvas 3D projection (no libraries). Supports touch and mouse rotation, light and dark mode, phone widths, and reduced motion. Made with Claude.

Intended community benefit

Makes an abstract midterm topic visible: students can see why a dependent vector adds no new direction and connect that picture to the determinant and pivot count they compute on exams.

Tools and technical details

HTML, CSS, JavaScript (Canvas 2D with custom 3D projection)