Mascot image.
← MA0 2 · Introduction to Algorithms and Numerical Analysis

Lesson 1

Vectors and Groups

Taught

Vectors

Algebra deals with variables and equations, geometry with points, lines, planes and solids, and the two are tied together closely enough that a statement about one is usually a statement about the other. Take the equation y=ax+by = ax + b. On its own it is an algebraic object, a relation between two unknowns; but the collection of points whose coordinates satisfy it traces out a straight line, and the two constants appearing in it read off two features of that line. The number aa is the slope, the change in yy against the change in xx, and bb is the height at which the line meets the vertical axis.

xyb1a0
Figure 1.1. The line y=ax+by = ax + b, meeting the vertical axis at height bb and rising by aa over every unit travelled to the right.

So the constants in the equation of a line, which are algebraic data, correspond to the slope and the intercept, which are geometric data. What makes the correspondence possible is a dictionary between the points of the plane and pairs of numbers, and the pair is an object MA01 has already built.

Coordinates

An ordered pair (a,b)(a, b) is a pair in which one element is marked as coming first, so that

(a,b)=(a,b)if and only ifa=a and b=b.(a, b) = (a', b') \quad \text{if and only if} \quad a = a' \text{ and } b = b'.

Given two sets AA and BB, the Cartesian product A×BA \times B is the set of all ordered pairs whose first entry comes from AA and whose second comes from BB,

A×B={(a,b)aA,  bB},A \times B = \{(a, b) \mid a \in A, \; b \in B\},

and when A=BA = B we write A2A^2 for it. More generally, for nNn \in \mathbb{N} the nn-fold product of sets A1,,AnA_1, \ldots, A_n consists of the nn-tuples with one entry drawn from each,

A1×A2××An={(a1,a2,,an)a1A1,  a2A2,  ,  anAn},A_1 \times A_2 \times \cdots \times A_n = \{(a_1, a_2, \ldots, a_n) \mid a_1 \in A_1, \; a_2 \in A_2, \; \ldots, \; a_n \in A_n\},

written AnA^n as a Cartesian power when all the factors agree. Throughout this course N={1,2,3,}\mathbb{N} = \{1, 2, 3, \ldots\}.

The example we care about is R2=R×R\mathbb{R}^2 = \mathbb{R} \times \mathbb{R}, whose elements are the pairs of real numbers. Fixing an origin and two perpendicular axes in the plane identifies each point with exactly one such pair.

Remark (Descartes).

The identification of the points of the plane with R2\mathbb{R}^2 is due to René Descartes, and the product carries his name because of it. The geometry uses the whole of the ordered pair: (a,b)(a, b) and (b,a)(b, a) are different points unless a=ba = b, which is exactly the property that a two-element set could not supply. Given a point PP of the plane matched with the pair (a,b)(a, b), we call aa the xx-coordinate and bb the yy-coordinate of PP.

Once points are pairs, two different kinds of quantity are in play. A scalar is a quantity settled by a single number, and for us that number will be real. Temperature, mass and altitude are scalars. Force and velocity are not: a force has a direction as well as a size, and both are needed to name it.

Remark (Magnitude and direction).

A vector is often introduced as a quantity carrying both a magnitude and a direction. That description says what vectors are for, but neither magnitude nor direction has been given a meaning yet, so it cannot be calculated with.

Take a pair (a,b)R2(a, b) \in \mathbb{R}^2 and the origin O=(0,0)O = (0, 0). Instead of drawing the single point P=(a,b)P = (a, b) we may draw the arrow that runs from OO to PP, reached by travelling aa units along the horizontal axis and bb units along the vertical one. The arrow carries the same information as the point, so nothing is lost.

xyOabP = (a, b)
Figure 1.2. The point P=(a,b)P = (a, b) and the arrow from the origin that represents it.

Because the arrow and the point determine one another, we treat them as the same object and use the words interchangeably.

Definition 1.1 (Vector).

Let nNn \in \mathbb{N}. An nn-dimensional vector, or nn-vector, is an element x\mathbf{x} of Rn\mathbb{R}^n. It may be written as a column vector

x=(x1x2xn)\mathbf{x} = \begin{pmatrix} x_1 \\ x_2 \\ \vdots \\ x_n \end{pmatrix}

or as a row vector x=(x1,x2,,xn)\mathbf{x} = (x_1, x_2, \ldots, x_n). For 1in1 \leqslant i \leqslant n the real number xix_i is the iith component of x\mathbf{x}. The set Rn\mathbb{R}^n of all such vectors is called nn-dimensional space.

Since points and vectors are the same objects here, the words component and coordinate are used interchangeably as well. For n=2n = 2 we usually name the components xx and yy, so that

R2={(x,y)x,yR}\mathbb{R}^2 = \{(x, y) \mid x, y \in \mathbb{R}\}

is the xyxy-plane; for n=3n = 3 we name them xx, yy and zz, and call R3\mathbb{R}^3 the xyzxyz-space.

Remark (Notation for vectors).

We write vectors in bold, u\mathbf{u} and v\mathbf{v}, and write OA\overrightarrow{OA} for the vector running from OO to AA. Other texts write u\vec{u} or u\underline{u} for the same thing, and a vector of length one often gets a hat, as in x^\hat{x} or e^1\hat{e}_1. The multiplicity of conventions does not matter; what matters is that a scalar and a vector are never written the same way, since almost every claim below depends on knowing which of the two a symbol names.

Example 1.2 (Vectors in R2\mathbb{R}^2 and R3\mathbb{R}^3).

(23)R2,(7101)R3,(2.53/104.001)R3.\begin{pmatrix} 2 \\ 3 \end{pmatrix} \in \mathbb{R}^2, \qquad \begin{pmatrix} 7 \\ -10 \\ 1 \end{pmatrix} \in \mathbb{R}^3, \qquad \begin{pmatrix} 2.5 \\ 3/10 \\ 4.001 \end{pmatrix} \in \mathbb{R}^3.

Remark (Rows against columns).

A row vector and a column vector with the same entries are the same element of Rn\mathbb{R}^n, and for everything in this chapter the shape is only a matter of how the thing is printed. It stops being a matter of printing as soon as vectors are multiplied by matrices, since the rules for that multiplication treat a row of nn entries and a column of nn entries as objects of different shapes, and the two cannot then be swapped. We will keep to columns whenever the shape could matter.

Definition 1.3 (Zero vector).

The zero vector of Rn\mathbb{R}^n is the vector all of whose components are 00,

0=(0,0,,0),\mathbf{0} = (0, 0, \ldots, 0),

also called the null vector. It is the vector OO\overrightarrow{OO} representing the origin.

The vectors of the form (0,,0,xi,0,,0)(0, \ldots, 0, x_i, 0, \ldots, 0), with every component but the iith equal to zero, are exactly the points of the xix_i-axis, so the nn axes meeting at 0\mathbf{0} are already visible in the notation.

Vector Algebra

Definition 1.4 (Addition and subtraction).

Let u=(u1,u2,,un)\mathbf{u} = (u_1, u_2, \ldots, u_n) and v=(v1,v2,,vn)\mathbf{v} = (v_1, v_2, \ldots, v_n) be vectors in Rn\mathbb{R}^n. Their sum and difference are formed component by component:

u+v=(u1+v1,  u2+v2,  ,  un+vn),uv=(u1v1,  u2v2,  ,  unvn).\begin{aligned} \mathbf{u} + \mathbf{v} &= (u_1 + v_1, \; u_2 + v_2, \; \ldots, \; u_n + v_n), \\ \mathbf{u} - \mathbf{v} &= (u_1 - v_1, \; u_2 - v_2, \; \ldots, \; u_n - v_n). \end{aligned}

Two vectors can be added only when they have the same number of components, since otherwise some component of the answer has nothing to be built from. A vector in R3\mathbb{R}^3 and a vector in R2\mathbb{R}^2 have no sum.

Example 1.5 (A sum in R3\mathbb{R}^3).

(365)+(781)=(10146).\begin{pmatrix} 3 \\ 6 \\ 5 \end{pmatrix} + \begin{pmatrix} 7 \\ 8 \\ 1 \end{pmatrix} = \begin{pmatrix} 10 \\ 14 \\ 6 \end{pmatrix}.

Read as arrows, u+v\mathbf{u} + \mathbf{v} is what we reach by travelling along u\mathbf{u} and then travelling along v\mathbf{v} from wherever that leaves us. Travelling along v\mathbf{v} first and u\mathbf{u} second lands in the same place, which is the picture behind u+v=v+u\mathbf{u} + \mathbf{v} = \mathbf{v} + \mathbf{u}: the two routes are the two ways round a parallelogram.

Ouvu + vOuvvu
Figure 1.3. The sum of two vectors is the diagonal of the parallelogram they span; the difference vu\mathbf{v} - \mathbf{u} is the arrow carrying the tip of u\mathbf{u} to the tip of v\mathbf{v}.

The right-hand panel records the other useful reading of the definition. The vector vu\mathbf{v} - \mathbf{u} is the one that translates the point with position vector u\mathbf{u} to the point with position vector v\mathbf{v}, since adding it to u\mathbf{u} returns v\mathbf{v}. For two points PP and QQ this is written

PQ=OQOP.\overrightarrow{PQ} = \overrightarrow{OQ} - \overrightarrow{OP}.

Definition 1.6 (Scalar multiplication).

Let u=(u1,u2,,un)Rn\mathbf{u} = (u_1, u_2, \ldots, u_n) \in \mathbb{R}^n and let λR\lambda \in \mathbb{R}. The scalar multiple λu\lambda\mathbf{u} is

λu=(λu1,  λu2,  ,  λun).\lambda\mathbf{u} = (\lambda u_1, \; \lambda u_2, \; \ldots, \; \lambda u_n).

We write u-\mathbf{u} for (1)u=(u1,u2,,un)(-1)\mathbf{u} = (-u_1, -u_2, \ldots, -u_n).

When λ\lambda is a positive integer, λu\lambda\mathbf{u} is the translation obtained by translating λ\lambda times by u\mathbf{u}. Letting λ\lambda range over all of R\mathbb{R}, the points λu\lambda\mathbf{u} trace out the straight line through the origin and the point u\mathbf{u}. Translating by u-\mathbf{u} undoes a translation by u\mathbf{u}.

Ou½uu2u
Figure 1.4. The scalar multiples of a vector u0\mathbf{u} \neq \mathbf{0} fill the line through the origin and u\mathbf{u}.

Example 1.7 (A scalar multiple).

4(279)=(82836).4 \cdot \begin{pmatrix} 2 \\ 7 \\ 9 \end{pmatrix} = \begin{pmatrix} 8 \\ 28 \\ 36 \end{pmatrix}.

The product λu\lambda \cdot \mathbf{u} is written λu\lambda\mathbf{u} from here on, the dot being dropped as it is for the product of two reals.

With both operations available we can build one vector out of several others.

Definition 1.8 (Linear combination).

Let v1,,vkRn\mathbf{v}_1, \ldots, \mathbf{v}_k \in \mathbb{R}^n and λ1,,λkR\lambda_1, \ldots, \lambda_k \in \mathbb{R}. The vector

λ1v1+λ2v2++λkvk\lambda_1\mathbf{v}_1 + \lambda_2\mathbf{v}_2 + \cdots + \lambda_k\mathbf{v}_k

is a linear combination of v1,,vk\mathbf{v}_1, \ldots, \mathbf{v}_k with coefficients λ1,,λk\lambda_1, \ldots, \lambda_k. A sum of this shape is abbreviated

i=1kλivi,\sum_{i=1}^{k} \lambda_i \mathbf{v}_i ,

the symbol \textstyle\sum instructing us to add the terms obtained as the index ii runs through the integers from the value below the symbol to the value above it.

Definition 1.9 (Standard basis).

Let nNn \in \mathbb{N}. For 1in1 \leqslant i \leqslant n let e^iRn\hat{e}_i \in \mathbb{R}^n be the vector whose iith component is 11 and whose other components are 00, so that

e^1=(1,0,,0,0),e^2=(0,1,,0,0),,e^n=(0,0,,0,1).\hat{e}_1 = (1, 0, \ldots, 0, 0), \quad \hat{e}_2 = (0, 1, \ldots, 0, 0), \quad \ldots, \quad \hat{e}_n = (0, 0, \ldots, 0, 1).

These nn vectors form the standard basis, or canonical basis, of Rn\mathbb{R}^n.

Proposition 1.10 (Expansion in the standard basis).

Let nNn \in \mathbb{N} and let xRn\mathbf{x} \in \mathbb{R}^n. There is exactly one nn-tuple (λ1,,λn)(\lambda_1, \ldots, \lambda_n) of real numbers with

x=i=1nλie^i,\mathbf{x} = \sum_{i=1}^{n} \lambda_i \hat{e}_i,

namely the tuple of components of x\mathbf{x} itself.

Discussion.

The statement is an existence and uniqueness claim about the tuple of coefficients, so the proof has two halves. Both are settled by looking at one component at a time, because addition and scalar multiplication were defined component by component: the jjth component of iλie^i\sum_i \lambda_i \hat{e}_i is iλi(e^i)j\sum_i \lambda_i (\hat{e}_i)_j, and by the definition of the standard basis every term of that sum vanishes except the one with i=ji = j. So the jjth component of the combination is λj\lambda_j, whatever the coefficients were. Existence then follows by taking λj=xj\lambda_j = x_j, and uniqueness follows because any tuple that works must have λj\lambda_j equal to the jjth component of x\mathbf{x}, which leaves no freedom.

Proof.

Let λ1,,λn\lambda_1, \ldots, \lambda_n be any real numbers and fix jj with 1jn1 \leqslant j \leqslant n. By the definition of scalar multiplication the jjth component of λie^i\lambda_i \hat{e}_i is λi(e^i)j\lambda_i (\hat{e}_i)_j, which is λi\lambda_i when i=ji = j and 00 otherwise; and by the definition of addition the jjth component of a sum is the sum of the jjth components. Hence

(i=1nλie^i)j=i=1nλi(e^i)j=λj.\Bigl( \sum_{i=1}^{n} \lambda_i \hat{e}_i \Bigr)_j = \sum_{i=1}^{n} \lambda_i (\hat{e}_i)_j = \lambda_j.

Now write x=(x1,,xn)\mathbf{x} = (x_1, \ldots, x_n). Taking λi=xi\lambda_i = x_i for each ii, the displayed identity says that ixie^i\sum_i x_i \hat{e}_i has jjth component xjx_j for every jj, so it equals x\mathbf{x}; this proves existence. If (λ1,,λn)(\lambda_1, \ldots, \lambda_n) is any tuple with x=iλie^i\mathbf{x} = \sum_i \lambda_i \hat{e}_i, then comparing jjth components in that equation and using the identity again gives xj=λjx_j = \lambda_j for every jj; this proves uniqueness.

Remark (The basis in two and three dimensions).

For n=2n = 2 the standard basis is (1,0)(1, 0) and (0,1)(0, 1), commonly written i^\hat{i} and j^\hat{j}, and the proposition says that every u=(x,y)\mathbf{u} = (x, y) is xi^+yj^x\hat{i} + y\hat{j} and is so in only one way. For n=3n = 3 the basis is written i^\hat{i}, j^\hat{j}, k^\hat{k}.

Definition 1.11 (Norm of a vector).

Let u=(u1,u2,,un)Rn\mathbf{u} = (u_1, u_2, \ldots, u_n) \in \mathbb{R}^n. The norm, or magnitude, or length, of u\mathbf{u} is the real number

u=u12+u22++un2=i=1nui2.\lVert \mathbf{u} \rVert = \sqrt{u_1^2 + u_2^2 + \cdots + u_n^2} = \sqrt{\sum_{i=1}^{n} u_i^2}.

This is also called the Euclidean norm. A vector with u=1\lVert \mathbf{u} \rVert = 1 is a unit vector.

Remark (Bars and double bars).

Many texts write u|\mathbf{u}| for the norm. We keep the single bars for the absolute value of a real number, which appears in the last chapter of this lesson and again throughout the course, and reserve the double bars for vectors. Nothing but legibility turns on the choice, but a formula such as λu=λu\lVert \lambda \mathbf{u} \rVert = |\lambda| \, \lVert \mathbf{u} \rVert is a good deal easier to read when the two are told apart.

Example 1.12 (A norm in R3\mathbb{R}^3).

Let A=(3,4,0)A = (3, 4, 0) and let a=OA\mathbf{a} = \overrightarrow{OA}. Then

a=32+42+02=25=5.\lVert \mathbf{a} \rVert = \sqrt{3^2 + 4^2 + 0^2} = \sqrt{25} = 5.

Proposition 1.13 (Properties of the norm).

Let xRn\mathbf{x} \in \mathbb{R}^n and λR\lambda \in \mathbb{R}. Then

  1. x0\lVert \mathbf{x} \rVert \geqslant 0;
  2. x=0\lVert \mathbf{x} \rVert = 0 if and only if x=0\mathbf{x} = \mathbf{0};
  3. λx=λx\lVert \lambda\mathbf{x} \rVert = |\lambda| \, \lVert \mathbf{x} \rVert.

Discussion.

All three parts are about the number under the square root, which is a sum of squares of real numbers, so each is settled by a fact about real squares rather than by anything about vectors. For the first, every square is non-negative and so is the sum, and the square root of a non-negative number is non-negative by definition. The second is a biconditional; the reverse direction is a computation, and the forward one uses that a sum of non-negative terms vanishes only if every term does, so each xi2x_i^2 is 00 and hence each xix_i is. The third pulls the constant out of the sum and out of the root, where the identity λ2=λ\sqrt{\lambda^2} = |\lambda| supplies the absolute value; it is the reason the absolute value appears at all, since the root is the non-negative one and λ\lambda need not be.

Proof.

Write x=(x1,,xn)\mathbf{x} = (x_1, \ldots, x_n) and S=i=1nxi2S = \sum_{i=1}^{n} x_i^2.

For the first part, each xi20x_i^2 \geqslant 0, so S0S \geqslant 0, and x=S0\lVert \mathbf{x} \rVert = \sqrt{S} \geqslant 0 since the square root of a non-negative real is taken to be non-negative.

For the second, if x=0\mathbf{x} = \mathbf{0} then every xi=0x_i = 0, so S=0S = 0 and x=0\lVert \mathbf{x} \rVert = 0. Conversely, suppose x=0\lVert \mathbf{x} \rVert = 0. Squaring gives S=0S = 0; since SS is a sum of terms each of which is at least 00, no term can be strictly positive, so xi2=0x_i^2 = 0 and hence xi=0x_i = 0 for every ii. Thus x=0\mathbf{x} = \mathbf{0}.

For the third, the definition of scalar multiplication makes the components of λx\lambda\mathbf{x} the numbers λxi\lambda x_i, so

λx=i=1nλ2xi2=λ2S=λ2S=λx.\lVert \lambda\mathbf{x} \rVert = \sqrt{\sum_{i=1}^{n} \lambda^2 x_i^2} = \sqrt{\lambda^2 \, S} = \sqrt{\lambda^2} \, \sqrt{S} = |\lambda| \, \lVert \mathbf{x} \rVert.

Definition 1.14 (Euclidean distance).

Let u,vRn\mathbf{u}, \mathbf{v} \in \mathbb{R}^n. The Euclidean distance between u\mathbf{u} and v\mathbf{v}, taken as position vectors, is vu\lVert \mathbf{v} - \mathbf{u} \rVert; in components,

vu=i=1n(viui)2.\lVert \mathbf{v} - \mathbf{u} \rVert = \sqrt{\sum_{i=1}^{n} (v_i - u_i)^2}.

The distance is symmetric in its two arguments, since uv=(vu)\mathbf{u} - \mathbf{v} = -(\mathbf{v} - \mathbf{u}) and the third part of the last proposition, with λ=1\lambda = -1, gives the two vectors the same norm.

Ouvuvvu
Figure 1.5. The norms of two vectors and the distance between the points they represent.

Problem 1.1.

