IAE Academy

The whole Engineering Mathematics formula sheet, to print

251 formulas in 7 topics, each with when to use it. Each is explained in the topic notes.

Linear algebra

Read the notes

REVERSAL LAWS

The order reverses for any number of factors, e.g. . The transpose and conjugate-transpose laws hold whenever is defined, square or not; the inverse laws need every factor square and non-singular.

MORE INVERSE RULES

non-singular, a scalar and a positive integer. A diagonal matrix with non-zero diagonal entries has inverse , and the inverse of a non-singular upper (lower) triangular matrix is again upper (lower) triangular.

INVERSE THROUGH THE ADJOINT

The first identity holds for every square matrix; the inverse formula needs .

INVERSE OF A 2 × 2 MATRIX

Swap the diagonal entries, change the sign of the off-diagonal entries, divide by the determinant. Valid only when .

TRACE PROPERTIES

holds whenever both products are defined, even for non-square and . The trace is unchanged by cyclic shifts, , but not by other reorderings: in general . In general .

DETERMINANTS OF PRODUCTS, POWERS AND MULTIPLES

and are and is a scalar. holds for every positive integer (for every integer when is non-singular), and needs . even when .

ADJOINT IDENTITIES

For matrices with ; all four hold for singular matrices too. The first follows from taking determinants of , which gives . Consequently . Also , and for non-singular , .

INNER PRODUCT, LENGTH AND ORTHOGONALITY

For real vectors in . For complex vectors use and . A set of vectors is orthonormal if they are mutually orthogonal and each has length . In an orthonormal basis the coordinates of any are simply .

DIMENSION OF A SUM OF SUBSPACES

and are subspaces of a finite-dimensional space and is the set of all sums . Two distinct planes through the origin in meet in a line: .

BOUNDS ON RANK

For an matrix. A square matrix has rank exactly when .

