Sets and Fields

What you will be able to do

Given a set with two operations, the learner can read and write set notation, test the field axioms one at a time, decide whether the structure is a field, and when it is not, name the specific axiom that fails and produce a witness to the failure.

Orientation

The assumption behind "over a field"

Four units of this course have used the phrase without defining it. Dimension is relative to the field. A matrix is diagonalizable over a field. One-sided invertibility is two-sided for square matrices over a field. Each states a genuine dependence, and none says what the dependence is on.

The answer is short. A field is a set where addition, subtraction, multiplication and division by anything nonzero all work and obey the usual rules. That is the entire content, and everything linear algebra does with scalars, dividing by a pivot, normalising a vector, cancelling a common factor, is one of those four operations.

What makes the definition worth stating precisely is that plausible systems fail it. The integers are closed under addition and multiplication and still are not a field. Arithmetic modulo 6 has all four operations available and still is not a field, for a reason visible in a single equation. Locating exactly which axiom breaks, and exhibiting the element that breaks it, is the skill this unit builds.

The set notation comes first, since the axioms are written in it.

Definition

Set notation, then the axioms

Sets and their notation. A set is determined by its members alone, so { 1 , 2 , 3 } = { 3 , 1 , 2 , 2 } : order and repetition record nothing. The notation in use throughout:

WrittenRead as
x ∈ S x is a member of S
A ⊆ B every member of A is a member of B
{ x ∈ S : P ( x ) } the members of S for which P holds
A ∪ B , A ∩ B union, intersection
A ∖ B members of A not in B
A × B ordered pairs ( a , b ) with a ∈ A , b ∈ B
∅ the set with no members

Membership and inclusion are different relations and the distinction matters: 1 ∈ { 1 , 2 } is true while 1 ⊆ { 1 , 2 } is not even well formed, since 1 is not a set. Two sets are equal exactly when each is a subset of the other, and that double inclusion is the standard way to prove a set identity.

The Cartesian product is what builds the objects of linear algebra: R 2 = R × R is the set of ordered pairs, and R n the set of n -tuples.

The field axioms. A field is a set F with operations + and ⋅ such that, for all a , b , c ∈ F :

  1. Closure. a + b ∈ F and a b ∈ F .
  2. Associativity. ( a + b ) + c = a + ( b + c ) and ( a b ) c = a ( b c ) .
  3. Commutativity. a + b = b + a and a b = b a .
  4. Identities. There are 0 , 1 ∈ F with a + 0 = a and a ⋅ 1 = a , and 1 ≠ 0 .
  5. Additive inverses. For each a there is − a with a + ( − a ) = 0 .
  6. Multiplicative inverses. For each a ≠ 0 there is a − 1 with a a − 1 = 1 .
  7. Distributivity. a ( b + c ) = a b + a c .

Axiom 6 is the one that carries the weight, and its restriction to a ≠ 0 is not an oversight. If 0 had an inverse then 0 ⋅ 0 − 1 = 1 , while 0 ⋅ b = 0 for every b , forcing 1 = 0 and contradicting axiom 4. So the exclusion is required for consistency, not convenience.

Axiom 7 is the only one that mentions both operations. Everything connecting addition to multiplication, including 0 ⋅ a = 0 , which is a theorem rather than an axiom, is derived from it.

Non-example

Structures that fail, and exactly where

Each of these satisfies most of the axioms. Naming the one that fails, and the element witnessing it, is the whole exercise.

N = { 0 , 1 , 2 , … } — fails axiom 5. Closed under both operations, associative, commutative, distributive, with both identities present. But 2 has no additive inverse: no natural number b satisfies 2 + b = 0 . Subtraction is unavailable, and axiom 6 fails too.

Z — fails axiom 6 only. Every other axiom holds, which is what makes it the instructive case. The witness is 2 : there is no integer b with 2 b = 1 , since b would have to lie strictly between 0 and 1 . This single missing axiom is why elimination over the integers cannot divide by an arbitrary pivot. Adjoining the missing inverses produces Q .

Z 6 — fails axiom 6, and visibly. Modular arithmetic supplies closure, associativity, commutativity, distributivity and both identities. But

2 ⋅ 3 = 6 = 0 ( mod 6 ) ,