Let u,v,wRn\mathbf{u}, \mathbf{v}, \mathbf{w} \in \mathbb{R}^n and λ,μR\lambda, \mu \in \mathbb{R}. Prove that u+v=v+u\mathbf{u} + \mathbf{v} = \mathbf{v} + \mathbf{u}, that (u+v)+w=u+(v+w)(\mathbf{u} + \mathbf{v}) + \mathbf{w} = \mathbf{u} + (\mathbf{v} + \mathbf{w}), that u+0=u\mathbf{u} + \mathbf{0} = \mathbf{u} and u+(u)=0\mathbf{u} + (-\mathbf{u}) = \mathbf{0}, and that

λ(u+v)=λu+λv,(λ+μ)u=λu+μu,λ(μu)=(λμ)u.\lambda(\mathbf{u} + \mathbf{v}) = \lambda\mathbf{u} + \lambda\mathbf{v}, \qquad (\lambda + \mu)\mathbf{u} = \lambda\mathbf{u} + \mu\mathbf{u}, \qquad \lambda(\mu\mathbf{u}) = (\lambda\mu)\mathbf{u}.

Problem 1.2.

Let uRn\mathbf{u} \in \mathbb{R}^n with u0\mathbf{u} \neq \mathbf{0}. Show that u/u\mathbf{u} / \lVert \mathbf{u} \rVert is a unit vector, and that it is the only unit vector of the form λu\lambda\mathbf{u} with λ>0\lambda > 0.

The Scalar Product

Definition 1.15 (Scalar product).

Let u=(u1,,un)\mathbf{u} = (u_1, \ldots, u_n) and v=(v1,,vn)\mathbf{v} = (v_1, \ldots, v_n) be vectors in Rn\mathbb{R}^n. Their scalar product, also called the dot product or the Euclidean inner product, is the real number

uv=i=1nuivi.\mathbf{u} \cdot \mathbf{v} = \sum_{i=1}^{n} u_i v_i.

It is also written u,v\langle \mathbf{u}, \mathbf{v} \rangle.

The scalar product of two vectors is a scalar, not a vector. Comparing the definition with that of the norm gives

uu=i=1nui2=u2,sou=uu.\mathbf{u} \cdot \mathbf{u} = \sum_{i=1}^{n} u_i^2 = \lVert \mathbf{u} \rVert^2, \qquad \text{so} \qquad \lVert \mathbf{u} \rVert = \sqrt{\mathbf{u} \cdot \mathbf{u}}.

Example 1.16 (A scalar product in R3\mathbb{R}^3).

(253)(719)=27+51+39=46.\begin{pmatrix} 2 \\ 5 \\ 3 \end{pmatrix} \cdot \begin{pmatrix} 7 \\ 1 \\ 9 \end{pmatrix} = 2 \cdot 7 + 5 \cdot 1 + 3 \cdot 9 = 46.

Remark (A glance ahead at the transpose).

A matrix has a transpose, obtained by exchanging its rows and its columns. A column vector is a matrix of one column, so its transpose uT\mathbf{u}^{\mathsf{T}} is a row, and once matrices are multiplied the product uTv\mathbf{u}^{\mathsf{T}} \mathbf{v} is a matrix with one row and one column whose single entry is

u1v1++unvn=uv.u_1 v_1 + \cdots + u_n v_n = \mathbf{u} \cdot \mathbf{v}.

So the dot product is a matrix product in disguise, which is why the row and column shapes of the earlier remark are kept apart.

Remark (Inner products in general).

Later modules replace Rn\mathbb{R}^n by a vector space VV over a field FF and keep the product as a map

,:V×VF,(u,v)u,v,\langle \cdot, \cdot \rangle : V \times V \to F, \qquad (\mathbf{u}, \mathbf{v}) \mapsto \langle \mathbf{u}, \mathbf{v} \rangle,

subject to the properties proved in the next proposition, which are there taken as axioms. Fields and vector spaces are defined in the last chapter of this lesson. The proofs that follow use only those properties, so they hold for any inner product.

Proposition 1.17 (The scalar product is a symmetric bilinear form).

Let u,v,wRn\mathbf{u}, \mathbf{v}, \mathbf{w} \in \mathbb{R}^n and λ,μR\lambda, \mu \in \mathbb{R}. Then

  1. uv=vu\mathbf{u} \cdot \mathbf{v} = \mathbf{v} \cdot \mathbf{u};
  2. (λu+μw)v=λ(uv)+μ(wv)(\lambda\mathbf{u} + \mu\mathbf{w}) \cdot \mathbf{v} = \lambda (\mathbf{u} \cdot \mathbf{v}) + \mu (\mathbf{w} \cdot \mathbf{v});
  3. u(λv+μw)=λ(uv)+μ(uw)\mathbf{u} \cdot (\lambda\mathbf{v} + \mu\mathbf{w}) = \lambda (\mathbf{u} \cdot \mathbf{v}) + \mu (\mathbf{u} \cdot \mathbf{w});
  4. uu=u20\mathbf{u} \cdot \mathbf{u} = \lVert \mathbf{u} \rVert^2 \geqslant 0, with uu=0\mathbf{u} \cdot \mathbf{u} = 0 if and only if u=0\mathbf{u} = \mathbf{0}.

Discussion.

Parts 1 to 3 are identities between two real numbers, each of which is a sum over the components, so each is proved by writing both sides as such a sum and reconciling them term by term with the arithmetic of R\mathbb{R}. Symmetry needs only that uivi=viuiu_i v_i = v_i u_i. Linearity in the first argument needs the definitions of the sum and the scalar multiple to compute the iith component of λu+μw\lambda\mathbf{u} + \mu\mathbf{w}, and then the distributive law to split the sum in two. Part 3 does not need a separate argument: once symmetry is available, the two arguments may be exchanged, part 2 applied, and the arguments exchanged back. Part 4 is not new either, since uu=u2\mathbf{u} \cdot \mathbf{u} = \lVert \mathbf{u} \rVert^2 was read off the two definitions above, and the remaining claims are the first two parts of the proposition on the norm.

Proof.

Write u=(u1,,un)\mathbf{u} = (u_1, \ldots, u_n), v=(v1,,vn)\mathbf{v} = (v_1, \ldots, v_n) and w=(w1,,wn)\mathbf{w} = (w_1, \ldots, w_n).

Multiplication of reals is commutative, so

uv=i=1nuivi=i=1nviui=vu,\mathbf{u} \cdot \mathbf{v} = \sum_{i=1}^{n} u_i v_i = \sum_{i=1}^{n} v_i u_i = \mathbf{v} \cdot \mathbf{u},

which is the first part. For the second, the iith component of λu+μw\lambda\mathbf{u} + \mu\mathbf{w} is λui+μwi\lambda u_i + \mu w_i, so

(λu+μw)v=i=1n(λui+μwi)vi=i=1n(λuivi+μwivi)=λi=1nuivi+μi=1nwivi=λ(uv)+μ(wv).\begin{aligned} (\lambda\mathbf{u} + \mu\mathbf{w}) \cdot \mathbf{v} &= \sum_{i=1}^{n} (\lambda u_i + \mu w_i) v_i = \sum_{i=1}^{n} \bigl( \lambda u_i v_i + \mu w_i v_i \bigr) \\ &= \lambda \sum_{i=1}^{n} u_i v_i + \mu \sum_{i=1}^{n} w_i v_i = \lambda (\mathbf{u} \cdot \mathbf{v}) + \mu (\mathbf{w} \cdot \mathbf{v}). \end{aligned}

For the third, we use the symmetry just proved twice, with the second part in between:

u(λv+μw)=(λv+μw)u=λ(vu)+μ(wu)=λ(uv)+μ(uw).\mathbf{u} \cdot (\lambda\mathbf{v} + \mu\mathbf{w}) = (\lambda\mathbf{v} + \mu\mathbf{w}) \cdot \mathbf{u} = \lambda (\mathbf{v} \cdot \mathbf{u}) + \mu (\mathbf{w} \cdot \mathbf{u}) = \lambda (\mathbf{u} \cdot \mathbf{v}) + \mu (\mathbf{u} \cdot \mathbf{w}).

For the fourth, the identity uu=u2\mathbf{u} \cdot \mathbf{u} = \lVert \mathbf{u} \rVert^2 holds because both sides are i=1nui2\sum_{i=1}^{n} u_i^2. That quantity is non-negative and vanishes exactly when u=0\mathbf{u} = \mathbf{0}, by the first two parts of the proposition on the norm.

Proposition 1.18 (Cauchy–Schwarz inequality).

Let u,vRn\mathbf{u}, \mathbf{v} \in \mathbb{R}^n. Then

uvuv,|\mathbf{u} \cdot \mathbf{v}| \leqslant \lVert \mathbf{u} \rVert \, \lVert \mathbf{v} \rVert,

with equality if and only if one of u\mathbf{u} and v\mathbf{v} is a scalar multiple of the other. Two vectors standing in that relation are called linearly dependent.

Discussion.

The inequality compares a quantity that may be negative with one that is not, and the way to reach it is to produce a real number that is non-negative for a reason we already have, then read the inequality off it. The reason available is part 4 of the last proposition: u+tv20\lVert \mathbf{u} + t\mathbf{v} \rVert^2 \geqslant 0 for every real tt. Expanding that norm with bilinearity turns it into

u2+2t(uv)+t2v2,\lVert \mathbf{u} \rVert^2 + 2t \, (\mathbf{u} \cdot \mathbf{v}) + t^2 \lVert \mathbf{v} \rVert^2,

a quadratic in tt whose coefficients are the three quantities the statement mentions. A quadratic with positive leading coefficient that is never negative has at most one real root, so its discriminant is at most 00, and that discriminant is exactly 4(uv)24u2v24(\mathbf{u} \cdot \mathbf{v})^2 - 4\lVert \mathbf{u} \rVert^2 \lVert \mathbf{v} \rVert^2. The case v=0\mathbf{v} = \mathbf{0} has to be handled on its own, since then the leading coefficient vanishes and the expression is not a quadratic; both sides of the inequality are 00 there. For the equality case, note that the discriminant is 00 exactly when the quadratic has a root t0t_0, and by part 4 again a root means u+t0v=0\mathbf{u} + t_0\mathbf{v} = \mathbf{0}.

Problem 1.3.

Prove the Cauchy–Schwarz inequality, including the description of the case of equality.

Remark (Where the inequality lives).

The proof asked for above uses only the four properties of the previous proposition, so the inequality holds for every inner product, not only for the dot product on Rn\mathbb{R}^n.

Proposition 1.19 (Triangle inequality).

Let u,vRn\mathbf{u}, \mathbf{v} \in \mathbb{R}^n. Then

u+vu+v.\lVert \mathbf{u} + \mathbf{v} \rVert \leqslant \lVert \mathbf{u} \rVert + \lVert \mathbf{v} \rVert.

Discussion.

Both sides are non-negative, so it is enough to compare their squares, and squaring is what makes the statement tractable: the left-hand square is (u+v)(u+v)(\mathbf{u} + \mathbf{v}) \cdot (\mathbf{u} + \mathbf{v}), which bilinearity expands into u2+2(uv)+v2\lVert \mathbf{u} \rVert^2 + 2(\mathbf{u} \cdot \mathbf{v}) + \lVert \mathbf{v} \rVert^2, while the right-hand square is u2+2uv+v2\lVert \mathbf{u} \rVert^2 + 2\lVert \mathbf{u} \rVert \lVert \mathbf{v} \rVert + \lVert \mathbf{v} \rVert^2. The two differ only in the middle term, so the whole claim reduces to uvuv\mathbf{u} \cdot \mathbf{v} \leqslant \lVert \mathbf{u} \rVert \lVert \mathbf{v} \rVert, which is Cauchy–Schwarz together with the fact that a real number is at most its own absolute value.

Proof.

By the identity x2=xx\lVert \mathbf{x} \rVert^2 = \mathbf{x} \cdot \mathbf{x} and bilinearity,

u+v2=(u+v)(u+v)=u2+2(uv)+v2.\lVert \mathbf{u} + \mathbf{v} \rVert^2 = (\mathbf{u} + \mathbf{v}) \cdot (\mathbf{u} + \mathbf{v}) = \lVert \mathbf{u} \rVert^2 + 2 (\mathbf{u} \cdot \mathbf{v}) + \lVert \mathbf{v} \rVert^2.

Every real number is at most its absolute value, so uvuv\mathbf{u} \cdot \mathbf{v} \leqslant |\mathbf{u} \cdot \mathbf{v}|, and the Cauchy–Schwarz inequality bounds the latter by uv\lVert \mathbf{u} \rVert \lVert \mathbf{v} \rVert. Hence

u+v2u2+2uv+v2=(u+v)2.\lVert \mathbf{u} + \mathbf{v} \rVert^2 \leqslant \lVert \mathbf{u} \rVert^2 + 2 \lVert \mathbf{u} \rVert \lVert \mathbf{v} \rVert + \lVert \mathbf{v} \rVert^2 = \bigl( \lVert \mathbf{u} \rVert + \lVert \mathbf{v} \rVert \bigr)^2.

Both u+v\lVert \mathbf{u} + \mathbf{v} \rVert and u+v\lVert \mathbf{u} \rVert + \lVert \mathbf{v} \rVert are non-negative, and for non-negative reals aa and bb the inequality a2b2a^2 \leqslant b^2 gives aba \leqslant b. Therefore u+vu+v\lVert \mathbf{u} + \mathbf{v} \rVert \leqslant \lVert \mathbf{u} \rVert + \lVert \mathbf{v} \rVert.

Ouu + vuvu + v
Figure 1.6. The triangle with vertices 0\mathbf{0}, u\mathbf{u} and u+v\mathbf{u} + \mathbf{v}. Its sides have lengths u\lVert \mathbf{u} \rVert, v\lVert \mathbf{v} \rVert and u+v\lVert \mathbf{u} + \mathbf{v} \rVert.

The name comes from that picture. The side from 0\mathbf{0} to u+v\mathbf{u} + \mathbf{v} has length u+v\lVert \mathbf{u} + \mathbf{v} \rVert, and the other two sides have lengths u\lVert \mathbf{u} \rVert and v\lVert \mathbf{v} \rVert, the second because (u+v)u=v(\mathbf{u} + \mathbf{v}) - \mathbf{u} = \mathbf{v}. Going from 0\mathbf{0} to u+v\mathbf{u} + \mathbf{v} by way of u\mathbf{u} cannot be shorter than going straight there, and it is exactly as long only when u\mathbf{u} lies on the straight segment between the two.

Problem 1.4.

Let u,vRn\mathbf{u}, \mathbf{v} \in \mathbb{R}^n. Prove the parallelogram law

u+v2+uv2=2u2+2v2,\lVert \mathbf{u} + \mathbf{v} \rVert^2 + \lVert \mathbf{u} - \mathbf{v} \rVert^2 = 2\lVert \mathbf{u} \rVert^2 + 2\lVert \mathbf{v} \rVert^2,

and interpret it as a statement about the two diagonals of the parallelogram spanned by u\mathbf{u} and v\mathbf{v}.

Problem 1.5.

Let u1,,ukRn\mathbf{u}_1, \ldots, \mathbf{u}_k \in \mathbb{R}^n. Prove that

u1+u2++uku1+u2++uk.\lVert \mathbf{u}_1 + \mathbf{u}_2 + \cdots + \mathbf{u}_k \rVert \leqslant \lVert \mathbf{u}_1 \rVert + \lVert \mathbf{u}_2 \rVert + \cdots + \lVert \mathbf{u}_k \rVert .

Problem 1.6.

Write d(u,v)=vud(\mathbf{u}, \mathbf{v}) = \lVert \mathbf{v} - \mathbf{u} \rVert for the Euclidean distance. Show that d(u,v)0d(\mathbf{u}, \mathbf{v}) \geqslant 0 with equality exactly when u=v\mathbf{u} = \mathbf{v}, that d(u,v)=d(v,u)d(\mathbf{u}, \mathbf{v}) = d(\mathbf{v}, \mathbf{u}), and that

d(u,w)d(u,v)+d(v,w)d(\mathbf{u}, \mathbf{w}) \leqslant d(\mathbf{u}, \mathbf{v}) + d(\mathbf{v}, \mathbf{w})

for all u,v,wRn\mathbf{u}, \mathbf{v}, \mathbf{w} \in \mathbb{R}^n.

Symmetries

A symmetry of a geometrical figure is a way of moving the figure so that it ends up occupying exactly the position it started in. Draw an equilateral triangle on a transparent sheet, then pick the sheet up, turn it or flip it over without tearing or stretching it, and put it back down. If the triangle lands exactly on top of where it was, the movement we performed is a symmetry of the triangle.

To watch what a movement does we number the corners, 11 at the top, 22 at the bottom left and 33 at the bottom right. The numbers travel with the paper; the three corner positions stay where they are. Reading off which number sits in which position after the movement tells us which movement it was.

123do nothing312turn left231turn right132flip in the top axis321flip in the left axis213flip in the right axis
Figure 1.7. The six symmetries of an equilateral triangle. Each mirror line runs through one corner and the midpoint of the opposite side.

The first of the six, the movement which does nothing, is the identity symmetry, written ee.

Six is the whole list, because a symmetry has to send corners to corners, and once we know where two of the corners go the third has nowhere left to be.

What makes the six worth studying is that they combine. Performing one symmetry and then another leaves the triangle in its original position, so the result is again a symmetry.

123312321turn leftflip in the top axis
Figure 1.8. A turn followed by a flip. The arrangement at the end is the one a single flip in the left axis would have produced from the start.

Combining also shows up the feature that makes this subject interesting: the order in which two symmetries are performed matters.

123312321turn leftflip123132213flipturn left
Figure 1.9. The same two symmetries, performed in the two possible orders. The flip is in the top axis in both rows, and the two results differ.

So three things are true of the symmetries of a figure, and one thing is not. There is an identity; every symmetry can be undone, so it has an inverse; combining is associative, since bracketing a list of movements only says where to pause and not what order to perform them in. But combining does not commute.

Maps

Making that precise takes a little vocabulary about functions and three facts about them. The same ground is covered at length in MA01.

Definition 1.20 (Injections, surjections, bijections).