RANK OF A PRODUCT (SYLVESTER'S INEQUALITY ON THE LEFT)

is and is , so is the shared inner dimension. Multiplying by a non-singular matrix does not change the rank: for invertible and .

RANK-NULLITY THEOREM

is the number of columns of (the number of unknowns in ), and is the dimension of the solution space of .

CONSISTENCY CONDITION (ROUCHÉ–CAPELLI THEOREM)

When consistent, the solution is unique if this common rank equals the number of unknowns , and has free parameters if the common rank is .

NON-TRIVIAL SOLUTIONS OF A SQUARE HOMOGENEOUS SYSTEM

is . The number of linearly independent solutions is .

CRAMER'S RULE

is the determinant of with its -th column replaced by . Applies only to a square system with . If and some , the system is inconsistent.

CHARACTERISTIC EQUATION OF A 2 × 2 MATRIX

For : , so . The eigenvalues are real whenever , in particular whenever is real symmetric.

CHARACTERISTIC EQUATION OF A 3 × 3 MATRIX

This is multiplied through by . is the sum of the three principal minors (the cofactors of the diagonal entries); it also equals .

SUM AND PRODUCT OF EIGENVALUES

Each eigenvalue is counted as often as its algebraic multiplicity, complex ones included. More generally for every positive integer ; for instance is the sum of the squares of the eigenvalues. A quick check on any eigenvalue calculation.

GEOMETRIC MULTIPLICITY

An eigenvalue with AM (a simple root) always has GM . A repeated eigenvalue can have any GM from up to its AM.

POWERS AND FUNCTIONS THROUGH DIAGONALISATION

acts entry by entry on the diagonal. is a polynomial, or a convergent power series such as the exponential: . For a real symmetric , take orthonormal eigenvectors as the columns of (normalise each one and, inside the eigenspace of a repeated eigenvalue, also make them orthogonal); then . Normalising alone is not enough when an eigenvalue repeats: and in the Section 5 example are not orthogonal.

CAYLEY–HAMILTON THEOREM

Using instead of only multiplies the polynomial by , which does not change the conclusion.

INVERSE FROM CAYLEY–HAMILTON

Multiply the Cayley–Hamilton identity by . Needs , that is, .

THE 2 × 2 CASE

For any matrix; the inverse needs .

HIGHER POWERS BY THE REMAINDER METHOD

Here is the characteristic polynomial (degree ), and the result follows because . With distinct eigenvalues, find the coefficients of from . For an eigenvalue of algebraic multiplicity , also match the first derivatives; for a double root this is .

TRANSFORMATION LAW FOR CARTESIAN TENSORS

Under a rotation of axes, with the cosine of the angle between the new axis and the old axis . The matrix is orthogonal, . A third-order tensor picks up three factors: .

Calculus: limits, mean value theorems, integrals, maxima and minima, series

Read the notes

STANDARD LIMITS AT ZERO

in radians, . Each follows from the Maclaurin series of the function.

EXPONENTIAL AND POWER LIMITS

The last holds for any real when .

ORDERS OF GROWTH

For and : a logarithm grows more slowly than any positive power, and a power more slowly than any growing exponential. Each follows from L'Hospital's rule. Consequence: .

THE ONE-TO-THE-POWER-INFINITY RULE

Valid whenever the limit in the exponent exists; if that limit is the answer is , and if it is the answer is . It comes from when .

L'HOSPITAL'S RULE

Only for the forms or , with differentiable and near (except possibly at ), and only if exists (finite or infinite). Differentiate numerator and denominator separately, not by the quotient rule. Also valid for and for one-sided limits.

CONTINUITY AND DIFFERENTIABILITY AT A POINT

Continuity needs defined, the limit to exist, and the two to be equal. Differentiability needs the left derivative () and the right derivative () to be finite and equal. Differentiable continuous; the converse is false.

ROLLE'S THEOREM

Geometrically, a horizontal tangent between two equal heights. on has but no such , because it is not differentiable at 0.

LAGRANGE'S MEAN VALUE THEOREM

Needs continuous on and differentiable on . The tangent at is parallel to the chord. Rolle's theorem is the case . Equivalent form: . Consequences on an interval: throughout is constant; is strictly increasing; strictly decreasing; .

CAUCHY'S MEAN VALUE THEOREM

Needs continuous on , differentiable on , and on (which also forces ). Lagrange's theorem is the case .

TAYLOR SERIES ABOUT X = A

Maclaurin series when . Needs derivatives of every order at , and the series equals exactly when the remainder ; for the standard functions below this holds throughout the stated range. A convergent Taylor series can still differ from : with has every derivative zero at 0, so its Maclaurin series is 0. A power series that equals near is its Taylor series, so series may be built by substitution, multiplication, and term-by-term differentiation or integration inside the interval of convergence.

MACLAURIN SERIES VALID FOR ALL X

Odd functions have only odd powers, even functions only even powers.

MACLAURIN SERIES WITH A RESTRICTED RANGE

For a non-negative integer the binomial series stops after terms and holds for all . Replacing by gives for , and for .

FUNDAMENTAL THEOREM OF CALCULUS

Needs continuous on . Evaluating an antiderivative across a point where is unbounded is not justified and can give a wrong answer (see the tip at the end of this section): split the integral there and treat each piece as improper.

INTEGRATION BY PARTS

and with continuous derivatives on . Choose as the factor that simplifies when differentiated (a power of , a logarithm, an inverse trigonometric function). The last two lines come from integrating by parts twice; and is an arbitrary constant.

KING'S PROPERTY

Substitute . Adding the two forms often cancels the awkward part: .

EVEN AND ODD INTEGRANDS

Even: ; odd: . Any is its even part plus its odd part , and only the even part survives a symmetric integral.

REFLECTION ABOUT THE MIDPOINT

Example: , and for odd .

PERIODIC INTEGRANDS

For and a positive integer : every full period gives the same integral. Example: has period , so .

REDUCTION FORMULA FOR POWERS OF SINE AND COSINE

a positive integer. Each product keeps only its positive factors, so it runs down to 1 or 2; a product with no factors is 1, so gives 1. Examples: gives ; gives .

PRODUCTS OF POWERS OF SINE AND COSINE

non-negative integers. Each product keeps only its positive factors, running down to 1 or 2, and a product with no factors (for or equal to 0 or 1) is 1. With it is the formula above. Examples: gives ; gives . The Beta function below gives the same values.

LEIBNIZ RULE

Needs and continuous and differentiable. If the integrand does not contain the last term is zero; if the limits are constants only the last term remains (differentiation under the integral sign).

P-TEST FOR IMPROPER INTEGRALS

Both diverge at (logarithm). For non-negative and : comparison test, if then convergent convergent, and divergent divergent; limit comparison, if tends to a finite non-zero limit, both converge or both diverge. For any : if converges, so does (absolute convergence).

STANDARD IMPROPER INTEGRALS

, real and a non-negative integer; for real the second result is . The last integral converges, but not absolutely.

GAMMA FUNCTION

for non-negative integers , so . Example: .

BETA FUNCTION

and . The trigonometric form gives for .

AREA, ARC LENGTH AND VOLUME

Area between two curves and area swept by a polar curve ; arc length for , for a parametric curve, and for a polar curve. is the volume of the solid formed by revolving the region under , , about the -axis; (shell method, for and ) is the volume when the same region is revolved about the -axis.

TOTAL DIFFERENTIAL AND CHAIN RULE

For with , . For , : and . The total differential also estimates small changes: .

IMPLICIT DIFFERENTIATION

Valid where . Note the minus sign.

TAYLOR SERIES IN TWO VARIABLES

All derivatives are evaluated at , and needs continuous partial derivatives of every order used. Stopping after the first bracket gives the linear approximation , the total differential again. At a stationary point the first bracket is zero and the second decides the nature of the point, which is where the test comes from.

EULER'S THEOREM ON HOMOGENEOUS FUNCTIONS

For differentiable and homogeneous of degree , meaning for all (continuous second partial derivatives are needed for the second identity). may be negative or fractional. With more variables: .

TWO VARIABLES: SECOND DERIVATIVE TEST

Classify with the table below; needs continuous second partial derivatives near the point. When , and have the same sign, so either may be used.

LAGRANGE MULTIPLIERS

Extremise subject to the constraint , at points where . Solve the four equations for , evaluate at each candidate and compare. The method finds candidates; it does not by itself say which is a maximum.

AREA AND VOLUME

Area of a plane region , volume under the surface over , and volume of a solid . Replacing 1 by a density gives mass.

CHANGE OF VARIABLES AND THE JACOBIAN

Valid when the map takes one-to-one onto (except possibly on the boundary), with continuous partial derivatives and a non-zero Jacobian inside. The absolute value of the Jacobian is the area scale factor. The Jacobians of a transformation and its inverse multiply to 1: .

STANDARD RESULTS

The first follows by squaring the integral and switching to polar coordinates: (with in the others).

FOURIER SERIES ON (-L, L)

Period . For period put , giving .

FOURIER COEFFICIENTS

Any interval of length , such as , may be used. They follow from orthogonality: over one period, and integrate to if and to if , and every sine-cosine product integrates to .

HALF-RANGE SERIES ON (0, L)

A function given only on is extended evenly (cosine series) or oddly (sine series), each with period . Both converge to at every point of where is continuous. They differ outside and can differ at its end points: the sine series is at and , while the cosine series converges to at and to at .

PARSEVAL'S IDENTITY

Written for the convention; holds whenever over a period is finite, in particular under the Dirichlet conditions above. Halving both sides: mean square value .

Vector calculus: gradient, divergence, curl and the integral theorems

Read the notes

DOT (SCALAR) PRODUCT

A scalar; is the angle between the vectors. Commutative. For non-zero vectors, means perpendicular. , .

ANGLE, COMPONENT AND PROJECTION

The scalar component of along is signed (negative when ); the vector projection lies along . The direction cosines of a non-zero are , , , and their squares add to 1.

CROSS (VECTOR) PRODUCT

A vector perpendicular to both and , direction by the right-hand rule. Anti-commutative: . is the area of the parallelogram on and . For non-zero vectors, means parallel. , , .

SCALAR TRIPLE PRODUCT

Unchanged by a cyclic shift, ; changes sign when two vectors are swapped; dot and cross may be interchanged. is the volume of the parallelepiped on the three vectors, and it is zero exactly when they are coplanar (linearly dependent).

VECTOR TRIPLE PRODUCT

The result lies in the plane of and . The cross product is not associative: , which differs in general.

GRADIENT

Defined for a differentiable scalar field. Linear, with and .

DIRECTIONAL DERIVATIVE

Rate of change of per unit distance in the direction of . The direction must be a unit vector, so divide by first. 'From towards the point ' means . 'Along the tangent to the curve at ' means ; 'along the normal to the surface ' means at the point.

MAXIMUM AND MINIMUM RATE OF CHANGE

Because ( = angle between and ), the rate is largest along the gradient, most negative opposite to it, and zero along any direction tangent to the level surface.

UNIT NORMAL TO A SURFACE

Valid where . The sign picks a side; for a closed surface (a sphere, say) the outward normal points away from the enclosed region. For take , so , which points upward.

ANGLE BETWEEN TWO SURFACES

The angle between the surfaces and at a common point is the angle between their normals there, both gradients evaluated at that point. Each normal is fixed only up to sign, so the angle between the surfaces is usually quoted as the acute one: take the absolute value of the numerator. They cut orthogonally when .

GRADIENTS OF RADIAL FUNCTIONS

Valid for . Examples: and .

DIVERGENCE

A scalar field. ; a constant field has zero divergence.

CURL

A vector field. Expand the determinant along the first row; the term, written here in its cyclic form, is where sign slips happen. .

CONSERVATIVE FIELD: EQUIVALENT CONDITIONS

Equivalent for a continuous on any connected open region. If also has continuous first partial derivatives, each implies . The converse, curl zero implies conservative, needs to have continuous first partial derivatives on a simply connected region (every closed curve in it can be shrunk to a point without leaving it).

FUNDAMENTAL THEOREM FOR LINE INTEGRALS

For any piecewise smooth path from to on which is continuously differentiable. Sign convention: here a potential means ; electromagnetics writes , which flips the sign of the potential but not the test.

EXACTNESS TEST IN THE PLANE

On a simply connected region with , continuously differentiable. This is the component of the curl test for .

THE TWO ZERO IDENTITIES

Every gradient field is irrotational and every curl field is solenoidal. So a field with non-zero divergence cannot be the curl of anything, and a field with non-zero curl cannot be a gradient.

PRODUCT RULES

The order in matters: swapping the factors flips the sign.

LAPLACIAN

A scalar. is harmonic when (Laplace's equation). If , then .

CURL OF A CURL

Here , taking the Laplacian component by component; this componentwise rule holds for Cartesian components only. For a solenoidal field it reduces to .

RADIAL FIELDS

Valid for . Special cases: ; and away from the origin.

LINE INTEGRAL OF A VECTOR FIELD

Depends on orientation: reversing the direction of travel changes the sign. It does not depend on which parametrisation is used, as long as the direction is the same.

LINE INTEGRAL WITH RESPECT TO ARC LENGTH

Independent of orientation, because . With it gives the length of ; with a line density it gives the mass of a wire.

STANDARD PARAMETRISATIONS

The circle parametrisation runs counter-clockwise, which keeps the enclosed disc on the left of the direction of travel. For the ellipse use , .

FLUX THROUGH A PARAMETRISED SURFACE

is a normal whose length is the area scale factor, so . If it points to the wrong side, use , which flips the sign. For a scalar , ; with this is the area of , and it does not depend on the side chosen.

SURFACE Z = G(X, Y) OVER A REGION R OF THE XY-PLANE

The flux formula is for the upward normal (); negate it for the downward normal. In general, projecting onto the -plane uses , valid where .

SPHERE AND CYLINDER SURFACE ELEMENTS

Outward normals. is measured from the axis () and around it (). Areas: for the sphere, for the curved side of a cylinder of height .

VOLUME ELEMENTS

Cartesian, cylindrical and spherical. Volumes: sphere , cylinder , cone .

GREEN'S THEOREM

is a piecewise smooth simple closed curve bounding , traversed counter-clockwise; , and their first partial derivatives are continuous on an open region containing . Clockwise traversal changes the sign. For a region with holes, the outer boundary runs counter-clockwise and each inner boundary clockwise.

AREA AS A LINE INTEGRAL

Green's theorem with , counter-clockwise. For the ellipse , it gives .

STOKES' THEOREM

is a piecewise smooth oriented surface whose boundary is the closed curve ; has continuous first partial derivatives on a region containing . Right-hand rule: with the thumb along , the fingers curl in the direction of (for , runs counter-clockwise seen from above). Every surface that meets these conditions and has the same boundary and orientation gives the same value.

GAUSS'S DIVERGENCE THEOREM

is a closed piecewise smooth surface enclosing the volume , is the outward unit normal, and has continuous first partial derivatives throughout (no singularity inside).

Differential equations

Read the notes

LINEAR ODE OF ORDER N

Linear means and every derivative appear only to the first power, are never multiplied together, and never sit inside another function. The coefficients may depend on only, and the equation has order wherever . The equation is homogeneous when and non-homogeneous otherwise.

VARIABLES SEPARABLE

Valid where . Each root of is a separate constant solution, and dividing by can lose it (sometimes it reappears for a particular value of the constant). For , substitute to get the separable equation .

HOMOGENEOUS FIRST-ORDER EQUATION

Applies when is unchanged by , that is, when and are homogeneous functions of the same degree. It uses . Valid where ; each root of gives the straight-line solution .

EQUATIONS REDUCIBLE TO HOMOGENEOUS FORM

If , put , , where solves and . The equation becomes , which is homogeneous. If , the two linear expressions are proportional apart from their constants, so the right-hand side is a function of one combination . Substitute as in the separable case above.

EXACT EQUATION

The test holds on a simply connected region where , and their first partial derivatives are continuous. The solution is , where and . The shortcut on the right needs written without hidden -free parts (write , not ). The safe route is with .

INTEGRATING FACTORS FOR A NON-EXACT EQUATION

Multiply the whole equation by to make it exact. Two more rules: if and are homogeneous of the same degree and , then ; if and with , then .

LINEAR FIRST-ORDER EQUATION

First divide by the coefficient of so that it becomes 1. keeps its sign. If the equation is linear in instead, , use IF and .

BERNOULLI EQUATION

Divide by first. The substitution turns the equation into a linear one in . When , is also a solution, which the division by loses.

CLAIRAUT'S EQUATION

Differentiating gives . The factor gives the general solution, the family of straight lines (replace by ). The factor , with eliminated between it and the equation, gives the singular solution, which is the envelope of those lines. Example: has general solution ; gives the singular solution .

ORTHOGONAL TRAJECTORIES

Form the family's ODE with the parameter eliminated, make the replacement, then solve. Example: gives . The trajectories satisfy , which gives the ellipses .

STRUCTURE OF THE SOLUTION

comes from the roots of and is the general solution of . is any one solution of the full equation.

WRONSKIAN

For functions, use the determinant whose rows are the functions and their derivatives up to order . If at some point of an interval, the functions are linearly independent on that interval.

ABEL'S FORMULA

Divide by the coefficient of first so that it is 1. Holds for two solutions of a linear homogeneous ODE with continuous on an interval. There is either identically zero (the solutions are dependent) or never zero (they are independent and form a fundamental set).

REDUCTION OF ORDER

Gives a second, independent solution on an interval where . It follows from Abel's formula, because . Example: () has . Dividing by gives , so and .

PI FOR AN EXPONENTIAL

Replace by . This also covers a constant () and or written as exponentials.

PI FOR AN EXPONENTIAL WHEN A IS A ROOT

Differentiate with respect to times. For a simple root this gives , and for a double root .

PI FOR SIN AX AND COS AX

Replace by . Never replace itself. If odd powers of remain, as in , multiply numerator and denominator by so that appears. Replace it by again, then apply the now in the numerator as a derivative.

PI FOR SIN AX AND COS AX AT RESONANCE (D^2 + A^2 = 0)

Used when are roots of the auxiliary equation, so that . Note the minus sign in the sine case.

PI FOR A POLYNOMIAL

Take out any factor first. Then write the rest as , expand in ascending powers of , and stop at , because higher derivatives of vanish. Example: .

EXPONENTIAL SHIFT

Move to the left and replace by . Then handle (a polynomial, sine or cosine) with the rules above. This covers and .

VARIATION OF PARAMETERS

For with the coefficient of equal to 1, so divide through first. and are independent solutions of the homogeneous equation. It works for any continuous on an interval where and are continuous.

CAUCHY-EULER EQUATION AND SUBSTITUTION

and are constants. For use . This amounts to replacing by and by .

OPERATOR REPLACEMENTS

Here and . Rewrite the right-hand side in as well: and .

AUXILIARY EQUATION FROM Y = X^M

Obtained by trying directly (equivalently, ). The term contributes , not .

EIGENVALUE BVP (FIXED ENDS)

For , only satisfies both conditions. With instead, and for (, that is , gives a constant). These are the spatial modes in the PDE solutions below.

LAPLACE TRANSFORM METHOD FOR AN IVP

One-sided (unilateral) transform, , with the independent variable. In general, . Transform the constant-coefficient ODE, solve for with the initial conditions already included, then invert by partial fractions. Example: , gives , so and .

CLASSIFICATION OF SECOND-ORDER LINEAR PDES

For . Lower-order terms and the right-hand side do not affect the type.

HEAT EQUATION, ENDS HELD AT ZERO

For , , with and . Every mode decays, and higher modes decay faster.

HEAT EQUATION, INSULATED ENDS

For . As , , the average initial temperature.

WAVE EQUATION, STRING FIXED AT BOTH ENDS

For with , and . Mode oscillates at rad/s, that is, Hz.

WAVE EQUATION COEFFICIENTS

A string released from rest () has every .

D'ALEMBERT'S SOLUTION

For the wave equation on an infinite string with and . It shows two waves travelling at speed in opposite directions.

LAPLACE EQUATION IN A RECTANGLE

For on , , with on , and , and . The sine in comes from the two zero side conditions, and is the combination in that vanishes at .

Complex analysis

Read the notes

CARTESIAN, POLAR AND EXPONENTIAL FORMS

Conjugate , with , and . The argument is fixed only up to adding .

PRINCIPAL ARGUMENT

Here returns a value in , and is undefined. Some texts take the principal range as ; these notes use throughout, so .

PRODUCTS, QUOTIENTS AND THE TRIANGLE INEQUALITY

The argument rules hold only up to multiples of : can differ from by . Triangle inequality: .

DE MOIVRE'S THEOREM

For every integer . For a fractional power it gives only one of the values; use the roots formula below.

N-TH ROOTS

Every has exactly distinct -th roots. They lie on the circle of radius (the positive real root), at angles spaced apart; for they are the vertices of a regular -gon.

ROOTS OF UNITY

With the roots are and . Cube roots: with .

EXPONENTIAL, TRIGONOMETRIC AND HYPERBOLIC FUNCTIONS

, and is one value of ; for every , and has period . and are entire but unbounded, so and can exceed 1, e.g. . The zeros of are and those of are , with an integer; all of them are real.

COMPLEX LOGARITHM

Defined for and multi-valued; is the principal value (). The principal branch is analytic everywhere except on its branch cut, the non-positive real axis (where jumps by ), and off the cut . Example: . The rule can fail by .

COMPLEX POWERS

Defined for . Multi-valued when is not an integer: for rational in lowest terms with there are values; for irrational or non-real there are infinitely many. All values of are with , every one of them real.

CAUCHY-RIEMANN EQUATIONS (CARTESIAN)

Necessary at every point where is differentiable. Sufficient for differentiability at when, in addition, exist in a neighbourhood of and are continuous at . is analytic in a domain where these conditions hold at every point. Subscripts denote partial derivatives.

CAUCHY-RIEMANN EQUATIONS (POLAR)

For with and . Use it when is naturally written in and : for with (off the branch cut), and , and .

HARMONIC FUNCTIONS

If is analytic in a domain, both and are harmonic there (the derivative of an analytic function is again analytic, so the second partials exist and are continuous). is called a harmonic conjugate of . Where , the level curves and cut at right angles. In polar form Laplace's equation is .

MILNE-THOMSON CONSTRUCTION

Builds directly from without finding : compute and , put and , and integrate in . If is given instead, . is a complex constant. When is given, is fixed by itself and stays arbitrary unless a value such as is also given (and the other way round when is given).

BILINEAR (MOBIUS) TRANSFORMATION

Conformal wherever , since . For , maps to and maps to . It maps circles and straight lines (a line counts as a circle through ) onto circles and straight lines, and it is fixed completely by the images of three distinct points. Its inverse is also bilinear.

FIXED POINTS AND CROSS-RATIO

Fixed points solve ; there are at most two unless the map is the identity (for and there is one finite fixed point, and is also fixed). The cross-ratio equation gives the unique map sending to . If one of the given points is , delete the two factors that contain it.

CONTOUR INTEGRAL BY PARAMETRISATION

, , traces in the given direction. Circle counter-clockwise: , , . Segment from to : , .

THE BASIC CIRCLE INTEGRAL

Counter-clockwise, any radius . Every term of a Laurent series integrates to zero except the term, which is why residues work.

ML-INEQUALITY

Used to bound an integral, and to show that the integral over a large semicircular arc tends to zero when real integrals are evaluated by residues.

CAUCHY'S INTEGRAL THEOREM

Conditions: is a simple closed contour and is analytic at every point on and inside it (more generally, in a simply connected domain containing ). Analyticity on alone is not enough: is analytic on , yet .

CAUCHY'S INTEGRAL FORMULA

analytic on and inside the simple closed contour (counter-clockwise), and strictly inside . If is outside the integral is by Cauchy's theorem; if lies on the formula does not apply (in general the integral then does not exist as an ordinary integral).

CAUCHY'S INTEGRAL FORMULA FOR DERIVATIVES

Same conditions, It shows that an analytic function has derivatives of every order, all analytic. Mind the power : for in the denominator use and divide by .

N-TH TERM TEST

Only a test for divergence: if , or the limit does not exist, the series diverges. The converse is false: diverges although .

GEOMETRIC AND P-SERIES BENCHMARKS

The geometric series (real or complex ) diverges for . () diverges, while . These two families are the usual benchmarks for the comparison tests.

RADIUS OF CONVERGENCE OF A POWER SERIES

Use whichever limit exists (the ratio form needs for all large ); if the limit is and if it is ; in general . The series converges absolutely for and diverges for ; points on the circle must be tested separately. Inside the disc it may be differentiated or integrated term by term without changing .

TAYLOR SERIES

The series equals throughout the largest open disc about in which is analytic. When the singularity on the edge of that disc is a pole or an essential singularity, that disc is exactly the disc of convergence, so is the distance from to that singularity (a removable singularity does not limit ). gives the Maclaurin series. The expansion is unique, so any method that produces a power series (substitution, multiplication, term-by-term differentiation or integration) gives the Taylor series.

STANDARD EXPANSIONS ABOUT 0

and have the same series as and without the alternating signs. Binomial series: for (principal value).

LAURENT SERIES

Valid in an annulus in which is analytic ( may be and may be ); is any closed counter-clockwise contour around inside the annulus. The negative-power part is the principal part. In a given annulus the expansion is unique, but each annulus bounded by the singularities has its own series. In practice the coefficients come from known series, not from the integral.

ORDER OF A POLE FROM ORDERS OF ZEROS

Here and are analytic at ; take when . Find orders from series: has a zero of order 2 at , so has a pole of order 3 there, not 5.

RESIDUE

is the coefficient of in the Laurent series valid in ; is a small counter-clockwise circle around enclosing no other singularity. At a removable singularity the residue is . At an essential singularity it must be read from the Laurent series: and .

RESIDUE AT A SIMPLE POLE

Here and are analytic at . The form avoids factorising: , , and for at a root the residue is , since .

RESIDUE AT A POLE OF ORDER M

Using a larger than the true order still gives the right answer (with more work); using a smaller one does not. For high orders, or when contains , or , reading from a series is usually faster: is the coefficient of in , which is .

RESIDUE AT INFINITY

Equivalently , where is the coefficient of in the expansion of valid for large . The sum rule holds when has finitely many singularities. So if a contour encloses every finite singularity, . For a rational whose denominator degree is at least the numerator degree plus 2, and the finite residues add to zero.

RESIDUE THEOREM

is a simple closed contour traversed counter-clockwise; is analytic on and inside it except at finitely many isolated singularities inside . Only singularities strictly inside count. Cauchy's theorem and both integral formulas are special cases.

ARGUMENT PRINCIPLE

is a simple closed contour traversed counter-clockwise; is analytic on and inside except for poles inside it, and has no zeros or poles on . and are the numbers of zeros and poles of inside , each counted as many times as its order. Reason: at a zero of order , has a simple pole with residue , and at a pole of order one with residue . The left side also equals the number of times the image curve winds counter-clockwise around . Related (Rouche's theorem): if and are analytic on and inside and on , then and have the same number of zeros inside ; e.g. on , , so all five zeros of lie in .

INTEGRALS OVER 0 TO 2 PI

Substitute , so and traces the unit circle once counter-clockwise. must be a rational function of and , finite for all . Keep only the poles with . Also useful: and .

STANDARD RESULT OVER 0 TO 2 PI

and real. If the value is . If the integrand is infinite somewhere on the interval and the integral does not exist as a proper integral. Over to the cosine version gives half, .

IMPROPER INTEGRALS OF RATIONAL FUNCTIONS

Conditions: and polynomials, , and has no real zeros. Close the real axis with a large semicircle in the upper half-plane; its contribution vanishes by the ML-inequality. Count only the poles with . For an even integrand, is half of .

FOURIER-TYPE INTEGRALS

Conditions: and has no real zeros. With , real, take real and imaginary parts to get and . Use , never , on the contour: in the upper half-plane, whereas grows there. Standard result: for , .

SIMPLE POLES ON THE REAL AXIS (PRINCIPAL VALUE)

Use this when has real zeros and every one of them is simple. Degree conditions as above: when , and when . Each real pole is bypassed by a small semicircle above it, which contributes times its residue; that is where the half-weight comes from. Example: with has residue at and no other pole, so ; its imaginary part gives , and hence .

Probability and statistics

Read the notes

COMPLEMENT AND ADDITION RULE

Holds for any two events. Use the complement for every 'at least one' question: .

INCLUSION-EXCLUSION FOR THREE EVENTS

Add singles, subtract pairs, add the triple. The same pattern counts elements of a union: replace by .

CLASSICAL PROBABILITY

Only when the sample space has finitely many outcomes and all of them are equally likely.

PERMUTATIONS AND COMBINATIONS

Permutations count ordered arrangements of of distinct objects; combinations count unordered selections. and .

OTHER COUNTING RULES

In the second rule . The circular count treats rotations as the same arrangement; if reflections are also the same (a necklace), the count is for .

CONDITIONAL PROBABILITY

Undefined when . In general .

MULTIPLICATION RULE

The chain form is how sequential draws without replacement are multiplied along a tree.

INDEPENDENCE

Equivalently when . If are independent, so are and , and , and and . Three events are mutually independent only if all three pairwise products hold AND ; pairwise independence alone is not enough.

THEOREM OF TOTAL PROBABILITY

must partition : mutually exclusive, together exhaustive, each with .

BAYES' THEOREM

Same partition conditions, and . is the prior probability of cause ; is its posterior probability after observing .

PMF (DISCRETE)

To find an unknown constant in a PMF, set the total equal to 1.

PDF (CONTINUOUS)

For a continuous variable , so and give the same probability.

CDF

Every CDF is non-decreasing and right-continuous, with as and as . The relation holds for a continuous variable at every where is differentiable. For a discrete variable is a staircase that jumps by at each value , so and strict and non-strict inequalities give different answers.

EXPECTATION

The mean exists only when the sum or integral converges absolutely. does not need the distribution of itself.

VARIANCE AND STANDARD DEVIATION

Here . Variance is never negative, and is zero only when is a constant with probability 1. The second form is the one to compute with.

LINEAR TRANSFORMATION

For any constants . Adding moves the mean but not the spread; the sign of does not affect the variance.

DENSITY OF A FUNCTION OF A RANDOM VARIABLE

For a that is not monotonic, work through the CDF: find , then differentiate. For example gives and for , with continuous.

BINOMIAL DISTRIBUTION

Number of successes in independent trials, each with the same success probability . Mean , variance , which is less than the mean whenever .

POISSON DISTRIBUTION

Count of events that occur independently at a constant average rate. Mean = variance = . If events occur as a Poisson process at rate per unit time, the count in a time is Poisson with .

POISSON AS A LIMIT OF THE BINOMIAL

Used as an approximation when is large and is small (rare events): put .

GEOMETRIC DISTRIBUTION

Convention here: is the number of the trial on which the first success occurs, and . If instead counts the failures before the first success, for , the mean becomes and the variance is unchanged. Among distributions on the positive integers, the geometric is the only memoryless one.

UNIFORM DISTRIBUTION

for and for . The probability of a sub-interval of is its length divided by .

EXPONENTIAL DISTRIBUTION

Rate ; and are zero for . Mean and variance , so the standard deviation equals the mean; the median is . It is the waiting time to the first event, and between successive events, of a Poisson process of rate .

MEMORYLESS PROPERTY

Holds for the exponential, the only continuous distribution with this property: a component that has survived to time has the same remaining-life distribution as a new one.

MINIMUM OF INDEPENDENT EXPONENTIALS

Proof: . Rates add, not means. The maximum is not exponential: .

NORMAL DISTRIBUTION

Symmetric about ; mean = median = mode = ; points of inflection at ; peak height .

STANDARDISATION AND THE TABLE CONVENTION

Convention in these notes: , the area to the LEFT of , with . Some tables list the area from 0 to , which equals ; check which one you are given.

THE 68-95-99.7 RULE (APPROXIMATE)

For a normal variable only. The rounded figures 68%, 95% and 99.7% are approximations; use the table value whenever a question supplies one. Standard quantiles: , , .

MARGINAL AND CONDITIONAL DISTRIBUTIONS

Discrete: (the totals along one direction of the table) and .

INDEPENDENCE OF RANDOM VARIABLES

Discrete case: one pair of values where the equality fails proves dependence. Continuous case: the equality must fail on a region of positive area (a single point proves nothing, since a density can be changed at a point); if both sides are continuous, one point of failure is enough. If the set where is not of the product form (for example the triangle ), and cannot be independent.

LAW OF TOTAL EXPECTATION

partition with each . is the mean of the conditional distribution: or . This is total probability applied to means.

COVARIANCE

and .

CORRELATION COEFFICIENT

Defined only when and . exactly when with probability 1 for some ( then has the sign of ). is unchanged by shifting either variable or rescaling it by a positive factor; rescaling one variable by a negative factor reverses its sign.

VARIANCE OF A LINEAR COMBINATION

Always true. When are uncorrelated (in particular, independent) the covariance term drops, so : variances add even for a difference.

SUMS OF RANDOM VARIABLES

Means always add; variances add when the variables are independent (pairwise uncorrelated is enough). Also, for independent : .

SUMS OF INDEPENDENT STANDARD VARIABLES

Each line requires the variables to be independent. A linear combination of independent normals is normal with mean and variance .

MEAN OF DATA

For grouped (class-interval) data, is the class mid-point and the result is an approximation. Deviations from the mean always sum to zero (weighted by frequency for frequency data).

VARIANCE AND STANDARD DEVIATION OF DATA

: population (divisor ); : sample (divisor ). The standard deviation is the positive square root. Adding a constant to every value changes neither; multiplying every value by multiplies the standard deviation by .

CORRELATION COEFFICIENT OF DATA

Defined when neither variable is constant (); then . The divisors cancel, so is the same whether or is used, provided the same one is used throughout. Computational form: .

RANK CORRELATION (SPEARMAN)

is the difference between the two ranks of item . Valid when there are no tied ranks; with ties, give tied items the average of their ranks and compute from the ranks directly. Like , it lies between and .

THE TWO REGRESSION LINES

The line of on minimises the sum of squared vertical deviations and is used to predict from ; the line of on minimises squared horizontal deviations and predicts from . Both lines pass through .

PRODUCT OF THE REGRESSION COEFFICIENTS

, and all have the same sign, and that common sign is taken for . Since , the two coefficients cannot both exceed 1 in magnitude.

SAMPLING DISTRIBUTION OF THE MEAN

Needs only independence (uncorrelated is enough) and a common mean and variance, not normality. Quadrupling halves the standard error.

UNBIASED SAMPLE VARIANCE

Dividing by instead gives an estimate whose expected value is , slightly too small; this is why the sample variance uses .

CENTRAL LIMIT THEOREM

For independent, identically distributed with finite, non-zero variance, whatever their distribution. If the are themselves normal, the result is exact for every .

CHEBYSHEV'S INEQUALITY

Holds for ANY distribution with finite variance, so it is a loose bound (and says nothing for ): for a normal variable the true probability at is about , against the bound . Applied to , whose variance is , it gives for every : the weak law of large numbers.

Numerical methods

Read the notes

LU DECOMPOSITION

Doolittle form: is unit lower triangular (1s on its diagonal) and holds the multipliers below the diagonal; is the upper-triangular matrix that Gaussian elimination without row swaps produces. Crout form puts the 1s on the diagonal of instead. For a non-singular , the factorisation exists without row swaps exactly when every leading principal minor of is non-zero. One factorisation serves any number of right-hand sides .

GAUSS-JACOBI ITERATION

Every new component uses only the previous sweep's values. Needs (reorder the equations if necessary).

GAUSS-SEIDEL ITERATION

Each new component is used immediately, later in the same sweep. Needs .

ITERATION MATRICES AND THE CONVERGENCE TEST

Here is the diagonal of and , are its strictly lower and strictly upper triangular parts (not the LU factors). Each method has the form , and , the spectral radius, is the largest over the eigenvalues of .

STRICT DIAGONAL DOMINANCE (SUFFICIENT CONDITION)

If it holds, both Jacobi and Gauss-Seidel converge for every starting vector. It is sufficient, not necessary: a system that fails it may still converge. Gauss-Seidel also converges for every start when is symmetric positive definite.

ORDER OF CONVERGENCE P

is linear (it also needs ; the error shrinks by a roughly constant factor each step). is superlinear. is quadratic: the number of correct digits roughly doubles each step.

BISECTION

Needs continuous on with ; keep the half on which the sign still changes. The -th midpoint is within of a root, and the bracket after halvings has that length. The error bound halves at every step, which is why bisection is counted as linearly convergent with ratio ; the actual error need not decrease at every step. The number of steps for a tolerance does not depend on .

REGULA FALSI (FALSE POSITION)

The -intercept of the chord joining and . Needs , and the new bracket is whichever of , keeps the sign change. Always converges for continuous , but usually only linearly, because one end of the bracket often stays fixed.

NEWTON-RAPHSON

The -intercept of the tangent at . For continuous near a simple root (), convergence from a start close enough to the root is at least quadratic (faster when ). At a root of multiplicity it is only linear, with ; the modified step restores quadratic convergence.

NEWTON-RAPHSON FOR ROOTS AND RECIPROCALS

From , and respectively, with . The iteration converges from every (after the first step every iterate is at least , and they decrease). The reciprocal iteration uses no division; since , it converges to exactly when .

SECANT

Newton-Raphson with replaced by the slope through the last two iterates. Needs two starting values but no derivative and no sign change. Order near a simple root; it can diverge because it does not keep a bracket.

FIXED-POINT ITERATION

Rewrite as , with continuous near . Linear convergence with ratio when ; the iterates move away if . Interval test: if maps into itself and for all in , then contains exactly one fixed point and the iteration converges to it from every in . Newton-Raphson is the choice , for which at a simple root, which is why it is faster than linear.

COMPOSITE TRAPEZOIDAL RULE

Any . A straight line on each subinterval. Exact for polynomials of degree .

TRAPEZOIDAL ERROR

Global error : halving cuts the error by a factor of about 4. If on (convex ) the rule overestimates; if it underestimates.

COMPOSITE SIMPSON'S 1/3 RULE

must be even (an odd number of points). A parabola through each pair of subintervals. Exact for polynomials of degree .

SIMPSON'S 1/3 ERROR

Global error : halving cuts the error by a factor of about 16.

COMPOSITE SIMPSON'S 3/8 RULE

must be a multiple of 3. A cubic through each group of three subintervals. Exact for polynomials of degree , the same degree as the 1/3 rule.

SIMPSON'S 3/8 ERROR

Also globally, with a larger constant than the 1/3 rule at the same . Useful when is odd and at least 3: apply the 3/8 rule to three subintervals and the 1/3 rule to the rest.

TWO-POINT GAUSS-LEGENDRE QUADRATURE

The second form follows from the substitution . Two function values at unequally placed points, yet exact for polynomials of degree , like Simpson's rules with three. Check: for it gives with , the exact value.

EULER (EXPLICIT, FORWARD)

Follows the tangent line at the start of the step. Order 1: local error , global error .

BACKWARD (IMPLICIT) EULER

Order 1, but appears on both sides and must be solved for (directly when is linear in ). For with real it gives , which decays for every .

MODIFIED EULER (HEUN), A SECOND-ORDER RUNGE-KUTTA METHOD

An Euler predictor followed by a trapezoidal corrector. Order 2: local error , global error . The same computation written as , , is one second-order Runge-Kutta method; the midpoint method below is another. Some texts apply the corrector repeatedly, putting each new back into until two successive values agree; one application is the formula above.

RUNGE-KUTTA, FOURTH ORDER (CLASSICAL)

Four evaluations of per step. Order 4: local error , global error . Note that uses , not , and uses a full step with .

TAYLOR-SERIES METHOD

The higher derivatives come from differentiating the equation itself (, are partial derivatives, evaluated at ). Truncating after the term gives a method of order ; keeping only the term is Euler's method.

PICARD'S SUCCESSIVE APPROXIMATIONS

Each iterate is a function, not a number. For , : , , and each further iterate adds the next term of the series of .

STABILITY OF EXPLICIT EULER

real. For the numerical solution decays without changing sign, like the exact ; at it is after one step. For it alternates in sign while decaying. At it alternates with constant magnitude, and for it grows without bound.

NORMAL EQUATIONS FOR Y = A + BX

Two linear equations in and . For a parabola the same method gives three: , , . For a line through the origin, , the single normal equation gives .

LEAST-SQUARES SLOPE AND INTERCEPT (REGRESSION OF Y ON X)

The line passes through and its residuals sum to zero. It minimises vertical deviations, so it is the line for predicting from .

CORRELATION COEFFICIENT (PEARSON)

Defined only when neither nor is zero. , and exactly when all the points lie on one (non-horizontal, non-vertical) line. is unchanged by a change of origin and scale, , with ; if only its sign changes. It measures linear association only: for and , so , although is a function of .

THE TWO REGRESSION LINES

Both lines pass through , so when solving them together gives the means. The two coefficients have the sign of , and with that common sign. The lines coincide only when ; when they are and , perpendicular. The coefficients are unchanged by a change of origin but not of scale: with , , .

SPEARMAN'S RANK CORRELATION

Rank the values and the values separately; is the difference between the two ranks of item . This form is exact when there are no tied ranks (it is then Pearson's computed on the ranks). .

GRADIENT-DESCENT UPDATE

is the learning rate. Every partial derivative is evaluated at the current (old) weights, and then all the weights are updated together.

SQUARED-ERROR LOSS

is the network output and the target. The factor is a convention that cancels the 2 from differentiation; without it every gradient doubles, so check which form a question uses.

CHAIN RULE FOR ONE NEURON

is the neuron's input (the previous layer's output) and its activation. The last result is what is passed backwards to the previous layer.

BACKPROPAGATION THROUGH A LAYER

is the weight from unit into unit , and the sum runs over every unit that unit feeds. A unit feeding several others collects a contribution from each. For an output unit with the squared-error loss above, .

ACTIVATION FUNCTIONS AND THEIR DERIVATIVES

is largest, , at . The ReLU derivative is undefined at itself; a question that lands there should state the value it uses.

SIGMOID OUTPUT WITH CROSS-ENTROPY LOSS

is 0 or 1 (natural logarithm). The chain rule gives , and multiplying by cancels the denominator.