Vector Definition (Geometric & Algebraic)
In fields ranging from physics simulations to machine learning algorithms, quantities often require more than just a single number to describe them. Consider the force applied to an object, or the velocity of an airplane. These aren't just about "how much" (magnitude); they also involve "in what direction." This is where vectors become indispensable. They provide a precise mathematical tool to represent quantities that possess both magnitude and direction.
The Geometric View: Magnitude and Direction
Geometrically, a vector is visualized as a directed line segment, or an arrow. The length of this arrow represents the vector's magnitude (or size), while the way the arrow points indicates its direction. A crucial aspect of this geometric definition is that a vector's identity is independent of its starting position. As long as its magnitude and direction remain the same, it's considered the same vector, regardless of where it originates in space.
A scalar is a quantity described by magnitude alone (e.g., temperature, mass, speed). A vector requires both magnitude and direction (e.g., velocity, force, displacement). This distinction is fundamental in physics and engineering.
The Algebraic View: Components in a Coordinate System
While the geometric view is intuitive, for calculations and computational work, we represent vectors algebraically. An algebraic vector is an ordered list of numbers, called components, that describe the vector's displacement along each axis of a coordinate system. For instance, in a 2D Cartesian plane, a vector might be represented as , where is the displacement along the x-axis and is the displacement along the y-axis. This representation allows us to perform precise mathematical operations.
In linear algebra, vectors are often written as column vectors (vertical) or row vectors (horizontal). For example, a 2D vector could be
Dimensions and Components
The number of components in a vector determines its dimension. A vector with two components, like , exists in a 2D space. A vector with three components, , exists in 3D space. In machine learning, it's common to encounter vectors with hundreds or even thousands of components, representing high-dimensional spaces where each component might correspond to a feature or attribute. The principles remain the same, regardless of the number of dimensions.
Calculating Magnitude (Length)
The magnitude of an algebraic vector, often denoted as or , is its length. For a 2D vector , we calculate its magnitude using the Pythagorean theorem: . This concept extends to higher dimensions; for an n-dimensional vector , the magnitude is . This is also known as the Euclidean norm or L2 norm.
For a vector , its Euclidean norm (magnitude) is given by:
Direction: Unit Vectors and Angles
While magnitude is a single number, direction is more complex. For a 2D vector, direction is often described by the angle it makes with the positive x-axis. In higher dimensions, this becomes less intuitive. A more general way to represent a vector's direction is through a unit vector. A unit vector is a vector with a magnitude of 1 that points in the same direction as the original vector. You can obtain a unit vector by dividing each component of the original vector by its magnitude.
v = [4, -3], calculate its magnitude and then find its corresponding unit vector. Print both the magnitude and the unit vector, formatted to two decimal places.Position Vectors: Fixed Starting Point
A position vector is a special type of vector that always originates from the origin of a coordinate system (e.g., in 2D, in 3D). Its components directly correspond to the coordinates of a specific point in space. For example, the position vector points directly to the point . These are particularly useful for locating points and describing their displacement from a fixed reference point, such as in GPS systems or object tracking.
Free Vectors: Flexible Starting Point
In contrast to position vectors, free vectors represent pure displacement or a physical quantity like force or velocity, independent of a specific starting location. As long as a free vector maintains its magnitude and direction, it is considered the same vector, regardless of where its tail is placed. The geometric visualization we saw earlier, with two identical vectors starting at different points, perfectly illustrates the concept of a free vector. They are useful for describing relative motion or forces acting on objects without needing to fix them to an origin.
The term 'free' in free vector means its starting point is arbitrary. You can translate a free vector anywhere in space, and it remains the same vector as long as its length and orientation are preserved. This makes them ideal for representing physical quantities like velocity or acceleration.
| Feature | Position Vector | Free Vector |
|---|---|---|
| Starting Point | Always at the origin (0,0,...) | Can start anywhere in space |
| Purpose | Locates a specific point relative to origin | Represents displacement, velocity, force, etc. |
| Identity | Defined by its endpoint coordinates (which are its components) | Defined by its magnitude and direction, independent of location |
| Example Use | Coordinates of a city on a map | Velocity of a car, force applied to an object |
Vectors represent quantities with both magnitude (size) and direction (orientation).
Geometrically, a vector is an arrow; its identity is independent of its starting point (for free vectors).
Algebraically, a vector is an ordered list of components representing displacement along coordinate axes.
The dimension of a vector is determined by the number of its components.
Vector magnitude (Euclidean norm) is calculated using the Pythagorean theorem on its components.
A unit vector has a magnitude of 1 and indicates the direction of the original vector.
Position vectors always start at the origin and point to a specific coordinate, while free vectors can be translated anywhere without changing their identity.