1P4 Mathematical Methods
Mathematics
1. Vectors: notation, lines and planes
- A scalar has only magnitude: e.g. mass, time, temperature.
- A vector has magnitude and direction: e.g. force, acceleration, electric field.
- Bold denotes a vector in print (). In handwriting, underline it ().
- is the length (magnitude) of .
- A hat denotes a unit vector (length 1): .
- is the scalar (dot) product. It is covered later.
- is the vector (cross) product. It is covered later.
are three mutually orthogonal unit vectors (at to each other). They form a right-handed set:
The components are scalars.
Where it comes from
This is what a basis means: three vectors that are not coplanar, so that every vector in 3D can be written in exactly one way as a combination of them (Right-handed Cartesian basis). The components are the numbers in that combination. With an orthonormal basis, (Lecture 2: Components are projections onto the basis).
Show derivation
The basis vectors are perpendicular unit vectors, so Pythagoras applies twice. In the -plane, has length . That vector is perpendicular to , so the whole vector has length .
Sum over any repeated index. The summation sign is implied but not written:
Show derivation
Square Magnitude of a vector: , and by the Einstein summation convention the repeated index means “sum over ”, so this is written .
For and :
Show derivation
Expand using the distributive property of the scalar product: . The basis is orthonormal: if (unit length) and if (perpendicular), which is the Kronecker delta . Only the terms with survive: . (Lecture 2 does this in full: Scalar product in components.)
is a general point on the line. at and at .
Show derivation
Start at the point on the line. The line’s direction is that of (the vector from A to B). Every point on the line is reached by moving from some multiple of that direction, forwards () or backwards (), and every such point is on the line. gives A and gives .
The parameter is called rather than because is not .
Show derivation
Same reasoning as Line through two points, with the direction given as a unit vector . Then is the actual distance moved along the line from (since ). With two points, and .
Rearranging each equation for :
Show derivation
Write Line through two points in components (Vector in components): two vectors are equal when their components are, so each component gives one scalar equation. Each one contains the same , so solving each for gives three expressions that must all be equal (assuming no is zero).
Show derivation
Like Line through two points, but a plane needs two directions. and both lie in the plane and, if A, B, C are not on one line, are not parallel. Then every point of the plane can be reached from by a combination (they form a basis for the plane), and every such point lies in the plane.
are unit vectors along .
Show derivation
In Plane through three points any two non-parallel vectors in the plane can replace and . Writing just rescales the parameter: , and similarly for .
We just differentiate the coefficient of each component. A dot denotes .
Show derivation Differentiate component by component
Differentiation is linear, so
Apply the product rule to each term:
The are static, so . The second term vanishes, and the same happens in all three terms. (The derivative itself is defined as for a scalar, ; with constant the difference is , which gives the same result.)
Here is the radius. The velocity is tangential to the circle and .
Show derivation
and are constant and the are fixed, so differentiate each component (Derivative of a vector) with the chain rule, and :
The magnitude is and the direction is towards the origin.
Show derivation
From Circular motion: position, velocity, acceleration: . So , pointing opposite to , i.e. to the centre.
Show derivation
Drop a perpendicular from the point to the -plane. Its foot is a distance from the -axis at angle from the -axis, so right-angled-triangle trigonometry gives , ; the height is unchanged. (Same as Cylindrical ↔ Cartesian.)
Show derivation
The point is at distance from O and angle from the -axis. In the vertical plane through the -axis and the point, its height is and its distance from the -axis is . Then use Cylindrical polars to Cartesian with that : , .
A vector space is a set of vectors with the following properties:
- Addition: for any , is also in .
- Scalar multiplication: for any scalar and , is also in .
- Addition is commutative and associative.
- There is a zero vector with .
- Every has an additive inverse with .
- Scalar multiplication distributes over addition: and .
2. The scalar product
The scalar product (or dot product) of two vectors and is written . It multiplies two vectors and produces a scalar.
- Maximum positive value: the vectors point in the same direction.
- Zero: the vectors are perpendicular (for non-zero vectors).
- Negative: the vectors point in “opposite” directions. More precisely, .
Show derivation
From Scalar product in terms of the angle, and are positive, so has the sign of for : largest at (), zero at , negative for .
Here () is the angle between and .
Where it comes from
This is the definition of the scalar product (Scalar (dot) product; databook maths p16). The derivation below shows the other way round: if instead you take the three Defining properties of the scalar product as the definition, this formula follows.
Show derivation a·b = |a||b|cos θ from the properties
Let , so .
- Use (3) to expand the brackets and collect :
- Use (2):
- Compare with the cosine rule, with etc.:
is the same whichever vector you measure from, so the scalar product is commutative:
Show derivation
where is the angle measured from to . That is or (or ), and is even (), so .
The perpendicular part is .
Show derivation Projection of b onto a (Appendix A1)
Split into parts parallel and perpendicular to :
Write . Then , so . So . With this is .
Show derivation
By Scalar product in terms of the angle, , the component being . Components along a fixed direction add: going along then along (head to tail) moves you along by the component of plus the component of , and that is also the component of . Multiply by : .
- if .
- .
- and .
Show derivation
Each follows from Scalar product in terms of the angle: (1) ; (2) the angle between and itself is , so ; (3) Commutativity and Distributive over addition. Conversely these properties are enough to define the scalar product (derivation in Scalar product in terms of the angle).
Equality holds only when and are parallel or antiparallel.
Show derivation
Take the modulus of Scalar product in terms of the angle: , with equality exactly when , i.e. or .
Show derivation
, using Distributive over addition and the orthonormal basis (, the others ). The same for .
In the last form and are column vectors (linear algebra form, used in later lectures).
Show derivation Expanding in components
With , distributivity gives
For orthonormal :
Summing over against replaces by .
Show derivation What the δ actually does
By the summation convention,
Show derivation
Rearrange Scalar product in terms of the angle: . Since and is one-to-one on that range, is unique. Work out from Scalar product in components.
- is a unit normal to the plane.
- is the shortest distance from the origin to the plane.
Show derivation Deriving r · n̂ = d
The point of the plane closest to the origin is . For any point on the plane, lies in the plane, so it is perpendicular to :
Show derivation
Write Plane: normal form in components (Scalar product in components): and give . If is not a unit vector, is the distance times .
Show derivation
In components (Scalar product in components), , a sum of products of scalar functions of . Use the ordinary product rule on each term (Derivative of a vector: the components of are ):
Show derivation
. Put in Product rule for a scalar product: (Commutativity).
At a minimum or maximum of , this derivative is zero, so is orthogonal to .
If is constant for all , then at all times. An example is circular motion, where (Circular motion: position, velocity, acceleration).
Show derivation
By Derivative of |a|², . At a maximum or minimum, or everywhere if is constant, this is zero, so : the two are perpendicular (if neither is zero).
Show derivation Closest point C and the minimum distance
Let C be the point on the line, with position , such that is perpendicular to the line. Since :
Triangle A, C, P has a right angle at C, with . By Pythagoras:
Using the vector product (later): .
Show derivation
From the right-angled triangle in Closest point on a line to p: with .
3. The vector product
Cyclic rotation of gives
Show derivation
From Vector (cross) product: and are perpendicular unit vectors, so , and its direction is the normal turning from to by the right-hand screw, which in a right-handed basis is (Right-handed Cartesian basis). Relabelling does not change a right-handed set, so the same holds cyclically.
The order matters: reversing it flips the sign. The vector product is anticommutative.
Show derivation
In Vector (cross) product, , but turning from to is the opposite sense to turning from to , so the right-hand screw advances the other way: is reversed.
Setting in gives . This can only hold if
Show derivation
Directly from Vector (cross) product: the angle between and itself is , and .
Because is perpendicular to both and :
Show derivation
By Vector (cross) product, points along , the normal to the plane containing and . A vector perpendicular to another has zero scalar product with it (Defining properties of the scalar product).
If and are not parallel, then , and any vector can be written as
Show derivation
If and are not parallel, , so , and it is perpendicular to the plane of and (The vector product is perpendicular to both factors). So , , are three non-coplanar vectors, which is all a basis of 3D space needs (Vector in components).
Here is the unit normal to the plane containing and , in the RH-screw sense from to . The angle between and is taken with . (Databook: maths p16.)
Here is the unit direction of the line and is any point on it.
Show derivation From r = a + λt̂ to t̂ × r = b
Take the line (Line with a unit direction). Cross both sides with :
Show derivation Components of a × b
Write and (Einstein summation convention). Expanding term by term:
- Terms with vanish, since .
- The pair and : and , so these give .
- Doing the same for the other two pairs gives the and terms. In full: and give ; and give (using , ). Expanding the brackets term by term uses the distributive law (databook maths p16).
Expand along the top row, remembering the on the middle term. Determinants are covered next lecture.
Show derivation
Expand the determinant along its top row (3 × 3 determinant (top-row expansion)):
is for the cyclic orders of Cyclic order of the basis vectors and for the anticyclic ones.
The sum runs over the repeated indices .
Show derivation
As in Vector product in components, , and by the definition of Permutation (alternating) tensor, Levi-Civita symbol . So , whose -th component is . Check : only and survive, giving ✓.
Here is the Kronecker delta. The identity is useful for triple products, but the lecturer marked it as not required.
Show derivation not required
Fix and sum over . A term is non-zero only if are all different and are all different. So , is the third index, and .
- , : the term is (, cyclic).
- , : the term is (swapping two indices flips the sign).
- Anything else (including or ): .
The right-hand side gives , and in the same three cases (for it is ). The two sides agree for every choice of indices.
- : force on a charge moving with velocity in a magnetic field .
- : moment (torque) of a force acting at position .
- : velocity of a point at on a body with angular velocity .
- : Poynting vector, the electromagnetic power flow.
- : acceleration of a point with velocity and constant angular velocity .
This holds for circular motion with measured from the centre of the circle. is a vector, perpendicular to the plane of rotation.
Show derivation r × v for circular motion
The and terms vanish, and turns the minus into a plus. Divide by : . Conversely, (Circular motion: position, velocity, acceleration), using and .
must be a unit vector. This is more compact than the earlier dot-product form, Distance from a point to a line.
Show derivation
Let be the angle between and the line. In the right-angled triangle formed by A, P and the foot of the perpendicular from P, the side opposite is . By Vector (cross) product, , and .
The shortest line between the two lines is their common perpendicular: it is orthogonal to both and , so it has direction t₁ × t₂.
Show derivation The shortest line is the common perpendicular
The vector between two general points, one on each line, is
This is the projection of the vector between any two points on the lines onto the unit common normal.
Show derivation Distance between skew lines
Let and be the position vectors of and . By the result above,
Then and . The handout writes the denominator as , meaning .
Show derivation Solving for λ₁ and λ₂
Cross the equation with , which removes the term, and then with , which removes the term:
Show derivation
is the unit vector at angle from : its components are and . is turned anticlockwise (the way increases): angle , components and .
With :
Show derivation
Differentiate Polar unit vectors for θ = ωt component by component (Derivative of a vector):
is the radial velocity; is the circumferential velocity.
Show derivation
. Product rule, then Rates of change of the polar unit vectors with : .
Show derivation Acceleration in polar coordinates
Differentiate with the product rule. Both unit vectors must be differentiated too:
- : radial acceleration
- : centripetal acceleration
- : Coriolis acceleration
- : circumferential (angular) acceleration
4. Determinants, triple products and planes
By convention a vector is a column vector. Its transpose (superscript ) is a row vector:
An matrix is
For of size and of size (, ):
Where it comes from
A definition. It is chosen so that matrices compose like the linear maps they represent: if and , then , so with exactly this .
Element is the scalar product of row of with column of . Here are the rows of and the columns of : $$ \boldsymbol{A}\boldsymbol{B} = \begin{bmatrix} \leftarrow \v{a}_1 \rightarrow\ \leftarrow \v{a}_2 \rightarrow\ \leftarrow \v{a}_3 \rightarrow\end{bmatrix} \begin{bmatrix} \uparrow & \uparrow & \uparrow\ \v{b}_1 & \v{b}_2 & \v{b}_3\ \downarrow & \downarrow & \downarrow\end{bmatrix}
\begin{bmatrix} \v{a}_1\cdot\v{b}_1 & \v{a}_1\cdot\v{b}_2 & \v{a}_1\cdot\v{b}_3\ \v{a}_2\cdot\v{b}_1 & \v{a}_2\cdot\v{b}_2 & \v{a}_2\cdot\v{b}_3\ \v{a}_3\cdot\v{b}_1 & \v{a}_3\cdot\v{b}_2 & \v{a}_3\cdot\v{b}_3 \end{bmatrix} $$
Show derivation
In Matrix product (element form), . The numbers are row of and are column of , so this is their scalar product (Scalar product in components).
exists only if the number of columns of equals the number of rows of . Then gives .
Show derivation
The sum in Matrix product (element form) pairs the -th entry of a row of ( up to , its number of columns) with the -th entry of a column of ( up to its number of rows). Both counts must be the same . The result has one entry per row of () and per column of ().
Since ,
Show derivation
Treat as a matrix. By Matrix product (element form), , which is the left-hand side of equation . Two column vectors are equal when every entry is, so the three equations together say .
Show derivation
A times a matrix is (When a product exists), and its single entry is , the scalar product (Scalar product in components).
This is the skew-symmetric “cross-product matrix” of . Check it row by row against Vector product in components.
Show derivation
Multiply out row by row (Product as row · column): row 1 gives , row 2 gives , row 3 gives . These are the three components in Vector product in components.
Show derivation Eliminating x₁ from two equations
Start from
For (), each unknown is a ratio of determinants. In the numerator, the relevant column is replaced by :
Show derivation beyond this lecture
Let be the columns of . The equations say . A determinant is the scalar triple product of its rows (Scalar triple product as a determinant), and also of its columns (a determinant does not change when rows and columns are swapped, : expand both and you get the same six terms). So the numerator of is
has a unique solution if and only if .
Show derivation beyond this lecture
If : Cramer's rule (3 × 3) gives the solution, and it shows that any solution must equal it, so it is unique.
If : the columns are coplanar (Zero iff coplanar), so some combination with , i.e. for . Then if is a solution so is for every ; and if is not in the plane of the columns there is no solution at all. Either way the solution is not unique.
Where it comes from
This is the definition of a determinant (databook maths p15). It is chosen because it extends Cramer's rule (2 × 2) to three equations (Cramer's rule (3 × 3)) and because it equals the scalar triple product of the rows (Scalar triple product as a determinant), i.e. a signed volume.
- The minor is the determinant of the matrix left after deleting row and column of .
- The cofactor is .
The signs follow a chessboard pattern starting with at the top left:
The top-row expansion is . In fact you can expand along any row or column:
Show derivation beyond this lecture
Multiply out the top-row expansion (3 × 3 determinant (top-row expansion)): six products, each with one entry from every row and every column,
The signed value is positive when form a right-handed set (The right-hand screw rule).
Show derivation Volume = base area × height
- The base is the parallelogram spanned by . Its area is (|a × b| is the area of the parallelogram).
- Let be the unit vector perpendicular to the plane of and .
- The height is , where is the angle between and .
- Volume base height , up to sign. Sign. when is on the same side of the plane as , i.e. when are right-handed in the sense of the The right-hand screw rule. The volume itself is the modulus.
Show derivation From the determinant form of b × c
From Determinant mnemonic:
Show derivation
Two facts:
- Dot and cross can be swapped, : multiply out both with Vector product in components and you get the same six terms (example 1 below).
- Then (fact 1, then commutativity of the dot product). Applying this twice gives .
Finally by Anticommutativity. Geometrically: the same box has the same volume whichever face is the base; only the handedness (sign) can change.
are coplanar (zero volume). In determinant language, the rows are linearly dependent.
Show derivation
If lie in one plane, then is perpendicular to that plane (The vector product is perpendicular to both factors), so perpendicular to , and (or if ). Conversely, if the product is zero, either (, so all three fit in one plane) or , which puts in the plane of and . Geometrically: a flat box has zero volume (Volume of a parallelepiped).
Adding a multiple of one row to another leaves the determinant unchanged. The same holds for columns.
Show derivation
The dot product is distributive: , since (The vector product is perpendicular to both factors). By Cyclic invariance any row can be moved to the first place, so this works for any pair of rows; for columns use .
This is proved later in the course.
Show derivation proved later in the course
For matrices. Let be the columns of . Column of is times column of , i.e. (Matrix product (element form)). A determinant is the triple product of its columns (see Cramer's rule (3 × 3)), and the triple product is linear in each slot, so
The vector triple product is either
Show derivation Second identity from the first (Appendix A5)
Use anticommutativity (Anticommutativity). Then apply the first identity with the cyclic substitution , , :
Show derivation Proof of (a × b) × c = (a · c)b − (b · c)a: components (Appendix A6)
Start from . Then
Show derivation Proof in index notation (Appendix A6)
Only attempt this if you are confident with index notation.
Write with (Permutation (alternating) tensor, Levi-Civita symbol). The cyclic property of gives and . Now apply the Contracted epsilon (ε–δ) identity — not required for this course :
Show derivation Example 1: proof by index notation
Write and . Then
This is zero if are coplanar with the origin, as it should be.
Show derivation Closest point
- A normal to the plane is
- The plane is . Since ,
- The closest point lies along the normal from the origin: . Substituting into the plane equation gives .
- So , giving and . (Step 1: .)
Two non-parallel planes and intersect in a line parallel to
Show derivation
The line lies in both planes, so its direction is perpendicular to both normals. By The vector product is perpendicular to both factors, is perpendicular to both, and it is non-zero because the planes (hence their normals) are not parallel.
Use and write . Then
Show derivation
, and form a basis (Basis built from a, b and a × b), so any point can be written . Put it into each plane equation; the term drops out () and :
For planes , where the normals need not be unit vectors:
Show derivation The point on the line closest to the origin
With and we have . The vector triple product Vector triple product identities gives
Put the normals in as the rows of . The planes become
Show derivation
In components, (Scalar product in components). Three such equations are a linear system with coefficient rows (Linear equations as a matrix equation).
There is a unique solution (Scenario 4) if and only if
Show derivation
By Unique solution iff det A ≠ 0, (Three planes as a matrix equation) has exactly one solution iff . The rows of are the normals, and a determinant is the triple product of its rows (Scalar triple product as a determinant), so : non-zero exactly when the normals are not coplanar (Zero iff coplanar).
If , the normals are coplanar, so the rows are linearly dependent:
- If the relation is obeyed, there are infinitely many solutions: a line (Scenario 5).
- If it is not obeyed, there is no solution: Scenario 2 or 3, or Scenario 1 if all three normals are parallel.
Show derivation
Take the same combination of the three plane equations: the left-hand sides give , so a solution needs . If that holds, one equation is a combination of the other two (it adds no new condition), leaving two planes, which meet in a line (Two planes meet in a line) if their normals are not parallel. If it fails, the equations contradict each other: no point satisfies all three.
5. Functions, Taylor series, asymptotics and limits
A function maps each input to exactly one output . is the domain and is the codomain.
A function is smooth if it and all of its derivatives are continuous. Continuous means you can draw the graph without lifting the pen. Example: is smooth, because every derivative is again.
These are the first, second and th derivatives, and the th derivative evaluated at . For derivatives with respect to time a dot is used: and .
Show derivation
Split into many short intervals . On each, the change in is , with an error that shrinks faster than the interval. Add them up: the left side telescopes (every intermediate value cancels) to , and the right side is a Riemann sum that tends to as the intervals shrink. (A rigorous proof is in analysis courses; this is the idea.)
For and :
Show derivation
Product. From the definition of the derivative, with a small step :
Quotient. Write . By the Chain rule, . The product rule then gives .
Show derivation
Integrate the product rule from to . By the Fundamental theorem of calculus, , so . Rearrange.
For and :
Show derivation
A small change causes a change in , which causes a change in . For ,
If is even, it contains only even powers of . If it is odd, it contains only odd powers.
Show derivation
Powers. If is even, must equal for all . Two power series that are equal have equal coefficients, so : every odd has . For an odd function, kills every even .
Any can be split as , with even part and odd part :
Show derivation
Check the three claims. (even); (odd); . (To find them, write and , then add and subtract.)
and are odd; is even. (Databook p. 4.)
(The databook gives these in reverse, as integrals.)
Show derivation Derivatives of sinh and cosh
Use and :
, and , by analogy with , , . The databook writes .
Show derivation Identities from the definitions
Show derivation Inverting y = sinh x
Start from and multiply by :
Show derivation
. Solve for : , which is positive only for . Take logs and halve.
The simplest Gaussian is : a symmetric bell with peak , decaying rapidly for . The general form is , centred at with width .
Show derivation The I² trick
Write the square as a product of two identical integrals, using a different dummy variable in each:
General Gaussian. Substitute , so :
stands for all terms of order and higher (). Rules:
Here and . About it is called a Maclaurin series.
Show derivation Finding the coefficients c_n
- Put : every term except the first vanishes, so .
- Differentiate once: . At : .
- Differentiate again: . So .
- Third derivative: . So .
In general, differentiating times leaves plus terms that vanish at . Hence , with .
Term by term: . (This assumes can be written as a power series about at all; the Radius of convergence says where that works.)
Show derivation
For every derivative is , so and the Taylor series about 0 gives . Replace by for . Adding and halving keeps the even powers (cosh), subtracting and halving keeps the odd powers (sinh), matching Even and odd functions.
is odd, so only odd powers appear; is even, so only even powers appear.
Show derivation
The derivatives of repeat in a cycle of four: , which at are . The Taylor series about 0 therefore has only odd powers with alternating signs: . For the cycle starts , i.e. : only even powers.
For a positive integer it stops after terms. Otherwise it is infinite and valid for .
Show derivation
Taylor series of about 0: , , and in general . Divide by . If is a positive integer, the factor appears in every coefficient from on, so the series stops. Otherwise the coefficient ratio , so (Radius of convergence).
A series about with only odd powers (e.g. ) is odd: . One with only even powers (e.g. ) is even: .
More usefully, the converse holds. If you know is odd, its series has only odd powers. If is even, only even powers.
Show derivation
Both directions are Even and odd functions: with only odd powers, for every term, so ; with only even powers, . Conversely, an odd (even) function’s series cannot contain even (odd) powers, by comparing coefficients.
converges for , with
Show derivation beyond this lecture: the ratio test
Compare successive terms: as . If this ratio settles below 1, the terms eventually shrink at least as fast as a geometric series with ratio , which converges (databook maths p5: , ). If it is above 1, the terms grow and the series diverges. So it converges for ; at the test says nothing.
For :
Show derivation
Keep the first one or two terms of the series (Series for sin and cos, Series for e^x, e^{−x}, cosh, sinh, Binomial series (any α)). For small each further term is smaller by roughly a factor , so the first neglected term (“the next term”) is a good estimate of the error.
With and :
Show derivation
Keep the first two terms of the Taylor series about : . Move across: . The error is about .
means “ behaves like for large ” (or in whatever limit is being considered).
Taylor-expand the exponent of an integrand about its maximum, to second order. The integrand is then approximated by a Gaussian, which can be integrated exactly.
This extends to non-integers via the Gamma function, , with .
Show derivation Why the integral is n!
Integrate by parts:
Show derivation Stirling’s approximation by Laplace’s method
- Write the integrand as a single exponential:
- Find the maximum: at .
- Taylor-expand about the maximum:
Here , and gives . So near the maximum
- Substitute back, using and :
- For large the integrand is negligible for , so extend the lower limit to . Then use Gaussian integral with :
Show derivation Expanding g for large x
Substitute , so and :
Check: for , the exact value is ; the approximation gives .
Show derivation Large-x behaviour of erfc
- Substitute with . This removes from the limits and simplifies the exponent. With we have , and the limits map and :
- For large , is small, so by the binomial series
- Keeping the leading term:
From the Stirling section, for , and .
has limit at if for every there exists such that, for all in the domain of , implies :
Show derivation From areas to the limit
For :
Taking reciprocals inverts the order:
If for , and , then .
Show derivation beyond this lecture
Pick any tolerance . Close enough to , both and are within of . Then , so is within of too. Since was arbitrary, .
If and :
Show derivation beyond this lecture
Sketch, in the same “within ” language as the Squeeze theorem. Sum: , and both terms can be made as small as we like. Product: ; stays near , so both terms go to 0. Reciprocal: , and stays near , so this goes to 0.
Show derivation
- : its log is , so the limit is .
- : each step multiplies by , which falls below once , so the terms shrink faster than .
- : the ratio of successive terms is , so the terms eventually shrink geometrically.
- as : write it as () and use L'Hôpital's rule: .
For the indeterminate forms or :
Show derivation L’Hôpital’s rule from Taylor series
Expand and about :
Show derivation Why it also works for ∞/∞ (sketch, not a formal proof)
Suppose and , so and . Assume the limits (with ) and (with ) exist. Apply the rule to :
6. Complex numbers
The phase shift and the amplitude factor both depend on frequency.
Show derivation
Write . The circuit is linear and , are real, so the output for the input is of the output for the input .
By RC circuit: output/input ratio, that complex output is .
Taking the imaginary part gives
A complex number is , with real and , so .
- is the real part.
- is the imaginary part.
Show derivation
On the Argand diagram, is the length from the origin to and is the angle from the positive real axis.
- By the definitions of and , and .
- Squaring and adding (Pythagoras): .
- Dividing: .
is only defined up to multiples of . The principal value is the one with
If , then (also written ). In polar form, .
- Geometrically, is the reflection of in the real axis.
- Algebraically, it is obtained by letting everywhere.
Show derivation
- Sum: .
- Product: by Multiplication, . Its conjugate is .
- Quotient: the same argument with Division, where the arguments subtract.
Equivalently: every operation is built from , and , so swapping before or after the operation gives the same result.
Where it comes from
This is the definition of addition for complex numbers: is treated as an algebraic symbol and like terms are collected. It makes behave exactly like 2D vector addition (see Vector in components).
Equality holds only if .
Show derivation
Use z times its conjugate and Conjugate of a sum, product and quotient:
Geometrically, no side of a triangle is longer than the other two together.
Show derivation
and .
Moduli multiply and arguments add.
Show derivation
Cartesian form: , and .
Polar form:
Show derivation
using Modulus and argument.
Moduli divide and arguments subtract.
Show derivation
Multiply the top and bottom by and use z times its conjugate:
Polar form: and , so
Show derivation
Put (so , ) in Division. The modulus is and the argument is . Writing uses Euler's formula.
- : circle of radius centred at the origin.
- : circle of radius centred at .
- : ellipse with foci at and (needs ).
Show derivation
is the distance from to . With , Modulus and argument gives
is the distance from to the point . A curve on which the sum of the distances to two fixed points is constant is, by definition, an ellipse with those points as foci. If it collapses to the segment between the foci; if no points satisfy it.
For real , lies on the unit circle at angle . Hence any complex number can be written as
Show derivation
Put in the exponential series (databook maths p6, valid for complex arguments):
Show derivation
By Euler's formula, . By the index law, ; for integer this follows from Multiplication, since multiplying unit-modulus numbers of argument adds the arguments to . For negative , use Reciprocal.
So
Show derivation
Show derivation
By Euler's formula, , since for integer .
The lecturer also writes ; it gives the same set of roots. There are distinct roots, equally spaced by on a circle of radius .
Show derivation
for integer (databook maths p3), so .
Let . By Powers of a complex number,
The arguments of and differ by , so they are the same point. The values give different arguments, apart.
Over an interval , the scalar product of functions and is
For integers on :
Show derivation
By Functional scalar product, with :
Use Euler. is even, so and the cosine terms cancel. is odd, so the sine terms double:
- For integers , , so the result is .
- For , use (Limit of sin x / x) to get . More directly, the integrand is , so the integral is .
Since for , the functions and are orthogonal.
Show derivation
Orthogonality of complex exponentials gives for and otherwise, which is exactly times the Kronecker delta.
Where it comes from
Definition. For complex , define
Show derivation
Substitute , using and :
Show derivation
Step 1: the compound-angle formulae hold for complex . Expand the right-hand side with the exponential definitions:
Step 2: put , and use Trig and hyperbolic functions of an imaginary argument:
Show derivation
The hyperbolic addition formulae (Hyperbolic identities),
Put , and use and from Trig and hyperbolic functions of an imaginary argument.
So and (up to ).
Show derivation
The index law also holds for complex numbers. This can be shown by multiplying the two series of databook maths p6 and collecting terms with the binomial theorem; the proof is beyond this lecture.
So , and Euler's formula gives .
- There is a ambiguity in the imaginary part (the phase).
- The principal value takes , with .
Show derivation
means any with .
By Exponential of a complex number, . Comparing moduli gives , so (the real log of a positive number). Comparing arguments gives .
If has all coefficients real, then each root of is either real or one of a complex-conjugate pair , .
Show derivation
Let be a root:
Instead of a real sinusoid, use a complex sinusoid , where the physical (measurable) voltage is .
- Often this is shortened to , with “take ” understood.
- may itself be complex; its argument is the phase.
See also Complex form of a sinusoid.
Where it comes from
This is a convention, not a law. It works because circuit equations are linear with real coefficients (, , are real). So commutes with adding, with multiplying by real constants, and with . Solving with the complex signal and taking at the end gives the same answer as solving with the real signal.
So differential equations become algebraic equations. For example, the second-order ODE of an LCR circuit becomes a quadratic.
Show derivation
By Euler's formula, . Differentiate:
When the signals are complex sinusoids, the complex impedance is
The impedance is real, so voltage and current are in phase.
Show derivation
Since , the voltage lags the current by .
Show derivation
The capacitor holds charge (Capacitance). Differentiate, using (Electric current):
Since , the voltage leads the current by .
Show derivation
Faraday’s law (Faraday's law of electromagnetic induction) for the voltage across the inductor is , where is the flux linkage. The inductance is defined as (Self inductance). By the Chain rule:
CIVIL:
- in a Capacitor, I comes before V;
- V comes before I in an inductor (L).
That is, current leads voltage by in , and voltage leads current by in .
Show derivation
For a capacitor, (Impedance of a capacitor). For an inductor, (Impedance of an inductor).
and arguments add (Multiplication), so .
Show derivation
No current is drawn at the output, so the same current flows through and . Then and , so the ratio is .
Substitute (Impedance of a resistor) and (Impedance of a capacitor), then multiply the top and bottom by .
Convert to polar form with Modulus and argument. Its real part is , so the principal gives the right quadrant:
At , the impedances of and cancel (). The series combination then looks like alone:
- the current is maximum and in phase with ;
- , .
Below the circuit is capacitive (, output leads). Above it is inductive (, output lags).
Show derivation
by Impedance of an inductor and Impedance of a capacitor. This is zero when .
The total impedance is then , so (largest possible , real ratio), and .
For , , so . For , .
7. Linear ordinary differential equations
An equation relating a dependent variable (usually ), one independent variable (usually or ), and derivatives of the dependent variable:
The order is that of the highest derivative present.
- 1st order: involves , and , with no higher derivatives.
- 2nd order: involves , , and , with no higher derivatives.
An ODE that can be written in the form:
- 1st order:
- 2nd order:
A linear ODE is homogeneous if no function of the independent variable appears on its own, i.e. .
Let solve the homogeneous case, . Let be a particular solution for , so . Then for any constant the overall solution is
Show derivation
Substitute into the left-hand side and collect terms, using the linearity of differentiation:
is an arbitrary constant, found from a boundary condition.
Show derivation
Separate the variables, so terms are on one side and terms on the other:
The solution of the homogeneous ODE, i.e. with set to zero.
A particular solution of the ODE with the actual . It can often be found by an educated guess.
The sum of the two parts, by Principle of superposition (1st order):
If the ODE can be written with the right-hand side as a product,
Show derivation
For , the integrating factor is , and
Show derivation
If were zero, Homogeneous 1st order solution gives . Rearranging, .
This suggests differentiating that product. By the product rule, the Chain rule and the Fundamental theorem of calculus:
A non-homogeneous 1st order linear ODE, with .
Show derivation
The current through the resistor is its voltage drop divided by its resistance (Ohm's law):
is the constant of integration.
Show derivation
Apply the Integrating factor method method with , so the integrating factor is :
Show derivation
The amplitude falls as rises, and the output lags the input by .
Show derivation
In General solution for any input the CF term grows without limit as , so :
denotes the time average.
Show derivation
The average value of is (from , databook maths p4). For the input:
For :
Show derivation
As is an operator, powers mean repeated application:
If and both solve , then so does
Show derivation
We are given and . Substituting and using the linearity of :
For constant , this gives the case used repeatedly below:
Show derivation
The first line is Integrating factor method written with . For the second, put , so .
Show derivation
and . So
changes only by a scale factor. So is an eigenfunction of , satisfying , with eigenvalue . This matches matrices, where an eigenvector satisfies .
can be written as , where are the roots of the auxiliary equation ( replaced by ):
Show derivation
Expand the factors. The middle coefficient is :
Defining turns the ODE into , and leads to
Show derivation
With the ODE is . By Integrating factor in D notation:
The last term is .
Show derivation
:
Show derivation
Take and , so . Then Reduction of order: common first step becomes
are the roots of the auxiliary equation . Here label the roots (in case 3, their real and imaginary parts), not constants of integration.
| Case | Condition | Roots | General solution |
|---|---|---|---|
| 1. Repeated | |||
| 2. Distinct real | |||
| 3. Complex conjugate |
Show derivation
These are Case 1: repeated root, b² = 4ac, Case 2: distinct real roots, b² > 4ac and Case 3: complex roots, b² < 4ac, with the constants and roots relabelled.
For , there are two homogeneous solutions and , and
Show derivation
Write , which is linear. By Superposition (2nd order homogeneous), . Since :
The integrals are indefinite. and are found from the boundary conditions.
Show derivation
Re-write the ODE using the roots of (Auxiliary equation):
| Right-hand side | Trial PI |
|---|---|
| constant | |
| ( integer) | |
The constants (and possibly etc.) are to be determined.
Show derivation
Each trial is a family of functions closed under : differentiating a member gives another member. For example, turns into a combination of the same two functions.
So applied to a trial stays in the family. Matching coefficients with then gives linear equations for the constants, which have a solution unless part of the family is annihilated by . That exception is the case in Trial PI when q(x) is similar to the CF.
| Complementary function | Right-hand side | Trial PI |
|---|---|---|
| , | or | |
| , | or |
The constants (and possibly etc.) are to be determined.
Show derivation
Let and suppose is in the CF, so . By D acting on an exponential, the ordinary trial gives , which can never equal .
Instead, using and :
A physically significant example is resonance: a system excited at its natural frequency. For driven at :
Show derivation
Divide by . With :
Since , we get . So
8. Differential elements, difference equations and partial differentiation
- Draw a diagram of a small element of the system (size , , , …), with every force or flux acting on it.
- Balance forces (or energy fluxes) on the element. Keep terms of first order in the small quantities and drop products of them. Divide by the element size and let it tend to zero to get an ODE.
- Solve the ODE.
is the depth below the surface (measured downwards) and is the pressure at the surface (). Valid for constant (incompressible fluid).
Show derivation
Use the element of thickness and plan area in Element of water in a calm lake. It is in equilibrium (Static equilibrium (2.14), (2.15)). Resolve vertically, taking upward as positive:
and are the complex amplitudes of voltage and current at position . and are the inductance and capacitance per unit length.
Show derivation
Use the element in One element of a lossless transmission line, with every quantity .
- KVL across the inductor , which carries : , so .
- KCL at the output node: , so . The capacitor current is . Dropping the second-order term gives .
Let in both. The factor cancels throughout.
and . is the amplitude of the forward travelling wave and that of the backward travelling wave.
Show derivation
Differentiate the first of the Lossless transmission line equations and substitute the second: . Define , so .
This is a linear constant-coefficient ODE. The trial solution gives , so . The general solution is with two arbitrary constants. Multiply by to get .
This is the speed at which the phase of the forward wave travels along the line.
Show derivation
Follow a point of constant phase on the forward wave: . Differentiate with respect to : , so . With (Voltage waves on a lossless line) this is . For the backward wave, gives : the same speed in the direction.
is the angle of wrap (radians) measured from the holding end, where . So on the point of slipping.
Show derivation
Use the element in Forces on an element of rope on the capstan, in equilibrium, with limiting friction (Dry friction (4.1)).
- Tangentially: . With : .
- Radially: . With and the term dropped: .
Combine: . Divide by and let : . Separate the variables: , so , i.e. with .
With no horizontal loads, the horizontal component of tension is the same everywhere along the cable. is the tension at the lowest point, where .
Show derivation
Resolve horizontally on the element in Element of a hanging cable: . The weight is vertical, so it does not appear. Expand (databook maths p4, then small angles). This gives
Show derivation
By Pythagoras on the element, . Divide by to get . Let and take the positive root ( increases with ).
is the mass per unit length of cable, the (constant) horizontal component of tension, and a length.
Show derivation
Resolve vertically on the element in Element of a hanging cable: . Expand with databook maths p4 and small angles, and drop : . Divide by , let and use the product rule: .
By Horizontal component of tension is constant, . So . Substitute from Arc length per unit x and divide by .
is measured from the lowest point (the centre of a symmetric span) and is an unknown constant of integration that sets the vertical position.
Show derivation
Start from the Catenary ODE . Square it and differentiate: . Since , this gives .
Let , so . The trial solution gives , so (definitions of Hyperbolic sine, cosine, tangent, databook maths p4).
At the lowest point we have , so . Squaring may have introduced solutions that are not genuine, so substitute back into the unsquared ODE. With it requires . Squaring gives (Hyperbolic identities), and the right-hand side must be positive, so . Hence . Integrating (Derivatives of the hyperbolic functions) gives .
An equation relating the terms of a sequence to earlier terms, e.g. .
- Order: the largest gap in index (here 2).
- Linear: each appears only to the first power, with no products of ’s.
- Homogeneous: every term contains an (right-hand side zero).
and is the time step.
Show derivation
The forward Euler scheme (databook maths p27) is . With : . Each step multiplies by the same factor , so after steps (by induction on ).
Since , this is , the solution of .
Show derivation
Lecture’s argument: the Taylor series (databook maths p6) gives . So .
Exact limit: fix and take steps with . Then as , using (databook maths p3).
This is an equally valid alternative (handout footnote).
Show derivation
Use the backward difference , evaluated at the new point: . Collect the terms: .
and are the (distinct) roots. The constants and come from two initial or boundary values.
Show derivation
Substitute : . Divide by (): . Each root gives a solution .
The equation is linear and homogeneous, so any combination is also a solution.
It is the general solution. The recurrence fixes every once and are known. The two equations and always have a unique solution when , because their determinant (Cramer's rule (2 × 2)).
This solves with , .
Show derivation
Apply Characteristic equation of a 2nd-order linear difference equation with , , : , so (distinct). Then .
- gives .
- gives .
So and .
Write the equation as (homogeneous part) = (driving term), e.g. . Then
- Find the CF with the trial .
- Choose the PI trial from the form of the driving term, as for ODEs: a constant → ; a polynomial in → a polynomial of the same degree; → .
- If the trial (or part of it) is already in the CF, multiply it by .
- Fit the constants to the initial/boundary values last, using the complete solution CF + PI.
Show derivation
Write the equation as , where is linear: and .
- If is any one solution (the PI) and is any other solution, then . So solves the homogeneous equation and is a combination of the CF terms (Characteristic equation of a 2nd-order linear difference equation). Hence every solution is CF + PI.
- Why multiply by : in the first-order case , any gives , so it can never match a forcing . The trial gives , which can be matched.
The databook gives the same result as .
Show derivation
By Forced linear difference equations: CF + PI, solve as CF + PI.
- CF: , so .
- PI: try . A linear trial fails because its constant is part of the CF. Then . Matching to gives .
- Complete: . gives , so .
Check: ✓.
For discs this is 511 moves.
Show derivation
Recurrence: moving discs = move the top out of the way (), move the largest disc (1), put the back on top of it ().
Solve by Forced linear difference equations: CF + PI. The CF is (root ). The constant trial is not in the CF and gives . So , and gives .
Check: , ✓.
is the cost of a problem of size 1. For large , is larger than , so the running time scales as .
Show derivation
Put and , so that . By Forced linear difference equations: CF + PI:
- CF: , so .
- The forcing is in the CF, so try : , giving .
So . At (), , so . Substitute and .
The gradient in the direction, keeping constant:
For smooth functions
Show derivation not required
Define the double difference
- Group it as with . The mean value theorem gives for some between and . Applying it again in : at some point inside the small rectangle.
- Grouping the other way (first in , then in ) gives at another point of the rectangle.
Divide both by and let the rectangle shrink to . If the second derivatives are continuous (“smooth”), both tend to their values at , so they are equal.
Correct to first order in the small changes . The partial derivatives are evaluated at the starting point. (The databook gives this as the total differential .)
Show derivation
Split the change into a step in followed by a step in :
- Second bracket: only changes. By the definition of Partial derivative and 1D Linearisation about x = a, it is plus terms of order .
- First bracket: only changes, at height . It is plus terms of order . Also, , so this bracket is plus terms of order .
Dropping all second-order terms gives the result. With a third variable, add a third step in .
The total differential is the sum of the partial differentials.
Show derivation
From Small changes, , where consists of second-order terms (, , , …). As the changes tend to zero, vanishes faster than and . The relation between the infinitesimals , , is therefore the linear part, and it holds exactly.
The two-dimensional version of the Chain rule. is the total derivative: the rate of change of following the path . (The databook states the general form, )
Show derivation
Let change by . Then and change by and . By Small changes,
All derivatives are evaluated at . Note that the mixed term has no : the of cancels the 2 from the two equal mixed derivatives.
Show derivation
Let , and , so that and are constants.
- Chain rule in two variables (total derivative): .
- Apply the chain rule again to and (they are also functions of ): , and by Mixed partial derivatives commute.
- At , . The 1D Taylor series at is
Substituting gives the result.
9. Matrix toolkit, transpose, determinant and inverse
The column only means something once the basis is given. If no basis is stated, assume (Right-handed Cartesian basis). The same physical vector has different components in different bases (treated later in the course).
A mapping that respects addition and scaling:
is the angle the sheared “vertical” lines make with the -axis.
Show derivation
- In a shear parallel to , each horizontal layer slides sideways and keeps its height, so .
- A material line that was vertical, , becomes a straight line through at angle to the vertical.
- On that line, the point at height is displaced horizontally by “opposite = adjacent ”: . Hence , i.e. .
- By the Matrix product (element form) rule, , which reproduces both equations.
For a square matrix , the identity satisfies
Check (not a proof)
With (Kronecker delta), eq. (1) gives by the substitution property (Substitution property of δ). Similarly .
Show derivation
(The lecture leaves this as an exercise using eq. (1).) Apply eq. (1) twice to each side:
Show derivation
By eq. (1), . Subtraction is the same with .
Show derivation
A single counterexample is enough:
is with rows and columns interchanged:
The order reverses. Valid for , .
Show derivation
Index form (lecture). Use Transpose and eq. (1):
Row/column form (lecture). Write , with row of and column of (Product as row · column). Then
Longer products. Use associativity (Matrix multiplication is associative) and the two-matrix rule repeatedly:
are column vectors of the same length. The result is a matrix, i.e. a scalar.
Show derivation
has length and has length (treated as and matrices). The product is an matrix.
Show derivation
is with . is with (Transpose). The inner dimension is 1, so eq. (1) has a single term:
For : .
Where it comes from
Where it comes from. This is the definition of the determinant used earlier in the course: expansion along the first row, (databook maths p15). It is applied recursively down to determinants, . For it equals the scalar triple product of the rows.
That expanding along any row or column gives the same value is stated in the course but not proved (the lecturer says so in Appendix A2). For you can confirm it by writing out all six products for each expansion: every expansion produces the same six terms with the same signs.
Check (not a proof)
Take the worked example below. Expanding along row 1 instead of row 2:
When is used as a transformation, is its scale factor : it maps a unit “volume” to times the unit “volume”.
- :
- :
Show derivation
2D case (Appendix A1).
- Take elemental vectors along the axes, and . By |a × b| is the area of the parallelogram, the magnitude of their cross product is the area they sweep out:
- Embed a general map in 3D, leaving alone: . Then and .
- By Vector product in components, only the -component of their cross product survives:
- So the area has changed from to .
- A small rectangle at any other position maps to the same shape at , because by linearity . Any region can be filled with such rectangles, so every area scales by .
3D case.
- The unit cube spanned by maps to the parallelepiped spanned by the columns of (Columns of A = images of the basis vectors).
- Its volume is base × height. The base area is (|a × b| is the area of the parallelogram). The height is the projection of onto the unit normal (a·b as |a| times the projection of b onto a). So the volume is .
- Write and expand with Vector product in components and Scalar product in components:
This is exactly the column-1 Determinant by cofactors .
- Small cubes anywhere scale the same way (as in step 5 of the 2D case), so every volume scales by .
For a square matrix , the inverse satisfies
Recipe for an matrix:
- Calculate the cofactor matrix .
- Transpose it to get .
- Divide by .
Show derivation
Show that . By eq. (1) and Transpose:
- : this is , the Determinant by cofactors along row , so it equals .
- : let be with row replaced by a copy of row . The cofactors never use row , so they are the same for as for . Hence is the expansion of along row . But has two equal rows, so (Properties 1–4: row and column operations, property 3).
So . In the same way, is a column expansion (equal to if ; equal to 0 otherwise, because there are two equal columns), so .
If , dividing by it gives , which is the Inverse of a square matrix definition.
The transpose of the cofactor matrix, , is called the adjugate of . So .
Show derivation
- : steps 1 and 2 of the recipe (Inverse from cofactors) always work. The only thing that can go wrong is step 3, dividing by . That is fine when , and the result satisfies the definition.
- : if an inverse existed, Property 7: det of a product would give , which is impossible when .
- Multiplying any row or column by a constant multiplies by .
- Exchanging two rows (or two columns) changes the sign of .
- If two rows (or columns) are equal, .
- Adding a multiple of one row to another row leaves unchanged. The same holds for columns.
Show derivation Lecturer’s sketch (Appendix A2): via elementary matrices and property 7
Each row operation is left-multiplication by a simple matrix , so by Property 7: det of a product . Column operations are right-multiplication. The determinants of the s follow by expanding along a row that contains a single 1.
- 4. To add row to row , use the identity with in position (row , column ). For columns, multiply on the right with in position . For example, adds row 1 to row 2. Such a matrix has determinant 1, so is unchanged.
- 3. If two rows are equal, subtract one from the other. By 4 this does not change , but it leaves a row of zeros, and expanding along that row gives 0. Similarly for columns.
- 2. Swapping two rows is left-multiplication by a permutation matrix: the identity with the two relevant 1s moved, e.g. . Its determinant is , so the sign flips. For columns, multiply on the right.
- 1. Multiplying row (column) by is left (right) multiplication by the identity with its th 1 replaced by . That matrix has determinant .
Show derivation Direct proof from the cofactor expansion
- 1. Expand along the scaled row . The cofactors do not involve row , so every term gains a factor .
- 3. For with equal rows: . For larger , expand along a row that is not one of the two equal ones. Every minor still contains the two equal rows, so by induction every minor is 0.
- 2. For : . For larger , expand along a row not involved in the swap. Each minor has two of its rows swapped, so by induction each minor changes sign.
- 4. Replace row by row row and expand along row :
The last sum is the determinant of a matrix whose rows and are both row . By 3 it is zero.
Columns: the same arguments with column expansions.
So every statement about rows has a matching statement about columns.
Show derivation
The lecturer notes that this follows because the determinant can be expanded along any row or column (Determinant by cofactors, stated without proof). In detail, by induction on the size :
- For : .
- For larger , expand along its first row. The elements are . The minor of at is the transpose of the minor of at , so by the induction hypothesis it has the same value .
- Hence
which is the expansion of along its first column.
Show derivation proved later in the course
The lecturer’s second route uses results from later in the course. There, is shown to be the product of the eigenvalues of , and and are shown to have the same eigenvalues. So their determinants are equal.
Careful: arguing that the eigenvalues agree because would use property 5 itself, which is circular. The induction proof above does not have this problem.
Show derivation
By Property 7: det of a product:
square, of the same size. More generally, .
Show derivation Lecturer’s sketch (Appendix A2)
- Let and . By |det A| is the area/volume scale factor, each is a volume scale factor.
- applies , which scales every volume by , and then , which scales by . Composition simply multiplies the scale factors.
- The signs also multiply: each negative determinant reverses orientation, and two reversals restore it.
- is the same number, because the determinants are scalars, which commute (even though ).
A fully rigorous proof from the index definition is beyond this course.
Check (not a proof)
For matrices and :
The columns are where the -, - and -unit basis vectors go. So to build the matrix of a transformation, find where the basis vectors map to and write those images in as the columns.
Show derivation
has components (Kronecker delta). By eq. (1) and Substitution property of δ:
10. Rotations and reflections
rotates any 2D vector through anticlockwise.
Show derivation
Write , so and . Rotation keeps and adds to the angle: . By the compound-angle formulas (databook maths p4):
For a linear transformation , column of is the image of the -th basis vector. To write down the matrix, find where each basis vector goes and put those images in as columns.
Show derivation
(i) Column is the image of . By the Matrix product (element form), , because (Kronecker delta). So is the -th column.
(ii) The images fix the whole map. A rotation is linear: turning the parallelogram that builds rigidly gives a parallelogram that builds the rotated sum, and stretching then rotating is the same as rotating then stretching. Write . Then
Show derivation
Undoing an anticlockwise rotation through is a rotation through . So replace by in 2D rotation matrix and use and . Check:
A square matrix is orthogonal if
Show derivation
Using (databook maths p15):
An orthogonal matrix with is a proper orthogonal matrix, also called a rotation matrix.
is the vector that the basis vector is rotated to.
Show derivation
A rotation in 3D is linear, for the same reason as in 2D. Write . Then , which is the matrix with columns times . By Columns of a transformation matrix, is column , i.e. .
is positive by the right-hand rule about , i.e. towards .
Show derivation
Use 3D rotation matrix from the basis images: find each .
- lies on the axis, so it does not move: .
- In the – plane (figure), turns through towards : .
- turns through in the same sense, away from towards : .
Put in as columns.
A set of vectors is orthonormal if each is a unit vector and each pair is perpendicular:
So every rotation matrix is orthogonal (Orthogonal matrix). is the rotation through the same angle about the same axis, in the opposite sense.
Show derivation
Entry of is (row of )·(column of ) (Orthonormal set). So .
Taking determinants (databook maths p17) gives , so and exists. Multiply on the right by to get . Hence as well.
undoes , and the motion that undoes a rotation is the same rotation run backwards.
The rows of also form an orthonormal set.
Show derivation
is itself a rotation, so its columns are orthonormal (the argument of Orthonormal set). The columns of are the rows of . Algebraically, entry of is (row of )·(row of ) .
2D rotations commute. In 3D, rotations about the same axis commute.
Show derivation
2D. Multiply two matrices of the form 2D rotation matrix and use the compound-angle formulas (databook maths p4):
3D counterexample. Track through about and about (positive senses and ):
- first, then : is on the -axis so it stays at . Then about it goes to .
- first, then : . Then about , .
The final images differ ( vs ), so the two products differ.
If and , then for every .
Show derivation
Length squared is (Scalar product in components, Column vector and transpose). Using (databook maths p17):
Together with preserved lengths, this means the angle between any two vectors is unchanged (Angle between two vectors).
Show derivation
As a matrix: , which is orthogonal with .
Show derivation
Definition of a reflection in a plane: components parallel to the plane are unchanged, and the component along the normal is reversed. The normal to the – plane is , so only changes sign.
For the matrix, use Columns of a transformation matrix: , , . The columns are orthonormal, and .
- a pure rotation: form a right-handed set, .
- = rotations plus an odd number of reflections: a left-handed set, .
Show derivation
The basis is right-handed: (A right-handed coordinate frame, Products of the basis vectors (cyclic order)).
Rotation. Turn the frame gradually from angle 0 to . At every stage the are orthonormal, so is a unit vector perpendicular to both, i.e. . The sign cannot jump during a continuous motion, and it is at the start, so throughout.
Reflection in the – plane (Reflection in the x–y plane): , , . So : left-handed. A reflection in any other plane is this one seen in a rotated frame, so it also reverses handedness.
Each further reflection flips the handedness again and rotations never change it. So an odd number of reflections gives a left-handed set.
This is the signed volume of the unit cube with edges . For an orthogonal :
| meaning | |
|---|---|
| rotation | |
| reflection (+ rotation) |
Show derivation
, a standard property of determinants (expanding along a column gives the same as along a row). The rows of are . Expanding along the first row (databook maths p15) and comparing with Vector product in components:
For an orthonormal set, Rotations keep handedness, reflections reverse it gives:
- right-handed: (cyclic, as for ), so ;
- left-handed: , so .
Independent check that no other value is possible: gives (databook maths p17).
A matrix represents a rotation if and only if:
- its columns are unit vectors;
- its columns are mutually perpendicular (1 and 2 together: );
- , or equivalently .
Show derivation
Necessary. A rotation satisfies (Inverse of a rotation matrix), whose entries say : conditions 1 and 2. It also has (det Q distinguishes rotation from reflection). For an orthonormal set, and , so is the same as .
Sufficient (not required). Suppose and . Then
preserves scalar products (Orthogonal matrices preserve scalar products and angles), so it maps the plane perpendicular to to itself. In an orthonormal basis made of and two vectors in that plane, the matrix is block-diagonal: a for and a orthogonal block with determinant .
The block’s first column is a unit vector . Its second column is a unit vector perpendicular to that, so it is . A determinant of picks the sign, which gives 2D rotation matrix. So is a rotation through about .
11. Change of basis and transformation of matrices
- Active transformation: the basis stays fixed and the vector is physically moved (e.g. rotated). We ask where the vector is taken to.
- Passive transformation: the vector stays fixed and the basis is rotated. The vector is unchanged; only its components change.
; is the angle of from ; is the angle of from .
Show derivation
For an orthonormal basis each component is the projection onto that basis vector (Components are projections onto the basis): . By Scalar product in terms of the angle, . Also is at to , so the angle between and is , giving .
The new axes are the old ones turned through . The angle between and is therefore , and the same two steps give and .
Here rotates the axes anticlockwise by .
Show derivation
Start from Components relative to the old and the new axes and expand with the compound-angle formulae (databook maths p4):
takes the original axes to the new axes (); is the column of old components, the column of new components. Holds in 2D and 3D.
Show derivation
Write the same vector in the new basis and use . Matrix multiplication is linear, so can be taken outside the sum:
For a rotation, is orthogonal, so (databook maths p17; see Columns of R are the new basis vectors). This gives .
Positive follows the right-hand screw rule about , which turns towards .
Show derivation
The columns of are the images of (Columns of R are the new basis vectors).
- lies on the axis, so it is unchanged: second column .
- The – plane rotates rigidly by . A small positive rotation about moves a vector by . Since and (Products of the basis vectors (cyclic order)), turns towards and turns towards .
- A finite rotation by in that plane therefore gives (third column ) and (first column ).
For a rotation is orthogonal, , so and . Here is the matrix of the transformation in the old coordinates, the matrix of the same transformation in the new ones, and .
Show derivation
By Change of coordinates for a vector, and . Substitute into to get . Multiply on the left by : .
By definition . Both relations hold for every . Choose in turn: the -th columns of and agree for each , so .
Multiplying by on the left and by on the right gives . For a rotation, use (databook maths p17).
Each point moves parallel to by , so . Lines that were parallel to tilt by .
Show derivation
The columns of the matrix are the images of and (Columns of R are the new basis vectors uses the same fact).
- Points on the -axis do not move, so : first column .
- keeps its height 1 but slides along . Its side through the origin is tilted by from vertical, so it slides by : , giving second column .
- Find the transformation in a convenient coordinate system.
- Transform to the original coordinates: ( for a rotation).
| Orthogonal matrix, | , where is the result of rotating , etc. |
| Change of coordinates (vector) | (in general ), see Change of coordinates for a vector |
| Change of coordinates (matrix) | , which becomes , see Change of coordinates for a matrix |
For a rotation (any orthogonal matrix) the columns are orthonormal, so , i.e. . An orthogonal matrix has : for a pure rotation, if it includes a reflection.
Show derivation
is the column with 1 in place and 0 elsewhere. So , which is the -th column of . Hence column is written in old components.
Entry of is row of (that is, ) times column of , i.e. . A rotation keeps lengths and right angles, so the are orthonormal: (Kronecker delta). So and .
Then (databook maths p17), so .
A non-zero vector that satisfies
Where it comes from
This is a definition (databook maths p17 gives ). Geometrically, an eigenvector picks out a direction that does not turn. Along that direction only stretches or squeezes, by the factor . A negative also reverses the vector. is excluded because it would satisfy the equation for every .
So one can always normalise: .
Show derivation
Matrix multiplication is linear, so . Since and , is non-zero, so it satisfies Eigenvector and eigenvalue with the same . Taking gives the unit eigenvector .
12. Eigenvalues, eigenvectors and diagonalisation
The roots are the eigenvalues of .
Show derivation
For a given , is a homogeneous linear system.
By the databook (maths p17), has a non-trivial solution if and only if .
To see why: if , then exists and . That is not allowed for an eigenvector.
So a non-zero exists exactly when .
Expanding the determinant gives a polynomial of order in , the characteristic equation:
Show derivation
Each term of is a product of entries, one from each row and each column. appears only on the diagonal.
So the highest power comes only from the product of the diagonal entries, . Its leading term is . Every other term contains at most diagonal entries.
Hence the expansion is a polynomial of degree exactly , with .
A polynomial of degree has exactly complex roots, counted with multiplicity. This is the fundamental theorem of algebra, quoted without proof from the complex-numbers part of the course.
These are equations in unknowns; solve them for the remaining components of .
Show derivation
Keep rows of . Row reads
For :
Show derivation
Worked in the two examples above. Check: , and .
Show derivation
By Magnitude of a vector, , so has .
is still an eigenvector with the same eigenvalue: for any .
is symmetric if , equivalently . Examples:
If is a real, symmetric matrix, we can find a complete set of real eigenvalues and real eigenvectors for .
Show derivation not required
Proof by contradiction (slides 9.I–III). Suppose has a complex eigenvalue with eigenvector , where are real. Bars denote complex conjugates.
Step 1: conjugate. Since (real), conjugating gives .
Step 2: dot with and .
Step 3: the two left-hand sides are equal. Let . is a scalar, so . Also , using . Hence
Step 4: is real. , so . Therefore , i.e. .
Step 5: real eigenvectors. With real, . Adding this to gives . Since ,
Completeness (a full set of independent eigenvectors) follows with Theorem 2 and Repeated eigenvalue of a symmetric matrix: an eigenplane.
If is a real, symmetric matrix, eigenvectors of belonging to distinct eigenvalues are orthogonal.
Show derivation not required
Proof (slide 10.I). Let and with . Then
For the eigenvectors of a real symmetric :
Show derivation
, by #symmetric orthogonal eigenvectors.
is antisymmetric if , so its diagonal is zero. For example,
An matrix that does not have linearly independent eigenvectors is defective. The second matrix above is an example; it is known as a Jordan matrix. For now it is enough to know that such matrices exist.
For a real symmetric matrix, a repeated eigenvalue gives an eigenplane (in more than 3 dimensions, a hyperplane or volume). Every vector in it is an eigenvector with that eigenvalue. Choose mutually orthogonal vectors in the eigenplane, and you still get a full set of orthogonal eigenvectors.
Show derivation not required
Let be , real and symmetric.
- By Theorem 1: real eigenvalues and eigenvectors, has a real eigenvalue with a real unit eigenvector .
- Let be the set of vectors orthogonal to ; it has dimension . For :
So : maps into itself.
- In an orthonormal basis of , acts through the matrix with entries . This matrix is again real symmetric, so steps 1–2 repeat inside , giving , and so on.
- After steps there are mutually orthogonal unit eigenvectors, whether or not eigenvalues repeat. An eigenvalue repeated times owns of them, and every combination of those is again an eigenvector: the eigenplane.
The columns of are eigenvectors, and is diagonal with the eigenvalues in the same order. This requires , i.e. linearly independent eigenvectors.
Show derivation
Column of is times column of , i.e. .
Column of is times column of (which has in row and zeros elsewhere), i.e. .
So . If exists:
- post-multiplying both sides by gives ;
- pre-multiplying by gives .
exists iff , i.e. iff the columns are linearly independent.
The columns of must be the normalised, mutually orthogonal eigenvectors.
Show derivation
Start from Diagonalisation: .
The entry of is (row of )·(column of ) .
- For this is 0, by Theorem 2: orthogonal eigenvectors (or by choice within an eigenplane, Repeated eigenvalue of a symmetric matrix: an eigenplane).
- For it is , by normalisation.
So (Kronecker delta) and , i.e. . For a square matrix this also gives .
Substituting: . Then .
Show derivation
Let in the original axes.
In the new axes , a vector with new components is . Likewise .
Then . Pre-multiplying by (orthogonal) gives . So in the new axes the map is .
With , Diagonalising a real symmetric matrix gives .
determinant = scale factor of the mapping = product of eigenvalues. This is obvious when the eigenvectors are orthogonal, but it is valid even when they are not.
Where it comes from
The lecturer’s argument covers the orthogonal case. is the volume scale factor of the mapping. A symmetric matrix stretches a unit cube aligned with its orthogonal eigenvectors by along its edges. It therefore becomes a box of volume .
The general statement (non-orthogonal eigenvectors) is proved in Examples Paper 4, Q9.
Show derivation
Matrix multiplication is associative, so regroup to put each together. The inner pairs vanish, leaving .
Multiplying diagonal matrices multiplies the diagonal entries, so .
Show derivation
Apply once and use linearity:
Order the eigenvalues so that . Then
Show derivation
Factor out from Aⁿx in eigenvector components:
Likewise . Therefore
For a rotation by about the -axis (in the - plane):
Show derivation
Expand along the middle row, which has a single non-zero entry:
So , or by the quadratic formula (databook maths p3: ).
Eigenvector checks. . For the complex one:
A non-zero vector satisfying
If and are symmetric, then with “appropriate” normalisation
Show derivation
(slides 27.I–II). Take eigenpairs and , with . Dot each with the other eigenvector:
So the left-hand sides are equal, and . Hence , which gives . Then . The same works for any pair .
(slides 27.III–IV). . With the normalisation Normalising with respect to M, , and so .
This requires to be symmetric positive definite (SPD): for all non-zero . Then the square root is real (and non-zero).
Show derivation
Positive definiteness guarantees that , so the square root exists and is non-zero.
This is a different way to normalise a vector, not just by its Euclidean length (Normalised eigenvector is the special case ).
In matrix form:
Show derivation
Spring tensions (linear springs, tension = stiffness × extension):
- spring 1 is extended by , so ;
- spring 2 is extended by , so .
Newton’s second law (Newton's second law), mass × acceleration = force:
- Mass 1 is pulled right by spring 2 and left by spring 1: .
- Mass 2 is pulled left by spring 2: .
Moving everything to the left-hand side and collecting coefficients of row by row gives (11). The equations are coupled: each involves both and .
- are the natural frequencies.
- The eigenvectors are the vibration modes.
- , are set by the initial conditions.
- The approach generalises to masses.
Show derivation
Assume a harmonic response , with a constant vector (as yet unknown).
Differentiating twice: .
Substituting into (11):
Each eigenpair gives a solution. The equations are linear, so their sum is also a solution, and with two modes and four constants it can match any initial positions and velocities.
Show derivation
From the example: (Harmonic response gives a generalised eigenvalue problem), with .
Numerically, and . Exactly, , so .
Orthogonality check, using (8) with :