Understanding Vectors: Direction and Magnitude

Understanding Vectors: Direction and Magnitude

1 / 8
volgende
Slide 1: Slide
newEditorComputer ScienceFurther Education (Key Stage 5)

In deze les zitten 8 slides, met tekstslides.

time-iconLesduur is: 30 min
Dit is niet oké

Onderdelen in deze les

Understanding Vectors: Direction and Magnitude

What is a Vector?

A vector is an abstract data type used in maths and physics to represent properties with both direction and magnitude. Unlike scalars, which only have magnitude, vectors show how much and which way, often illustrated as arrows. Vectors are important for describing movement, forces, and other directional properties.

Vector Notation & Examples

Vectors are usually written with their components in brackets or square brackets, e.g., a = (2, 4) or a = [2, 4]. The notation R^3 means the vector has 3 components from the set of real numbers. For example: a = (2, 4, 6) is a 3-vector over R.

Ways to Represent Vectors

In programming, vectors can be represented as lists or arrays. Example: v = [2, 4] (list); v = [7, 4, 12] (array). Each element refers to a specific dimension of the vector.

Vectors can also be represented as dictionaries that map dimensions to values, e.g., v = {0: 2.4, 1: 6.8}. This is useful for higher-dimensional vectors or sparse data.

List & Array Representation

Dictionary/Form Representation

Position Vectors

A position vector locates a point in space relative to an origin. For example, a = (2, 4) is the vector from the origin (0, 0) to the point (2, 4). The concepts of direction and distance are clear here, but absolute position is not intrinsic to the vector.

Key Vector Operations

Addition & Scalar Multiplication

Dot Product & Convex Combination:


Dot product returns a scalar: a·b = (2×-7) + (-1×-4) = -10. Convex combinations blend two vectors using factors α, β (α + β = 1, α, β ≥ 0), useful in graphics and game development.

Dot Product & Convex Combination

Addition & Scalar Multiplication


Vectors are added by adding corresponding components: a = (5, 13), b = (29, 5); a + b = (34, 18). Scalar multiplication scales each component: multiply (5, 8) by 2 gives (10, 16).

Vectors in Graphics

Vector graphics use geometric shapes (lines, points) described by vectors to form images. They allow scaling without loss of quality, making them ideal for diagrams and graphic design.

Review & Reflection

Think back: How are vectors represented in mathematics and computing? Review the key concepts — definition, notation, representations, operations, and their use in areas like graphic design. What questions do you still have about vectors?