Vectors
Aligned to the AQA 7517 specification
- Level
- Intermediate
- Reading time
- 5 min
- Published
- 13 June 2026
- Updated
- 1 July 2026
On this page
Key takeaways
- A vector is a mathematical object with magnitude and direction, represented in computing as an ordered list of numbers (one per dimension) and stored like a 1D array or list.
- The magnitude (length) of a vector is found with Pythagoras as the square root of the sum of its squared components, e.g. |v| = √(3² + 4²) = 5.
- The dot product a · b = Σ aᵢbᵢ produces a single scalar, not a vector; it sums n products for n-dimensional vectors.
- A convex combination w = αu + βv requires α ≥ 0, β ≥ 0 and α + β = 1, which guarantees w lies on or between u and v.
- Vector addition adds corresponding components and is only defined when both vectors have the same number of dimensions.
Worth saving these ideas?
Turn what you've read into instant revision cards. Free to get started.
Key terms
- Vector
- A mathematical object with magnitude and direction, represented in computing as an ordered list of numbers, one per dimension.
- Magnitude
- The length of a vector, calculated with Pythagoras as the square root of the sum of its squared components.
- Scalar
- A single number, as opposed to a vector; the dot product of two vectors produces a scalar.
- Vector addition
- Adding two vectors by adding their corresponding components, defined only when both have the same number of dimensions.
- Scalar multiplication
- Multiplying every component of a vector by a single number, the scalar.
- Dot product
- An operation that multiplies corresponding components of two vectors and sums them to produce a single scalar value.
- Convex combination
- A weighted sum αu + βv with non-negative weights summing to 1, giving a point on the line segment between the two vectors.
Frequently asked questions
The dot product is a scalar, a single number, not a vector. It is calculated as a · b = Σ aᵢbᵢ, summing the products of corresponding components, so describing it as producing a vector is incorrect.
A convex combination w = αu + βv requires both weights to be non-negative (α ≥ 0, β ≥ 0) and to sum to 1 (α + β = 1). These constraints guarantee the result lies on or between u and v, never outside the segment.
No. Vector addition is only defined when both vectors have the same number of components, because it adds corresponding components. Adding a 2D vector to a 3D vector is undefined.
Generate revision on any topic you study
Type any topic you're studying and Aicademy generates a complete lesson, quiz, and flashcard set, personalised to your level.
Lessons on anything
Structured, level-matched lessons on any topic you study
Practice quizzes
Find out what you actually know before the exam does
Flashcard sets
Lock in key concepts with instant revision cards
Ask Aica
Stuck on something? Get a clear explanation, any time
Hash Tables and Dictionaries
Graph Traversal: BFS and DFS
Related lessons
5 min