Let f:ABf : A \to B be a function. It is injective if f(a)=f(a)f(a) = f(a') implies a=aa = a'; surjective if for every bBb \in B there is an aAa \in A with f(a)=bf(a) = b; and bijective, or a bijection, if it is both.

For f:ABf : A \to B and g:BCg : B \to C the composite gf:ACg \circ f : A \to C is the function with (gf)(a)=g(f(a))(g \circ f)(a) = g(f(a)). The identity map idA:AA\mathrm{id}_A : A \to A is the function with idA(a)=a\mathrm{id}_A(a) = a.

Proposition 1.21 (Composition and inverses).

Let f:ABf : A \to B, g:BCg : B \to C and h:CDh : C \to D be functions.

  1. (hg)f=h(gf)(h \circ g) \circ f = h \circ (g \circ f);
  2. if ff and gg are bijections, then so is gfg \circ f;
  3. if ff is a bijection, there is exactly one function f1:BAf^{-1} : B \to A with f1f=idAf^{-1} \circ f = \mathrm{id}_A and ff1=idBf \circ f^{-1} = \mathrm{id}_B, and f1f^{-1} is itself a bijection.

Discussion.

The first part is an equality of two functions with the same domain and codomain, so it is proved by evaluating both at an arbitrary point and unfolding the definition of a composite twice on each side; the two unfoldings meet at h(g(f(a)))h(g(f(a))), and nothing about ff, gg or hh beyond their being functions is used. The second splits along the definition of bijection: injectivity is proved by peeling the two functions off an equation of images in the order they were applied, surjectivity by producing a preimage in two steps, first under gg and then under ff. The third is a construction rather than a deduction: surjectivity of ff says each bBb \in B has at least one preimage and injectivity says it has at most one, so “the” preimage is a well-defined function of bb, and the two composites collapse to the identity by construction. That f1f^{-1} is again a bijection follows because ff does for f1f^{-1} exactly what f1f^{-1} does for ff.

Proof.

For the first part, let aAa \in A. Then

((hg)f)(a)=(hg)(f(a))=h(g(f(a)))=h((gf)(a))=(h(gf))(a),\bigl((h \circ g) \circ f\bigr)(a) = (h \circ g)\bigl(f(a)\bigr) = h\Bigl(g\bigl(f(a)\bigr)\Bigr) = h\bigl((g \circ f)(a)\bigr) = \bigl(h \circ (g \circ f)\bigr)(a),

and as aa was arbitrary the two functions are equal.

For the second, suppose ff and gg are bijections. If g(f(a))=g(f(a))g(f(a)) = g(f(a')) then f(a)=f(a)f(a) = f(a') because gg is injective, and then a=aa = a' because ff is injective; so gfg \circ f is injective. Given cCc \in C, surjectivity of gg supplies bBb \in B with g(b)=cg(b) = c, and surjectivity of ff supplies aAa \in A with f(a)=bf(a) = b, whence (gf)(a)=c(g \circ f)(a) = c; so gfg \circ f is surjective.

For the third, let ff be a bijection and let bBb \in B. Surjectivity gives at least one aAa \in A with f(a)=bf(a) = b, and injectivity gives at most one, so there is exactly one; define f1(b)f^{-1}(b) to be it. Then f(f1(b))=bf(f^{-1}(b)) = b for every bb, and for aAa \in A the element f1(f(a))f^{-1}(f(a)) is the unique preimage of f(a)f(a), which is aa. So the two composites are the identities. If k:BAk : B \to A also satisfies them, then k=kidB=k(ff1)=(kf)f1=idAf1=f1k = k \circ \mathrm{id}_B = k \circ (f \circ f^{-1}) = (k \circ f) \circ f^{-1} = \mathrm{id}_A \circ f^{-1} = f^{-1} by the first part, which is uniqueness. Finally, the same two equations read with the roles of ff and f1f^{-1} exchanged say that f1f^{-1} has an inverse, namely ff; so f1f^{-1} is injective, since f1(b)=f1(b)f^{-1}(b) = f^{-1}(b') gives b=f(f1(b))=f(f1(b))=bb = f(f^{-1}(b)) = f(f^{-1}(b')) = b', and surjective, since a=f1(f(a))a = f^{-1}(f(a)) for every aAa \in A.

Symmetries of the Square

The informal account leaves “moving without tearing or stretching” undefined. What such a movement does not change is the distance between any two points of the figure, and that is enough to pin the notion down.

Definition 1.22 (Symmetry).

Let PR2P \subset \mathbb{R}^2 be a non-empty subset. A symmetry of PP is a bijection f:PPf : P \to P that preserves distances, meaning

f(x)f(y)=xyfor all x,yP.\lVert f(x) - f(y) \rVert = \lVert x - y \rVert \qquad \text{for all } x, y \in P.

The distance-preserving condition is what “not tearing or stretching” amounts to, and the norm it is stated with is the one from the first chapter of this lesson. Nothing in the definition mentions turns or flips; those are conclusions, not assumptions.

We work with one figure throughout, the unit square centred at the origin with its edges parallel to the axes.

Definition 1.23 (The square SS).

S={(x,y)R2    12x12,  12y12}.S = \Bigl\{ (x, y) \in \mathbb{R}^2 \;\Bigm|\; -\tfrac{1}{2} \leqslant x \leqslant \tfrac{1}{2}, \; -\tfrac{1}{2} \leqslant y \leqslant \tfrac{1}{2} \Bigr\}.

Its four corners, numbered anticlockwise from the top right, are

c1=(12,12),c2=(12,12),c3=(12,12),c4=(12,12),c_1 = \bigl(\tfrac{1}{2}, \tfrac{1}{2}\bigr), \quad c_2 = \bigl(-\tfrac{1}{2}, \tfrac{1}{2}\bigr), \quad c_3 = \bigl(-\tfrac{1}{2}, -\tfrac{1}{2}\bigr), \quad c_4 = \bigl(\tfrac{1}{2}, -\tfrac{1}{2}\bigr),

and we call them the vertices of SS.

xyc1c2c3c4½−½½−½
Figure 1.10. The square SS and its vertices.

Eight symmetries of SS can be written down by inspection: the movement which does nothing; the clockwise rotations through 9090^\circ, 180180^\circ and 270270^\circ; the reflections in the vertical and the horizontal axis; and the reflections in the two diagonals.

Problem 1.7.

For each of the eight symmetries just listed, determine which vertex it sends c1c_1 to.

Whether that list is complete is not obvious. A symmetry is heavily constrained by what it does to the four vertices, so the vertices must first be made recognisable from the distance structure alone.

Proposition 1.24 (Symmetries send vertices to vertices).

Let ff be a symmetry of SS. Then f(c)f(c) is a vertex of SS whenever cc is.

Discussion.

A symmetry knows nothing about corners; all it preserves is distance. So the proof has to characterise the four vertices by a distance condition, and the natural candidate is that they are the points lying furthest apart. We therefore first show that xy2\lVert x - y \rVert \leqslant \sqrt{2} for all x,ySx, y \in S, with equality exactly when xx and yy are diagonally opposite vertices; this is a computation on coordinates, since each coordinate of xyx - y has absolute value at most 11 and equality in the sum of squares forces equality in each term. That done, a point of SS is a vertex if and only if some point of SS is at distance 2\sqrt{2} from it, a condition stated purely in distances. Applying ff to such a pair preserves the distance, so the image of a vertex again has a partner at distance 2\sqrt{2} and is therefore a vertex.

Proof.

Let x=(x1,x2)x = (x_1, x_2) and y=(y1,y2)y = (y_1, y_2) lie in SS. Each of x1,y1x_1, y_1 lies between 12-\tfrac{1}{2} and 12\tfrac{1}{2}, so x1y11|x_1 - y_1| \leqslant 1, and likewise x2y21|x_2 - y_2| \leqslant 1. Hence

xy2=(x1y1)2+(x2y2)21+1=2,\lVert x - y \rVert^2 = (x_1 - y_1)^2 + (x_2 - y_2)^2 \leqslant 1 + 1 = 2,

so xy2\lVert x - y \rVert \leqslant \sqrt{2}. Equality forces (x1y1)2=(x2y2)2=1(x_1 - y_1)^2 = (x_2 - y_2)^2 = 1, hence xiyi=1|x_i - y_i| = 1 for i=1,2i = 1, 2; and since both coordinates are confined to an interval of length 11, this happens only when one of them is 12-\tfrac{1}{2} and the other 12\tfrac{1}{2}. So equality holds exactly when xx and yy are vertices with both coordinates opposite, that is, when they are diagonally opposite vertices.

Consequently a point xSx \in S is a vertex if and only if there is some xSx' \in S with xx=2\lVert x - x' \rVert = \sqrt{2}: if xx is a vertex, take xx' diagonally opposite; and conversely the equality case just described makes xx a vertex.

Now let ff be a symmetry and cc a vertex, and choose cc' with cc=2\lVert c - c' \rVert = \sqrt{2}. Then

f(c)f(c)=cc=2,\lVert f(c) - f(c') \rVert = \lVert c - c' \rVert = \sqrt{2},

and f(c)f(c') lies in SS, so f(c)f(c) is a vertex by the criterion.

Example 1.25 (A quarter-turn on the vertices).

The anticlockwise rotation through 9090^\circ sends (x,y)(x, y) to (y,x)(-y, x). On the vertices it acts by

c1c2,c2c3,c3c4,c4c1,c_1 \mapsto c_2, \qquad c_2 \mapsto c_3, \qquad c_3 \mapsto c_4, \qquad c_4 \mapsto c_1,

which is the numbering running one step anticlockwise, as it should be.

The second constraint is that the vertices pin down every other point of the square.

Proposition 1.26 (Two adjacent vertices locate a point).

Let dd and dd' be vertices of SS with dd=1\lVert d - d' \rVert = 1, and let p,qSp, q \in S satisfy

pd=qdandpd=qd.\lVert p - d \rVert = \lVert q - d \rVert \qquad \text{and} \qquad \lVert p - d' \rVert = \lVert q - d' \rVert.

Then p=qp = q.

Discussion.

The claim is that two distances determine a point, so what we want is to recover each coordinate of pp from the two given numbers. Adjacent vertices agree in one coordinate and differ by 11 in the other, which is what makes the recovery possible: subtracting the two squared distances cancels the coordinate they agree in, and what survives is a multiple of the coordinate they differ in. That coordinate is therefore determined outright. Feeding it back into either squared distance determines the square of the remaining coordinate’s offset from the shared value, and a square leaves two candidates; the ambiguity is killed by the fact that pp lies in SS, which forces the offset to have a known sign. Since every step determines a quantity from the two given distances alone, qq must produce the same values, and the two points agree.

Proof.

Write d=(d1,d2)d = (d_1, d_2) and d=(d1,d2)d' = (d'_1, d'_2). Since dd and dd' are vertices at distance 11, they agree in one coordinate and differ in the other. Say they agree in coordinate ll and differ in coordinate kk, where {k,l}={1,2}\{k, l\} = \{1, 2\}, and write

dk=ε2,dk=ε2,dl=dl=δ2,d_k = \tfrac{\varepsilon}{2}, \qquad d'_k = -\tfrac{\varepsilon}{2}, \qquad d_l = d'_l = \tfrac{\delta}{2},

with ε,δ{1,1}\varepsilon, \delta \in \{1, -1\}.

Let p=(p1,p2)Sp = (p_1, p_2) \in S. Expanding and cancelling the terms in coordinate ll,

pd2pd2=(pk+ε2)2(pkε2)2=2εpk,\lVert p - d' \rVert^2 - \lVert p - d \rVert^2 = \bigl(p_k + \tfrac{\varepsilon}{2}\bigr)^2 - \bigl(p_k - \tfrac{\varepsilon}{2}\bigr)^2 = 2\varepsilon p_k,

so pkp_k is determined by the two distances. Then

(plδ2)2=pd2(pkε2)2\bigl(p_l - \tfrac{\delta}{2}\bigr)^2 = \lVert p - d \rVert^2 - \bigl(p_k - \tfrac{\varepsilon}{2}\bigr)^2

is determined as well. Since pSp \in S we have pl12|p_l| \leqslant \tfrac{1}{2}, so δ(plδ2)=δpl120\delta\bigl(p_l - \tfrac{\delta}{2}\bigr) = \delta p_l - \tfrac{1}{2} \leqslant 0; that is, plδ2p_l - \tfrac{\delta}{2} is δ-\delta times a non-negative number, and it is therefore the one square root of the displayed quantity carrying that sign. Hence plp_l is determined too.

Every quantity in this computation depends only on pd\lVert p - d \rVert and pd\lVert p - d' \rVert. The point qq has the same two distances, so the same computation returns the same coordinates, and p=qp = q.

Remark (The same fact drawn).

Geometrically the proposition says that two circles centred at adjacent vertices meet in at most one point of SS. Two distinct circles meet in at most two points, and those two are mirror images of one another in the line through the centres. Here that line is an edge of the square, so one of the two intersections lies on the square’s side of the edge and the other lies outside SS altogether.

ddpp
Figure 1.11. Circles centred at two adjacent vertices. Of their two intersections only pp lies in SS; the other, pp', is its mirror image in the edge and lies outside.

Proposition 1.27 (A symmetry is determined by the vertices).

Let ff and gg be symmetries of SS with f(ci)=g(ci)f(c_i) = g(c_i) for i=1,2,3,4i = 1, 2, 3, 4. Then f=gf = g.

Discussion.

This is a uniqueness claim about functions, so we fix an arbitrary xSx \in S and prove f(x)=g(x)f(x) = g(x). The tool is the proposition above, which needs two things: a pair of adjacent vertices, and the two points f(x)f(x) and g(x)g(x) standing at equal distances from each of them. The pair to use is f(c1)f(c_1) and f(c2)f(c_2), adjacent because ff preserves the distance c1c2=1\lVert c_1 - c_2 \rVert = 1 and by the previous proposition sends both to vertices. The equal distances come from distance preservation applied to each of ff and gg in turn: both f(x)f(ci)\lVert f(x) - f(c_i) \rVert and g(x)g(ci)\lVert g(x) - g(c_i) \rVert equal xci\lVert x - c_i \rVert, and the hypothesis makes f(ci)f(c_i) and g(ci)g(c_i) the same point, so the two distances are measured from the same place. That proposition then closes the argument.

Proof.

The vertices c1c_1 and c2c_2 satisfy c1c2=1\lVert c_1 - c_2 \rVert = 1. By the previous proposition f(c1)f(c_1) and f(c2)f(c_2) are vertices, and

f(c1)f(c2)=c1c2=1,\lVert f(c_1) - f(c_2) \rVert = \lVert c_1 - c_2 \rVert = 1,

so they are adjacent. Let xSx \in S and let i{1,2}i \in \{1, 2\}. Since ff preserves distances,

f(x)f(ci)=xci,\lVert f(x) - f(c_i) \rVert = \lVert x - c_i \rVert,

and since gg does too, together with g(ci)=f(ci)g(c_i) = f(c_i),

g(x)f(ci)=g(x)g(ci)=xci.\lVert g(x) - f(c_i) \rVert = \lVert g(x) - g(c_i) \rVert = \lVert x - c_i \rVert.

So f(x)f(x) and g(x)g(x) are points of SS at equal distances from each of the adjacent vertices f(c1)f(c_1) and f(c2)f(c_2). The proposition above gives f(x)=g(x)f(x) = g(x), and as xx was arbitrary, f=gf = g.

Remark (Not every shuffle of the corners is a symmetry).

The proposition says a symmetry is determined by its effect on the vertices, not that every map of the vertices to themselves comes from one. Consider the assignment

c1c2,c2c3,c3c1,c4c4.c_1 \mapsto c_2, \qquad c_2 \mapsto c_3, \qquad c_3 \mapsto c_1, \qquad c_4 \mapsto c_4.

Here c1c4=1\lVert c_1 - c_4 \rVert = 1 while the images satisfy c2c4=2\lVert c_2 - c_4 \rVert = \sqrt{2}, so the assignment changes a distance and cannot be the restriction of a symmetry.

Proposition 1.28 (The square has exactly eight symmetries).

There are exactly eight symmetries of SS, namely the eight listed above.

Discussion.

The eight are known to exist, so the work is the upper bound: no ninth symmetry can hide anywhere. By the last proposition a symmetry is settled once its values on the four vertices are known, so it is enough to count the possible sets of values, and that count is made one vertex at a time. There are four choices for f(c1)f(c_1). Given it, f(c2)f(c_2) must be a vertex at distance 11 from f(c1)f(c_1), and each vertex has exactly two neighbours, so two choices. The remaining two values are then forced rather than chosen, because c3c_3 is diagonally opposite c1c_1 and c4c_4 diagonally opposite c2c_2, and a symmetry preserves the distance 2\sqrt{2} that says so. Four times two is eight, and since the eight listed symmetries are distinct, every count is attained.

Proof.

Let ff be a symmetry of SS. By the proposition on vertices, ff carries each cic_i to a vertex, so there are at most four possibilities for f(c1)f(c_1).

Suppose f(c1)f(c_1) is fixed. Since c1c2=1\lVert c_1 - c_2 \rVert = 1, the vertex f(c2)f(c_2) satisfies f(c1)f(c2)=1\lVert f(c_1) - f(c_2) \rVert = 1, so it is one of the two vertices adjacent to f(c1)f(c_1): two possibilities.

Now c1c3=2\lVert c_1 - c_3 \rVert = \sqrt{2}, so f(c1)f(c3)=2\lVert f(c_1) - f(c_3) \rVert = \sqrt{2}, and by the equality case established earlier f(c3)f(c_3) is the vertex diagonally opposite f(c1)f(c_1). It is therefore determined by f(c1)f(c_1). The same argument determines f(c4)f(c_4) as the vertex diagonally opposite f(c2)f(c_2).

So the values of ff on the four vertices are settled by at most 42=84 \cdot 2 = 8 combinations, and by the previous proposition ff is settled by those values. Hence there are at most eight symmetries. The eight movements listed act differently on the vertices, so they are eight distinct symmetries, and the count is exact.

Combining Symmetries

Proposition 1.29 (Symmetries compose and invert).

Let PR2P \subset \mathbb{R}^2 be non-empty and let f,gf, g be symmetries of PP. Then fgf \circ g is a symmetry of PP, the identity map on PP is a symmetry of PP, and f1f^{-1} is a symmetry of PP.

Discussion.

Each of the three claims asks for two things, that a certain map is a bijection PPP \to P and that it preserves distances, and the proposition on composition and inverses supplies the first half in every case. What is left is distance, and each case is one line. For the composite, apply the hypothesis on gg and then the hypothesis on ff to the pair it produced. For the identity, there is nothing to check. For the inverse, note that an arbitrary pair of points of PP can be written as f(x),f(y)f(x), f(y), because ff is onto, and then the condition on ff read backwards is the condition on f1f^{-1}.

Proof.

Let x,yPx, y \in P. Since gg and then ff preserve distances,

f(g(x))f(g(y))=g(x)g(y)=xy,\lVert f(g(x)) - f(g(y)) \rVert = \lVert g(x) - g(y) \rVert = \lVert x - y \rVert,

and fgf \circ g is a bijection PPP \to P by the second part of the proposition on composition and inverses, so it is a symmetry. The identity map is a bijection and leaves both sides of the condition untouched.

For the inverse, f1f^{-1} is a bijection PPP \to P by the third part of that proposition. Let u,vPu, v \in P; since ff is surjective there are x,yPx, y \in P with u=f(x)u = f(x) and v=f(y)v = f(y), and then f1(u)=xf^{-1}(u) = x, f1(v)=yf^{-1}(v) = y. Hence

f1(u)f1(v)=xy=f(x)f(y)=uv.\lVert f^{-1}(u) - f^{-1}(v) \rVert = \lVert x - y \rVert = \lVert f(x) - f(y) \rVert = \lVert u - v \rVert.

Definition 1.30 (Product of symmetries).

For symmetries ff and gg of a set PP we write fgfg for the composite fgf \circ g, so that

(fg)(x)=f(g(x))for every xP.(fg)(x) = f\bigl(g(x)\bigr) \qquad \text{for every } x \in P.

The symmetry gg is performed first and ff second.

Composition of maps is associative, so a product of several symmetries may be written without brackets. From here on rr denotes the anticlockwise quarter-turn of SS and ss the reflection in the horizontal axis, that is

r(x,y)=(y,x),s(x,y)=(x,y).r(x, y) = (-y, x), \qquad s(x, y) = (x, -y).

Example 1.31 (Powers of the quarter-turn).

Repeating rr gives the other rotations:

r2=rotation through 180,r3=rotation through 270,r4=e.r^2 = \text{rotation through } 180^\circ, \qquad r^3 = \text{rotation through } 270^\circ, \qquad r^4 = e.

Since r4=er^4 = e, the inverse of rr is r3r^3.

Example 1.32 (rssrrs \neq sr).

Read off the action on c1c_1. We have s(c1)=c4s(c_1) = c_4 and r(c4)=c1r(c_4) = c_1, so

(rs)(c1)=r(s(c1))=r(c4)=c1.(rs)(c_1) = r\bigl(s(c_1)\bigr) = r(c_4) = c_1.

On the other hand r(c1)=c2r(c_1) = c_2 and s(c2)=c3s(c_2) = c_3, so (sr)(c1)=c3(sr)(c_1) = c_3. The two symmetries disagree at c1c_1, hence rssrrs \neq sr.

That is the first operation we have met which is not commutative: the order of the two movements is part of the data, not a convention about how the formula is written.

Problem 1.8.

Identify rsrs and srsr among the eight symmetries listed earlier, describing each as a rotation or as a reflection in a named axis.

The two generators are not independent. Computing both sides on a general point,

(sr)(x,y)=s(y,x)=(y,x),(r1s)(x,y)=r1(x,y)=(y,x),(sr)(x, y) = s(-y, x) = (-y, -x), \qquad (r^{-1}s)(x, y) = r^{-1}(x, -y) = (-y, -x),

so sr=r1ssr = r^{-1}s; multiplying on the right by ss and using s2=es^2 = e gives the equivalent form srs=r1srs = r^{-1}. The relation lets any product of rr‘s and ss‘s be rewritten with all the rr‘s on the left, and the resulting shapes are

e,r,r2,r3,s,rs,r2s,r3s.e, \quad r, \quad r^2, \quad r^3, \quad s, \quad rs, \quad r^2 s, \quad r^3 s.

These are eight symmetries and they are distinct, so by the counting proposition they are exactly the eight symmetries of the square. The first four are the rotations and the last four the reflections.

Groups

The symmetries of the square use four facts and nothing else: combining two of them gives a third; there is an identity; every one of them can be undone; and combining is associative. The axioms of a group are exactly those four.

Definition 1.33 (Binary operation).

A binary operation on a set GG is a function :G×GG\star : G \times G \to G. We write aba \star b for the value of \star at the ordered pair (a,b)(a, b).

Definition 1.34 (Group).

A group is a pair (G,)(G, \star) consisting of a set GG and a binary operation \star on GG satisfying:

  1. (G1) Associativity. (fg)h=f(gh)(f \star g) \star h = f \star (g \star h) for all f,g,hGf, g, h \in G;
  2. (G2) Identity. there is an eGe \in G with eg=ge=ge \star g = g \star e = g for every gGg \in G;
  3. (G3) Inverses. for every gGg \in G there is an hGh \in G with gh=hg=eg \star h = h \star g = e.

The element ee of (G2) is the identity, or neutral element, and the element hh of (G3) is an inverse of gg. Both turn out to be unique, and the inverse of gg is then written g1g^{-1}.

The first of the four facts about symmetries, that combining two gives a third, does not appear as an axiom because it is already in the definition of a binary operation: the codomain of \star is GG, so a product of two elements of GG is an element of GG and there is nothing further to require.

Remark (The closure axiom).

Some texts add a fourth axiom, closure: if g,kGg, k \in G then gkGg \star k \in G. Under our definition that is automatic, for the reason just given. It has to be stated when the operation is introduced as something defined on a larger set and then restricted, since one must then check that the restriction lands back inside GG.

Remark (Writing the operation).

The symbol \star is usually replaced by a dot, and the dot is usually dropped: we write ghgh for ghg \star h and call it the product of gg and hh, exactly as for a product of numbers. This is a convention about notation, not a claim that the operation resembles multiplication, and in particular it does not license writing gh=hggh = hg.

Associativity means that a product of three elements may be written ghkghk with no bracket, since the two possible bracketings agree. The same then holds for longer products: an expression such as ((a1a2)(a3a4))a5((a_1a_2)(a_3a_4))a_5 has the same value as every other bracketing of a1,,a5a_1, \ldots, a_5 in that order, and we write it a1a2a3a4a5a_1a_2a_3a_4a_5. From here on products of any length are written without brackets.

Problem 1.9.

Let (G,)(G, \star) be a group and let a1,,anGa_1, \ldots, a_n \in G. Prove that every way of bracketing the product a1a2ana_1 \star a_2 \star \cdots \star a_n, keeping the terms in that order, gives the same element of GG.

Problem 1.10.

Let cnc_n be the number of ways of bracketing a product a1a2ana_1 \star a_2 \star \cdots \star a_n, keeping the terms in that order, so that c2=1c_2 = 1, c3=2c_3 = 2 and c4=5c_4 = 5, and set c1=1c_1 = 1.

  1. Explain why cn=c1cn1+c2cn2++cn1c1c_n = c_1 c_{n-1} + c_2 c_{n-2} + \cdots + c_{n-1} c_1.
  2. Use the recurrence to compute c5c_5 and c6c_6.

Definition 1.35 (Abelian group).

A group (G,)(G, \star) is commutative, or abelian, if it satisfies the further condition

gh=hgfor all g,hG.gh = hg \qquad \text{for all } g, h \in G.

Example 1.36 (Two groups).

The integers under addition, (Z,+)(\mathbb{Z}, +), form an infinite abelian group: addition is associative, 00 is the identity, and the inverse of nn is n-n. The symmetries of the square under composition form a finite group which is not abelian, since rssrrs \neq sr.

Remark (Associativity is not commutativity).

Associativity says (fg)h=f(gh)(fg)h = f(gh) and commutativity says fg=gffg = gf; the two are easy to confuse and are not related. Associativity holds in every group by definition, while commutativity is an extra condition that a group may or may not satisfy.

For symmetries, associativity is free. Both (fg)h(fg)h and f(gh)f(gh) mean: perform hh, then gg, then ff. The brackets only divide the calculation into stages and do not touch the order in which the movements happen. Operations that are not associative do exist, subtraction on R\mathbb{R} being one, since (ab)c(a - b) - c and a(bc)a - (b - c) usually differ; but they cannot arise from composing functions, which is associative always.

Proposition 1.37 (The identity is unique).

Let (G,)(G, \star) be a group. If ee and ee' both satisfy the condition (G2), then e=ee = e'.

Discussion.

The statement is an equality of two elements, and the only material available is that each of them is neutral. The move is to form the one product in which both hypotheses can be used, namely eee \star e', and evaluate it twice: treating ee as an identity leaves ee', and treating ee' as an identity leaves ee. No contradiction and no case split is needed, and neither associativity nor inverses enter.

Proof.

Since ee' satisfies (G2), we have ee=ee \star e' = e. Since ee satisfies (G2), we have ee=ee \star e' = e'. Hence e=ee=ee = e \star e' = e'.

Proposition 1.38 (Inverses are unique).

Let (G,)(G, \star) be a group with identity ee, and let g,g,gGg, g', g'' \in G satisfy

gg=e=ggandgg=e=gg.g g' = e = g' g \qquad \text{and} \qquad g g'' = e = g'' g.

Then g=gg' = g''.

Discussion.

Again the goal is an equality of two elements and the hypotheses are two equations, so we build one expression that both can act on: the triple product gggg' g g''. Read with the brackets to the left it uses gg=eg'g = e and collapses to gg''; read with the brackets to the right it uses gg=egg'' = e and collapses to gg'. Associativity is what says the two readings are the same element, and it is the whole content of the proof.

Proof.

Using associativity in the middle step,

g=eg=(gg)g=g(gg)=ge=g.g'' = e g'' = (g' g) g'' = g' (g g'') = g' e = g'.

Because of this proposition the inverse of gg may be named, and we write it g1g^{-1}.

Problem 1.11.

The following is offered as a proof of the last proposition: “from the hypotheses, g=g1g' = g^{-1} and g=g1g'' = g^{-1}, so g=gg' = g''.” Explain why it is not one.

Proposition 1.39 (Solving an equation in a group).

Let (G,)(G, \cdot) be a group and let g,hGg, h \in G.

  1. For xGx \in G we have gx=hgx = h if and only if x=g1hx = g^{-1}h;
  2. for yGy \in G we have yg=hyg = h if and only if y=hg1y = hg^{-1}.

Discussion.

Each part is a biconditional between two equations, so each direction is proved by multiplying the given equation by g1g^{-1} on the appropriate side and simplifying with the axioms. Which side matters: the first part multiplies on the left throughout, because the unknown sits to the right of gg, and the second multiplies on the right for the mirror-image reason. There is no step where the two factors are exchanged, which is what makes the two parts genuinely different statements in a group that is not abelian.

Proof.

For the first part, suppose gx=hgx = h. Multiplying on the left by g1g^{-1} gives g1(gx)=g1hg^{-1}(gx) = g^{-1}h, and associativity turns the left side into (g1g)x=ex=x(g^{-1}g)x = ex = x, so x=g1hx = g^{-1}h. Conversely, suppose x=g1hx = g^{-1}h. Multiplying on the left by gg gives gx=g(g1h)=(gg1)h=eh=hgx = g(g^{-1}h) = (gg^{-1})h = eh = h.

Problem 1.12.

Prove the second part of the last proposition.

Proposition 1.40 (Inverse of a product).

Let (G,)(G, \cdot) be a group and let g,hGg, h \in G. Then (gh)1=h1g1(gh)^{-1} = h^{-1}g^{-1}.

Discussion.

By the uniqueness of inverses it is enough to check that the proposed element does what an inverse of ghgh has to do, so the proof is a computation rather than a search: multiply h1g1h^{-1}g^{-1} by ghgh on one side and cancel from the middle outwards, then do the same on the other side. The order in which the two factors are reversed is forced by exactly this cancellation, since it is g1g^{-1} that has to meet gg first.

Proof.

Using associativity to bracket at will,

(h1g1)(gh)=h1(g1g)h=h1eh=h1h=e,(h^{-1}g^{-1})(gh) = h^{-1}(g^{-1}g)h = h^{-1} e h = h^{-1}h = e,

and symmetrically (gh)(h1g1)=g(hh1)g1=gg1=e(gh)(h^{-1}g^{-1}) = g(hh^{-1})g^{-1} = gg^{-1} = e. So h1g1h^{-1}g^{-1} is an inverse of ghgh, and by uniqueness it is (gh)1(gh)^{-1}.

Problem 1.13.

Let (G,)(G, \cdot) be a group and let g1,,gnGg_1, \ldots, g_n \in G. Prove that

(g1g2gn)1=gn1g21g11.(g_1 g_2 \cdots g_n)^{-1} = g_n^{-1} \cdots g_2^{-1} g_1^{-1}.

Groups of Small Order

Definition 1.41 (Order of a group).

A group (G,)(G, \cdot) is a finite group if the set GG is finite. The order of a finite group is the cardinality #(G)\#(G), the number of its elements. Every group has an identity, so GG is never empty and its order is at least 11.

Remark (Infinite groups).

Not every group is finite. The unit circle in R2\mathbb{R}^2 has infinitely many symmetries, one rotation for each angle, and (Z,+)(\mathbb{Z}, +) is infinite as well.

To speak of an element repeating itself we need powers, and the definition is the one arithmetic suggests.

Definition 1.42 (Powers).

Let (G,)(G, \cdot) be a group and gGg \in G. Define g0=eg^0 = e and gn+1=gngg^{n+1} = g^n g for n0n \geqslant 0, and set gn=(g1)ng^{-n} = (g^{-1})^n for n1n \geqslant 1.

Proposition 1.43 (Laws of exponents).

Let (G,)(G, \cdot) be a group, let gGg \in G and let m,nm, n be integers. Then

gm+n=gmgnand(gm)n=gmn.g^{m+n} = g^m g^n \qquad \text{and} \qquad (g^m)^n = g^{mn}.

Discussion.

Both identities are statements about all integers, but the definition of a power is a recursion on the non-negative ones, so the natural route is induction for m,n0m, n \geqslant 0 followed by a reduction of the remaining sign cases to that one. The induction for the first identity runs on nn: the base case is the definition of g0g^0, and the step is the recursion clause together with associativity. The second identity then follows from the first by a second induction on nn. For negative exponents the key observation is that g1g^{-1} has the same structure, and that gng^n and gng^{-n} are inverse to one another, which converts a negative exponent into a positive one on the inverse element.

Proof.

Take first m0m \geqslant 0 and induct on n0n \geqslant 0. For n=0n = 0 both sides are gmg^m, since g0=eg^0 = e. If gm+n=gmgng^{m+n} = g^m g^n, then

gm+(n+1)=g(m+n)+1=gm+ng=(gmgn)g=gm(gng)=gmgn+1,g^{m + (n+1)} = g^{(m+n)+1} = g^{m+n} g = (g^m g^n) g = g^m (g^n g) = g^m g^{n+1},

which is the claim at n+1n + 1. A second induction on n0n \geqslant 0 gives (gm)n=gmn(g^m)^n = g^{mn}: the case n=0n = 0 reads e=g0e = g^0, and the step is (gm)n+1=(gm)ngm=gmngm=gmn+m=gm(n+1)(g^m)^{n+1} = (g^m)^n g^m = g^{mn} g^m = g^{mn + m} = g^{m(n+1)}, using the first identity.

For the sign cases, note that gngn=eg^n g^{-n} = e for n0n \geqslant 0, by induction on nn using the first identity for the inverse element; so gn=(gn)1g^{-n} = (g^n)^{-1}. Any instance of the two identities with negative exponents now follows by rewriting each negative power as the inverse of a positive one and applying the proposition on the inverse of a product.

Definition 1.44 (Order of an element).

Let (G,)(G, \cdot) be a group and gGg \in G. The order of gg is the smallest nNn \in \mathbb{N} with gn=eg^n = e, and is \infty if there is no such nn.

Example 1.45 (Orders in the group of the square).

In the group of symmetries of the square the identity has order 11; the quarter-turns rr and r3r^3 have order 44; and the remaining five elements, the half-turn r2r^2 and the four reflections ss, rsrs, r2sr^2s, r3sr^3s, all have order 22.

Proposition 1.46 (Orders are bounded by the order of the group).

Let GG be a finite group of order nn. Then every element of GG has order at most nn.

Discussion.

The claim is that some power of gg within reach is the identity, and the only resource is that GG has just nn elements. Listing n+1n + 1 powers of gg therefore forces a repetition, and a repetition ga=gbg^a = g^b with a<ba < b is exactly what we want: cancelling gag^a from both sides, which the group allows, leaves gba=eg^{b-a} = e with the exponent between 11 and nn. The definition of order then bounds it by that exponent.

Proof.

Let gGg \in G and consider the n+1n + 1 elements g0,g1,,gng^0, g^1, \ldots, g^n of GG. Since GG has only nn elements they cannot all be distinct, so there are a,ba, b with 0a<bn0 \leqslant a < b \leqslant n and ga=gbg^a = g^b. Multiplying by (ga)1=ga(g^a)^{-1} = g^{-a} and using the laws of exponents gives

e=gbga=gba,e = g^{b} g^{-a} = g^{b-a},

with 1ban1 \leqslant b - a \leqslant n. So the set of positive exponents killing gg is non-empty, and the least of them, which is the order of gg, is at most nn.

Remark (Lagrange).

More is true: in a finite group the order of every element divides the order of the group. That is Lagrange’s theorem, and it belongs to a course on abstract algebra rather than here. The finiteness of GG is what the argument above uses, not merely that orders are finite; there are infinite groups in which every element has finite order.

Proposition 1.47 (Rows and columns of the table).

Let (G,)(G, \cdot) be a group and let xGx \in G. Then the maps yxyy \mapsto xy and yyxy \mapsto yx are bijections from GG to GG. In a finite group, therefore, each element appears exactly once in every row and exactly once in every column of the multiplication table.

Discussion.

Each map is a bijection because an explicit inverse is available: multiplying by x1x^{-1} on the same side undoes it, which is the content of the proposition on solving gx=hgx = h. The statement about the table is a translation, since the row labelled xx lists the values of yxyy \mapsto xy as yy runs over GG; a bijection from a finite set to itself hits each element exactly once, so no entry is missing and none is repeated.

Proof.

Let L(y)=xyL(y) = xy and M(y)=x1yM(y) = x^{-1}y. Then M(L(y))=x1(xy)=(x1x)y=yM(L(y)) = x^{-1}(xy) = (x^{-1}x)y = y and likewise L(M(y))=yL(M(y)) = y, so LL is a bijection with inverse MM. The argument for yyxy \mapsto yx is the same with the multiplications on the other side.

The row of the multiplication table labelled xx has the entry xyxy in the column labelled yy, so its entries are the values of LL. As LL is a bijection of the finite set GG onto itself, every element of GG occurs among them exactly once. Columns are handled by the other map.

Definition 1.48 (Isomorphism).

Let (G,)(G, \cdot) and (G,)(G', \cdot) be groups. An isomorphism from GG to GG' is a bijection φ:GG\varphi : G \to G' with

φ(ab)=φ(a)φ(b)for all a,bG.\varphi(ab) = \varphi(a)\,\varphi(b) \qquad \text{for all } a, b \in G.

If one exists, GG and GG' are isomorphic, written GGG \cong G'.

Two isomorphic groups may be built from entirely different material, one from movements of a figure and one from numbers, and still be the same group as far as the operation is concerned: the isomorphism is a dictionary translating products into products.

Proposition 1.49 (What an isomorphism preserves).

Let φ:GG\varphi : G \to G' be an isomorphism, with identities ee and ee'. Then φ(e)=e\varphi(e) = e', and for every aGa \in G and every integer nn,

φ(a1)=φ(a)1,φ(an)=φ(a)n.\varphi(a^{-1}) = \varphi(a)^{-1}, \qquad \varphi(a^n) = \varphi(a)^n .

Moreover aa and φ(a)\varphi(a) have the same order.

Discussion.

The hypothesis is a single equation, φ(ab)=φ(a)φ(b)\varphi(ab) = \varphi(a)\varphi(b), so each claim has to be manufactured from it by a well-chosen substitution. Taking a=b=ea = b = e makes the equation say φ(e)=φ(e)φ(e)\varphi(e) = \varphi(e)\varphi(e), which cancels to the first claim. Taking b=a1b = a^{-1} then says e=φ(a)φ(a1)e' = \varphi(a)\varphi(a^{-1}), which identifies the second. The power law follows by induction on n0n \geqslant 0, the negative case by combining the two claims already made. The statement about orders uses bijectivity: injectivity turns φ(an)=φ(e)\varphi(a^n) = \varphi(e) back into an=ea^n = e, so the positive exponents killing aa are exactly those killing φ(a)\varphi(a), and two sets of positive integers that coincide have the same least element.

Proof.

Putting a=b=ea = b = e gives φ(e)=φ(e)φ(e)\varphi(e) = \varphi(e)\varphi(e), and multiplying by φ(e)1\varphi(e)^{-1} gives e=φ(e)e' = \varphi(e). Putting b=a1b = a^{-1} gives φ(a)φ(a1)=φ(aa1)=φ(e)=e\varphi(a)\varphi(a^{-1}) = \varphi(aa^{-1}) = \varphi(e) = e', and symmetrically on the other side, so φ(a1)=φ(a)1\varphi(a^{-1}) = \varphi(a)^{-1}.

For n0n \geqslant 0 induct: φ(a0)=φ(e)=e=φ(a)0\varphi(a^0) = \varphi(e) = e' = \varphi(a)^0, and if φ(an)=φ(a)n\varphi(a^n) = \varphi(a)^n then φ(an+1)=φ(ana)=φ(an)φ(a)=φ(a)n+1\varphi(a^{n+1}) = \varphi(a^n a) = \varphi(a^n)\varphi(a) = \varphi(a)^{n+1}. For n<0n < 0 write an=(a1)na^n = (a^{-1})^{-n} and apply the case just proved to a1a^{-1}, using φ(a1)=φ(a)1\varphi(a^{-1}) = \varphi(a)^{-1}.

Finally, for nNn \in \mathbb{N} we have an=ea^n = e if and only if φ(an)=φ(e)\varphi(a^n) = \varphi(e), since φ\varphi is injective, and φ(an)=φ(a)n\varphi(a^n) = \varphi(a)^n while φ(e)=e\varphi(e) = e'. So an=ea^n = e if and only if φ(a)n=e\varphi(a)^n = e'. The two elements are killed by the same positive exponents, hence have the same order.

Proposition 1.50 (Cyclic groups).

Let GG be a group of order nn containing an element gg of order nn. Then

G={e,g,g2,,gn1},G = \{e, g, g^2, \ldots, g^{n-1}\},

and gagb=gcg^a g^b = g^c, where cc is the remainder of a+ba + b on division by nn. Any two such groups are isomorphic.

Discussion.

Two things need proving: that the listed powers exhaust GG, and that the operation is forced. For the first, the nn listed powers are distinct, since an equality between two of them would produce a positive exponent smaller than nn killing gg and so contradict the order of gg; being nn distinct elements of a set with nn elements they are all of it. For the second, write a+b=qn+ca + b = qn + c by division with remainder and use the laws of exponents, where gn=eg^n = e makes the multiple of nn disappear. The last sentence is then immediate: the map ga(g)ag^a \mapsto (g')^a between two such groups is a bijection by the first part and respects products by the second.

Proof.

Suppose gi=gjg^i = g^j with 0i<jn10 \leqslant i < j \leqslant n - 1. Then gji=eg^{j-i} = e with 1ji<n1 \leqslant j - i < n, contradicting the order of gg being nn. So the nn elements e,g,,gn1e, g, \ldots, g^{n-1} are distinct, and as #(G)=n\#(G) = n they are all of GG.

Let a,b0a, b \geqslant 0 and write a+b=qn+ca + b = qn + c with 0c<n0 \leqslant c < n. By the laws of exponents,

gagb=ga+b=gqn+c=(gn)qgc=eqgc=gc.g^a g^b = g^{a+b} = g^{qn + c} = (g^n)^q g^c = e^q g^c = g^c .

Finally, let GG' be another group of order nn with an element gg' of order nn. Both groups are listed by their powers as above, so φ(ga)=(g)a\varphi(g^a) = (g')^a for 0a<n0 \leqslant a < n is a well-defined bijection GGG \to G', and the displayed rule computes the product on both sides by the same remainder, so φ(gagb)=φ(ga)φ(gb)\varphi(g^ag^b) = \varphi(g^a)\varphi(g^b).

Definition 1.51 (Cyclic group).

The group described by the last proposition is the cyclic group of order nn, written CnC_n. It is abelian, since gagbg^ag^b and gbgag^bg^a are both computed from the remainder of a+ba + b.

We can now work through the small orders. Throughout, the multiplication table of a finite group has a row and a column for each element, and the entry in row xx and column yy is xyx \star y.

Order 1. The identity is the only element and the operation is ee=ee \star e = e. This is the trivial group. The letter “P”, read as a subset of R2\mathbb{R}^2, has trivial symmetry group.

Problem 1.14.

Assuming a reasonably symmetrical font, so that “Y” has a reflection symmetry in a vertical axis and “B” one in a horizontal axis, determine which capital letters have trivial symmetry group.

Order 2. Let G={e,f}G = \{e, f\}. The identity axiom fills in every entry but one:

efeefff?\begin{array}{c|cc} \star & e & f \\ \hline e & e & f \\ f & f & ? \end{array}

If ff=ff \star f = f then multiplying by f1f^{-1} gives f=ef = e, which is false. So ff=ef \star f = e, the table is forced, and ff has order 22. Hence GC2G \cong C_2, and C2C_2 is the only group of order 22.

Remark (One group, two pictures).

This group is the symmetry group of the letter “Z”, whose non-trivial element is the half-turn that carries the letter onto itself, and also of the letter “Y”, whose non-trivial element is a reflection. The two figures have nothing geometric in common; as groups they are isomorphic, and that is all the group axioms can see.

Order 3. Let G={e,f,g}G = \{e, f, g\} with f,gef, g \neq e. Row ff of the table consists of fe=ff \star e = f together with fff \star f and fgf \star g, and by the proposition on rows and columns those three entries are ee, ff and gg in some order. So {ff,fg}={e,g}\{f \star f, f \star g\} = \{e, g\}. Were ff=ef \star f = e we should have fg=gf \star g = g, and multiplying by g1g^{-1} would give f=ef = e. Hence ff=gf \star f = g and fg=ef \star g = e, which fills the table:

efgeefgffgeggef\begin{array}{c|ccc} \star & e & f & g \\ \hline e & e & f & g \\ f & f & g & e \\ g & g & e & f \end{array}

Here g=f2g = f^2 and f3=fg=ef^3 = f \star g = e, so ff has order 33 and GC3G \cong C_3.

Order 4. Two structures occur, and we separate them by the largest order of an element. By the proposition bounding orders that largest order is 11, 22, 33 or 44, and it is not 11, since then every element would be ee.

If some element has order 44, the cyclic proposition gives GC4G \cong C_4.

Suppose some gg has order 33, and put K={e,g,g2}K = \{e, g, g^2\}. Pick hGKh \in G \setminus K, which exists since #(G)=4\#(G) = 4. If hgi=gjhg^i = g^j for some i,ji, j then h=gjiKh = g^{j-i} \in K, contrary to the choice of hh; so the three elements hh, hghg, hg2hg^2 all lie outside KK, and they are distinct because yhyy \mapsto hy is injective. That gives at least 3+3=63 + 3 = 6 elements of GG, which is impossible. So no element has order 33.

The remaining case is that every element other than ee has order 22. Write G={e,f,g,h}G = \{e, f, g, h\}. Then fgefg \neq e, since fg=efg = e would make g=f1=fg = f^{-1} = f; and fgffg \neq f and fggfg \neq g, since either would force one of f,gf, g to be ee. Hence fg=hfg = h, and the same argument applied to each pair fills the table:

efgheefghffehggghefhhgfe\begin{array}{c|cccc} \star & e & f & g & h \\ \hline e & e & f & g & h \\ f & f & e & h & g \\ g & g & h & e & f \\ h & h & g & f & e \end{array}

This really is a group, because it occurs inside one we have already built: taking f=r2f = r^2, g=sg = s and h=r2sh = r^2s inside the symmetries of the square gives a set of four symmetries closed under composition, each equal to its own inverse, with exactly this table. It is the Klein four-group, written V4V_4, and it is the symmetry group of the letter “H”.

So there are exactly two groups of order 44 up to isomorphism, C4C_4 and V4V_4. They are not isomorphic: one has an element of order 44 and the other does not, and an isomorphism preserves the order of an element.

Remark (How the list grows).

All the groups above are abelian, and so is every group of order 55, though we do not prove it. The smallest non-abelian group has order 66. Tabulating the groups of order nn becomes hard quickly, especially when nn is a large power of a small prime: there are 267267 groups of order 6464.

Symmetry Groups of Regular Polygons

The symmetries of the square, with composition, satisfy the group axioms by the proposition on composing and inverting symmetries. That group has eight elements and is called the dihedral group of degree four, written D4D_4.

Remark ($D_4$ or $D_8$).

The subscript here counts the sides of the square, so D4D_4 has eight elements. Some texts write D8D_8 for the same group, counting its elements instead. Check which convention a source is using before comparing statements.

In terms of the quarter-turn rr and the reflection ss, the group is described by the relations

r4=e,s2=e,srs=r1.r^4 = e, \qquad s^2 = e, \qquad srs = r^{-1}.

These carry a surprising amount of information, because the third one lets every ss be pushed past every rr. Rewriting srsr as r1sr^{-1}s moves the rr‘s to the left, and any product of rr‘s and ss‘s collapses to one of e,r,r2,r3,s,rs,r2s,r3se, r, r^2, r^3, s, rs, r^2s, r^3s. For instance

sr2=(sr)r=(r1s)r=r1(sr)=r1(r1s)=r2s=r2s,sr^2 = (sr)r = (r^{-1}s)r = r^{-1}(sr) = r^{-1}(r^{-1}s) = r^{-2}s = r^2 s,

using r4=er^4 = e at the last step, so the half-turn commutes with ss even though the quarter-turn does not. Similarly

(rs)2=rsrs=r(srs)=rr1=e,(rs)^2 = rsrs = r(srs) = r r^{-1} = e,

so rsrs is one of the reflections: doing it twice returns the square to where it started.

An equilateral triangle has six symmetries, three rotations and three reflections. The rotations are ee, rr and r2r^2, where rr is the rotation through 120120^\circ, and they satisfy r3=er^3 = e. Each reflection fixes one vertex and exchanges the other two; if ss is one of them, the other two are rsrs and r2sr^2s. The group they form is D3D_3, with

r3=e,s2=e,srs=r1,D3={e,r,r2,s,rs,r2s}.r^3 = e, \qquad s^2 = e, \qquad srs = r^{-1}, \qquad D_3 = \{e, r, r^2, s, rs, r^2s\}.

These are the relations of the square with the order of the basic rotation changed from 44 to 33. The group D3D_3 has order 66 and is not abelian, so it is the smallest non-abelian group.

The same account fits every regular polygon. A regular nn-gon with n3n \geqslant 3 has nn rotational and nn reflectional symmetries, so its symmetry group DnD_n has 2n2n elements. Writing rr for the rotation through 360/n360^\circ / n and ss for any one of the reflections,

rn=e,s2=e,srs=r1,r^n = e, \qquad s^2 = e, \qquad srs = r^{-1},

and the elements are e,r,r2,,rn1e, r, r^2, \ldots, r^{n-1}, which are the rotations, together with s,rs,r2s,,rn1ss, rs, r^2s, \ldots, r^{n-1}s, which are the reflections.

Remark (Small $n$).

For n<3n < 3 there is no regular polygon to act on, but the three relations still make sense and still define a group of order 2n2n. Neither is new: D1D_1 is C2C_2 under another name, and D2D_2 is the Klein four-group.

Symmetries as Permutations

A symmetry of the square is determined by where it sends the four vertices, and a symmetry of the triangle by where it sends the three. That suggests dropping the geometry and studying the rearrangements themselves.

Definition 1.52 (Permutation).

Let XX be a non-empty set. A permutation of XX is a bijection α:XX\alpha : X \to X. The set of all permutations of XX is written Sym(X)\operatorname{Sym}(X), and for X={1,2,,n}X = \{1, 2, \ldots, n\} we write Sym(n)\operatorname{Sym}(n) or SnS_n.

A permutation of a finite set is recorded by a table of two rows, the points along the top and their images beneath. For X={1,2,3,4}X = \{1, 2, 3, 4\},

α=(12342413)\alpha = \begin{pmatrix} 1 & 2 & 3 & 4 \\ 2 & 4 & 1 & 3 \end{pmatrix}

means α(1)=2\alpha(1) = 2, α(2)=4\alpha(2) = 4, and so on. The bottom row is a rearrangement of the top one, which is exactly the condition that α\alpha is a bijection.

There is a shorter notation. Take pS5p \in S_5 sending (1,2,3,4,5)(1, 2, 3, 4, 5) to (3,5,4,1,2)(3, 5, 4, 1, 2). Following one point at a time, 11 goes to 33, which goes to 44, which goes back to 11; that is a cycle of length three. Separately 22 and 55 exchange, a cycle of length two. Writing each cycle in brackets gives the cycle notation

p=(134)(25).p = (1\,3\,4)(2\,5).

Cycle notation is not unique, since (134)(1\,3\,4) and (341)(3\,4\,1) name the same cycle, and by convention we leave out the points a permutation fixes: an index that does not appear is understood to stay where it is.

Example 1.53 (Multiplying in cycle notation).

Let p=(134)(25)p = (1\,3\,4)(2\,5) as above and let q=(12)(34)q = (1\,2)(3\,4) in S5S_5. Recall that pqpq means qq first, then pp. Following each point through both,

1  q  2  p  5,5  q  5  p  2,2  q  1  p  3,3  q  4  p  1,1 \xrightarrow{\;q\;} 2 \xrightarrow{\;p\;} 5, \qquad 5 \xrightarrow{\;q\;} 5 \xrightarrow{\;p\;} 2, \qquad 2 \xrightarrow{\;q\;} 1 \xrightarrow{\;p\;} 3, \qquad 3 \xrightarrow{\;q\;} 4 \xrightarrow{\;p\;} 1,

and 4344 \mapsto 3 \mapsto 4. Collecting the cycles,

pq=(1523).pq = (1\,5\,2\,3).

Example 1.54 (Inverses and conjugates).

Let r=(12345)r = (1\,2\,3\,4\,5) and let pp be as above. Then

rp=(142)(35),r1=(15432),rpr1=(13)(245).rp = (1\,4\,2)(3\,5), \qquad r^{-1} = (1\,5\,4\,3\,2), \qquad rpr^{-1} = (1\,3)(2\,4\,5).

The inverse of a cycle is the same cycle traversed backwards, which is where the second of these comes from. The third combination, rpr1rpr^{-1}, is called a conjugate of pp.

Example 1.55 (Composing in two-row notation).

Let

α=(12342413),β=(12342143).\alpha = \begin{pmatrix} 1 & 2 & 3 & 4 \\ 2 & 4 & 1 & 3 \end{pmatrix}, \qquad \beta = \begin{pmatrix} 1 & 2 & 3 & 4 \\ 2 & 1 & 4 & 3 \end{pmatrix}.

Then

αβ=(12344231),βα=(12341324),\alpha \circ \beta = \begin{pmatrix} 1 & 2 & 3 & 4 \\ 4 & 2 & 3 & 1 \end{pmatrix}, \qquad \beta \circ \alpha = \begin{pmatrix} 1 & 2 & 3 & 4 \\ 1 & 3 & 2 & 4 \end{pmatrix},

which disagree at 11, so composition of permutations is not commutative either.

Theorem 1.56 (The symmetric group).

Let XX be a non-empty set. Then Sym(X)\operatorname{Sym}(X) with composition is a group, called the symmetric group on XX.

Discussion.

There are four things to check and the proposition on composition and inverses has done most of them. First that composition is a binary operation on Sym(X)\operatorname{Sym}(X), which is the statement that a composite of bijections XXX \to X is again one. Then the three axioms: associativity is associativity of composition of maps, which holds for all functions and not merely for bijections; the identity map is a bijection and satisfies the identity axiom by definition; and the inverse required by (G3) is the inverse function, which exists because α\alpha is a bijection and is itself a bijection.

Proof.

If α,βSym(X)\alpha, \beta \in \operatorname{Sym}(X) then αβ\alpha \circ \beta is a bijection XXX \to X by the second part of the proposition on composition and inverses, so composition is a binary operation on Sym(X)\operatorname{Sym}(X).

(G1) Composition of maps is associative by the first part of that proposition, so α(βγ)=(αβ)γ\alpha \circ (\beta \circ \gamma) = (\alpha \circ \beta) \circ \gamma for all α,β,γSym(X)\alpha, \beta, \gamma \in \operatorname{Sym}(X); both send xx to α(β(γ(x)))\alpha(\beta(\gamma(x))).

(G2) The identity map ι:XX\iota : X \to X with ι(x)=x\iota(x) = x is a bijection, so lies in Sym(X)\operatorname{Sym}(X), and ια=αι=α\iota \circ \alpha = \alpha \circ \iota = \alpha for every α\alpha.

(G3) If αSym(X)\alpha \in \operatorname{Sym}(X) then α\alpha is a bijection, so by the third part of that proposition it has an inverse function α1\alpha^{-1}, itself a bijection, and αα1=α1α=ι\alpha \circ \alpha^{-1} = \alpha^{-1} \circ \alpha = \iota.

As with symmetries we write αβ\alpha\beta for αβ\alpha \circ \beta, so that β\beta acts first. Some texts write the argument on the left, (x)α(x)\alpha rather than α(x)\alpha(x), and then read products in the opposite order; work one product out by hand before trusting a source’s convention.

Theorem 1.57 (The size of SnS_n).

For nNn \in \mathbb{N} we have #(Sn)=n!\#(S_n) = n!.

Discussion.

An element of SnS_n is settled by its bottom row, a list a1,,ana_1, \ldots, a_n in which each of 1,,n1, \ldots, n appears once, so the count is a count of such lists. Building one from left to right, each entry may be any value not already used, so the number of choices falls by one at each step: nn for the first, n1n - 1 for the second, and so on down to 11. Multiplying the numbers of choices gives the total, and that product is the factorial.

Proof.

A permutation αSn\alpha \in S_n is determined by the list a1=α(1),,an=α(n)a_1 = \alpha(1), \ldots, a_n = \alpha(n), and a list arises from a permutation exactly when the aia_i are 1,,n1, \ldots, n in some order.

Choose the entries left to right. There are nn possibilities for a1a_1. Once a1a_1 is chosen, injectivity excludes it from the rest, leaving n1n - 1 possibilities for a2a_2; after a1a_1 and a2a_2, there are n2n - 2 possibilities for a3a_3; and so on, with one possibility left for ana_n. Each choice is free of the others in the sense that the number available at each step does not depend on which values were taken earlier, so the number of lists is

n(n1)(n2)21=n!.n (n-1)(n-2) \cdots 2 \cdot 1 = n!\,.

For the triangle there is no constraint at all on how the vertices may be moved: every rearrangement of the three of them is produced by exactly one symmetry. There are 3!=63! = 6 rearrangements and six symmetries, so the symmetry group of the equilateral triangle is the group of all permutations of three objects,

D3S3.D_3 \cong S_3 .

The two sides describe different things, movements of a figure on one and rearrangements of three labels on the other, and the isomorphism is the dictionary between them.

The square is different. It has eight symmetries while S4S_4 has 4!=244! = 24 elements, and the remark above on shuffles of the corners exhibits a rearrangement that no symmetry produces.

Remark (Where $S_4$ does live).

No figure in the plane has symmetry group S4S_4. In three dimensions it appears at once: S4S_4 is the group of symmetries of a regular tetrahedron, whose four vertices may be permuted in any way at all.

Problem 1.15.

Let XX be a finite set and let α:XX\alpha : X \to X be a function. Show that α\alpha is injective if and only if it is surjective, and give an example of an infinite XX for which this fails.

Problem 1.16.

In S6S_6, let

α=(123456234561),β=(123456165432).\alpha = \begin{pmatrix} 1 & 2 & 3 & 4 & 5 & 6 \\ 2 & 3 & 4 & 5 & 6 & 1 \end{pmatrix}, \qquad \beta = \begin{pmatrix} 1 & 2 & 3 & 4 & 5 & 6 \\ 1 & 6 & 5 & 4 & 3 & 2 \end{pmatrix}.

Compute αβ\alpha\beta, βα\beta\alpha, α1\alpha^{-1}, β1\beta^{-1} and αβα1\alpha\beta\alpha^{-1}, and write each in cycle notation. Then label the vertices of a regular hexagon 11 to 66 clockwise and identify each of these permutations with a symmetry of the hexagon.

Problem 1.17.

Write out the eight symmetries of the square as permutations of {c1,c2,c3,c4}\{c_1, c_2, c_3, c_4\} in cycle notation, and use the result to exhibit an injective map D4S4D_4 \to S_4 carrying products to products.

Fields

A group carries one binary operation. The number systems we actually compute in carry two, addition and multiplication, and the two cooperate: multiplication distributes over addition, so an expression built from both can be rearranged. A set with two operations cooperating in that way is a field.

Definition 1.58 (Field).

Let FF be a set with two binary operations +:F×FF+ : F \times F \to F and :F×FF\cdot : F \times F \to F. The triple (F,+,)(F, +, \cdot) is a field if

  1. (F1) (F,+)(F, +) is an abelian group, with neutral element written 0F0_F;
  2. (F2) (F{0F},)(F \setminus \{0_F\}, \cdot) is an abelian group, with neutral element written 1F1_F;
  3. (F3) multiplication distributes over addition: a(b+c)=ab+aca \cdot (b + c) = a \cdot b + a \cdot c for all a,b,cFa, b, c \in F.

Condition (F2) says two things at once: every element other than 0F0_F has a multiplicative inverse, and F{0F}F \setminus \{0_F\} is closed under multiplication, so a product of two non-zero elements is never 0F0_F.

Since 1F1_F lies in F{0F}F \setminus \{0_F\} we have 1F0F1_F \neq 0_F, so a field has at least two elements. Two is achievable: the set {0,1}\{0, 1\} with 1+1=01 + 1 = 0 and the obvious multiplication is a field.

Example 1.59 (Fields and near misses).

The rationals Q\mathbb{Q} and the reals R\mathbb{R} are fields, and so are the complex numbers.

The naturals N\mathbb{N} are not: (F1) already fails, since 11 has no additive inverse. The integers Z\mathbb{Z} are not either, though they come closer. They satisfy (F1) and (F3), and multiplication on them is associative and commutative with neutral element 11; what fails is (F2), because no integer other than 11 and 1-1 has a multiplicative inverse in Z\mathbb{Z}.

Remark (The complex numbers).

MA01 does not build C\mathbb{C}, so here is what we take it to be. Its elements are the expressions x+yix + yi with x,yRx, y \in \mathbb{R}, where ii is a formal symbol, added and multiplied by

(x+yi)+(z+wi)=(x+z)+(y+w)i,(x+yi)(z+wi)=(xzyw)+(xw+yz)i,\begin{aligned} (x + yi) + (z + wi) &= (x + z) + (y + w)i, \\ (x + yi)(z + wi) &= (xz - yw) + (xw + yz)i, \end{aligned}

the second rule being what expanding the brackets gives once i2i^2 is replaced by 1-1. The conjugate of z=x+yiz = x + yi is zˉ=xyi\bar{z} = x - yi and its modulus is z=x2+y2|z| = \sqrt{x^2 + y^2}, so that zzˉ=x2+y2=z2z\bar{z} = x^2 + y^2 = |z|^2. Every z0z \neq 0 therefore has the multiplicative inverse zˉ/z2\bar{z}/|z|^2, and C\mathbb{C} is a field.

Problem 1.18.

Let z,wCz, w \in \mathbb{C}. Prove that

z+w=zˉ+wˉ,zw=zˉwˉ,zˉ=z,zzˉ=z2,\overline{z + w} = \bar{z} + \bar{w}, \qquad \overline{zw} = \bar{z}\,\bar{w}, \qquad \overline{\bar{z}} = z, \qquad z\bar{z} = |z|^2,

and deduce that zw=zw|zw| = |z|\,|w| and that z0z\neq 0 has inverse zˉ/z2\bar{z}/|z|^2.

Problem 1.19.

Show that z=zˉz = \bar{z} if and only if zRz \in \mathbb{R}. Then show that conjugation is an isomorphism of (C,+)(\mathbb{C}, +) onto itself, and also of (C{0},)(\mathbb{C} \setminus \{0\}, \cdot) onto itself, and that it is its own inverse in both cases.

A subtler near miss drops commutativity of multiplication rather than invertibility.

Example 1.60 (The quaternions).

Let H\mathbb{H} be the set of expressions

a+bi+cj+dk,a,b,c,dR,a + bi + cj + dk, \qquad a, b, c, d \in \mathbb{R},

where ii, jj, kk are formal symbols. Addition is componentwise, and multiplication is determined by requiring it to be associative and to distribute over addition, together with the rules

i2=j2=k2=ijk=1.i^2 = j^2 = k^2 = ijk = -1 .

From these one finds ij=kij = k and ji=kji = -k, and similar relations among the other pairs. So multiplication on H\mathbb{H} is not commutative, and H\mathbb{H} satisfies every field axiom except that one. A structure of this kind, where the non-zero elements form a group under multiplication which need not be abelian, is a skew field or division ring.

Problem 1.20.

Show that ij=kij = k and ji=kji = -k in H\mathbb{H}. Suggestion: first check that i1=ii^{-1} = -i, j1=jj^{-1} = -j and k1=kk^{-1} = -k, then read ijk=1ijk = -1 as an equation to be solved for ijij, and use the rule for the inverse of a product to get at jiji.

A field is what a set of scalars has to be before vectors can be built over it, and the first chapter of this lesson is the case F=RF = \mathbb{R} of the following.

Definition 1.61 (Vector space).

Let (F,+,)(F, +, \cdot) be a field. An FF-vector space is a set VV with an addition V×VVV \times V \to V and a scalar multiplication F×VVF \times V \to V such that

  1. (V,+)(V, +) is an abelian group, with neutral element 0\mathbf{0};
  2. λ(μv)=(λμ)v\lambda(\mu v) = (\lambda\mu)v for all λ,μF\lambda, \mu \in F and vVv \in V;
  3. (λ+μ)v=λv+μv(\lambda + \mu)v = \lambda v + \mu v and λ(v+w)=λv+λw\lambda(v + w) = \lambda v + \lambda w for all λ,μF\lambda, \mu \in F and v,wVv, w \in V;
  4. 1Fv=v1_F \, v = v for every vVv \in V.

Elements of VV are vectors and elements of FF are scalars.

The last condition cannot be dropped: without it the rule sending every (λ,v)(\lambda, v) to 0\mathbf{0} would satisfy the other three. With the four in place, any calculation in VV reduces to a linear combination

λ1v1+λ2v2++λnvn,λiF,  viV,\lambda_1 v_1 + \lambda_2 v_2 + \cdots + \lambda_n v_n, \qquad \lambda_i \in F, \; v_i \in V,

which is the shape every computation in the first chapter took. That Rn\mathbb{R}^n satisfies these axioms is what the first problem of that chapter asked you to check.

The Real Numbers

We take the reals as known from school: a field carrying an order relation \leqslant compatible with the two operations, so that aba \leqslant b implies a+cb+ca + c \leqslant b + c, and aba \leqslant b with 0c0 \leqslant c implies acbcac \leqslant bc.

The rationals are a field with an order as well, so the order alone does not separate the two. What separates them is a property of how the order behaves.

For a,b,cRa, b, c \in \mathbb{R} we write a<b<ca < b < c as shorthand for ”a<ba < b and b<cb < c”. Between any two distinct reals there is a third, namely their average, so a chain like this never closes up.

Definition 1.62 (Intervals).

Let a,bRa, b \in \mathbb{R} with aba \leqslant b. The closed interval and the open interval are

[a,b]={xRaxb},(a,b)={xRa<x<b},[a, b] = \{x \in \mathbb{R} \mid a \leqslant x \leqslant b\}, \qquad (a, b) = \{x \in \mathbb{R} \mid a < x < b\},

the first a single point when a=ba = b and the second empty then. The half-open intervals are

(a,b]={xRa<xb},[a,b)={xRax<b},(a, b] = \{x \in \mathbb{R} \mid a < x \leqslant b\}, \qquad [a, b) = \{x \in \mathbb{R} \mid a \leqslant x < b\},

again empty when a=ba = b. The half-infinite intervals are

(,a)={xRx<a},(a,)={xRx>a},(-\infty, a) = \{x \in \mathbb{R} \mid x < a\}, \quad (a, \infty) = \{x \in \mathbb{R} \mid x > a\},

together with (,a](-\infty, a] and [a,)[a, \infty), defined with \leqslant and \geqslant in place of << and >>.

Remark (Reading the notation).

Three things about these symbols.

The \infty and -\infty are notation and nothing else. They do not name elements of R\mathbb{R}, and there is no such set as [a,][a, \infty].

The notation (a,b)(a, b) for an open interval collides with the notation for an ordered pair. Some authors avoid this by writing the open ends with reversed square brackets, ]a,b[]a, b[ and [a,[[a, \infty[. We tolerate the ambiguity, since context always says whether a subset of R\mathbb{R} or an element of R×R\mathbb{R} \times \mathbb{R} is meant.

If a<ba < b then (a,b)(a, b) contains infinitely many reals, since the averaging remark above produces a new one from any two. The same is true of the other bounded intervals, which contain (a,b)(a, b).

Finally, the notation works over any ordered number system, not only R\mathbb{R}. Where it is not clear from context we write [0,1]R[0, 1]_{\mathbb{R}} or [0,1]Q[0, 1]_{\mathbb{Q}}.

What does it mean for a subset of R\mathbb{R} to have a largest element? We want an mRm \in \mathbb{R} with

  1. mSm \in S, and
  2. xmx \leqslant m for every xSx \in S.

An mm satisfying the second condition alone is called an upper bound for SS, and SS is bounded above if it has one. Lower bounds and bounded below are defined the same way with the inequality reversed, and SS is bounded if it is both.

Proposition 1.63 (A largest element is unique).

Let SRS \subset \mathbb{R}. If mm and mm' both satisfy conditions 1 and 2, then m=mm = m'.

Discussion.

The conditions come in a pair, one saying the candidate belongs to SS and one saying it dominates SS, and the proof works by crossing them over: membership of mm feeds into the domination property of mm', and membership of mm' feeds into that of mm. Each crossing yields one of the two inequalities mmm \leqslant m' and mmm' \leqslant m, and antisymmetry of the order turns the pair into an equality. Nothing about R\mathbb{R} beyond the order is used, so the same argument works in any ordered set.

Proof.

Since mSm \in S and mm' is an upper bound for SS, we have mmm \leqslant m'. Since mSm' \in S and mm is an upper bound for SS, we have mmm' \leqslant m. Hence m=mm = m'.

We may therefore speak of the largest element of SS and write it max(S)\max(S). What we may not do is write max(S)\max(S) into an argument before knowing it exists, because many sets have no largest element. This can fail for three separate reasons.

A set may be empty, so that no mm can satisfy the first condition. A set may be unbounded above, so that no mm satisfies the second; R\mathbb{R} itself is one, and so is

S=[0,1)(2,3][4,5)(6,7].S = [0, 1) \cup (2, 3] \cup [4, 5) \cup (6, 7] \cup \cdots .

And a set may be non-empty and bounded above and still have no element meeting both conditions at once.

Example 1.64 (A bounded set with no largest element).

Let S=(,1)S = (-\infty, 1) and let mSm \in S, so m<1m < 1. Put m=m+12m' = \tfrac{m + 1}{2}. Then m<m<1m < m' < 1, so mSm' \in S and m>mm' > m; hence mm is not an upper bound for SS. As mm was arbitrary, SS has no largest element, even though 11 is an upper bound for it.

Everything said about largest elements applies to smallest ones with the inequalities reversed: a smallest element is unique when it exists, is written min(S)\min(S), and need not exist. For a finite non-empty set there is no difficulty at all, which is why max(x,y)\max(x, y), meaning the larger of xx and yy, may be written down freely.

Problem 1.21.

Show that every non-empty subset of N\mathbb{N} has a smallest element. (Harder.)

Remark (Least upper bounds).

In the example above, 11 clearly acts as an upper limit of S=(,1)S = (-\infty, 1), and the reason SS has no largest element is that 11 was left out. Making that precise is what the following construction does. For SRS \subset \mathbb{R} let

UB(S)={mRxm for every xS}\operatorname{UB}(S) = \{m \in \mathbb{R} \mid x \leqslant m \text{ for every } x \in S\}

be the set of upper bounds of SS. If SS has a largest element then UB(S)\operatorname{UB}(S) has a smallest one and min(UB(S))=max(S)\min(\operatorname{UB}(S)) = \max(S). But min(UB(S))\min(\operatorname{UB}(S)) can exist when max(S)\max(S) does not: for S=(,1)S = (-\infty, 1) we get UB(S)=[1,)\operatorname{UB}(S) = [1, \infty), whose smallest element is 11. That number is the least upper bound, or supremum, of SS.

The property that separates R\mathbb{R} from Q\mathbb{Q} is that in R\mathbb{R} this never fails: every non-empty subset bounded above has a least upper bound. In Q\mathbb{Q} it does fail, as the set of rationals with square less than 22 shows. Making that statement into a construction of R\mathbb{R} is a course in itself.

Problem 1.22.

Let SRS \subset \mathbb{R} be non-empty. Show that if max(S)\max(S) exists then min(UB(S))\min(\operatorname{UB}(S)) exists and the two are equal.

Absolute Value

Definition 1.65 (Absolute value).

The absolute value is the function :RR|\cdot| : \mathbb{R} \to \mathbb{R} given by

x={xif x0,xif x<0,|x| = \begin{cases} x & \text{if } x \geqslant 0, \\ -x & \text{if } x < 0, \end{cases}

equivalently x=max(x,x)|x| = \max(x, -x).

Theorem 1.66 (Properties of the absolute value).

For all x,yRx, y \in \mathbb{R}:

  1. x0|x| \geqslant 0, and x=0|x| = 0 if and only if x=0x = 0 (positive definiteness);
  2. xy=xy|xy| = |x| \, |y| (homogeneity);
  3. x+yx+y|x + y| \leqslant |x| + |y| (triangle inequality).

Discussion.

The first part is read straight off the definition, one case at a time. The second could also be done by cases, four of them, but there is a shorter route: both sides are non-negative by the first part, and two non-negative reals with equal squares are equal, so it is enough to check that the squares agree, which they do because t2=t2|t|^2 = t^2 for every tt. The third rests on the two inequalities ttt-|t| \leqslant t \leqslant |t|, which hold by inspection of the definition; adding the versions for xx and for yy traps x+yx + y between (x+y)-(|x|+|y|) and x+y|x|+|y|, and being trapped that way is exactly what x+yx+y|x+y| \leqslant |x|+|y| says.

Proof.

For the first part, if x0x \geqslant 0 then x=x0|x| = x \geqslant 0, and if x<0x < 0 then x=x>0|x| = -x > 0; so x0|x| \geqslant 0 always, and x=0|x| = 0 forces the first case with x=0x = 0. Conversely 0=0|0| = 0.

For the second, note that t2=t2|t|^2 = t^2 for every real tt, since t|t| is tt or t-t. Hence

xy2=(xy)2=x2y2=x2y2=(xy)2.|xy|^2 = (xy)^2 = x^2 y^2 = |x|^2 \, |y|^2 = \bigl(|x| \, |y|\bigr)^2 .

Both xy|xy| and xy|x||y| are non-negative by the first part, and for non-negative reals equal squares give equal values, so xy=xy|xy| = |x||y|.

For the third, ttt-|t| \leqslant t \leqslant |t| holds for every tt: if t0t \geqslant 0 the right-hand inequality is an equality and the left is clear, and if t<0t < 0 the two swap roles. Adding the inequalities for xx and for yy,

(x+y)x+yx+y.-\bigl(|x| + |y|\bigr) \leqslant x + y \leqslant |x| + |y| .

Now x+y|x+y| is either x+yx + y or (x+y)-(x+y), and both are bounded above by x+y|x| + |y| by the two halves of the display. Hence x+yx+y|x+y| \leqslant |x| + |y|.

Remark (Distance on the line).

Setting d(x,y)=xyd(x, y) = |x - y| turns the absolute value into a measure of distance between points of R\mathbb{R}, and the three properties above become exactly the three properties of the Euclidean distance proved in the first chapter. A function d:X×XRd : X \times X \to \mathbb{R} with those properties is called a metric, and |\cdot| on R\mathbb{R} is the case n=1n = 1 of the norm on Rn\mathbb{R}^n.

Problem 1.23.

Show that ERE \subset \mathbb{R} is bounded if and only if there is an M>0M > 0 with x<M|x| < M for every xEx \in E. Then give examples of subsets of R\mathbb{R} that are bounded above only, bounded below only, and unbounded, with bounds where they exist.

Problem 1.24.

Sketch the set E={xRx36}E = \{x \in \mathbb{R} \mid |x - 3| \leqslant 6\} and write it as an interval.

Problem 1.25.

Let x,yRx, y \in \mathbb{R} with y0y \neq 0. Show that xy=xy\left| \dfrac{x}{y} \right| = \dfrac{|x|}{|y|}, and that xy+x+y=2max(x,y)|x - y| + |x + y| = 2\max(|x|, |y|).

Useful Inequalities

Theorem 1.67 (Reverse triangle inequality).

For all x,yRx, y \in \mathbb{R},

xyxyandx+yxy.|x - y| \geqslant |x| - |y| \qquad \text{and} \qquad |x + y| \geqslant |x| - |y| .

Discussion.

Each claim bounds a quantity from below, and the triangle inequality bounds things from above, so the two are made to meet by writing xx as a sum of the pieces the statement mentions. Taking x=(xy)+yx = (x - y) + y and applying the triangle inequality to that sum gives xxy+y|x| \leqslant |x-y| + |y|, which rearranges into the first claim. The second is the same trick with yy replaced by y-y, using y=y|-y| = |y|, which is the homogeneity part of the previous theorem with the factor 1-1.

Proof.

Write x=(xy)+yx = (x - y) + y and apply the triangle inequality:

xxy+y,|x| \leqslant |x - y| + |y|,

so xyxy|x - y| \geqslant |x| - |y|. Replacing yy by y-y throughout and using y=y|-y| = |y| gives xx+y+y|x| \leqslant |x + y| + |y|, hence x+yxy|x + y| \geqslant |x| - |y|.

Theorem 1.68 (Bernoulli's inequality).

Let xRx \in \mathbb{R} with x1x \geqslant -1. Then (1+x)n1+nx(1 + x)^n \geqslant 1 + nx for every nNn \in \mathbb{N}.

Discussion.

The exponent ranges over N\mathbb{N} and appears on both sides, so the proof is an induction on nn. The base case is an equality. In the step we multiply the inductive hypothesis by 1+x1 + x, which is legitimate precisely because x1x \geqslant -1 makes that factor non-negative and so preserves the inequality; this is the only place the hypothesis on xx is used, and the inequality is false without it. Expanding the product leaves an extra term nx2nx^2, which is non-negative and may simply be dropped to reach the claim at n+1n + 1.

Proof.

For n=1n = 1 both sides equal 1+x1 + x. Suppose (1+x)n1+nx(1 + x)^n \geqslant 1 + nx. Since x1x \geqslant -1 we have 1+x01 + x \geqslant 0, so multiplying the inductive hypothesis by 1+x1 + x preserves the inequality:

(1+x)n+1(1+nx)(1+x)=1+(n+1)x+nx21+(n+1)x,(1 + x)^{n+1} \geqslant (1 + nx)(1 + x) = 1 + (n+1)x + nx^2 \geqslant 1 + (n+1)x,

the last step because nx20nx^2 \geqslant 0. This is the claim at n+1n + 1.

Theorem 1.69 (Young's inequality).

Let a,bRa, b \in \mathbb{R} and ε>0\varepsilon > 0. Then

ab12(a2+b2),ab12(a2ε+εb2),ab12(a2+b2).ab \leqslant \tfrac{1}{2}\bigl(a^2 + b^2\bigr), \qquad ab \leqslant \tfrac{1}{2}\Bigl(\tfrac{a^2}{\varepsilon} + \varepsilon b^2\Bigr), \qquad |ab| \leqslant \tfrac{1}{2}\bigl(a^2 + b^2\bigr).

Discussion.

All three come from the same source, that a square is never negative, applied to a well-chosen difference. Expanding (ab)20(a - b)^2 \geqslant 0 produces the first. For the second, the weights ε\varepsilon and 1/ε1/\varepsilon have to appear, so the square to expand is that of a/εεba/\sqrt{\varepsilon} - \sqrt{\varepsilon}\,b, whose cross term is again 2ab-2ab while the outer terms carry the weights. The third is the first applied twice: expanding (a+b)20(a + b)^2 \geqslant 0 instead bounds ab-ab by the same quantity, and a number bounded above together with its negative is exactly a number whose absolute value is bounded.

Proof.

From 0(ab)2=a22ab+b20 \leqslant (a - b)^2 = a^2 - 2ab + b^2 we get 2aba2+b22ab \leqslant a^2 + b^2, which is the first inequality. Since ε>0\varepsilon > 0,

0(aεεb)2=a2ε2ab+εb2,0 \leqslant \Bigl(\tfrac{a}{\sqrt{\varepsilon}} - \sqrt{\varepsilon}\,b\Bigr)^2 = \tfrac{a^2}{\varepsilon} - 2ab + \varepsilon b^2,

which is the second. From 0(a+b)2=a2+2ab+b20 \leqslant (a + b)^2 = a^2 + 2ab + b^2 we get ab12(a2+b2)-ab \leqslant \tfrac{1}{2}(a^2 + b^2); combined with the first inequality, both abab and ab-ab are at most 12(a2+b2)\tfrac{1}{2}(a^2+b^2), and ab|ab| is one of them.

Theorem 1.70 (Arithmetic and geometric mean).

Let a,bRa, b \in \mathbb{R} with a,b0a, b \geqslant 0. Then ab12(a+b)\sqrt{ab} \leqslant \tfrac{1}{2}(a + b).

Discussion.

The statement is Young’s first inequality in disguise: since aa and bb are non-negative they have square roots, and substituting a\sqrt{a} and b\sqrt{b} for the two variables there turns the product into ab\sqrt{ab} and the squares into aa and bb. Equivalently one may expand (ab)20(\sqrt{a} - \sqrt{b})^2 \geqslant 0 directly, which is the same computation written out.

Proof.

Both aa and bb are non-negative, so a\sqrt{a} and b\sqrt{b} exist. Then

0(ab)2=a2ab+b,0 \leqslant \bigl(\sqrt{a} - \sqrt{b}\bigr)^2 = a - 2\sqrt{ab} + b,

which rearranges to ab12(a+b)\sqrt{ab} \leqslant \tfrac{1}{2}(a + b).

Standard Functions

The simplest real-valued functions are built from the field operations alone. A polynomial function is one of the form xcnxn++c1x+c0x \mapsto c_n x^n + \cdots + c_1 x + c_0, such as x317x+5x^3 - 17x + 5; later in the course we approximate arbitrary functions by these. A rational function is a quotient of two polynomials, such as

xx2+3andx3+7x+2.\frac{x}{x^2 + 3} \qquad \text{and} \qquad \frac{x^3 + 7}{x + 2}.

The second is not a function on R\mathbb{R}, since division by zero is undefined and the denominator vanishes at x=2x = -2; it is a function on the subset {xRx2}\{x \in \mathbb{R} \mid x \neq -2\}.

Definition 1.71 (Exponential function).

The exponential function is the unique differentiable exp:RR\exp : \mathbb{R} \to \mathbb{R} with

exp(0)=1andexp(x)=exp(x) for every xR.\exp(0) = 1 \qquad \text{and} \qquad \exp'(x) = \exp(x) \text{ for every } x \in \mathbb{R}.

We write e=exp(1)=2.71828e = \exp(1) = 2.71828\ldots, and exe^x for exp(x)\exp(x).

That such a function exists and is unique is proved in analysis; we take it, and the addition law

exp(a+b)=exp(a)exp(b)for all a,bR,\exp(a + b) = \exp(a) \exp(b) \qquad \text{for all } a, b \in \mathbb{R},

as given.

xy11exp x
Figure 1.12. The natural exponential function. It is positive everywhere, strictly increasing, and takes the value 11 at 00.

Proposition 1.72 (Rules for the exponential).

For a,bRa, b \in \mathbb{R} and nNn \in \mathbb{N},

exp(a)=1expa,exp(ab)=expaexpb,exp(na)=(expa)n,\exp(-a) = \frac{1}{\exp a}, \qquad \exp(a - b) = \frac{\exp a}{\exp b}, \qquad \exp(na) = (\exp a)^n,

and exp(x)>0\exp(x) > 0 for every xx. The function exp\exp is strictly increasing, and is a bijection from R\mathbb{R} onto (0,)(0, \infty).

Discussion.

Every rule here is the addition law used once or repeatedly. Setting b=ab = -a in it makes the left side exp(0)=1\exp(0) = 1, which identifies exp(a)\exp(-a) as a reciprocal and in passing shows exp\exp never vanishes; the quotient rule is then the addition law applied to a+(b)a + (-b). The rule for exp(na)\exp(na) is an induction whose step is one more application. Positivity needs a separate observation: exp(x)\exp(x) is the square of exp(x/2)\exp(x/2), hence non-negative, and it is not zero by what has just been shown. Strict increase then comes from the derivative, which equals the function and is therefore positive; and a strictly increasing function is injective, which leaves only surjectivity onto (0,)(0, \infty), and that is the part we take from analysis along with existence.

Proof.

Putting b=ab = -a in the addition law gives exp(a)exp(a)=exp(0)=1\exp(a)\exp(-a) = \exp(0) = 1, so neither factor is zero and exp(a)=1/exp(a)\exp(-a) = 1/\exp(a). Hence

exp(ab)=exp(a)exp(b)=expaexpb.\exp(a - b) = \exp(a)\exp(-b) = \frac{\exp a}{\exp b}.

For exp(na)=(expa)n\exp(na) = (\exp a)^n, induct on nn: the case n=1n = 1 is trivial, and exp((n+1)a)=exp(na)exp(a)=(expa)nexp(a)=(expa)n+1\exp((n+1)a) = \exp(na)\exp(a) = (\exp a)^n \exp(a) = (\exp a)^{n+1}.

For positivity, exp(x)=exp(x2+x2)=exp(x2)20\exp(x) = \exp\bigl(\tfrac{x}{2} + \tfrac{x}{2}\bigr) = \exp\bigl(\tfrac{x}{2}\bigr)^2 \geqslant 0, and exp(x)0\exp(x) \neq 0 by the first paragraph, so exp(x)>0\exp(x) > 0. Consequently exp=exp>0\exp' = \exp > 0 everywhere, so exp\exp is strictly increasing and therefore injective. Its range is (0,)(0, \infty).

Being a bijection onto (0,)(0, \infty), the exponential has an inverse.

Definition 1.73 (Natural logarithm).

The natural logarithm is the inverse of exp:R(0,)\exp : \mathbb{R} \to (0, \infty), written

log:(0,)R,\log : (0, \infty) \to \mathbb{R},

so that log(expx)=x\log(\exp x) = x for every xRx \in \mathbb{R} and exp(logy)=y\exp(\log y) = y for every y>0y > 0.

xy1log x
Figure 1.13. The natural logarithm, the inverse of the exponential. It is defined only for x>0x > 0, is strictly increasing, and vanishes at 11.

Proposition 1.74 (Rules for the logarithm).

For a,b>0a, b > 0 and nNn \in \mathbb{N},

log(ab)=loga+logb,log ⁣(ab)=logalogb,log ⁣(1a)=loga,\log(ab) = \log a + \log b, \qquad \log\!\left(\frac{a}{b}\right) = \log a - \log b, \qquad \log\!\left(\frac{1}{a}\right) = -\log a,

together with log(an)=nloga\log(a^n) = n \log a and log1=0\log 1 = 0. Moreover log\log is differentiable with log(x)=1/x\log'(x) = 1/x.

Discussion.

An identity about log\log becomes an identity about exp\exp the moment both sides are fed to exp\exp, because exp\exp is injective and undoes log\log. So each rule is proved by applying exp\exp to the proposed right-hand side and watching the addition law turn a sum into the product on the left. The value log1=0\log 1 = 0 is exp(0)=1\exp(0) = 1 read backwards. The derivative is different in kind: differentiating the identity exp(logx)=x\exp(\log x) = x by the chain rule produces exp(logx)log(x)=1\exp(\log x)\log'(x) = 1, and the left factor is xx, which solves for log(x)\log'(x).

Proof.

For a,b>0a, b > 0,

exp(loga+logb)=exp(loga)exp(logb)=ab,\exp(\log a + \log b) = \exp(\log a)\exp(\log b) = ab,

and applying log\log to both sides gives loga+logb=log(ab)\log a + \log b = \log(ab). Replacing bb by 1/b1/b and using the same computation gives the quotient rule, and taking a=1a = 1 in it gives log(1/b)=logb\log(1/b) = -\log b since log1=0\log 1 = 0; and log1=0\log 1 = 0 holds because exp(0)=1\exp(0) = 1. The rule log(an)=nloga\log(a^n) = n\log a follows by induction from the product rule.

Differentiating exp(logx)=x\exp(\log x) = x by the chain rule gives exp(logx)log(x)=1\exp(\log x)\log'(x) = 1, and exp(logx)=x\exp(\log x) = x, so log(x)=1/x\log'(x) = 1/x for x>0x > 0.

Remark (Which logarithm is $\log$?).

In mathematics an unadorned log\log always means the natural logarithm, to base ee. Some software takes the opposite convention, using log\log for the base-1010 logarithm and ln\ln for the natural one; check before trusting a numerical result.

Remark (Why there is no logarithm of a negative number).

We have not defined logx\log x for x0x \leqslant 0, and no definition is possible. The identity exp(logx)=x\exp(\log x) = x is what makes the logarithm useful, and exp\exp takes only positive values, so no value of logx\log x could satisfy it for x0x \leqslant 0. The same restriction is inherited by the power functions below.

Definition 1.75 (Powers and logarithms to a general base).

For a>0a > 0 define a:R(0,)a^{\,\cdot} : \mathbb{R} \to (0, \infty) by

ax=exp(xloga).a^x = \exp(x \log a).

It is a bijection, and its inverse is the logarithm to base aa, written loga:(0,)R\log_a : (0, \infty) \to \mathbb{R}.

This agrees with the elementary meaning of a power whenever that meaning is available: for yZy \in \mathbb{Z} the definition returns xx multiplied by itself yy times when y>0y > 0, returns 11 when y=0y = 0, and returns 1/xy1/x^{-y} when y<0y < 0. Its advantage is that it makes sense for every real exponent.

xy1.5x2x2.5x11
Figure 1.14. The functions xaxx \mapsto a^x for a=1.5a = 1.5, 22 and 2.52.5. Each takes the value 11 at 00, and each is exp(xloga)\exp(x \log a).
xylog10log2log1
Figure 1.15. Logarithms to base 1010, base 22 and base ee. All three vanish at 11, and each is a fixed multiple of the others.

Proposition 1.76 (Changing the base).

For a,b,x>0a, b, x > 0 with a1a \neq 1 and b1b \neq 1,

logax=logxlogaandlogax=logablogbx.\log_a x = \frac{\log x}{\log a} \qquad \text{and} \qquad \log_a x = \log_a b \cdot \log_b x .

Discussion.

The base-aa logarithm was defined as an inverse, so the way to compute it is to apply the function it inverts and read off what the exponent must have been. Writing y=logaxy = \log_a x means ay=xa^y = x, which by the definition of a power is exp(yloga)=x\exp(y \log a) = x; taking log\log of both sides turns it into yloga=logxy \log a = \log x, and dividing gives the first identity. The second is then arithmetic: substituting the first identity three times, once for each of the three logarithms appearing, reduces the claim to cancelling a common factor.

Proof.

Let y=logaxy = \log_a x, so ay=xa^y = x, that is exp(yloga)=x\exp(y \log a) = x. Applying log\log gives yloga=logxy \log a = \log x, and loga0\log a \neq 0 since a1a \neq 1, so y=logx/logay = \log x / \log a.

For the second identity, substituting the first three times,

logablogbx=logblogalogxlogb=logxloga=logax.\log_a b \cdot \log_b x = \frac{\log b}{\log a} \cdot \frac{\log x}{\log b} = \frac{\log x}{\log a} = \log_a x .

Example 1.77 (Halving a fish population).

Suppose a lake holds CC fish and that fishing reduces the population according to f(t)=Ceλtf(t) = Ce^{-\lambda t} with λ>0\lambda > 0. The time TT at which half the fish are gone satisfies

CeλT=C2    eλT=12    λT=log12=log2    T=log2λ,Ce^{-\lambda T} = \frac{C}{2} \iff e^{-\lambda T} = \frac{1}{2} \iff -\lambda T = \log \tfrac{1}{2} = -\log 2 \iff T = \frac{\log 2}{\lambda},

which does not depend on CC.

Trigonometric Functions

Definition 1.78 (Periodic function).

A function f:XYf : X \to Y with XRX \subset \mathbb{R} is TT-periodic for TRT \in \mathbb{R} if f(x+T)=f(x)f(x + T) = f(x) for every xXx \in X with x+TXx + T \in X.

The trigonometric functions are read off the unit circle, the circle of radius 11 centred at the origin O=(0,0)O = (0, 0). Angles are measured in radians and counted anticlockwise from the positive xx-axis, so that a full circuit is 2π2\pi.

xyαMαO11cos αsin α
Figure 1.16. The unit circle. The point MαM_\alpha has coordinates (cosα,sinα)(\cos\alpha, \sin\alpha), and the outer arrow shows the direction in which angles are counted.
radians2πππ2π3π4π6degrees36018090604530\begin{array}{c|cccccc} \text{radians} & 2\pi & \pi & \tfrac{\pi}{2} & \tfrac{\pi}{3} & \tfrac{\pi}{4} & \tfrac{\pi}{6} \\ \hline \text{degrees} & 360 & 180 & 90 & 60 & 45 & 30 \end{array}

The angle α\alpha may be any real number, and MαM_\alpha denotes the point of the unit circle for which the angle from the positive xx-axis to OMαOM_\alpha is α\alpha. A full circuit is 2π2\pi, so MαM_\alpha, Mα+2πM_{\alpha + 2\pi} and Mα+4πM_{\alpha + 4\pi} are the same point; it is often convenient to restrict α\alpha to (π,π](-\pi, \pi] or to [0,2π)[0, 2\pi). We say in this situation that α\alpha is defined modulo 2π2\pi.

Definition 1.79 (Congruence modulo a real number).

Let a,b,cRa, b, c \in \mathbb{R}. We say aa is equal to bb modulo cc, written a=bmodca = b \bmod c, if

a{b+ckkZ},a \in \{b + ck \mid k \in \mathbb{Z}\},

a set also written b+cZb + c\mathbb{Z}.

Example 1.80 (An angle modulo 2π2\pi).

The equation α=π3mod2π\alpha = \tfrac{\pi}{3} \bmod 2\pi says that

α{π3+2kπ    kZ}={,5π3,  π3,  7π3,}.\alpha \in \Bigl\{\tfrac{\pi}{3} + 2k\pi \;\Bigm|\; k \in \mathbb{Z}\Bigr\} = \Bigl\{\ldots, -\tfrac{5\pi}{3}, \; \tfrac{\pi}{3}, \; \tfrac{7\pi}{3}, \ldots\Bigr\}.

Definition 1.81 (Sine, cosine and tangent).

Let αR\alpha \in \mathbb{R} and let MαM_\alpha be as above. The cosine cosα\cos\alpha is the xx-coordinate of MαM_\alpha and the sine sinα\sin\alpha is its yy-coordinate. Where cosα0\cos\alpha \neq 0, that is where απ2modπ\alpha \neq \tfrac{\pi}{2} \bmod \pi, the tangent is

tanα=sinαcosα.\tan\alpha = \frac{\sin\alpha}{\cos\alpha}.

Thus cos,sin:R[1,1]\cos, \sin : \mathbb{R} \to [-1, 1] and tan:R{π2+kπkZ}R\tan : \mathbb{R} \setminus \bigl\{\tfrac{\pi}{2} + k\pi \mid k \in \mathbb{Z}\bigr\} \to \mathbb{R}.

Since a full circuit returns MαM_\alpha to itself, sin\sin and cos\cos are 2π2\pi-periodic; tan\tan turns out to be π\pi-periodic, which the shift formulas below explain.

xy−2π−ππ1sincos
Figure 1.17. Sine (solid) and cosine (dashed) over two periods. Both take values in [1,1][-1, 1] and repeat every 2π2\pi.
xy−2π−ππ
Figure 1.18. The tangent. It repeats every π\pi and is undefined at the dashed lines x=π2+kπx = \tfrac{\pi}{2} + k\pi.

We take the addition formulas as known,

sin(x+y)=sinxcosy+cosxsiny,cos(x+y)=cosxcosysinxsiny,\begin{aligned} \sin(x + y) &= \sin x \cos y + \cos x \sin y, \\ \cos(x + y) &= \cos x \cos y - \sin x \sin y, \end{aligned}

and derive the rest from them together with the definition.

Proposition 1.82 (Trigonometric identities).

For all real xx and yy at which the expressions are defined:

  1. cos2x+sin2x=1\cos^2 x + \sin^2 x = 1, and 1+tan2x=1cos2x1 + \tan^2 x = \dfrac{1}{\cos^2 x};
  2. sin(x)=sinx\sin(-x) = -\sin x, cos(x)=cosx\cos(-x) = \cos x, tan(x)=tanx\tan(-x) = -\tan x;
  3. sin(xy)=sinxcosycosxsiny\sin(x - y) = \sin x \cos y - \cos x \sin y and cos(xy)=cosxcosy+sinxsiny\cos(x - y) = \cos x \cos y + \sin x \sin y;
  4. sin(x+π)=sinx\sin(x + \pi) = -\sin x, cos(x+π)=cosx\cos(x + \pi) = -\cos x, and tan(x+π)=tanx\tan(x + \pi) = \tan x;
  5. sin(πx)=sinx\sin(\pi - x) = \sin x and cos(πx)=cosx\cos(\pi - x) = -\cos x;
  6. sin(x+π2)=cosx\sin\bigl(x + \tfrac{\pi}{2}\bigr) = \cos x and cos(x+π2)=sinx\cos\bigl(x + \tfrac{\pi}{2}\bigr) = -\sin x;
  7. sin(xπ2)=cosx\sin\bigl(x - \tfrac{\pi}{2}\bigr) = -\cos x and cos(xπ2)=sinx\cos\bigl(x - \tfrac{\pi}{2}\bigr) = \sin x;
  8. sin2x=2sinxcosx\sin 2x = 2\sin x \cos x and cos2x=cos2xsin2x\cos 2x = \cos^2 x - \sin^2 x;
  9. tan(x+y)=tanx+tany1tanxtany\tan(x + y) = \dfrac{\tan x + \tan y}{1 - \tan x \tan y}.

Discussion.

Only the first two parts need anything beyond the addition formulas. The Pythagorean identity is the statement that MxM_x lies on the unit circle, since its coordinates are cosx\cos x and sinx\sin x and the circle has radius 11; dividing it by cos2x\cos^2 x, where that is non-zero, gives the companion identity for the tangent. The parity statements are read off the circle as well: reflecting in the xx-axis carries MxM_x to MxM_{-x}, which negates the second coordinate and fixes the first. Everything after that is substitution. Part 3 is the addition formulas with y-y in place of yy, using part 2. Parts 4 to 7 are the addition formulas evaluated at the special angles π\pi and π2\tfrac{\pi}{2}, whose sines and cosines are 00 and ±1\pm 1, so most terms vanish; part 5 combines part 4 with part 2, and part 7 combines part 6 with part 2. Part 8 is the addition formulas with y=xy = x, and part 9 is part 8’s method applied to the quotient defining the tangent, dividing numerator and denominator by cosxcosy\cos x \cos y.

Proof.

The point Mx=(cosx,sinx)M_x = (\cos x, \sin x) lies on the circle of radius 11 about the origin, so cos2x+sin2x=1\cos^2 x + \sin^2 x = 1 by the formula for the Euclidean norm. Where cosx0\cos x \neq 0, dividing by cos2x\cos^2 x gives 1+tan2x=1/cos2x1 + \tan^2 x = 1/\cos^2 x. Reflecting the circle in the xx-axis sends MxM_x to MxM_{-x} and negates the second coordinate, so cos(x)=cosx\cos(-x) = \cos x and sin(x)=sinx\sin(-x) = -\sin x; the statement for tan\tan follows by dividing.

Substituting y-y for yy in the addition formulas and using the parity just proved gives part 3. Taking y=πy = \pi, where cosπ=1\cos\pi = -1 and sinπ=0\sin\pi = 0, gives part 4, and the statement for tan\tan follows by dividing the two; part 5 is part 3 with x=πx = \pi together with parity. Taking y=π2y = \tfrac{\pi}{2}, where cosπ2=0\cos\tfrac{\pi}{2} = 0 and sinπ2=1\sin\tfrac{\pi}{2} = 1, gives part 6, and part 3 with y=π2y = \tfrac{\pi}{2} gives part 7.

Taking y=xy = x in the addition formulas gives part 8. For part 9, divide

tan(x+y)=sinxcosy+cosxsinycosxcosysinxsiny\tan(x+y) = \frac{\sin x \cos y + \cos x \sin y}{\cos x \cos y - \sin x \sin y}

above and below by cosxcosy\cos x \cos y, which is non-zero wherever both tangents are defined.

xyααπ − αα + πα + π/2O
Figure 1.19. The five angles related to α\alpha by the parity and shift identities, read off the same circle.

With the labelling of the figure below, where α\alpha, β\beta, γ\gamma are the angles at the three vertices and aa, bb, cc are the sides opposite them,

sinαa=sinβb=sinγc(law of sines),\frac{\sin\alpha}{a} = \frac{\sin\beta}{b} = \frac{\sin\gamma}{c} \qquad \text{(law of sines)}, c2=a2+b22abcosγ(law of cosines).c^2 = a^2 + b^2 - 2ab\cos\gamma \qquad \text{(law of cosines)}.

Between them they recover the unknown sides and angles of a triangle from the known ones. The law of cosines is proved once the angle between two vectors has been defined.

ABCαβγcab
Figure 1.20. A triangle labelled for the law of sines and the law of cosines: each side is named by the lower-case letter matching the angle opposite it.

Back to Vectors

The angle can now be brought back to Rn\mathbb{R}^n, and with it the case of equality in the triangle inequality.

Proposition 1.83 (Equality in the triangle inequality).

Let u,vRn\mathbf{u}, \mathbf{v} \in \mathbb{R}^n with v0\mathbf{v} \neq \mathbf{0}. Then

u+v=u+v\lVert \mathbf{u} + \mathbf{v} \rVert = \lVert \mathbf{u} \rVert + \lVert \mathbf{v} \rVert

if and only if u=λv\mathbf{u} = \lambda\mathbf{v} for some real λ0\lambda \geqslant 0.

Discussion.

The proof of the triangle inequality passed through two steps where something was given away, first replacing uv\mathbf{u}\cdot\mathbf{v} by uv|\mathbf{u}\cdot\mathbf{v}| and then bounding that by uv\lVert\mathbf{u}\rVert\lVert\mathbf{v}\rVert. Equality at the end forces equality at both, so the condition is that uv\mathbf{u}\cdot\mathbf{v} is non-negative and that Cauchy–Schwarz is tight. The Cauchy–Schwarz proposition already says when the second happens, namely when one vector is a multiple of the other, and v0\mathbf{v} \neq \mathbf{0} lets us take the multiple in the direction u=λv\mathbf{u} = \lambda\mathbf{v}. The sign condition then decides λ\lambda, because uv=λv2\mathbf{u}\cdot\mathbf{v} = \lambda\lVert\mathbf{v}\rVert^2 has the sign of λ\lambda. The converse is a direct computation with λ0\lambda \geqslant 0, where the homogeneity of the norm produces the factor λ\lambda without an absolute value.

Proof.

Suppose first that u=λv\mathbf{u} = \lambda\mathbf{v} with λ0\lambda \geqslant 0. Then

u+v=(λ+1)v=(λ+1)v=λv+v=u+v,\lVert \mathbf{u} + \mathbf{v} \rVert = \lVert (\lambda + 1)\mathbf{v} \rVert = (\lambda + 1)\lVert \mathbf{v} \rVert = \lambda\lVert \mathbf{v} \rVert + \lVert \mathbf{v} \rVert = \lVert \mathbf{u} \rVert + \lVert \mathbf{v} \rVert,

using λ+1=λ+1|\lambda + 1| = \lambda + 1 and λ=λ|\lambda| = \lambda.

Conversely, suppose the norms are equal. Squaring and expanding as in the proof of the triangle inequality,

u2+2(uv)+v2=u2+2uv+v2,\lVert \mathbf{u} \rVert^2 + 2(\mathbf{u} \cdot \mathbf{v}) + \lVert \mathbf{v} \rVert^2 = \lVert \mathbf{u} \rVert^2 + 2\lVert \mathbf{u} \rVert \lVert \mathbf{v} \rVert + \lVert \mathbf{v} \rVert^2,

so uv=uv\mathbf{u} \cdot \mathbf{v} = \lVert \mathbf{u} \rVert \lVert \mathbf{v} \rVert. In particular uv=uv|\mathbf{u} \cdot \mathbf{v}| = \lVert \mathbf{u} \rVert \lVert \mathbf{v} \rVert, which is the case of equality in the Cauchy–Schwarz inequality, so one of u\mathbf{u}, v\mathbf{v} is a multiple of the other; as v0\mathbf{v} \neq \mathbf{0} we may write u=λv\mathbf{u} = \lambda\mathbf{v}. Then uv=λv2\mathbf{u} \cdot \mathbf{v} = \lambda\lVert \mathbf{v} \rVert^2 is non-negative and v2>0\lVert \mathbf{v} \rVert^2 > 0, so λ0\lambda \geqslant 0.

Restricted to [0,π][0, \pi] the cosine is a bijection onto [1,1][-1, 1], so it has an inverse cos1:[1,1][0,π]\cos^{-1} : [-1, 1] \to [0, \pi], and the Cauchy–Schwarz inequality says exactly that the quotient below is an admissible input to it.

Definition 1.84 (Angle between vectors).

Let u,vRn\mathbf{u}, \mathbf{v} \in \mathbb{R}^n be non-zero. The angle between them is

θ=cos1 ⁣(uvuv)[0,π].\theta = \cos^{-1}\!\left( \frac{\mathbf{u} \cdot \mathbf{v}}{\lVert \mathbf{u} \rVert \, \lVert \mathbf{v} \rVert} \right) \in [0, \pi].

The vectors are orthogonal, or perpendicular, if uv=0\mathbf{u} \cdot \mathbf{v} = 0, that is if θ=π2\theta = \tfrac{\pi}{2}.

The definition is legitimate because Cauchy–Schwarz gives uvuv|\mathbf{u} \cdot \mathbf{v}| \leqslant \lVert \mathbf{u} \rVert \lVert \mathbf{v} \rVert, so the quotient lies in [1,1][-1, 1]. Taking the value of cos1\cos^{-1} in [0,π][0, \pi] measures the smaller of the two angles between the vectors. For n=2n = 2 this agrees with the angle read off the unit circle.

Corollary 1.85 (Law of cosines).

Let u,vRn\mathbf{u}, \mathbf{v} \in \mathbb{R}^n be non-zero, with angle θ\theta between them. Then

uv2=u2+v22uvcosθ.\lVert \mathbf{u} - \mathbf{v} \rVert^2 = \lVert \mathbf{u} \rVert^2 + \lVert \mathbf{v} \rVert^2 - 2 \lVert \mathbf{u} \rVert \lVert \mathbf{v} \rVert \cos\theta .

Taking u\mathbf{u} and v\mathbf{v} to be two sides of a triangle issuing from the vertex where the angle is γ\gamma, this is the law of cosines c2=a2+b22abcosγc^2 = a^2 + b^2 - 2ab\cos\gamma.

Proof.

By bilinearity of the scalar product,

uv2=(uv)(uv)=u22(uv)+v2,\lVert \mathbf{u} - \mathbf{v} \rVert^2 = (\mathbf{u} - \mathbf{v}) \cdot (\mathbf{u} - \mathbf{v}) = \lVert \mathbf{u} \rVert^2 - 2(\mathbf{u} \cdot \mathbf{v}) + \lVert \mathbf{v} \rVert^2,

and the definition of the angle gives uv=uvcosθ\mathbf{u} \cdot \mathbf{v} = \lVert \mathbf{u} \rVert \lVert \mathbf{v} \rVert \cos\theta. The third side of the triangle with sides u\mathbf{u} and v\mathbf{v} is uv\mathbf{u} - \mathbf{v}, whose length is cc, while u\lVert \mathbf{u} \rVert and v\lVert \mathbf{v} \rVert are bb and aa.

Example 1.86 (An angle in R4\mathbb{R}^4).

Let u=(1,2,3,1)\mathbf{u} = (1, 2, 3, 1) and v=(1,0,2,3)\mathbf{v} = (-1, 0, 2, 3). Their norms are

u2=1+4+9+1=15,v2=1+0+4+9=14,\lVert \mathbf{u} \rVert^2 = 1 + 4 + 9 + 1 = 15, \qquad \lVert \mathbf{v} \rVert^2 = 1 + 0 + 4 + 9 = 14,

so u=15\lVert \mathbf{u} \rVert = \sqrt{15} and v=14\lVert \mathbf{v} \rVert = \sqrt{14}. Their scalar product is

uv=1(1)+20+32+13=8,\mathbf{u} \cdot \mathbf{v} = 1 \cdot (-1) + 2 \cdot 0 + 3 \cdot 2 + 1 \cdot 3 = 8,

so the angle between them is

θ=cos1 ⁣(81514)=cos1 ⁣(8210)0.986 radians.\theta = \cos^{-1}\!\left( \frac{8}{\sqrt{15}\sqrt{14}} \right) = \cos^{-1}\!\left( \frac{8}{\sqrt{210}} \right) \approx 0.986 \text{ radians}.

Proposition 1.87 (Orthogonal projection).

Let u,vRn\mathbf{u}, \mathbf{v} \in \mathbb{R}^n with v0\mathbf{v} \neq \mathbf{0}. There is exactly one real λ\lambda for which uλv\mathbf{u} - \lambda\mathbf{v} is orthogonal to v\mathbf{v}, namely

λ=uvv2,\lambda = \frac{\mathbf{u} \cdot \mathbf{v}}{\lVert \mathbf{v} \rVert^2},

and the resulting decomposition is

u=λv+(uλv).\mathbf{u} = \lambda\mathbf{v} + (\mathbf{u} - \lambda\mathbf{v}).

Discussion.

The condition to be met is a single scalar equation, (uλv)v=0(\mathbf{u} - \lambda\mathbf{v}) \cdot \mathbf{v} = 0, in the single unknown λ\lambda. Bilinearity expands its left side into uvλv2\mathbf{u}\cdot\mathbf{v} - \lambda\lVert\mathbf{v}\rVert^2, which is a linear expression in λ\lambda with coefficient v2-\lVert\mathbf{v}\rVert^2; that coefficient is non-zero exactly because v0\mathbf{v} \neq \mathbf{0}, so the equation has exactly one solution and existence and uniqueness are settled together. The decomposition is then a matter of adding and subtracting the same vector.

Proof.

For λR\lambda \in \mathbb{R}, bilinearity of the scalar product gives

(uλv)v=uvλ(vv)=uvλv2.(\mathbf{u} - \lambda\mathbf{v}) \cdot \mathbf{v} = \mathbf{u} \cdot \mathbf{v} - \lambda (\mathbf{v} \cdot \mathbf{v}) = \mathbf{u} \cdot \mathbf{v} - \lambda \lVert \mathbf{v} \rVert^2 .

Since v0\mathbf{v} \neq \mathbf{0} we have v2>0\lVert \mathbf{v} \rVert^2 > 0, so this vanishes for exactly one λ\lambda, namely λ=(uv)/v2\lambda = (\mathbf{u} \cdot \mathbf{v}) / \lVert \mathbf{v} \rVert^2. Writing u=λv+(uλv)\mathbf{u} = \lambda\mathbf{v} + (\mathbf{u} - \lambda\mathbf{v}) is then an identity.

Definition 1.88 (Vector projection).

With λ\lambda as in the last proposition, the vector

projvu=λv=uvv2v\operatorname{proj}_{\mathbf{v}} \mathbf{u} = \lambda\mathbf{v} = \frac{\mathbf{u} \cdot \mathbf{v}}{\lVert \mathbf{v} \rVert^2}\,\mathbf{v}

is the component of u\mathbf{u} in the direction of v\mathbf{v}, or the vector projection of u\mathbf{u} onto v\mathbf{v}, and uλv\mathbf{u} - \lambda\mathbf{v} is the component of u\mathbf{u} perpendicular to v\mathbf{v}.

Ovuλvu − λv
Figure 1.21. The components of u\mathbf{u} relative to v\mathbf{v}: the projection λv\lambda\mathbf{v} along v\mathbf{v}, and uλv\mathbf{u} - \lambda\mathbf{v} at right angles to it.

Problem 1.26.

Let u=(2,1,2)\mathbf{u} = (2, -1, 2) and v=(1,2,2)\mathbf{v} = (1, 2, 2) in R3\mathbb{R}^3. Compute the angle between them, the projection of u\mathbf{u} onto v\mathbf{v}, and the component of u\mathbf{u} perpendicular to v\mathbf{v}, and verify that the two components are orthogonal.

Problem 1.27.

Let vRn\mathbf{v} \in \mathbb{R}^n be non-zero. Show that projv\operatorname{proj}_{\mathbf{v}} is unchanged when v\mathbf{v} is replaced by μv\mu\mathbf{v} for any real μ0\mu \neq 0.

Problem 1.28.

With λ\lambda as in the last proposition, prove that

u2=λv2+uλv2,\lVert \mathbf{u} \rVert^2 = \lVert \lambda\mathbf{v} \rVert^2 + \lVert \mathbf{u} - \lambda\mathbf{v} \rVert^2,

and deduce that projvuu\lVert \operatorname{proj}_{\mathbf{v}} \mathbf{u} \rVert \leqslant \lVert \mathbf{u} \rVert.

One more construction is available in three dimensions only.

Definition 1.89 (Vector product).

For u=(u1,u2,u3)\mathbf{u} = (u_1, u_2, u_3) and v=(v1,v2,v3)\mathbf{v} = (v_1, v_2, v_3) in R3\mathbb{R}^3, the vector product, or cross product, is

u×v=(u2v3u3v2,  u3v1u1v3,  u1v2u2v1)R3.\mathbf{u} \times \mathbf{v} = (u_2 v_3 - u_3 v_2, \; u_3 v_1 - u_1 v_3, \; u_1 v_2 - u_2 v_1) \in \mathbb{R}^3 .

Unlike the scalar product it returns a vector rather than a number, and it exists only for n=3n = 3.

Exercises on Vectors

Exercise 1.1.

Let a=(2,1)\mathbf{a} = (2, 1) and b=(8,2)\mathbf{b} = (8, 2). Find a+b\mathbf{a} + \mathbf{b} twice, once by drawing and once by computing, and check that the two agree.

Exercise 1.2.

Let a=(1,2,4)\mathbf{a} = (1, 2, 4), b=(2,1,1)\mathbf{b} = (2, 1, -1) and c=3c = 3. Compute

a+b,ab,ab,ca,a,ca,\mathbf{a} + \mathbf{b}, \quad \mathbf{a} - \mathbf{b}, \quad \mathbf{a} \cdot \mathbf{b}, \quad c\mathbf{a}, \quad \lVert \mathbf{a} \rVert, \quad \lVert c\mathbf{a} \rVert,

and normalise a\mathbf{a} and b\mathbf{b}.

Exercise 1.3.

Give the coordinates of the eight corners of a cube of edge length 11 positioned so that three of its edges lie along the xx-, yy- and zz-axes.

Exercise 1.4.

Romeo is at (3,4,0)(3, 4, 0) and Juliet is at (2,1,5)(2, 1, 5). How far apart are they?

Exercise 1.5.

Find a vector in R3\mathbb{R}^3 orthogonal to (2,3,4)(2, -3, 4), and describe all of them.

Exercises on Symmetries and Groups

Exercise 1.6.

Let S={a,b}S = \{a, b\} be a two-element set. Show that there are exactly 1616 binary operations on SS, and determine how many of them make SS a group. Then find a formula for the number of binary operations on a set of nn elements.

Exercise 1.7.

Prove that multiplication of complex numbers is associative.

Exercise 1.8.

Which of the following are groups? Justify each answer.

  1. The complex numbers zz with z=1|z| = 1, under multiplication;
  2. {xRx0}\{x \in \mathbb{R} \mid x \geqslant 0\} under xy=max(x,y)x \star y = \max(x, y);
  3. the rationals with odd denominator, under addition;
  4. {a,b}\{a, b\} with aba \neq b and aa=aa \star a = a, bb=bb \star b = b, ab=ba \star b = b, ba=bb \star a = b;
  5. {a,b}\{a, b\} with aba \neq b and aa=aa \star a = a, bb=ab \star b = a, ab=ba \star b = b, ba=bb \star a = b;
  6. R3\mathbb{R}^3 under the vector product vw=v×w\mathbf{v} \star \mathbf{w} = \mathbf{v} \times \mathbf{w}.

Exercise 1.9.

Let SS be the set of all real numbers except 1-1, and for a,bSa, b \in S define ab=ab+a+ba \star b = ab + a + b. Show that (S,)(S, \star) is a group. Check in particular that \star really is a binary operation on SS.

Exercise 1.10.

Let GG be a group and a,b,cGa, b, c \in G. Prove that

  1. if ab=acab = ac then b=cb = c;
  2. the equation axb=caxb = c has exactly one solution xGx \in G;
  3. (a1)1=a(a^{-1})^{-1} = a.

Exercise 1.11.

Let GG be a group with identity ee in which xx=ex \star x = e for every xGx \in G. Show that GG is abelian. Then produce infinitely many groups with this property.

Exercise 1.12.

Let XX be a non-empty set and let α,β\alpha, \beta be permutations of XX such that every element moved by α\alpha is fixed by β\beta and every element moved by β\beta is fixed by α\alpha. Prove that αβ=βα\alpha \circ \beta = \beta \circ \alpha. (Harder.)

Exercise 1.13.

Let (G,)(G, \cdot) be a group and let g,hGg, h \in G with gh=hggh = hg. Show that (gh)r=grhr(gh)^r = g^r h^r for every rNr \in \mathbb{N}. Then exhibit g,hS3g, h \in S_3 with (gh)2g2h2(gh)^2 \neq g^2 h^2.

Exercise 1.14.

Prove that SnS_n is abelian only for n<3n < 3.

Exercises on Fields and Real Functions

Exercise 1.15.

Solve sinx=cosx\sin x = \cos x for xRx \in \mathbb{R}.

Exercise 1.16.

Solve each of the following for θ[0,2π)\theta \in [0, 2\pi).

  1. sinθ=3cosθ\sin\theta = \sqrt{3}\cos\theta;
  2. sinθ=cos2θ\sin\theta = \cos 2\theta;
  3. sinθcosθ=34\sin\theta\cos\theta = \tfrac{\sqrt{3}}{4};
  4. 2cos2θ3cosθ+1=02\cos^2\theta - 3\cos\theta + 1 = 0;
  5. 3sinθcos2θ+3=03\sin\theta - \cos^2\theta + 3 = 0.

Exercise 1.17.

In a triangle labelled as in the figure of the last chapter, let α=π6\alpha = \tfrac{\pi}{6}, β=π3\beta = \tfrac{\pi}{3} and a=1a = 1. Compute cc.

Exercise 1.18.

Let FF be a field. Prove that 0Fa=0F0_F \cdot a = 0_F and (1F)a=a(-1_F)\,a = -a for every aFa \in F.

Exercise 1.19.

Show that {0,1}\{0, 1\} with 1+1=01 + 1 = 0 and the usual multiplication is a field, and that no field has exactly three elements in which 1+1=01 + 1 = 0.

Check Yourself

 

Fresh questions on the whole lesson — none of them is worked out above. Do each on paper first; the box only tells you whether you got there.

Answers are checked in your browser, as often as you like. Nothing is sent anywhere and nothing is kept but your own work. A formula may be written with the symbols themselves or with ~ & | -> <-> ^, and \and, \or, \to expand as you type.

Exercise 1.20.

Let u=(3,4)\mathbf{u} = (3, -4) in R2\RR^2. What is 2u\lVert 2\mathbf{u} \rVert?

answer one of these

Exercise 1.21.

Which of these is a unit vector in R3\RR^3?

answer one of these

Exercise 1.22.

Which of these vectors is orthogonal to (1,2,3)(1, 2, 3)?

answer one of these

Exercise 1.23.

What is the projection of u=(4,0)\mathbf{u} = (4, 0) onto v=(1,1)\mathbf{v} = (1, 1)?

answer one of these

Exercise 1.24.

What is the angle between (1,0)(1, 0) and (1,1)(1, 1) in R2\RR^2?

answer one of these

Exercise 1.25.

How many unit vectors in R2\RR^2 are orthogonal to (3,4)(3, 4)?

answer one of these

Exercise 1.26.

How many elements has the symmetry group of a regular hexagon?

answer one of these

Exercise 1.27.

How many reflections are there among the symmetries of a regular pentagon?

answer one of these

Exercise 1.28.

What is the order of the permutation (123)(45)(1\,2\,3)(4\,5) in S5S_5?

answer one of these

Exercise 1.29.

What is #(S5)\#(S_5)?

answer one of these

Exercise 1.30.

In S4S_4, what is the inverse of (1234)(1\,2\,3\,4)?

answer one of these

Exercise 1.31.

Exactly one of these is not a group. Which?

answer one of these

Exercise 1.32.

In the two-element field {0,1}\{0, 1\}, where 1+1=01 + 1 = 0, what is 1+1+11 + 1 + 1?

answer one of these

Exercise 1.33.

What is log232\log_2 32?

answer one of these

Exercise 1.34.

What is exp(log3+log4)\exp(\log 3 + \log 4)?

answer one of these

Exercise 1.35.

What is tan(π4)\tan\left(-\tfrac{\pi}{4}\right)?

answer one of these

Exercise 1.36.

How many solutions has cosθ=0\cos\theta = 0 in [0,2π)[0, 2\pi)?

answer one of these

Exercise 1.37.

What is the least upper bound of {xRx2<2}\{\, x \in \RR \mid x^2 < 2 \,\}?

answer one of these

Exercise 1.38.

Which of these sets has no largest element?

answer one of these

Exercise 1.39.

For a,b0a, b \geqslant 0, when is ab=12(a+b)\sqrt{ab} = \tfrac{1}{2}(a + b)?

answer one of these