All courses › Linear Algebra and Differential Equations
Linear Algebra and Differential Equations: free practice, theory and problems
A matrix is a table of numbers, but its most important interpretation is as a linear map: takes a vector and returns a new vector . A truss, an electric circuit or a finite element model eventually becomes a large matrix system. The determinant tells you whether the map can be reversed, and the inverse matrix reverses it.
Contents
1. Matrices
What is it about?
A matrix is a table of numbers, but its most important interpretation is as a linear map: takes a vector and returns a new vector . A truss, an electric circuit or a finite element model eventually becomes a large matrix system. The determinant tells you whether the map can be reversed, and the inverse matrix reverses it.
Key concepts and formulas
- An matrix has rows and columns. is defined when the number of columns of equals the number of rows of : gives .
- The element is row of dotted with column of . In general .
- Transpose: , and .
- Determinant: . For , use cofactor expansion along a row or column.
- Rules: , and for an matrix. Swapping two rows changes the sign.
- is the factor by which area (2D) or volume (3D) is scaled.
- Inverse: . It exists only when . For : swap the diagonal elements, change the sign of the others and divide by the determinant.
- Vectors: and . The cross product is perpendicular to both, and its length is the area of the parallelogram they span.
How to solve the problems
- Write down the dimensions first, so you can see whether the product is defined and how large it is.
- Compute products element by element: row times column.
- determinant: expand along the row or column with the most zeros. For triangular matrices the determinant is the product of the diagonal.
- Inverse: check that first, and verify the answer with .
- Small systems can be solved with . Large systems are solved by elimination.
Example
Solve with and .
- , so is invertible.
- .
- .
- Check: and . Correct.
Common mistakes
- Multiplying element by element instead of row times column.
- Changing the order: and are usually different, and .
- Believing that . It is not true.
- Forgetting that , not .
- Mixing up the dot product (a number) and the cross product (a vector).
Concepts in this part
2. Linear systems and eigenvalues
What is it about?
Many engineering problems end up as a system of linear equations : currents in a circuit, member forces in a truss, temperatures at a grid of points. Gaussian elimination solves such systems systematically and tells you whether there is one solution, none or infinitely many.
Eigenvalues are about the special directions in which a matrix only stretches or shrinks: . They determine natural frequencies of vibrating systems, stability of control systems and the long-term behavior of models that are updated step by step.
Key concepts and formulas
- Row operations (swapping two rows, multiplying a row by a nonzero number, adding a multiple of one row to another) do not change the solution set.
- Echelon form: each pivot lies to the right of the pivot in the row above. The rank is the number of pivots.
- Three cases for unknowns: a row with gives no solution. Otherwise gives exactly one solution, and gives infinitely many with free variables.
- Eigenvalues: solve . For this is .
- Eigenvectors: solve for each eigenvalue.
- The sum of the eigenvalues is the trace, and their product is the determinant.
- Diagonalization: with the eigenvectors as the columns of and the eigenvalues on the diagonal of . Then .
How to solve the problems
- Write the augmented matrix and eliminate downward to echelon form.
- Read off the result: a contradiction, free variables or a unique solution. Back-substitute from the bottom row.
- Eigenvalues: set up the characteristic equation and solve it.
- For each eigenvalue: find a nonzero vector with . The rows are then linearly dependent, so one of them is enough for a matrix.
- Check with the trace and determinant, and by computing .
Example
Find the eigenvalues and eigenvectors of .
- and , so .
- : . The first row gives , so .
- : gives , so .
- Check: . The eigenvectors are perpendicular, as expected for a symmetric matrix.
Common mistakes
- Making an arithmetic error during elimination and not checking by substitution.
- Believing that a zero row always means infinitely many solutions. If it says with , there is no solution.
- Computing instead of .
- Giving the zero vector as an eigenvector.
- Forgetting that eigenvectors are only determined up to a factor: and are equally valid.
Concepts in this part
3. Differential equations
What is it about?
A differential equation relates an unknown function to its own derivatives. It describes how something changes: a capacitor being charged, a cup of coffee cooling down, a mass oscillating on a spring. Solving the equation means finding the function. The initial conditions pick out the one solution that fits the situation.
Key concepts and formulas
- Order: the highest derivative that appears. An equation of order needs initial conditions.
- Separable: is solved with .
- First-order linear: . Multiply the whole equation by the integrating factor . The left-hand side then becomes .
- has the solution . It describes cooling and charging.
- Second order with constant coefficients: . Try , which gives the characteristic equation .
- Two distinct real roots: .
- Double root: .
- Complex roots : .
- Nonhomogeneous equation: , where is one particular solution. Guess a of the same type as the right-hand side.
- Mass–spring–damper : gives damped oscillations, gives no oscillation (overdamping).
How to solve the problems
- Determine the type: separable, first-order linear, or linear with constant coefficients.
- Find the general solution, with constants.
- If the equation is nonhomogeneous, find and add it to .
- Apply the initial conditions last, to the complete solution .
- Check by substituting the solution into the equation.
Example
Solve with and .
- Homogeneous part: gives .
- The right-hand side is constant, so try : gives .
- . The initial conditions give and .
- This gives and , so .
The solution starts at 0 and approaches the equilibrium without oscillating, because the roots are real and negative.
Common mistakes
- Applying the initial conditions to before has been added.
- Writing for a double root. The extra factor is missing.
- Mixing up and for complex roots: the real part gives the damping, the imaginary part gives the angular frequency.
- Forgetting to multiply the right-hand side by the integrating factor.
Concepts in this part
Example problems with solutions
Here are some of the problems in linear Algebra and Differential Equations. In the app, calculation problems get new numbers every time, so you can practise until it sticks – and take a graded practice exam before the real one.
Matrices:
Answer: 5
.
Linear systems and eigenvalues: What is the largest eigenvalue of ?
Answer: 5
gives and .
Differential equations: What is the general solution of ?
Answer:
Solved by separation of variables.
Matrices: A square matrix is invertible if and only if …
Answer:
This is also equivalent to the columns being linearly independent.
Matches these university courses
The content covers the syllabus found in engineering degrees, for example:
- MEK2000 (OsloMet)
- TMA4110 (NTNU)
- MATH113 (NMBU)