and two nonzero elements have multiplied to zero. Neither can have an inverse: if 2 − 1 existed, multiplying 2 ⋅ 3 = 0 by it would give 3 = 0 , which is false. Computing the products confirms that 2 , 3 and 4 all lack inverses, while only 1 and 5 have them ( 5 ⋅ 5 = 25 = 1 mod 6 ).

The set of 2 × 2 real matrices — fails axioms 3 and 6. Multiplication is not commutative, and a nonzero matrix such as ( 1 0 0 0 ) is singular, so has no inverse. It is also a second source of zero divisors, since that matrix times ( 0 0 0 1 ) is the zero matrix.

{ 0 } — fails axiom 4. Every other axiom holds vacuously, but 1 = 0 here, which axiom 4 forbids. The exclusion exists precisely to rule this out; without it the trivial set would be a field and every vector space over it would collapse.

Closure is present in all five. It is the cheapest axiom and it decides nothing on its own. The failures live in the inverses, in commutativity, or in the requirement that the two identities be distinct.

Principle

No zero divisors, and the prime criterion

A field has no zero divisors. If a b = 0 and a ≠ 0 , then a − 1 exists by axiom 6, and

b = 1 ⋅ b = ( a − 1 a ) b = a − 1 ( a b ) = a − 1 ⋅ 0 = 0 .

So a product vanishes only when one of its factors does. Every step used an axiom: the identity, the inverse, associativity, and the theorem 0 ⋅ a = 0 that distributivity supplies.

Cancellation follows. If a c = b c with c ≠ 0 , then ( a − b ) c = 0 , so a − b = 0 and a = b . Cancellation is not a separate assumption. It follows from the absence of zero divisors, and it is used silently whenever a common factor is removed from an equation.

The converse fails. Z has no zero divisors and is still not a field. A commutative ring with identity and no zero divisors is an integral domain; every field is one, and Z is the standard example of one that is not a field.

Z n is a field exactly when n is prime. Both directions are short.

If n is composite, write n = a b with 1 < a , b < n . Then a and b are nonzero in Z n but a b = n = 0 , producing a zero divisor, so by the first principle Z n is not a field.

If n = p is prime and a ≢ 0 , then gcd ( a , p ) = 1 , so integers x , y exist with a x + p y = 1 . Reducing modulo p gives a x ≡ 1 , so x is the inverse of a . Every nonzero element is invertible and Z p is a field.

The criterion, in short form: composite means zero divisors, prime means inverses. Checking n for primality settles the question without computing a single product table.

Example

Fields of four different kinds

Q , the rationals. The smallest field containing Z . Every nonzero p / q has inverse q / p , which is where Z fell short. Closure under division is exactly what was added.

R , the reals. The field linear algebra defaults to. It carries an order compatible with its arithmetic, which is why real eigenvalues can be sorted and real quadratic forms can be called positive, but the order is extra structure, not a field axiom.

C , the complex numbers. A field with no compatible order. Inverses come from the conjugate: for z ≠ 0 ,

z − 1 = z ¯ | z | 2 ,

which is defined precisely because | z | 2 is a nonzero real. It is also algebraically closed, which R is not, and that is why characteristic polynomials always split over it.

Z 5 , a finite field. Five elements, and every nonzero one invertible:

a 1234
a − 1 1324

Checking: 2 ⋅ 3 = 6 = 1 , 4 ⋅ 4 = 16 = 1 , and 1 ⋅ 1 = 1 , all modulo 5. No two nonzero elements multiply to zero, as the prime criterion guarantees. Linear algebra runs over this field unchanged, matrices, elimination, determinants and eigenvalues all work, with arithmetic done modulo 5.

Q ( 2 ) = { a + b 2 : a , b ∈ Q } . Closed under multiplication, since

( a + b 2 ) ( c + d 2 ) = ( a c + 2 b d ) + ( a d + b c ) 2 ,

for instance ( 1 + 2 2 ) ( 3 − 2 ) = − 1 + 5 2 . Inverses come from the same conjugate trick as C : multiplying by a − b 2 gives the rational norm a 2 − 2 b 2 , so

( 1 + 2 2 ) − 1 = 1 − 2 2 1 − 8 = − 1 7 + 2 7 2 ,

