Mathematics · live now

Vectors in Euclidean space

Vectors as objects with length and direction: adding and scaling them, normalising to unit vectors, the dot product and the norm it defines, orthogonality and independence, span and basis, and projection onto a line.

No account needed to read a lesson · 30-day money-back guarantee

See the full learning path

13

lessons

127

practice questions

35

prerequisite lessons

See it taught

2 of the 13 lessons here are free to preview - the whole explanation and worked example, with no account and no email.

Live, not a screenshot

Lesson 05 · The dot product

1234−1−2−3−41234−1−2−3−4
v→
w→
θ

Drag either arrowhead. Pulling it further out changes that length alone; swinging it round changes the angle alone.

‖v→‖=4.12×‖w→‖=3.16×cos⁡(58∘)=0.537=v→⋅w→=7.00
oppositeright anglesame direction
An acute angle, so the dot product is positive
The components give the same number: (4.0)(1.0)+(1.0)(3.0)=7.00.

The diagram from the lesson itself, running live.

The 13 lessons

The 13 lessons in this unit. Expand any one to see what it covers. Each unlocks when its own prerequisites are passed.

01

Introduction to vectors

9 questions

Represent data as a column of numbers, read a 22-dimensional vector as an arrow on the coordinate plane, and say when two vectors are equal.

Covers

What is a vector?

Vectors on the coordinate plane

02

Vector length and unit vectors

8 questions

Compute the length of a vector with any number of components, and rescale a non-zero vector to a unit vector of length 11 pointing the same way.

Covers

The length of a vector

Unit vectors and normalisation

03

Adding and scaling two-dimensional vectors

15 questions

Understand how to add, subtract and scale two-dimensional vectors componentwise and use these operations to form linear combinations, which are fundamental to representing and manipulating data in machine learning.

Covers

Adding and subtracting vectors

Scalar multiplication

Linear combinations of vectors

04

Adding and scaling nn-dimensional vectors

14 questions

Learn how to add, subtract and scale vectors of any dimension component by component, and how to evaluate a linear combination of several of them.

Covers

Adding and subtracting nn-dimensional vectors

Scalar multiplication

Linear combinations of vectors

05

The dot product

Preview

13 questions

Learn to compute the dot product of two vectors from their components, read what it tells you about the angle between them, and divide out the lengths to find the cosine of that angle.

Covers

The dot product

What the dot product says about the angle

The cosine of the angle

Preview this lesson - no account needed

06

Orthogonal vectors

8 questions

Learn to test whether two vectors are orthogonal, and to find the missing component that makes them orthogonal.

Covers

Testing for orthogonality

Finding an unknown component

07

Linearly dependent and independent vectors

13 questions

Learn to decide whether vectors are linearly dependent, from a pair of vectors to a set of any size.

Covers

Deciding independence for two vectors

The definition for any set

A combination equal to the zero vector

08

Testing three vectors for independence

8 questions

Learn to decide whether three vectors are linearly independent by testing whether one of them is a linear combination of the others.

Covers

Writing a vector as a combination of two others

Deciding independence for three vectors

09

Span of vectors in n−n-dimensional space

9 questions

Understand how the span of a set of vectors describes all the points reachable by their linear combinations, how to determine if a given vector lies within this span, and how to check if a set of vectors spans the entire space RN\mathbb{R}^N using row reduction.

Covers

Definition of span and geometric intuition

Is a vector in the span?

Does a set of vectors span all of Rn\mathbb{R}^n?

10

Scalar projection

9 questions

Learn what the scalar projection of one vector onto another measures, and how to compute it from the angle between them or from their components.

Covers

What the scalar projection is

The scalar projection from components

11

Vector projection

Preview

9 questions

Learn how to find the vector projection of one vector onto another, and how to split a vector into its projection and a part orthogonal to the other vector.

Covers

The vector projection

Splitting a vector into its projection and an orthogonal part

Preview this lesson - no account needed

12

Bases and orthonormal bases

6 questions

Understand how bases provide reference directions for vector spaces and see how orthonormal bases simplify the representation of vectors and calculations such as finding coordinates using dot products.

Covers

What is a basis?

Orthonormal basis

13

Changing basis

6 questions

Learn how to represent a vector in different bases by finding its coordinates relative to any basis and use the basis matrix and its inverse to convert between these coordinate systems and the standard basis.

Covers

Coordinates in a new basis

Matrix form of change of basis

Where this unit sits in the curriculum

This unit is part of our Essential Linear Algebra for ML learning path, which contains 70 lessons. Every one of them is drawn below.

The diagnostic test lets you skip any lesson you already know, including the ones in this unit.

Every dot is a lesson and every line a prerequisite. The 13 red dots are the lessons in Vectors in Euclidean space; the 35 blue dots feeding into them are the lessons Vectors in Euclidean space depends on; the 22 pale dots are the rest of the learning path, which come after Vectors in Euclidean space or alongside it.Vectors in Euclidean spaceFirst lessons on the left70 lessons

Hover any dot to name its lesson.

13 lessons in this unit

35 prerequisite lessons across the unit, counting every step back to the start

22 other lessons in the learning path - after this unit, or alongside it

Every dot is a lesson, every line a prerequisite. You can only start a lesson once you have mastered all of its prerequisites, so you are always building on solid foundations.

Start Vectors in Euclidean space

One subscription covers every learning path, and you can test out of anything you already know.

One subscription covers every learning path · 30-day money-back guarantee

More in Linear algebra: Matrices, Matrices and linear systems, Matrix transformations, Eigenvalues, eigenvectors and singular value decomposition