electronics engineering
Course handbook · First year · Edition with space for notes
Geometry and Algebra
Geometry and linear algebra: vectors, matrices, determinants, linear systems, vector spaces, eigenvalues and analytic geometry.
- 12Topics
- 34Solved exercises
- 54Formula sheet
Free handbook generated from the lessons of the site and updated often, every time a lesson or an exercise changes: the latest version is always at www.electronics-engineering.com/handbook/geometry-and-algebra. Links work in the PDF too.
1Complex numbers
The equation
has no real solutions. Complex numbers were introduced to give it some, but for an electronics student they are much more than that: they are the natural way to describe sinusoids, impedances and spectra. This lesson covers everything a first calculus course needs: algebraic form, the complex plane, trigonometric and exponential form, powers, roots and equations.
Algebraic form
We introduce the imaginary unit
, with
(in circuit theory it is written
, because
is the current). A complex number is
, with real part
and imaginary part
. Operations follow the usual rules of algebra, remembering that
:
- sum:
; - product:
; - conjugate:
, with
; - quotient: multiply numerator and denominator by the conjugate of the denominator,
.
The complex plane, modulus and argument
The number
is represented as the point
of the plane. Its distance from the origin is the modulus
, and its angle with the positive real axis is the argument
. To find the argument,
is not enough: you must look at the quadrant. For
,
, but the point is in the second quadrant, so
.
Trigonometric and exponential form
With modulus
and argument
we write
. Euler’s formula
![]()
gives the compact form
. The advantage is huge for products: moduli multiply and arguments add,
![Rendered by QuickLaTeX.com \[ \rho_1 e^{i\theta_1}\cdot \rho_2 e^{i\theta_2} = \rho_1\rho_2\, e^{i(\theta_1+\theta_2)}, \qquad \frac{\rho_1 e^{i\theta_1}}{\rho_2 e^{i\theta_2}} = \frac{\rho_1}{\rho_2}\, e^{i(\theta_1-\theta_2)}. \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-dc2817caf5c3ba3bebb70512da339480_l3.png)
Multiplying by
therefore means rotating by 90° in the plane: that is why an inductor shifts the current by a quarter of a period.
Powers: De Moivre’s formula
From the above,
, that is
. Example:
. The modulus is
and the argument
, so
. Multiplying it out by hand would take much longer.
n-th roots
Every non-zero complex number
has exactly
distinct
-th roots:
![]()
They lie at the vertices of a regular polygon with
sides centred at the origin. The cube roots of 1, for example, are
,
,
: an equilateral triangle, the same pattern as the three phases of a three-phase system.
Equations
In the complex numbers every quadratic equation has two solutions, even with a negative discriminant:
gives
. More generally, the fundamental theorem of algebra says that a polynomial of degree
has exactly
complex roots, counted with multiplicity. If the coefficients are real, the non-real roots come in conjugate pairs.
A common mistake: the rules for real powers do not always hold. Writing
leads to
, which is false. In the complex numbers the root is a multi-valued function and must be handled with the root formula.
Why engineers need them
A sinusoidal voltage
is the real part of
. The complex number
, called a phasor, carries amplitude and phase. With phasors, derivatives become multiplications by
, and the differential equations of circuits in sinusoidal steady state become algebraic equations: a resistor has impedance
, an inductor
, a capacitor
. The same language returns in the Fourier transform and in the frequency response of filters.
2Vectors: dot, cross and triple products
The Geometry and Algebra course starts with vectors in space, because they are the concrete model from which all of linear algebra grows: first you learn to work with arrows in the plane and in space, then you discover that the same rules hold for polynomials, signals and matrices. In this lesson we cover vectors, components, the dot product, the cross product and the scalar triple product, with their geometric meaning: lengths, angles, areas and volumes.
Bound and free vectors
A directed segment
has a starting point, a length, a direction and a sense. Two directed segments that can be obtained from each other by a translation represent the same free vector. Once an origin O is fixed, every vector can be placed at O and corresponds to a single point P: this is why, in space with a Cartesian frame, vectors are identified with triples of numbers,
![]()
Operations are done component by component:
,
. The vector from A to B is a difference,
, and the midpoint of AB is
.
Parallel vectors. Two non-zero vectors are parallel if one is a multiple of the other,
. Three points A, B, C are collinear if
and
are parallel.
Dot product: lengths and angles
![]()
The two forms are equivalent (the proof with orthonormal unit vectors is in the Physics 1 lesson on quantities and vectors). From here:
- norm:
; the distance between two points is
; - angle:
; - orthogonality:
.
Proof: the Cauchy-Schwarz inequality
. For every real
we have
, that is
![]()
A quadratic that is never negative has a discriminant less than or equal to zero:
, which is the claim. The proof uses only the properties of the dot product, not components: this is why it will also hold in abstract spaces. The triangle inequality
follows.
Cross product: areas
![Rendered by QuickLaTeX.com \[ \vec u\times\vec v = \det\begin{pmatrix}\vec e_1 & \vec e_2 & \vec e_3\\ u_1 & u_2 & u_3\\ v_1 & v_2 & v_3\end{pmatrix} = (u_2v_3 - u_3v_2,\; u_3v_1 - u_1v_3,\; u_1v_2 - u_2v_1) \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-3cd10cd04fe72499b935f3440387a9fc_l3.png)
The result is a vector perpendicular to both
and
, with sense given by the right-hand rule and magnitude
, which is the area of the parallelogram built on the two vectors. The area of triangle ABC is therefore
.

is perpendicular to the plane of
and
and its magnitude is the area of the parallelogram. Right: the absolute value of the scalar triple product is the volume of the parallelepiped built on three vectors.Properties worth remembering:
(anticommutative);
if and only if the vectors are parallel; it is not associative.
Proof: the magnitude is the area
Expanding the squares one checks Lagrange’s identity,
. Substituting
:
![]()
and
is exactly the height of the parallelogram with base
.
Scalar triple product: volumes and coplanarity
![Rendered by QuickLaTeX.com \[ \vec u\cdot(\vec v\times\vec w) = \det\begin{pmatrix}u_1 & u_2 & u_3\\ v_1 & v_2 & v_3\\ w_1 & w_2 & w_3\end{pmatrix} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-988181b48c791365f1a14230d9af5373_l3.png)
Its absolute value is the volume of the parallelepiped built on the three vectors:
is the area of the base and
(with
the angle between
and the normal to the base) is the height. The sign tells whether the triple is oriented like the axes (right-handed) or not.
A key consequence: three vectors are coplanar if and only if their triple product is zero, that is if the determinant of their components vanishes. It is the first meeting with an idea that will come back throughout the course: a zero determinant means that something “collapses” into one dimension less.
Worked example
Given
,
,
,
: find the area of triangle ABC and the volume of tetrahedron ABCD.
,
,
.
.- Area of ABC:
. - Triple product:
. - The tetrahedron is one sixth of the parallelepiped: volume
.
Had the triple product been zero, the four points would have been on the same plane.
Exercises
Exercises on vectors and analytic geometry in the plane and in space of the kind set in Geometry and Linear Algebra courses, in three levels: basic, for dot and cross products, lines, planes and circles; intermediate, with areas, planes through three points, intersections and distances; exam, with skew lines, rotated conics and reflections, as in written exams. The result is given straight away; the full solution opens with a click.
Basic level
Exercise 1. Dot product, cross product and angle
Given
and
, compute
,
and the angle between the two vectors.
Exercise 2. The line through two points and its distance from the origin
Write the line through
and
and compute its distance from the origin.
Exercise 3. The plane through a point with a given normal
Write the plane through
perpendicular to
.
Intermediate level
Exercise 5. The area of a triangle in space
Compute the area of the triangle with vertices
,
,
.
Exercise 6. The plane through three points
Write the plane through the three points of exercise 5.
3Linear systems and Gaussian elimination
Solving a system of linear equations is the most common problem in applied mathematics: the currents in an electrical network, the forces in a truss, data interpolation, simulating a circuit in SPICE all come down to it. In this lesson we see how to write a system in matrix form, what it means geometrically and how to solve it with Gaussian elimination, which is also the algorithm computers use.
Linear systems and matrix form
A system of
linear equations in
unknowns is written
![Rendered by QuickLaTeX.com \[ \begin{cases} a_{11}x_1 + a_{12}x_2 + \dots + a_{1n}x_n = b_1\\ \quad\vdots\\ a_{m1}x_1 + a_{m2}x_2 + \dots + a_{mn}x_n = b_m \end{cases} \qquad\Longleftrightarrow\qquad A\,\mathbf x = \mathbf b \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-181bc7f9cceb6088cd47c5d79c0a38e0_l3.png)
where
is the coefficient matrix (
rows,
columns),
the vector of unknowns and
the right-hand side. Placing
next to
gives the augmented matrix
. If
the system is homogeneous and always has at least the zero solution.
The geometric meaning
With two unknowns each equation is a line in the plane, and solving the system means finding the common points. There are only three possibilities.

The same holds in general: a linear system has one solution, none or infinitely many. It cannot have exactly two, because if
and
are solutions so is every point of the line through them,
: indeed
. With three unknowns each equation is a plane, and the solutions are a point, a line, a plane or nothing.
Elementary operations
The solutions of a system do not change if these elementary operations are applied to its equations (that is, to the rows of the augmented matrix):
- swap two rows;
- multiply a row by a non-zero number;
- add a multiple of one row to another row.
Each operation is invertible (it is undone by an operation of the same type), so every solution of the new system solves the old one and vice versa.
Gaussian elimination
The idea is to use elementary operations to bring the augmented matrix to row echelon form: each row starts with more zeros than the one above. The first non-zero entry of each row is called the pivot. Then the system is solved from the bottom up, by back substitution.
Example.
![Rendered by QuickLaTeX.com \[ \begin{cases} x + 2y + z = 4\\ 2x + 5y + 3z = 11\\ -x + y + 4z = 9 \end{cases} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-cefe53043f6b96b9ae845cdf8c95c385_l3.png)
![Rendered by QuickLaTeX.com \[ \left(\begin{array}{ccc|c} 1 & 2 & 1 & 4\\ 2 & 5 & 3 & 11\\ -1 & 1 & 4 & 9 \end{array}\right) \xrightarrow[R_3 + R_1]{R_2 - 2R_1} \left(\begin{array}{ccc|c} 1 & 2 & 1 & 4\\ 0 & 1 & 1 & 3\\ 0 & 3 & 5 & 13 \end{array}\right) \xrightarrow{R_3 - 3R_2} \left(\begin{array}{ccc|c} 1 & 2 & 1 & 4\\ 0 & 1 & 1 & 3\\ 0 & 0 & 2 & 4 \end{array}\right) \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-a5ec65e30d67b2a31fc0504ecb4e31f8_l3.png)
From the last row
, so
. From the second
. From the first
. Solution:
. It always pays to check it in the original third equation:
. Correct.
Inconsistent and underdetermined systems
The echelon form tells you at once what is going on.
- If a row
with
appears, that is the equation
, the system is inconsistent. - Otherwise it can be solved. The unknowns matching the pivots are worked out; the others are free parameters. With
unknowns and
pivots the solutions depend on
parameters.
Example.
,
,
. With
and
we get the rows
and
; with
the last becomes all zeros. Two pivots and three unknowns are left:
free,
,
. The solutions are the line
.
Had the last row been
(for instance with 7 instead of 6 on the right of the third equation), the system would have been inconsistent: the three planes would have no common point.
Gauss-Jordan elimination
Carrying the elimination upwards as well and dividing each row by its pivot gives the reduced row echelon form: pivots equal to 1 and zeros above and below each pivot. The solutions can be read off directly, without substitution. The same procedure, applied to the matrix
, computes the inverse matrix (see the lesson on matrices).
How much it costs
For an
system elimination takes about
operations. With
that is just under a billion, a fraction of a second for a computer. Numerical libraries (LAPACK, used by MATLAB and NumPy) use exactly Gaussian elimination, in a form called LU factorisation, with partial pivoting: at each step the entry of largest absolute value in the column is chosen as pivot, so as not to divide by tiny numbers and to limit rounding errors.
A note for electronics people
With nodal analysis, each node of a linear circuit gives a linear equation in the node voltages (Kirchhoff’s current law). A circuit with 500 nodes is a
system, and a simulator such as SPICE, at every time step, does nothing but build it and solve it by Gaussian elimination, taking advantage of the fact that the matrix is almost entirely zeros.
Exercises
Exercises on linear systems, matrices, determinants and rank of the kind set in Geometry and Linear Algebra courses, in three levels: basic, for Gaussian elimination, matrix products and determinants; intermediate, with the inverse by reduction, Cramer’s rule and rank; exam, with systems and matrices depending on a parameter discussed with the Rouché-Capelli theorem, as in written exams. The result is given straight away; the full solution opens with a click.
Basic level
Intermediate level
4Matrices and the inverse matrix
A matrix is a table of numbers, but above all it is a compact way of writing transformations and systems. In this lesson we cover matrix operations, why the row-by-column product is defined the way it is, special matrices and how to compute the inverse.
Definitions
An
matrix has
rows and
columns; the entry in row
and column
is written
. If
the matrix is square of order
. Real
matrices form the set
.
Addition and multiplication by a scalar are done entry by entry, and they have the same properties as for vectors:
is a vector space of dimension
.
The row-by-column product
If
is
and
is
, the product
is the
matrix with
![Rendered by QuickLaTeX.com \[ (AB)_{ij} = \sum_{k=1}^{n} a_{ik}\,b_{kj} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-7395dd36feec30fbb12e0fae5ccfff4e_l3.png)
that is, the dot product of row
of
with column
of
. The number of columns of
must equal the number of rows of
.
![]()
Why it is defined this way
A matrix
transforms a vector
into the vector
. If we first apply
and then
, we get
. Writing out the components:
![Rendered by QuickLaTeX.com \[ \big(A(B\mathbf x)\big)_i = \sum_k a_{ik}\,(B\mathbf x)_k = \sum_k a_{ik}\sum_j b_{kj}x_j = \sum_j\Big(\sum_k a_{ik}b_{kj}\Big)x_j \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-54e89a3ea904d02d299d7ed906e956a6_l3.png)
The coefficient in brackets is exactly
: the matrix product is the composition of the transformations. It follows at once that the product is associative,
, because composition of functions is.
The product is not commutative
In general
, even when both exist. Rotating by 90° and then reflecting in the
axis does not give the same result as reflecting and then rotating. Other differences from numbers:
does not imply
or
: for example
;- from
you cannot “cancel”
, unless
is invertible.

Special matrices
- Identity
: 1 on the diagonal, 0 elsewhere.
. - Diagonal: zeros off the diagonal. They multiply entry by entry along the diagonal, and their powers are trivial.
- Triangular, upper or lower: zeros below (or above) the diagonal. The echelon form of Gaussian elimination is upper triangular.
- Transpose
: rows and columns swapped,
. We have
(mind the order). - Symmetric:
. They appear everywhere, from covariance matrices to the stiffness matrices of structures, and have special properties we will meet with the spectral theorem.
The inverse matrix
A square matrix
is invertible if there is
with
. If it exists it is unique, and the system
has the single solution
.
We have
and
. A matrix is invertible if and only if its determinant is non-zero (see the lesson on the determinant), that is if and only if its rank is
.
The 2×2 case. If
:
![Rendered by QuickLaTeX.com \[ \begin{pmatrix} a & b\\ c & d \end{pmatrix}^{-1} = \frac{1}{ad - bc}\begin{pmatrix} d & -b\\ -c & a \end{pmatrix} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-f3f7b168da90667b7394ff4a8d6dcdc8_l3.png)
Check by multiplying: the product gives
, divided by
.
Computing the inverse with Gauss-Jordan
Place the identity next to
and apply elementary operations until
becomes
:
appears on the right.
![Rendered by QuickLaTeX.com \[ \left(\begin{array}{cc|cc} 2 & 1 & 1 & 0\\ 5 & 3 & 0 & 1 \end{array}\right) \xrightarrow{R_2 - \frac52 R_1} \left(\begin{array}{cc|cc} 2 & 1 & 1 & 0\\ 0 & \frac12 & -\frac52 & 1 \end{array}\right) \xrightarrow[R_1 - R_2]{2R_2} \left(\begin{array}{cc|cc} 2 & 0 & 6 & -2\\ 0 & 1 & -5 & 2 \end{array}\right) \xrightarrow{\frac12 R_1} \left(\begin{array}{cc|cc} 1 & 0 & 3 & -1\\ 0 & 1 & -5 & 2 \end{array}\right) \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-cb3e100353843f6cfd54dda16c55a0a0_l3.png)
So
, as the 2×2 formula with
confirms.
Why it works. Each elementary operation amounts to multiplying on the left by an elementary matrix
. If
, then the product
is exactly
, and applied to
it gives
. If during the process a row on the left becomes all zeros,
is not invertible.
A practical tip
To solve
on a computer you never compute
: it costs about three times as much as Gaussian elimination and is numerically less accurate. The inverse is a theoretical tool, useful for writing formulas; in programs you use
in MATLAB or numpy.linalg.solve.
5The determinant and Cramer's rule
The determinant is a number attached to every square matrix that sums up a key fact: whether the matrix is invertible or not. It also has a precise geometric meaning, which makes all its properties natural: it measures how much the matrix stretches areas and volumes. In this lesson we define it, see how to compute it and look at its uses, up to Cramer’s rule.
Order 2 and 3
![]()
For order 3 you can use the rule of Sarrus: add the products of the three diagonals going down to the right and subtract those of the three going down to the left.
![Rendered by QuickLaTeX.com \[ \det\begin{pmatrix} a_{11} & a_{12} & a_{13}\\ a_{21} & a_{22} & a_{23}\\ a_{31} & a_{32} & a_{33} \end{pmatrix} = a_{11}a_{22}a_{33} + a_{12}a_{23}a_{31} + a_{13}a_{21}a_{32} - a_{13}a_{22}a_{31} - a_{11}a_{23}a_{32} - a_{12}a_{21}a_{33} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-d8216caa321a355633f096a99d7f386e_l3.png)
Careful: Sarrus works only for 3×3 matrices. Higher orders need Laplace expansion or Gaussian elimination.
The geometric meaning
The columns of
are the images of the basis vectors,
and
. The unit square built on
is mapped to the parallelogram built on the columns of
.

maps the square of area 1 to the parallelogram built on its columns. The area of that parallelogram is
: here
has columns
and
, and
.Proof in the 2×2 case
The parallelogram with sides
and
has an area equal to the magnitude of the cross product of the two vectors seen in space with a zero third component:
. So the area is
. In three dimensions, likewise,
is the volume of the parallelepiped built on the columns: it is the triple product of the lesson on vectors.
The sign gives the orientation: positive if the transformation keeps the sense of rotation (from
to
anticlockwise), negative if it reverses it, as a mirror does. And if
the parallelogram is flattened onto a line: the transformation loses a dimension and cannot be inverted.
Laplace expansion
For an
matrix, let
be the submatrix obtained by deleting row
and column
. The cofactor is
. Then, expanding along any row
:
![Rendered by QuickLaTeX.com \[ \det A = \sum_{j=1}^{n} a_{ij}\,C_{ij} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-b2d8a5f126f3122fa80e3fdfa823c2ed_l3.png)
and the same holds along any column. Choose the row or column with the most zeros. The signs
follow the chessboard pattern starting with
at the top left.
Example.
![Rendered by QuickLaTeX.com \[ \det\begin{pmatrix} 2 & 0 & 1\\ 3 & 1 & 0\\ 1 & 4 & 5 \end{pmatrix} = 2\det\begin{pmatrix} 1 & 0\\ 4 & 5 \end{pmatrix} - 0 + 1\cdot\det\begin{pmatrix} 3 & 1\\ 1 & 4 \end{pmatrix} = 2\cdot 5 + 11 = 21 \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-56be49e6a0170f39fd40aa796633afe0_l3.png)
Properties
- Swapping two rows changes the sign of the determinant.
- Multiplying a row by
multiplies the determinant by
. Hence
. - Adding a multiple of one row to another does not change the determinant.
- If two rows are equal or proportional, or a row is zero,
.
: everything true for rows is true for columns.- The determinant of a triangular matrix is the product of its diagonal entries.
- Binet’s theorem:
.
Property 7 has an immediate geometric reading: applying
and then
scales areas first by
and then by
. It follows that
.
Computing with Gauss
Properties 1, 3 and 6 give the most efficient method: reduce the matrix to triangular form with elementary operations, multiply the diagonal and change sign once for each row swap. For a 10×10 matrix Laplace expansion takes millions of products, Gauss a few hundred.
Determinant and invertibility
Theorem. A square matrix
is invertible if and only if
.
If
is invertible, by Binet
, so
. Conversely, if
the inverse can be written explicitly with cofactors:
![]()
(the transpose of the cofactor matrix is called the adjugate). For 2×2 matrices we get back the formula from the lesson on matrices.
Cramer’s rule
If
, the system
has the single solution
![]()
where
is the matrix
with column
replaced by
.
Proof. Let
be the solution. In the matrix
column
is
, a combination of the columns of
. Since the determinant is linear in each column,
splits into
determinants: those with
,
, in position
have two equal columns and are zero. What is left is
.
Example.
,
:
,
,
.
Cramer is handy for 2×2 and 3×3 systems by hand, and for getting symbolic formulas (like voltage dividers in circuits), but with many unknowns it is far slower than Gauss.
6Vector spaces, bases and dimension
So far we have worked with vectors in the plane and in space. Linear algebra takes a step of abstraction: it takes the properties of vector addition and multiplication by a number, and calls “vector space” any set that respects them. That way the same theorems hold for triples of numbers, for polynomials, for matrices and for signals. In this lesson we cover spaces and subspaces, linear combinations, linear dependence, bases and dimension.
Vector spaces
A real vector space is a set
with an addition
and a multiplication by scalars
that satisfy the properties we are used to: addition is associative and commutative, there is a zero vector
, every vector has an opposite, and
,
,
,
.
Examples:
, the
-tuples of real numbers;
, polynomials of degree at most
;
, the
matrices;- continuous functions on an interval, with pointwise addition. The signals in a circuit live in spaces of this kind.
Subspaces
A subset
of
is a subspace if it is itself a vector space with the same operations. Three checks are enough:
; if
then
; if
then
.

the subspaces are the origin, the lines and planes through the origin (
and
) and the whole space. The shifted plane
is not a subspace: it does not contain
.Examples. The solutions of a homogeneous system
form a subspace of
: if
and
then
and
. The solutions of a non-homogeneous system are not (they do not contain
): they form a shifted subspace, like the grey plane in the figure. The plane
is a subspace, the plane
is not.
Linear combinations and spanning sets
A linear combination of the vectors
is a vector of the form
. The set of all linear combinations is called the span and is written
. It is the smallest subspace containing those vectors. Two non-parallel vectors of
span a plane through the origin; three non-coplanar vectors span the whole of
.
Linear dependence and independence
The vectors
are linearly independent if the only linear combination giving the zero vector is the one with all coefficients zero:
![]()
Otherwise they are dependent, and at least one of them can be written as a combination of the others: it is “redundant”, it adds no new direction.
How to check. Put the vectors as columns of a matrix and solve the homogeneous system: they are independent if the only solution is zero, that is if the echelon form has a pivot in every column. In
,
vectors are independent if and only if the determinant of the matrix with them as columns is non-zero.
Example.
,
,
: the determinant is
. They are dependent, and indeed
.
Bases and coordinates
A basis of
is a set of linearly independent vectors that span
. Every vector can then be written as a combination of the basis vectors in exactly one way: the coefficients are its coordinates.
Proof: coordinates are unique
If
, subtracting gives
. By independence all coefficients are zero, so
for every
. This is where independence is needed: with dependent vectors the same vector would have infinitely many expressions.
Standard bases: in
the vectors
, …,
; in polynomials of degree at most
the monomials
. The coordinates of the polynomial
are
: with a basis, a polynomial becomes a triple of numbers and can be handled like a vector of
.
Dimension
Theorem. All bases of a vector space have the same number of elements. This number is the dimension of
,
.
The idea of the proof (Steinitz exchange lemma): if
is spanned by
vectors, then any set of more than
vectors is dependent. Applying this both ways to two bases, they have the same number of elements.
,
,
. The space of all continuous functions, on the other hand, is infinite-dimensional.
Practical consequences, in a space of dimension
:
- more than
vectors are always dependent; - fewer than
vectors cannot span the whole space;
independent vectors automatically form a basis (and so do
spanning vectors).
Sum and intersection of subspaces
If
and
are subspaces, so are
and
. Grassmann’s formula links their dimensions:
![]()
Two distinct planes through the origin in
:
, so
. They meet in a line, as expected. If
the sum is called direct,
, and every vector of the sum splits in a unique way.
Exercises
Exercises on vector spaces, linear maps, eigenvalues and diagonalisation of the kind set in Geometry and Linear Algebra courses, in three levels: basic, for subspaces, linear dependence and eigenvalues of a 2 × 2 matrix; intermediate, with coordinates, kernel and image and 3 × 3 diagonalisation; exam, with parameters, matrix powers and projections, as in written exams. The result is given straight away; the full solution opens with a click.
Basic level
Exercise 3. Eigenvalues and eigenvectors of a 2 × 2 matrix
Find the eigenvalues and eigenvectors of
.
Intermediate level
Exercise 4. Coordinates with respect to a basis
Find the coordinates of
with respect to the basis
,
,
.
7Rank and the Rouché-Capelli theorem
Rank is the number that says “how much independent information” a matrix holds. It ties together the three previous lessons (systems, determinant, vector spaces) and leads to the Rouché-Capelli theorem, which answers once and for all the question: when does a linear system have solutions, and how many?
Definition
The rank of a matrix
,
, is the largest number of linearly independent columns, that is the dimension of the space spanned by the columns. An important result is that it equals the largest number of independent rows: row rank and column rank are the same. So for an
matrix
.
How to compute it
With Gauss. Elementary row operations do not change the rank (they do not change the space spanned by the rows). The rank is therefore the number of pivots in the echelon form, that is the number of non-zero rows.
With minors. A minor of order
is the determinant of a
submatrix. The rank is the largest order of a non-zero minor. To avoid trying them all one uses the bordering theorem (Kronecker’s): if a minor
of order
is non-zero and all minors of order
that contain it (“bordered” minors) are zero, then the rank is
.
Example.
![Rendered by QuickLaTeX.com \[ A = \begin{pmatrix} 1 & 2 & 0 & 1\\ 2 & 4 & 1 & 3\\ 3 & 6 & 1 & 4 \end{pmatrix} \xrightarrow[R_3 - 3R_1]{R_2 - 2R_1} \begin{pmatrix} 1 & 2 & 0 & 1\\ 0 & 0 & 1 & 1\\ 0 & 0 & 1 & 1 \end{pmatrix} \xrightarrow{R_3 - R_2} \begin{pmatrix} 1 & 2 & 0 & 1\\ 0 & 0 & 1 & 1\\ 0 & 0 & 0 & 0 \end{pmatrix} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-e3bfbf94b2c2de674ec420887dfa2a90_l3.png)
Two pivots:
. Indeed the third row of
is the sum of the first two, and the second column is twice the first.
The Rouché-Capelli theorem
Theorem. The system
, with
unknowns, has solutions if and only if
![]()
In that case, calling
the common rank, the solutions depend on
free parameters. In particular the solution is unique if and only if
.
Proof
is a combination of the columns of
. The system has a solution if and only if
is a linear combination of the columns of
, that is if and only if
lies in the space spanned by the columns. Then adding
as a column does not increase the dimension of that space:
. If instead
is not a combination of the columns, adding it raises the rank by one.
For the number of parameters: if
is a solution, all the others are
with
(the difference of two solutions solves the homogeneous system). The solution space of the homogeneous system, the kernel of
, has dimension
, as we will prove with the rank-nullity theorem in the lesson on linear maps.
In short, the structure of all solutions is:
![]()
One particular solution plus the general solution of the homogeneous system: the same structure you meet in the linear differential equations of Analysis 2 and in circuits (forced response plus natural response). It is no coincidence: they are all linear problems.

Systems with a parameter
Exam problems often ask to discuss a system as a parameter
varies.
Example.
![Rendered by QuickLaTeX.com \[ \begin{cases} x + y + z = 1\\ x + ky + z = 1\\ x + y + kz = k \end{cases} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-baecd57fcae2d7d2db68dfdd1dd2d11a_l3.png)
The determinant of the coefficient matrix, after subtracting the first row from the others, is that of a triangular matrix:
![Rendered by QuickLaTeX.com \[ \det\begin{pmatrix} 1 & 1 & 1\\ 0 & k - 1 & 0\\ 0 & 0 & k - 1 \end{pmatrix} = (k - 1)^2 \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-8b1ccc752d04582a3ca883a3cabfbcef_l3.png)
:
, rank 3 = number of unknowns, a single solution. From the second equation minus the first,
, so
; from the third minus the first,
, so
; finally
. Solution
.
: all three equations become
.
, the solutions depend on
parameters: a plane.
Had the right-hand side of the third equation been
instead of
, for
we would have had
and
: an inconsistent system.
Rank and invertibility
For a square
matrix the following are equivalent:
is invertible;
;
;- the columns (and the rows) of
form a basis of
;
has only the zero solution;
has exactly one solution for every
.
This list is one of the most used tools in the course: to prove one property it is enough to prove another.
8Linear maps, kernel and image
Linear maps are the functions of linear algebra: they turn vectors into vectors while respecting sums and multiples. Rotations, projections, derivatives and digital filters are all examples. In this lesson we see that every linear map between finite-dimensional spaces is represented by a matrix, introduce kernel and image and prove the rank-nullity theorem.
Definition
A function
between vector spaces is linear if
![]()
An immediate consequence:
. So
, despite being called a “linear function” at school, is not linear in this sense: it is a line that does not pass through the origin.
Examples: rotation of the plane by an angle
; projection of space onto a plane; the derivative, which sends a polynomial
to
and respects sums and multiples; a FIR digital filter,
, which is linear in the input signal.
The matrix of a linear map
A linear map is determined by the images of the vectors of a basis. If
, by linearity
![]()
Placing the images
as columns gives a matrix
, and
. Conversely, every
matrix defines a linear map from
to
. The columns of
are the images of the basis vectors: that is the rule to remember.

and
go (the columns of
) is enough to know where every vector goes:
has, relative to
, the same coordinates that
has relative to
.Example: rotation. Rotating by
,
goes to
and
goes to
. So
![]()
Composing two rotations,
: expanding the product gives back the addition formulas for sine and cosine, with no need to memorise them.
Example: the derivative. On
with basis
:
,
,
. The coordinates of these images are the columns:
![Rendered by QuickLaTeX.com \[ D = \begin{pmatrix} 0 & 1 & 0\\ 0 & 0 & 2\\ 0 & 0 & 0 \end{pmatrix} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-7b9ee57bc941eaa942561f5fa1554680_l3.png)
Differentiating
is the same as multiplying
by
: the result is
, that is
.
Kernel and image
- The kernel
is a subspace of
: for a matrix, it is the solution set of the homogeneous system
. - The image
is a subspace of
: for a matrix, it is the column space, and its dimension is the rank.
is injective if and only if
. Indeed
is equivalent to
, that is
.
is surjective if and only if
.
The rank-nullity theorem
Theorem. If
is linear and
is finite-dimensional,
![]()
Proof
Let
be a basis of
. Extend it to a basis of
by adding
, with
. We show that
is a basis of the image, so
.
They span. Every
is
, and
because
.
They are independent. If
, then
, so
is in the kernel and can be written as
. But then
is a zero combination of vectors of a basis of
: all coefficients are zero, in particular the
.
For an
matrix of rank
the theorem says
: it is the number of free parameters in the Rouché-Capelli theorem, which is now fully proved.
Consequences. A linear map from
to itself is injective if and only if it is surjective (if and only if it is invertible). A map from
to
cannot be injective: the kernel has dimension at least 1. One from
to
cannot be surjective.
Change of basis
The matrix of a map depends on the chosen basis. If
is the matrix whose columns are the vectors of a new basis (written in the old basis), coordinates change by
, and the matrix of the map
in the new basis is
![]()
Two matrices related in this way are called similar: they represent the same transformation seen from two different frames. They have the same determinant, rank, trace and eigenvalues. Choosing the right basis to make
as simple as possible, ideally diagonal, is exactly the topic of the next lesson.
9Eigenvalues and diagonalisation
A matrix transforms vectors by rotating and stretching them, but for almost every matrix there are special directions that are not rotated: vectors along those directions are just multiplied by a number. They are the eigenvectors, and the number is the eigenvalue. Finding them means choosing the frame in which the transformation becomes as simple as it gets. The idea underpins the mechanics of vibrations, the stability of control systems, data compression and even Google’s PageRank algorithm.
Definition
Let
be an
matrix. A non-zero vector
is an eigenvector of
with eigenvalue
if
![]()

maps the circle to an ellipse. The vector
along the diagonal is just stretched by 3,
stays the same (eigenvalue 1); a generic vector
changes direction. The eigenvectors are the axes of the ellipse.The eigenvectors for the same
, together with the zero vector, form a subspace, the eigenspace
.
How to find them: the characteristic polynomial
can be rewritten as
. This homogeneous system has a non-zero solution if and only if the matrix is not invertible, that is
![]()
is a polynomial of degree
, the characteristic polynomial. Its roots are the eigenvalues; for each one, the eigenvectors are found by solving
.
Example. For the matrix in the figure:
![]()
:
gives
, eigenvectors
.
:
gives
, eigenvectors
.
Two useful checks: the sum of the eigenvalues is the trace (the sum of the diagonal, here
) and their product is the determinant (
).
Matrices without real eigenvalues. The 90° rotation,
, has characteristic polynomial
: no direction in the plane stays put under a rotation, and the eigenvalues are complex,
. This is why many courses work over the complex numbers, where every polynomial has roots.
Diagonalisation
is diagonalisable if there is a basis of
made of eigenvectors. In that basis the matrix becomes diagonal, with the eigenvalues on the diagonal:
![Rendered by QuickLaTeX.com \[ P^{-1}AP = D = \begin{pmatrix} \lambda_1 & & \\ & \ddots & \\ & & \lambda_n \end{pmatrix} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-225833d136967d317393c0e9952634c0_l3.png)
where
has the eigenvectors as columns. Indeed
has columns
, that is
.
When it is diagonalisable
Eigenvectors of distinct eigenvalues are independent. We prove it for two: if
, applying
gives
; subtracting
times the first,
, so
(since
and
), and then
. For
eigenvectors the same argument works by induction.
It follows that if
has
distinct real eigenvalues, it is diagonalisable. With repeated eigenvalues you need to check: for each eigenvalue the geometric multiplicity (dimension of the eigenspace) must equal the algebraic multiplicity (how many times it is a root of the polynomial). The classic counterexample is
: eigenvalue 1 twice, but only one eigenvector
up to multiples. It is not diagonalisable.
What it is for
Matrix powers. If
, then
, and
is computed by raising the diagonal entries to the power. For the matrix in the figure,
only needs
and
.
Discrete dynamical systems. In
the component along the eigenvector
is multiplied by
at every step. If every eigenvalue has modulus less than 1 the system goes to zero (it is stable); if one has modulus greater than 1 it blows up. IIR digital filters and digital controllers are designed precisely by looking at where the eigenvalues lie.
Differential equations. The system
, which describes for example an RLC circuit or two masses linked by springs, splits in the eigenvector basis into
independent equations
, with solutions
. The eigenvalues are the “modes” of the system: for a circuit they are the poles, and their real part tells whether the circuit is stable.
Fibonacci. The sequence
can be written with the matrix
, whose eigenvalues are
and
. Diagonalising gives Binet’s formula,
, and shows why the ratio of two consecutive terms tends to the golden ratio.
10Inner product, orthogonality and the spectral theorem
Abstract vector spaces have neither lengths nor angles. To get them you need one more structure, the inner product. With it come orthogonality, projections, orthonormal bases and one of the finest theorems of the course, the spectral theorem. These are the tools behind least squares, Fourier series and JPEG compression.
Inner product and norm
An inner product on a real space
is an operation
that gives a number and is symmetric, linear in each argument and positive definite:
for every
. The standard one on
is
. On continuous functions on
an inner product is
.
The norm is
, and the Cauchy-Schwarz and triangle inequalities hold (proved in the lesson on vectors, with an argument that uses only these properties). Two vectors are orthogonal if
.
Pythagoras’ theorem
If
, then
. In any space with an inner product, even one made of functions.
Non-zero orthogonal vectors are independent. If
, taking the inner product with
leaves only
, so
.
Orthogonal projection

onto the direction of
is the vector on that line closest to
. The difference
is perpendicular to
.Proof of the formula
We look for the multiple
such that
is orthogonal to
:
![]()
It is also the closest point: for any other multiple
, the vector
is the sum of
and
, which are orthogonal, and by Pythagoras
.
The same holds for projection onto a subspace
: the point of
closest to
is the one for which the difference is orthogonal to all of
. This is the principle of least squares: when a system
has no solution (too many equations, noisy data), you look for
such that
is the projection of
onto the column space. The orthogonality condition gives the normal equations
. This is how a regression line through experimental data is computed.
Orthonormal bases
A basis is orthonormal if its vectors have norm 1 and are pairwise orthogonal. The advantage is huge: coordinates are computed with an inner product, without solving systems.
![]()
Indeed, taking the inner product of
with
leaves only
. A Fourier series is exactly this, in a space of functions: sines and cosines are an orthogonal basis with respect to
, and the Fourier coefficients are inner products.
The Gram-Schmidt process
From any basis
you build an orthonormal basis of the same space by removing from each vector its projections onto the previous ones:
![Rendered by QuickLaTeX.com \[ \mathbf u_1 = \mathbf v_1,\qquad \mathbf u_k = \mathbf v_k - \sum_{j \lt k}\frac{\langle\mathbf v_k, \mathbf u_j\rangle}{\langle\mathbf u_j, \mathbf u_j\rangle}\,\mathbf u_j,\qquad \mathbf e_k = \frac{\mathbf u_k}{\|\mathbf u_k\|} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-9a090fc10603859a0a29f856967ded0e_l3.png)
Example.
,
.
.
,
, so
. Check:
. Normalising:
,
.
Orthogonal matrices
A square matrix
is orthogonal if its columns are an orthonormal basis, that is if
. Then
: the inverse costs as much as a transpose. Orthogonal matrices preserve inner products, lengths and angles,
: they are the rotations (
) and the reflections (
).
The spectral theorem
Theorem. Every real symmetric matrix has real eigenvalues and can be diagonalised with an orthonormal basis of eigenvectors: there is an orthogonal
such that
![]()
A key step of the proof is easy to see: eigenvectors of distinct eigenvalues are orthogonal. If
and
, using
:
![]()
so
and, if
,
. You can see it in the matrix
from the lesson on eigenvalues: its eigenvectors
and
are perpendicular.
The spectral theorem has consequences everywhere: the principal stress directions in a beam, the principal axes of inertia of a rigid body, principal component analysis (PCA), which reduces data to the directions of greatest variance, and the classification of conics and quadrics that we will see in the lesson on plane geometry.
11Analytic geometry in the plane: lines and conics
Analytic geometry turns geometric problems into equations: a point is a pair of numbers, a line a first-degree equation, a conic a second-degree equation. In this lesson we cover lines in the plane (equations, parallelism, distances) and conics, with their definitions as loci and the classification that uses eigenvalues.
Lines in the plane
A line can be described in two ways.
- Parametric form: through
with direction vector
:
. - Cartesian form:
. The vector
is perpendicular to the line.
Why
is normal
If
and
are on the line,
and
. Subtracting,
, that is
: the vector
is orthogonal to every vector along the line. A direction vector is therefore
, and the slope is
.
Relative position. Two lines are parallel if their normal vectors are proportional, perpendicular if the normals are orthogonal (
, or with slopes,
). Otherwise they meet at one point, found by solving the system: the lesson on linear systems seen through geometry.
Distance from a point to a line
![]()
Proof. Let
be any point on the line. The distance is the magnitude of the projection of
onto the normal direction
:
![Rendered by QuickLaTeX.com \[ d = \frac{|\overrightarrow{P_0Q}\cdot\mathbf n|}{|\mathbf n|} = \frac{|a(x_Q - x_0) + b(y_Q - y_0)|}{\sqrt{a^2 + b^2}} = \frac{|ax_Q + by_Q + c|}{\sqrt{a^2 + b^2}} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-eca5d00fc484e318666047e2d2b986c2_l3.png)
because
. Example: the distance of
from
is
.
Conics as loci

Circle. The points at distance
from the centre
:
.
Ellipse. The points with
. With foci at
and
:
![]()
The eccentricity
lies between 0 (circle) and 1. The Earth’s orbit has
, almost a circle; Halley’s comet
.
Hyperbola. The points with
. With foci at
and
:
![]()
The LORAN navigation system used hyperbolas: the difference in arrival times of the signals from two stations places the receiver on a hyperbola with the stations as foci.
Parabola. The points equidistant from the focus
and the directrix
:
![]()
Its optical property is famous: rays parallel to the axis are all reflected into the focus. That is why satellite dishes have the receiver (LNB) at the focus, and car headlights have the bulb at the focus of a parabolic mirror.
Proof: the equation of the ellipse
With
, the condition is
. Isolating one root and squaring:
![]()
Squaring again and simplifying:
. With
and dividing by
you get the standard equation.
Classifying conics with eigenvalues
A general second-degree equation
![]()
can be written with a symmetric matrix: the quadratic part is
with
. By the spectral theorem there is a rotation of the axes that makes
diagonal: in the new frame the mixed term
disappears and the quadratic part becomes
. The type of conic depends on the signs of the eigenvalues, that is on the determinant:
(eigenvalues of the same sign): ellipse;
(opposite signs): hyperbola;
(one zero eigenvalue): parabola.
(Apart from degenerate cases, such as pairs of lines or a single point, which are recognised from the determinant of the full 3×3 matrix.)
Example.
.
, characteristic polynomial
, eigenvalues 6 and 1. In the eigenvector frame,
for 6 and
for 1, the equation is
, that is
: an ellipse with semi-axes 1 and
, rotated by
.
12Analytic geometry in space: lines and planes
In three-dimensional space the linear objects are planes and lines. With vectors, the dot product and the cross product you can solve all the classic problems: equations, relative positions, angles and distances. It is the geometry behind 3D graphics, robotics and mechanical design.
The plane
A plane is determined by a point
and a normal vector
. A point
lies on the plane if
is perpendicular to
:
![]()
As for a line in the plane, the coefficients of
are the components of a normal vector.
Plane through three points. If A, B, C are not collinear, the vector
is normal to the plane. Example:
,
,
.
,
, cross product
. The plane is
, that is
, or
(intercept form: you read off where it crosses the axes).
Alternatively: the point
is on plane ABC if and only if
,
,
are coplanar, that is if their triple product, a 3×3 determinant, is zero.
The line
A line in space is written in parametric form, with a point and a direction vector
:
![]()
or in Cartesian form, as the intersection of two non-parallel planes:
![Rendered by QuickLaTeX.com \[ \begin{cases} a_1x + b_1y + c_1z + d_1 = 0\\ a_2x + b_2y + c_2z + d_2 = 0 \end{cases} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-f9159ec6e54ccab9b319be60606b7bae_l3.png)
A single linear equation in space is a plane, not a line: a common mistake. To go from Cartesian to parametric form you solve the system (rank 2, one free variable); the direction vector is also
, perpendicular to both normals.
Relative positions
Two planes are parallel if their normals are proportional; otherwise they meet in a line. The angle between two planes is the angle between their normals.
Line and plane. With
the direction of the line and
the normal of the plane: if
they meet at a point; if
the line is parallel to the plane (or lies in it). The line is perpendicular to the plane if
is parallel to
.
Two lines in space can intersect, be parallel or be skew: not parallel and with no common point, like two roads one above the other at a flyover. They are coplanar (so intersecting or parallel) if and only if the triple product of
,
,
is zero.
Distances

from the plane
is the length of the perpendicular segment: the component of
along the normal vector
.Point-plane distance
![]()
Proof. It is identical to the point-line distance in the plane: project
onto the normal,
, and use
. Example: the distance of the origin from
is
.
Point-line distance
The distance of
from the line through
with direction
is the height of the parallelogram built on
and
, that is area divided by base:
![Rendered by QuickLaTeX.com \[ d(Q, r) = \frac{|\overrightarrow{P_0Q}\times\mathbf d|}{|\mathbf d|} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-d08435542c27030fe894b1934f748102_l3.png)
Distance between skew lines
The vector
is perpendicular to both lines. The distance is the projection of
onto that direction, that is the volume of the parallelepiped divided by the area of its base:
![Rendered by QuickLaTeX.com \[ d(r_1, r_2) = \frac{|\overrightarrow{P_1P_2}\cdot(\mathbf d_1\times\mathbf d_2)|}{|\mathbf d_1\times\mathbf d_2|} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-c5c46675844270377c9fde5def4ba36a_l3.png)
Example.
:
, the
axis;
:
.
,
, dot product
. Distance
. Since it is not zero, the lines are skew.
Angles
- between two lines:
; - between two planes: the same with the normals;
- between a line and a plane:
, because the angle with the plane is the complement of the angle with the normal.
A practical note
In 3D graphics every triangle of a model has a normal computed as the cross product of two of its sides: it is used to decide whether the face points towards the camera (back-face culling) and how much light it gets (the cosine between the normal and the light direction, a dot product). Ray tracing computes millions of line-plane intersections per second with the formulas of this lesson.
✎Exam exercises
2. Vectors: dot, cross and triple products
Exam level
Exercise 11. The reflection of a point in a plane
Find the projection of
onto the plane
and the reflection of
in the plane.
3. Linear systems and Gaussian elimination
Exam level
Exercise 10. A homogeneous system with non-zero solutions
For which
does the homogeneous system with matrix
have non-zero solutions? Find them.
6. Vector spaces, bases and dimension
Exam level
Exercise 8. Diagonalisability depending on a parameter
For which
is the matrix
diagonalisable?
Exercise 10. Orthogonal projection onto a plane
Find the orthogonal projection of
onto the plane
.
Exercise 11. Kernel and image with a parameter
Let
have matrix
. As
varies, find the dimension of the kernel and a basis of it.
✓Solutions
2. Vectors: dot, cross and triple products · Exercise 1. Dot product, cross product and angle
Result:
,
,
.
Dot product:
.
Cross product with the formal determinant:
![Rendered by QuickLaTeX.com \[ u \times v = \det\begin{pmatrix} \mathbf i & \mathbf j & \mathbf k\\ 1 & 2 & -1\\ 3 & 0 & 1 \end{pmatrix} = (2 - 0)\,\mathbf i - (1 + 3)\,\mathbf j + (0 - 6)\,\mathbf k = (2, -4, -6) \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-cd0ebd967f05acc115ba7f5c2a7d1786_l3.png)
Angle:
,
, so
![]()
Check:
is perpendicular to both,
.
2. Vectors: dot, cross and triple products · Exercise 2. The line through two points and its distance from the origin
Result:
; distance
.
The slope is
, so
, that is
. Check with
:
.
The distance of a point
from the line
is
; for the origin
.
2. Vectors: dot, cross and triple products · Exercise 3. The plane through a point with a given normal
Result:
.
A point
lies on the plane if
is perpendicular to
:
, that is
. Check with
:
.
2. Vectors: dot, cross and triple products · Exercise 4. Centre and radius of a circle
Result: centre
, radius
.
Complete the squares:
and
. The equation becomes
![]()
2. Vectors: dot, cross and triple products · Exercise 5. The area of a triangle in space
Result:
.
The area is half the magnitude of the cross product of two sides:
,
,
![]()
so the area is
.
2. Vectors: dot, cross and triple products · Exercise 6. The plane through three points
Result:
, that is
.
The normal is the cross product already computed,
. The plane through
is
, that is
. Dividing by 6 gives the intercept form: the plane cuts the axes at
,
and
, exactly the three given points.
2. Vectors: dot, cross and triple products · Exercise 7. The line where two planes meet
Result:
.
The direction of the line is perpendicular to both normals, so it is their cross product:
![]()
A point is found by fixing
:
and
give
. Check: the point
satisfies both equations.
2. Vectors: dot, cross and triple products · Exercise 8. The distance of a point from a plane
Result:
.
![]()
2. Vectors: dot, cross and triple products · Exercise 9. The distance between two skew lines
Result:
.
The directions are not parallel and, as you can check, the lines do not meet: they are skew. The distance is the projection of the vector joining one point of each onto the direction perpendicular to both:
![]()
![]()
(The non-zero triple product confirms that the lines are skew: if it were zero they would be coplanar.)
2. Vectors: dot, cross and triple products · Exercise 10. A conic with a mixed term
Result: it is an ellipse; in the rotated frame
, semi-axes
and
, axes along
and
.
The quadratic form has matrix
, with trace 7 and determinant 6. The eigenvalues are the roots of
:
and
, both positive, so the conic is an ellipse.
The eigenvectors give the axes: for
,
; for
,
. Taking the normalised directions as new axes (a rotation, by the spectral theorem) the equation becomes
: semi-axis
along
and semi-axis
along
.
2. Vectors: dot, cross and triple products · Exercise 11. The reflection of a point in a plane
Result: projection
, reflection
.
The line through
perpendicular to the plane has the direction of the normal:
. Substituting into the plane:
,
, so
.
The reflection is on the other side at the same distance:
. Check: the midpoint of
is
, which lies on the plane.
3. Linear systems and Gaussian elimination · Exercise 1. A 3 × 3 system with Gaussian elimination
Result:
.
Write the augmented matrix and clear the entries below the first pivot with
and
:
![Rendered by QuickLaTeX.com \[ \left(\begin{array}{ccc|c} 1 & 1 & 1 & 6\\ 2 & -1 & 1 & 3\\ 1 & 2 & -1 & 2 \end{array}\right) \to \left(\begin{array}{ccc|c} 1 & 1 & 1 & 6\\ 0 & -3 & -1 & -9\\ 0 & 1 & -2 & -4 \end{array}\right) \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-b3ff5f39071c2164625422e6de04f7a9_l3.png)
Swap the second and third rows and do
:
![Rendered by QuickLaTeX.com \[ \left(\begin{array}{ccc|c} 1 & 1 & 1 & 6\\ 0 & 1 & -2 & -4\\ 0 & 0 & -7 & -21 \end{array}\right) \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-6b68f1e3891f8deb067e361583e21aa4_l3.png)
From the bottom:
, so
;
, so
;
, so
. Check in the second equation:
.
3. Linear systems and Gaussian elimination · Exercise 2. The matrix product is not commutative
Result:
,
: they are different.
The entry in position
of the product is the dot product of row
of the first factor with column
of the second. For
: the first row
times the columns
and
gives
and
; the second row
gives
and
.
The meaning is visible too: multiplying on the right by
swaps the columns of
, multiplying on the left swaps the rows. That is why
.
3. Linear systems and Gaussian elimination · Exercise 3. The inverse of a 2 × 2 matrix
Result:
.
For a 2 × 2 matrix
![Rendered by QuickLaTeX.com \[ \begin{pmatrix} a & b\\ c & d \end{pmatrix}^{-1} = \frac{1}{ad - bc}\begin{pmatrix} d & -b\\ -c & a \end{pmatrix} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-f3f7b168da90667b7394ff4a8d6dcdc8_l3.png)
Here
, so you only swap the diagonal entries and change the sign of the other two. Check:
.
3. Linear systems and Gaussian elimination · Exercise 4. A 3 × 3 determinant by Laplace expansion
Result:
.
It is convenient to expand along the second row, which contains a zero. The signs of the cofactors on the second row are
:
![]()
The rule of Sarrus gives the same value:
.
3. Linear systems and Gaussian elimination · Exercise 5. The 3 × 3 inverse with the adjugate matrix
Result:
.
The determinant, expanded along the first column, is
, so
is invertible.
The inverse is
, where the adjugate is the transpose of the matrix of cofactors
. For example
,
,
. Computing the others in the same way and transposing:
![Rendered by QuickLaTeX.com \[ \mathrm{adj}(A) = \begin{pmatrix} 1 & -2 & 2\\ 1 & 1 & -1\\ -1 & 2 & 1 \end{pmatrix} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-7205a480fd2dac2ca612446b8ded7d88_l3.png)
Check with the first row of
times the first column of the adjugate:
, that is
, as it must be.
3. Linear systems and Gaussian elimination · Exercise 6. Cramer’s rule
Result:
.
The determinant of the coefficient matrix is
![Rendered by QuickLaTeX.com \[ D = \det\begin{pmatrix} 2 & 1 & -1\\ 1 & -1 & 2\\ 3 & 2 & 1 \end{pmatrix} = -10 \neq 0 \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-63cb01181ed27e50248ccbd09bdc6d8d_l3.png)
![Rendered by QuickLaTeX.com \[ D_x = \det\begin{pmatrix} 1 & 1 & -1\\ 5 & -1 & 2\\ 10 & 2 & 1 \end{pmatrix} = -10,\quad D_y = \det\begin{pmatrix} 2 & 1 & -1\\ 1 & 5 & 2\\ 3 & 10 & 1 \end{pmatrix} = -20,\quad D_z = \det\begin{pmatrix} 2 & 1 & 1\\ 1 & -1 & 5\\ 3 & 2 & 10 \end{pmatrix} = -30 \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-18abff689e724a502110fb55b8abb94a_l3.png)
and
,
,
.
3. Linear systems and Gaussian elimination · Exercise 7. The rank of a 3 × 4 matrix
Result:
.
Row-reducing with
and
:
![Rendered by QuickLaTeX.com \[ \begin{pmatrix} 1 & 2 & -1 & 3\\ 0 & 0 & 3 & -6\\ 0 & 0 & 3 & -6 \end{pmatrix} \to \begin{pmatrix} 1 & 2 & -1 & 3\\ 0 & 0 & 3 & -6\\ 0 & 0 & 0 & 0 \end{pmatrix} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-2d6806dbe424189c3c8b158c35ac5b30_l3.png)
Two non-zero rows remain: the rank is 2. You can also see it directly: the third row is the sum of the first two, and the second column is twice the first.
3. Linear systems and Gaussian elimination · Exercise 8. A 4 × 4 determinant by row reduction
Result:
.
Adding a multiple of one row to another does not change the determinant. With
and
the first column becomes
:
![Rendered by QuickLaTeX.com \[ \det\begin{pmatrix} 1 & 2 & 0 & 1\\ 0 & 1 & 1 & -2\\ 0 & 1 & 3 & 2\\ 0 & -1 & 1 & 0 \end{pmatrix} = \det\begin{pmatrix} 1 & 1 & -2\\ 1 & 3 & 2\\ -1 & 1 & 0 \end{pmatrix} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-2d6e05b715968116af986ff3c9b9e15a_l3.png)
Expanding the 3 × 3 along the first row:
.
3. Linear systems and Gaussian elimination · Exercise 9. A system with a parameter: Rouché-Capelli
Result: for
and
a single solution
; for
infinitely many solutions (depending on two parameters); for
no solution.
The determinant of the coefficient matrix is
![Rendered by QuickLaTeX.com \[ \det\begin{pmatrix} 1 & 1 & k\\ 1 & k & 1\\ k & 1 & 1 \end{pmatrix} = -(k - 1)^2(k + 2) \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-ac1d6f1cebb54c236a3c2a5bdc88f315_l3.png)
If
both matrices have rank 3 and the solution is unique. Because the system is symmetric, look for
: every equation becomes
, so
.
For
the three equations are all
: rank 1 for both the coefficient and the augmented matrix, so
solutions, for example
.
For
the coefficient matrix has rank 2 (the minor
is not zero), while the augmented one has rank 3: adding the three equations gives
. The system has no solution.
3. Linear systems and Gaussian elimination · Exercise 10. A homogeneous system with non-zero solutions
Result: only for
; the solutions are
,
.
A square homogeneous system has non-zero solutions if and only if its determinant is zero:
![Rendered by QuickLaTeX.com \[ \det\begin{pmatrix} 1 & 2 & k\\ 2 & k & 1\\ k & 1 & 2 \end{pmatrix} = -(k + 3)(k^2 - 3k + 3) \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-bd03483fc36bfc4da884bc21c3a19ab3_l3.png)
The second factor has discriminant
and never vanishes:
is left. With
row reduction gives the equations
and
(rank 2), so the solution space has dimension
and is spanned by
. Check in the first equation:
.
3. Linear systems and Gaussian elimination · Exercise 11. A matrix equation
Result:
.
, so
is invertible and you multiply on the left by
(on the left: the product is not commutative):
![]()
Check:
.
3. Linear systems and Gaussian elimination · Exercise 12. The rank of a matrix with a parameter
Result:
for
,
for
.
Row reduction:
and
, then
:
![Rendered by QuickLaTeX.com \[ \begin{pmatrix} 1 & 2 & 1 & 0\\ 0 & k - 1 & 1 & 1\\ 0 & k - 1 & k - 1 & 1 \end{pmatrix} \to \begin{pmatrix} 1 & 2 & 1 & 0\\ 0 & k - 1 & 1 & 1\\ 0 & 0 & k - 2 & 0 \end{pmatrix} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-bb074ba867de6a2957a64c01aa2f13ac_l3.png)
If
the three rows are independent (also for
: the second row is
, the third
), so the rank is 3. If
the third row vanishes and the rank is 2. Check with minors: columns 1, 2, 3 give
and columns 1, 3, 4 give
; they vanish together only for
.
6. Vector spaces, bases and dimension · Exercise 1. Basis and dimension of a subspace
Result:
, a basis is
.
is the solution set of a homogeneous linear equation: it contains zero and is closed under addition and scalar multiplication (if two vectors satisfy the equation, so does every linear combination of them). So it is a subspace.
Solve for
and leave
and
free:
![]()
The two vectors span
and are not proportional, so they form a basis:
(one independent equation removes one dimension).
6. Vector spaces, bases and dimension · Exercise 2. Linearly dependent vectors
Result: they are dependent:
; they span a space of dimension 2.
Put the vectors as the columns of a matrix and compute its rank (or determinant):
![Rendered by QuickLaTeX.com \[ \det\begin{pmatrix} 1 & 0 & 1\\ 2 & 1 & 3\\ 1 & 1 & 2 \end{pmatrix} = 1\cdot(2 - 3) - 0 + 1\cdot(2 - 1) = 0 \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-742a46fd637ac33ce2a5b6a0aa9dbb73_l3.png)
The determinant is zero: the vectors are dependent. Looking for the relation you find
. The first two are not proportional, so the rank is 2.
6. Vector spaces, bases and dimension · Exercise 3. Eigenvalues and eigenvectors of a 2 × 2 matrix
Result:
with eigenvectors the multiples of
;
with eigenvectors the multiples of
.
The characteristic polynomial is
![]()
For
:
, the equation
gives
. For
:
, the equation
gives
.
Check with trace and determinant:
and
.
6. Vector spaces, bases and dimension · Exercise 4. Coordinates with respect to a basis
Result:
, that is
.
Look for
with
, that is component by component:
![Rendered by QuickLaTeX.com \[ \begin{cases} a + c = 3\\ a + b = 1\\ b + c = 2 \end{cases} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-21077af09a330e8f375deaa266e12f8c_l3.png)
Adding the three equations gives
, so
. Subtracting each equation:
,
,
. Check:
.
6. Vector spaces, bases and dimension · Exercise 5. Kernel and image of a linear map
Result:
,
;
,
.
The columns of the matrix are the images of the standard basis vectors:
![Rendered by QuickLaTeX.com \[ M_f = \begin{pmatrix} 1 & 1 & 0\\ 0 & 1 & 1\\ 1 & 2 & 1 \end{pmatrix} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-76514dda6431980e4d11e0c943a66b98_l3.png)
The third row is the sum of the first two, so the rank is 2. The kernel comes from solving
,
:
. The image is spanned by independent columns, for example the first two
and
.
The rank-nullity theorem checks out:
. The image is the plane
(the components of an image always satisfy third = first + second).
6. Vector spaces, bases and dimension · Exercise 6. Diagonalising a symmetric 3 × 3 matrix
Result: eigenvalues
(simple) and
(double);
with
.
, where
is the all-ones matrix.
has rank 1, eigenvalue
with eigenvector
and eigenvalue
on the plane
. Adding
raises the eigenvalues by 1:
and
(double). The characteristic polynomial
gives the same result.
Eigenspace of
:
, equation
, basis
,
: it has dimension 2, equal to the multiplicity. Eigenspace of
:
. The geometric multiplicities add up to 3, so
is diagonalisable (the spectral theorem guarantees it anyway, because
is symmetric).
6. Vector spaces, bases and dimension · Exercise 7. A matrix that is not diagonalisable
Result: the eigenvalue
has algebraic multiplicity 2 but geometric multiplicity 1.
The matrix is triangular: the only eigenvalue is
, with algebraic multiplicity 2. The eigenspace is the kernel of
![]()
6. Vector spaces, bases and dimension · Exercise 8. Diagonalisability depending on a parameter
Result: only for
.
is triangular: the eigenvalues are
(double) and
(simple), for every
. The simple eigenvalue causes no trouble; what matters is the eigenspace of
:
![Rendered by QuickLaTeX.com \[ A_k - I = \begin{pmatrix} 0 & k & 0\\ 0 & 0 & 0\\ 0 & 0 & 1 \end{pmatrix} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-ab710ce7c46b1bbb39fe3b32f946e324_l3.png)
If
the rank is 2 and the eigenspace has dimension
, less than the algebraic multiplicity 2: not diagonalisable. If
the rank is 1, the eigenspace has dimension 2 and the matrix is already diagonal.
6. Vector spaces, bases and dimension · Exercise 9. The power of a matrix by diagonalisation
Result:
.
From exercise 3: eigenvalues
and
, eigenvectors
and
. With
you have
,
, and
![]()
Multiplying:
![]()
Check with
:
.
6. Vector spaces, bases and dimension · Exercise 10. Orthogonal projection onto a plane
Result:
.
The normal vector of the plane is
. Remove from
its component along
:
![]()
Checks:
lies on the plane (
) and
is parallel to
.
6. Vector spaces, bases and dimension · Exercise 11. Kernel and image with a parameter
Result: for
is an isomorphism (
); for
; for
.
The determinant is
![Rendered by QuickLaTeX.com \[ \det\begin{pmatrix} 1 & 2 & 1\\ 2 & k & 2\\ 1 & 2 & k \end{pmatrix} = (k - 1)(k - 4) \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-16bdb5cf53c87c53c1619e94e55a3726_l3.png)
If
the matrix is invertible: zero kernel and image equal to
.
For
the first and third rows coincide and the rank is 2: the kernel has dimension 1. The equations
and
give
,
: basis
.
For
the second column is twice the first:
, and the rank is 2, so the kernel is spanned by
.
∑Formula sheet
Complex numbers
Trigonometric and exponential form
![]()
![Rendered by QuickLaTeX.com \[ \rho_1 e^{i\theta_1}\cdot \rho_2 e^{i\theta_2} = \rho_1\rho_2\, e^{i(\theta_1+\theta_2)}, \qquad \frac{\rho_1 e^{i\theta_1}}{\rho_2 e^{i\theta_2}} = \frac{\rho_1}{\rho_2}\, e^{i(\theta_1-\theta_2)}. \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-dc2817caf5c3ba3bebb70512da339480_l3.png)
n-th roots
![]()
Vectors: dot, cross and triple products
Bound and free vectors
![]()
Dot product: lengths and angles
![]()
Proof: the Cauchy-Schwarz inequality
![]()
Cross product: areas
![Rendered by QuickLaTeX.com \[ \vec u\times\vec v = \det\begin{pmatrix}\vec e_1 & \vec e_2 & \vec e_3\\ u_1 & u_2 & u_3\\ v_1 & v_2 & v_3\end{pmatrix} = (u_2v_3 - u_3v_2,\; u_3v_1 - u_1v_3,\; u_1v_2 - u_2v_1) \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-3cd10cd04fe72499b935f3440387a9fc_l3.png)
Proof: the magnitude is the area
![]()
Scalar triple product: volumes and coplanarity
![Rendered by QuickLaTeX.com \[ \vec u\cdot(\vec v\times\vec w) = \det\begin{pmatrix}u_1 & u_2 & u_3\\ v_1 & v_2 & v_3\\ w_1 & w_2 & w_3\end{pmatrix} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-988181b48c791365f1a14230d9af5373_l3.png)
Linear systems and Gaussian elimination
Linear systems and matrix form
![Rendered by QuickLaTeX.com \[ \begin{cases} a_{11}x_1 + a_{12}x_2 + \dots + a_{1n}x_n = b_1\\ \quad\vdots\\ a_{m1}x_1 + a_{m2}x_2 + \dots + a_{mn}x_n = b_m \end{cases} \qquad\Longleftrightarrow\qquad A\,\mathbf x = \mathbf b \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-181bc7f9cceb6088cd47c5d79c0a38e0_l3.png)
Gaussian elimination
![Rendered by QuickLaTeX.com \[ \begin{cases} x + 2y + z = 4\\ 2x + 5y + 3z = 11\\ -x + y + 4z = 9 \end{cases} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-cefe53043f6b96b9ae845cdf8c95c385_l3.png)
Matrices and the inverse matrix
The row-by-column product
![Rendered by QuickLaTeX.com \[ (AB)_{ij} = \sum_{k=1}^{n} a_{ik}\,b_{kj} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-7395dd36feec30fbb12e0fae5ccfff4e_l3.png)
![]()
Why it is defined this way
![Rendered by QuickLaTeX.com \[ \big(A(B\mathbf x)\big)_i = \sum_k a_{ik}\,(B\mathbf x)_k = \sum_k a_{ik}\sum_j b_{kj}x_j = \sum_j\Big(\sum_k a_{ik}b_{kj}\Big)x_j \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-54e89a3ea904d02d299d7ed906e956a6_l3.png)
The inverse matrix
![Rendered by QuickLaTeX.com \[ \begin{pmatrix} a & b\\ c & d \end{pmatrix}^{-1} = \frac{1}{ad - bc}\begin{pmatrix} d & -b\\ -c & a \end{pmatrix} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-f3f7b168da90667b7394ff4a8d6dcdc8_l3.png)
The determinant and Cramer's rule
Order 2 and 3
![]()
![Rendered by QuickLaTeX.com \[ \det\begin{pmatrix} a_{11} & a_{12} & a_{13}\\ a_{21} & a_{22} & a_{23}\\ a_{31} & a_{32} & a_{33} \end{pmatrix} = a_{11}a_{22}a_{33} + a_{12}a_{23}a_{31} + a_{13}a_{21}a_{32} - a_{13}a_{22}a_{31} - a_{11}a_{23}a_{32} - a_{12}a_{21}a_{33} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-d8216caa321a355633f096a99d7f386e_l3.png)
Laplace expansion
![Rendered by QuickLaTeX.com \[ \det A = \sum_{j=1}^{n} a_{ij}\,C_{ij} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-b2d8a5f126f3122fa80e3fdfa823c2ed_l3.png)
![Rendered by QuickLaTeX.com \[ \det\begin{pmatrix} 2 & 0 & 1\\ 3 & 1 & 0\\ 1 & 4 & 5 \end{pmatrix} = 2\det\begin{pmatrix} 1 & 0\\ 4 & 5 \end{pmatrix} - 0 + 1\cdot\det\begin{pmatrix} 3 & 1\\ 1 & 4 \end{pmatrix} = 2\cdot 5 + 11 = 21 \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-56be49e6a0170f39fd40aa796633afe0_l3.png)
Determinant and invertibility
![]()
Cramer's rule
![]()
Vector spaces, bases and dimension
Linear dependence and independence
![]()
Sum and intersection of subspaces
![]()
Rank and the Rouché-Capelli theorem
The Rouché-Capelli theorem
![]()
Proof
![]()
Systems with a parameter
![Rendered by QuickLaTeX.com \[ \begin{cases} x + y + z = 1\\ x + ky + z = 1\\ x + y + kz = k \end{cases} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-baecd57fcae2d7d2db68dfdd1dd2d11a_l3.png)
![Rendered by QuickLaTeX.com \[ \det\begin{pmatrix} 1 & 1 & 1\\ 0 & k - 1 & 0\\ 0 & 0 & k - 1 \end{pmatrix} = (k - 1)^2 \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-8b1ccc752d04582a3ca883a3cabfbcef_l3.png)
Linear maps, kernel and image
Definition
![]()
The matrix of a linear map
![]()
![]()
![Rendered by QuickLaTeX.com \[ D = \begin{pmatrix} 0 & 1 & 0\\ 0 & 0 & 2\\ 0 & 0 & 0 \end{pmatrix} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-7b9ee57bc941eaa942561f5fa1554680_l3.png)
The rank-nullity theorem
![]()
Change of basis
![]()
Eigenvalues and diagonalisation
Definition
![]()
How to find them: the characteristic polynomial
![]()
![]()
Diagonalisation
![Rendered by QuickLaTeX.com \[ P^{-1}AP = D = \begin{pmatrix} \lambda_1 & & \\ & \ddots & \\ & & \lambda_n \end{pmatrix} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-225833d136967d317393c0e9952634c0_l3.png)
Inner product, orthogonality and the spectral theorem
Orthonormal bases
![]()
The Gram-Schmidt process
![Rendered by QuickLaTeX.com \[ \mathbf u_1 = \mathbf v_1,\qquad \mathbf u_k = \mathbf v_k - \sum_{j \lt k}\frac{\langle\mathbf v_k, \mathbf u_j\rangle}{\langle\mathbf u_j, \mathbf u_j\rangle}\,\mathbf u_j,\qquad \mathbf e_k = \frac{\mathbf u_k}{\|\mathbf u_k\|} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-9a090fc10603859a0a29f856967ded0e_l3.png)
The spectral theorem
![]()
![]()
Analytic geometry in the plane: lines and conics
Distance from a point to a line
![]()
![Rendered by QuickLaTeX.com \[ d = \frac{|\overrightarrow{P_0Q}\cdot\mathbf n|}{|\mathbf n|} = \frac{|a(x_Q - x_0) + b(y_Q - y_0)|}{\sqrt{a^2 + b^2}} = \frac{|ax_Q + by_Q + c|}{\sqrt{a^2 + b^2}} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-eca5d00fc484e318666047e2d2b986c2_l3.png)
Conics as loci
![]()
![]()
![]()
Proof: the equation of the ellipse
![]()
Classifying conics with eigenvalues
![]()
Analytic geometry in space: lines and planes
The plane
![]()
The line
![]()
![Rendered by QuickLaTeX.com \[ \begin{cases} a_1x + b_1y + c_1z + d_1 = 0\\ a_2x + b_2y + c_2z + d_2 = 0 \end{cases} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-f9159ec6e54ccab9b319be60606b7bae_l3.png)
Point-plane distance
![]()
Point-line distance
![Rendered by QuickLaTeX.com \[ d(Q, r) = \frac{|\overrightarrow{P_0Q}\times\mathbf d|}{|\mathbf d|} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-d08435542c27030fe894b1934f748102_l3.png)
Distance between skew lines
![Rendered by QuickLaTeX.com \[ d(r_1, r_2) = \frac{|\overrightarrow{P_1P_2}\cdot(\mathbf d_1\times\mathbf d_2)|}{|\mathbf d_1\times\mathbf d_2|} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-c5c46675844270377c9fde5def4ba36a_l3.png)
.![Rendered by QuickLaTeX.com \[ \begin{cases} x + y + z = 6\\ 2x - y + z = 3\\ x + 2y - z = 2 \end{cases} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-d61c4ad32eb36697420565a4f2b9e457_l3.png)
.
.![Rendered by QuickLaTeX.com \[ \begin{cases} 2x + y - z = 1\\ x - y + 2z = 5\\ 3x + 2y + z = 10 \end{cases} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-e7f62e587ac0d2ca25e7d578b85a2fdb_l3.png)
.
.
.![Rendered by QuickLaTeX.com \[ \begin{cases} x + y + kz = 1\\ x + ky + z = 1\\ kx + y + z = 1 \end{cases} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-4fd90e1b5425940bd3c85c9b95bac919_l3.png)
as