and multiplying back returns exactly 1 . The norm is never zero for a nonzero element, because 2 is irrational, so no rational a / b can satisfy a 2 = 2 b 2 .

These five differ in size, in whether they are ordered, and in whether polynomials split, and all satisfy the same seven axioms. That is what makes results stated "over a field" useful: they hold for every one of them at once.

Worked example

Testing four structures against the axioms

The method is the same each time: assume nothing from resemblance to R , take the axioms in order, and stop at the first failure with a witness in hand.

1. Is Z 7 a field?

Seven is prime, so the criterion settles it immediately. The inverses: For each nonzero a , find b with a b ≡ 1 ( mod 7 ) :

a 123456
a − 1 145236

Checking three of them: 2 ⋅ 4 = 8 = 1 , 3 ⋅ 5 = 15 = 14 + 1 = 1 , 6 ⋅ 6 = 36 = 35 + 1 = 1 , all modulo 7. Every nonzero element is invertible.

Answer: yes, a field with seven elements.

2. Is Z 8 a field?

Eight is composite, 8 = 2 ⋅ 4 , so the criterion predicts a zero divisor. Confirming: 2 ⋅ 4 = 8 = 0 ( mod 8 ) , with both factors nonzero.

That single equation kills axiom 6 for both. If 2 − 1 existed, multiplying 2 ⋅ 4 = 0 through by it would give 4 = 0 , false in Z 8 . The same argument rules out an inverse for 4.

Answer: no. Failing axiom: multiplicative inverses. Witness: 2 ⋅ 4 = 0 with 2 , 4 ≠ 0 .

Note what was not claimed, that no inverse was found by searching. The argument shows none can exist.

3. Is E = { x ∈ Z : x  is even } a field?

Closure holds: even plus even is even, even times even is even. Associativity, commutativity and distributivity are inherited from Z . Additive inverses are present, since − x is even whenever x is.

The failure is earlier than expected. Axiom 4 requires a multiplicative identity 1 ∈ E , and 1 is odd, so E does not contain it. No element of E acts as an identity either: if e ⋅ x = x for all even x , taking x = 2 forces e = 1 ∉ E .

Answer: no. Failing axiom: multiplicative identity. This is the case where checking axioms in order matters, jumping to inverses would miss that the identity they are defined against is absent.

4. Is Q ( 2 ) = { a + b 2 : a , b ∈ Q } a field?

Closure under multiplication needs the expansion:

( a + b 2 ) ( c + d 2 ) = a c + a d 2 + b c 2 + 2 b d = ( a c + 2 b d ) + ( a d + b c ) 2 ,

which has the required form since Q is closed. Concretely ( 1 + 2 2 ) ( 3 − 2 ) = ( 3 − 4 ) + ( − 1 + 6 ) 2 = − 1 + 5 2 .

For inverses, multiply by the conjugate a − b 2 :

( a + b 2 ) ( a − b 2 ) = a 2 − 2 b 2 ,

a rational number. It is nonzero whenever a + b 2 ≠ 0 : if a 2 = 2 b 2 with b ≠ 0 then ( a / b ) 2 = 2 , making 2 rational. So

( a + b 2 ) − 1 = a − b 2 a 2 − 2 b 2 .

For 1 + 2 2 : the norm is 1 − 8 = − 7 , giving ( 1 − 2 2 ) / ( − 7 ) = − 1 7 + 2 7 2 . Verifying, ( 1 + 2 2 ) ( − 1 7 + 2 7 2 ) = ( − 1 7 + 8 7 ) + ( 2 7 − 2 7 ) 2 = 1 .

Answer: yes. The structure of the argument is identical to the one used for C , with the norm a 2 − 2 b 2 playing the role of | z | 2 .

Extra support (1)

Contrast

Integers against rationals, and Z 5 against Z 6

Two pairs, each differing in one axiom, which isolates what that axiom does.

Z and Q .

Z Q
Closure, associativity, commutativity, distributivity✓
Identities 0 , 1 with 1 ≠ 0 ✓
Additive inverses✓
Multiplicative inverses for a ≠ 0 ✗ ( 2 has none)✓
Zero divisorsnonenone

