ArticleslgStudy

mathematics

Codimension

Codimension is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Codimension rather than just read about it. In short: In mathematics, codimension is the difference between the dimensions of a mathematical object and a sub-object. It is a basic geometric idea that applies to subspaces in vector spaces, to submanifolds in manifolds, and suitable subsets of algebraic varieties.

Key takeaways

  • Codimension belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Codimension to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Codimension from memory before moving on to harder problems.

Reference excerpt

In mathematics, codimension is the difference between the dimensions of a mathematical object and a sub-object. It is a basic geometric idea that applies to subspaces in vector spaces, to submanifolds in manifolds, and suitable subsets of algebraic varieties. For affine and projective algebraic varieties, the codimension equals the height of the defining ideal. For this reason, the height of an ideal is often called its codimension. The dual concept is relative dimension.

Definition Codimension is a relative concept: it is only defined for one object inside another. There is no "codimension of a vector space (in isolation)", only the codimension of a vector subspace. If W is a linear subspace of a finite-dimensional vector space V, then the codimension of W in V is the difference between the dimensions: codim⁡(W)=dim⁡(V)−dim⁡(W). It is the complement of the dimension of W, in that, with the dimension of W, it adds up to the dimension of the ambient space V: dim⁡(W)+codim⁡(W)=dim⁡(V). Similarly, if N is a submanifold or subvariety in M, then the codimension of N in M is codim⁡(N)=dim⁡(M)−dim⁡(N). Just as the dimension of a submanifold is the dimension of the tangent bundle (the number of dimensions that you can move on the submanifold), the codimension is the dimension of the normal bundle (the number of dimensions you can move off the submanifold). More generally, if W is a linear subspace of a (possibly infinite dimensional) vector space V then the codimension of W in V is the dimension (possibly infinite) of the quotient space V/W, which is more abstractly known as the cokernel of the inclusion. For finite-dimensional vector spaces, this agrees with the previous definition codim⁡(W)=dim⁡(V/W)=dim⁡coker⁡(W→V)=dim⁡(V)−dim⁡(W), and is dual to the relative dimension as the dimension of the kernel. Finite-codimensional subspaces of infinite-dimensional spaces are often useful in the study of topological vector spaces.

Additivity of codimension and dimension counting The fundamental property of codimension lies in its relation to intersection: if W1 has codimension k1, and W2 has codimension k2, then if U is their intersection with codimension j we have

In fact j may take any integer value in this range. This statement is more perspicuous than the translation in terms of dimensions, because the RHS is just the sum of the codimensions. In words,

codimensions (at most) add. If the subspaces or submanifolds intersect transversally (which occurs generically), codimensions add exactly. This statement is called dimension counting, particularly in intersection theory.

Dual interpretation In terms of the dual space, it is quite evident why dimensions add. The subspaces can be defined by the vanishing of a certain number of linear functionals, which if we take to be linearly independent, their number is the codimension. Therefore, we see that U is defined by taking the union of the sets of linear functionals defining the Wi. That union may introduce some degree of linear dependence: the possible values of j express that dependence, with the RHS sum being the case where there is no dependence. This definition of codimension in terms of the number of functions needed to cut out a subspace extends to situations in which both the ambient space and subspace are infinite dimensional. In other language, which is basic for any kind of intersection theory, we are taking the union of a certain number of constraints. We have two phenomena to look out for:

the two sets of constraints may not be independent; the two sets of constraints may not be compatible. The first of these is often expressed as the principle of counting constraints: if we have a number N of parameters to adjust (i.e. we have N degrees of freedom), and a constraint means we have to "consume" a parameter to satisfy it, then the codimension of the solution set is at most the number of constraints. We do not expect to be able to find a solution if the predicted codimension, i.e. the number of independent constraints, exceeds N (in the linear algebra case, there is always a trivial, null vector solution, which is therefore discounted). The second is a matter of geometry, on the model of parallel lines; it is something that can be discussed for linear problems by methods of linear algebra, and for non-linear problems in projective space, over the complex number field.

In geometric topology Codimension also has some clear meaning in geometric topology: on a manifold, codimension 1 is the dimension of topological disconnection by a submanifold, while codimension 2 is the dimension of ramification and knot theory. In fact, the theory of high-dimensional manifolds, which starts in dimension 5 and above, can alternatively be said to start in codimension 3, because higher codimensions avoid the phenomenon of knots. Since surgery theory requires working up to the middle dimension, once one is in dimension 5, the middle dimension has codimension greater than 2, and hence one avoids knots. This quip is not vacuous: the study of embeddings in codimension 2 is knot theory, and difficult, while the study of embeddings in codimension 3 or more is amenable to the tools of high-dimensional geometric topology, and hence considerably easier.

See also Glossary of differential geometry and topology

References

"Codimension", Encyclopedia of Mathematics, EMS Press, 2001 [1994] Roman, Stephen (2008), Advanced Linear Algebra, Graduate Texts in Mathematics (Third ed.), Springer, ISBN 978-0-387-72828-5

Worked examples

Example 1 — a first encounter with Codimension

Start with the simplest possible case. Write down what Codimension claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Codimension before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Codimension ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Codimension

In research
Codimension appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Codimension in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Codimension is common in secondary-school and first-year university syllabi. It links to neighbouring topics Algebraic geometry, Dimension, Dimension theory, so understanding it makes those chapters shorter.
In everyday life
Look for Codimension outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Codimension” →

How to study Codimension in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Codimension means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Codimension out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Codimension in simple terms?

In mathematics, codimension is the difference between the dimensions of a mathematical object and a sub-object. It is a basic geometric idea that applies to subspaces in vector spaces, to submanifolds in manifolds, and suitable subsets of algebraic varieties.

Why does Codimension matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Codimension?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Codimension.

Tags

  • Algebraic geometry
  • Dimension
  • Dimension theory
  • Geometric topology
  • Linear algebra

Keep exploring