One axiom apart. The consequence for linear algebra is concrete: over Q elimination divides by any nonzero pivot and reaches reduced row echelon form; over Z that division may leave the set, so the theory of matrices over Z is genuinely different. It is the theory of modules, where Smith normal form replaces row reduction.

Note that Z has no zero divisors and still is not a field. Absence of zero divisors is necessary, not sufficient.

Z 5 and Z 6 .

Z 5 Z 6
Size56
Modulusprimecomposite, 6 = 2 ⋅ 3
Nonzero elements with inversesall four: 1 , 2 , 3 , 4 only 1 and 5
Elements withoutnone 2 , 3 , 4
Zero divisorsnone 2 ⋅ 3 = 0
A field?yesno

The two are built by the same construction and differ only in the modulus. In Z 5 : 2 ⋅ 3 = 6 = 1 , so 2 and 3 are mutually inverse; 4 ⋅ 4 = 16 = 1 . In Z 6 the same product 2 ⋅ 3 equals 6 = 0 instead, and the element that was an inverse in one is a zero divisor in the other.

Primality of the modulus is not an extra condition bolted onto the definition. It is exactly the condition under which no element shares a factor with n , hence under which Bézout supplies an inverse for every nonzero element. Composite moduli hand their own factors back as zero divisors.

A caution about size. Finiteness is not the obstruction. Z 5 is finite and a field; Z is infinite and is not. Finite fields exist for every prime power, and linear algebra over them is used throughout coding theory and cryptography.

Optional enrichment (1)

Application

Where the four earlier units were leaning on this

"Dimension is relative to the field." The vectors do not change; the permitted scalars do. C over C has basis { 1 } and dimension 1, since any z is z ⋅ 1 with z an allowed scalar. Over R the scalars are real, 1 alone reaches only the real axis, and a basis is { 1 , i } giving dimension 2. Restricting the field makes independence easier to achieve and dimension larger.

"Diagonalizable over a field." Eigenvalues are roots of the characteristic polynomial, and whether it splits depends on the field. The rotation ( 0 − 1 1 0 ) has characteristic polynomial λ 2 + 1 , irreducible over R and splitting over C into ( λ − i ) ( λ + i ) . Same matrix, different answer, because the field changed. A splitting field is the extension in which the polynomial factors completely, which is why enlarging R to C repairs that case, and why a defective matrix stays defective in every field, its obstruction being a shortage of eigenvectors rather than of roots.

"Square matrices over a field." Elimination divides by pivots, so every nonzero pivot needs an inverse. Over a field that is axiom 6; over Z it fails, which is why ( 2 0 0 2 ) has determinant 4 and no inverse with integer entries, despite being nonsingular as a real matrix. The determinant test, invertible exactly when det ≠ 0 , presupposes that a nonzero determinant can be divided by.

Cancellation in proofs. Arguments throughout the course cancel a common nonzero factor, and each use is the no-zero-divisors principle. Over Z 6 it would be unsound: 2 x = 2 y does not give x = y , since x = 1 , y = 4 satisfies 2 = 8 = 2 with x ≠ y .

Beyond the familiar fields. Linear algebra over Z 2 , where 1 + 1 = 0 , underlies error-correcting codes, with a parity check matrix over that field and syndrome decoding as an ordinary linear system. Over larger finite fields the same machinery gives Reed–Solomon codes. None of this requires new theory, because every theorem proved "over a field" already covers these cases.

That generality is the payoff of stating the axioms rather than describing R : results proved once hold over every field at once, including fields that had not been thought of when the theorem was proved.

Next step

Practice Sets and Fields

Practice this

Results update as you type. Use the up and down arrow keys to move between results, Enter to open one, and Escape to close.

Type to search.

Settings

Appearance

Interface density

Your record

Your progress is stored in this browser and nowhere else: an identifier, the answers you have given, the mastery states and review schedule derived from them, and the lesson you last opened. Clearing it makes you a new learner on this device. It cannot be undone, and it will not affect your appearance or density settings.

Focus timer

Focus--minutes remaining

Phase

Kept in this browser only, and used to label the session in your own history.

Today

Nothing recorded yet. Finish a focus session and it will appear here.

Settings

Focus sessions between long breaks.

Sessions you are aiming for in a day.

Notifications

Your history

Sessions are stored in this browser and nowhere else. They are not evidence and never reach your mastery record.