# Vector notation

Vector notation

Vector notation[1][2][3] is a commonly used mathematical notation for working with mathematical vectors,[4] which may be geometric vectors or members of vector spaces.

For representing a vector,[5][6] the common typographic convention is lower case, upright boldface type, as in ${\displaystyle \mathbf {v} }$ for a vector named ‘v’. The International Organization for Standardization (ISO) recommends either bold italic serif, as in v or a, or non-bold italic serif accented by a right arrow, as in ${\displaystyle {\vec {v}}}$ or ${\displaystyle {\vec {a}}}$.[7] This arrow notation for vectors is commonly used in handwriting, where boldface is impractical. The arrow represents right-pointing arrow notation or harpoons. Shorthand notations include tildes and straight lines placed respectively, below or above the name of a vector.

Between 1880 and 1887, Oliver Heaviside developed operational calculus,[8][9] a method of solving differential equations by transforming them into ordinary algebraic equations which caused much controversy when introduced because of the lack of rigour in its derivation.[10] After the turn of the 20th century, Josiah Willard Gibbs would in physical chemistry supply notation for the scalar product and vector products, which was introduced in Vector Analysis.

## Rectangular vectors

Rectangle
Rectangular cuboid

A rectangular vector is a coordinate vector specified by components that define a rectangle (or rectangular prism in three dimensions, and similar shapes in greater dimensions). The starting point and terminal point of the vector lie at opposite ends of the rectangle (or prism, etc.).

### Ordered set notation

A rectangular vector in ${\displaystyle \mathbb {R} ^{n}}$ can be specified using an ordered set of components, enclosed in either parentheses or angle brackets.

In a general sense, an n-dimensional vector v can be specified in either of the following forms:

• ${\displaystyle \mathbf {v} =(v_{1},v_{2},\dots ,v_{n-1},v_{n})}$
• ${\displaystyle \mathbf {v} =\langle v_{1},v_{2},\dots ,v_{n-1},v_{n}\rangle }$

Where v1, v2, …, vn − 1, vn are the components of v.

### Matrix notation

A rectangular vector in ${\displaystyle \mathbb {R} ^{n}}$ can also be specified as a row or column matrix containing the ordered set of components. A vector specified as a row matrix is known as a row vector; one specified as a column matrix is known as a column vector.

Again, an n-dimensional vector ${\displaystyle \mathbf {v} }$ can be specified in either of the following forms using matrices:

• ${\displaystyle \mathbf {v} =\left[{\begin{matrix}v_{1}&v_{2}&\cdots &v_{n-1}&v_{n}\end{matrix}}\right]=\left({\begin{matrix}v_{1}&v_{2}&\cdots &v_{n-1}&v_{n}\end{matrix}}\right)}$
• ${\displaystyle \mathbf {v} =\left[{\begin{matrix}v_{1}\\v_{2}\\\vdots \\v_{n-1}\\v_{n}\end{matrix}}\right]=\left({\begin{matrix}v_{1}\\v_{2}\\\vdots \\v_{n-1}\\v_{n}\end{matrix}}\right)}$

Where v1, v2, …, vn − 1, vn are the components of v. In some advanced contexts, a row and a column vector have different meaning; see covariance and contravariance of vectors.

### Unit vector notation

A rectangular vector in ${\displaystyle \mathbb {R} ^{3}}$ (or fewer dimensions, such as ${\displaystyle \mathbb {R} ^{2}}$ where vz below is zero) can be specified as the sum of the scalar multiples of the components of the vector with the members of the standard basis in ${\displaystyle \mathbb {R} ^{3}}$. The basis is represented with the unit vectors ${\displaystyle {\boldsymbol {\hat {\imath }}}=(1,0,0)}$, ${\displaystyle {\boldsymbol {\hat {\jmath }}}=(0,1,0)}$, and ${\displaystyle {\boldsymbol {\hat {k}}}=(0,0,1)}$.

A three-dimensional vector v can be specified in the following form, using unit vector notation:

• ${\displaystyle \mathbf {v} =v_{x}{\boldsymbol {\hat {\imath }}}+v_{y}{\boldsymbol {\hat {\jmath }}}+v_{z}{\boldsymbol {\hat {k}}}}$

Where vx, vy, and vz are the scalar components of v. Scalar components may be positive or negative; the absolute value of a scalar component is a magnitude.

## Polar vectors

Points in the polar coordinate system with pole O and polar axis L. In green, the point with radial coordinate 3 and angular coordinate 60 degrees, or (3,60°). In blue, the point (4,210°).

The two polar coordinates of a point in a plane may be considered as a two dimensional vector. Such a polar vector consists of a magnitude (or length) and a direction (or angle). The magnitude, typically represented as r, is the distance from a starting point, the origin, to the point which is represented. The angle, typically represented as θ (the Greek letter theta), is the angle between the a fixed direction, typically that of the x-axis, and the direction from the origin to the point. The angle is typically reduced to lie within the range ${\displaystyle 0\leq \theta <2\pi }$ radians or ${\displaystyle 0\leq \theta <360^{\circ }}$.

It must be emphasized that a polar vector is not really a vector, since the addition of two polar vectors is not defined.

### Ordered set and matrix notations

Polar vectors can be specified using either ordered pair notation (a subset of ordered set notation using only two components) or matrix notation, as with rectangular vectors. In these forms, the first component of the vector is r (instead of v1) and the second component is θ (instead of v2). To differentiate polar vectors from rectangular vectors, the angle may be prefixed with the angle symbol, ${\displaystyle \angle }$.

A two-dimensional polar vector v can be represented as any of the following, using either ordered pair or matrix notation:

• ${\displaystyle \mathbf {v} =(r,\angle \theta )}$
• ${\displaystyle \mathbf {v} =\langle r,\angle \theta \rangle }$
• ${\displaystyle \mathbf {v} =\left[{\begin{matrix}r&\angle \theta \end{matrix}}\right]}$
• ${\displaystyle \mathbf {v} =\left[{\begin{matrix}r\\\angle \theta \end{matrix}}\right]}$

Where r is the magnitude, θ is the angle, and the angle symbol (${\displaystyle \angle }$) is optional.

### Direct notation

Polar vectors can also be specified using simplified autonomous equations that define r and θ explicitly. This can be unwieldy, but is useful for avoiding the confusion with two-dimensional rectangular vectors that arises from using ordered pair or matrix notation.

A two-dimensional vector whose magnitude is 5 units and whose direction is π/9 radians (20°) can be specified using either of the following forms:

• ${\displaystyle r=5,\ \theta ={\pi \over 9}}$
• ${\displaystyle r=5,\ \theta =20^{\circ }}$

## Cylindrical vectors

A cylindrical coordinate system with origin O, polar axis A, and longitudinal axis L. The dot is the point with radial distance ρ = 4, angular coordinate φ = 130°, and height z = 4.

A cylindrical vector is an extension of the concept of polar vectors into three dimensions. It is akin to an arrow in the cylindrical coordinate system. A cylindrical vector is specified by a distance in the xy-plane, an angle, and a distance from the xy-plane (a height). The first distance, usually represented as r or ρ (the Greek letter rho), is the magnitude of the projection of the vector onto the xy-plane. The angle, usually represented as θ or φ (the Greek letter phi), is measured as the offset from the line collinear with the x-axis in the positive direction; the angle is typically reduced to lie within the range ${\displaystyle 0\leq \theta <2\pi }$. The second distance, usually represented as h or z, is the distance from the xy-plane to the endpoint of the vector.

### Ordered set and matrix notations

Cylindrical vectors are specified like polar vectors, where the second distance component is concatenated as a third component to form ordered triplets (again, a subset of ordered set notation) and matrices. The angle may be prefixed with the angle symbol (${\displaystyle \angle }$); the distance-angle-distance combination distinguishes cylindrical vectors in this notation from spherical vectors in similar notation.

A three-dimensional cylindrical vector v can be represented as any of the following, using either ordered triplet or matrix notation:

• ${\displaystyle \mathbf {v} =(r,\angle \theta ,h)}$
• ${\displaystyle \mathbf {v} =\langle r,\angle \theta ,h\rangle }$
• ${\displaystyle \mathbf {v} =\left[{\begin{matrix}r&\angle \theta &h\end{matrix}}\right]}$
• ${\displaystyle \mathbf {v} =\left[{\begin{matrix}r\\\angle \theta \\h\end{matrix}}\right]}$

Where r is the magnitude of the projection of v onto the xy-plane, θ is the angle between the positive x-axis and v, and h is the height from the xy-plane to the endpoint of v. Again, the angle symbol (${\displaystyle \angle }$) is optional.

### Direct notation

A cylindrical vector can also be specified directly, using simplified autonomous equations that define r (or ρ), θ (or φ), and h (or z). Consistency should be used when choosing the names to use for the variables; ρ should not be mixed with θ and so on.

A three-dimensional vector, the magnitude of whose projection onto the xy-plane is 5 units, whose angle from the positive x-axis is π/9 radians (20°), and whose height from the xy-plane is 3 units can be specified in any of the following forms:

• ${\displaystyle r=5,\ \theta ={\pi \over 9},\ h=3}$
• ${\displaystyle r=5,\ \theta =20^{\circ },\ h=3}$
• ${\displaystyle \rho =5,\ \phi ={\pi \over 9},\ z=3}$
• ${\displaystyle \rho =5,\ \phi =20^{\circ },\ z=3}$

## Spherical vectors

Spherical coordinates (r, θ, φ) as often used in mathematics: radial distance r, azimuthal angle θ, and polar angle φ. The meanings of θ and φ have been swapped compared to the physics convention.

A spherical vector is another method for extending the concept of polar vectors into three dimensions. It is akin to an arrow in the spherical coordinate system. A spherical vector is specified by a magnitude, an azimuth angle, and a zenith angle. The magnitude is usually represented as ρ. The azimuth angle, usually represented as θ, is the offset from the line collinear with the x-axis in the positive direction. The zenith angle, usually represented as φ, is the offset from the line collinear with the z-axis in the positive direction. Both angles are typically reduced to lie within the range from zero (inclusive) to 2π (exclusive).

### Ordered set and matrix notations

Spherical vectors are specified like polar vectors, where the zenith angle is concatenated as a third component to form ordered triplets and matrices. The azimuth and zenith angles may be both prefixed with the angle symbol (${\displaystyle \angle }$); the prefix should be used consistently to produce the distance-angle-angle combination that distinguishes spherical vectors from cylindrical ones.

A three-dimensional spherical vector v can be represented as any of the following, using either ordered triplet or matrix notation:

• ${\displaystyle \mathbf {v} =(\rho ,\angle \theta ,\angle \phi )}$
• ${\displaystyle \mathbf {v} =\langle \rho ,\angle \theta ,\angle \phi \rangle }$
• ${\displaystyle \mathbf {v} =\left[{\begin{matrix}\rho &\angle \theta &\angle \phi \end{matrix}}\right]}$
• ${\displaystyle \mathbf {v} =\left[{\begin{matrix}\rho \\\angle \theta \\\angle \phi \end{matrix}}\right]}$

Where ρ is the magnitude, θ is the azimuth angle, and φ is the zenith angle.

### Direct notation

Like polar and cylindrical vectors, spherical vectors can be specified using simplified autonomous equations, in this case for ρ, θ, and φ.

A three-dimensional vector whose magnitude is 5 units, whose azimuth angle is π/9 radians (20°), and whose zenith angle is π/4 radians (45°) can be specified as:

• ${\displaystyle \rho =5,\ \theta ={\pi \over 9},\ \phi ={\pi \over 4}}$
• ${\displaystyle \rho =5,\ \theta =20^{\circ },\ \phi =45^{\circ }}$

## Operations

In any given vector space, the operations of vector addition and scalar multiplication are defined. Normed vector spaces also define an operation known as the norm (or determination of magnitude). Inner product spaces also define an operation known as the inner product. In ${\displaystyle \mathbb {R} ^{n}}$, the inner product is known as the dot product. In ${\displaystyle \mathbb {R} ^{3}}$ and ${\displaystyle \mathbb {R} ^{7}}$, an additional operation known as the cross product is also defined.

Vector addition is represented with the plus sign used as an operator between two vectors. The sum of two vectors u and v would be represented as:

${\displaystyle \mathbf {u} +\mathbf {v} }$

### Scalar multiplication

Scalar multiplication is represented in the same manners as algebraic multiplication. A scalar beside a vector (either or both of which may be in parentheses) implies scalar multiplication. The two common operators, a dot and a rotated cross, are also acceptable (although the rotated cross is almost never used), but they risk confusion with dot products and cross products, which operate on two vectors. The product of a scalar c with a vector v can be represented in any of the following fashions:

• ${\displaystyle c\mathbf {v} }$
• ${\displaystyle c\cdot \mathbf {v} }$
• ${\displaystyle c\times \mathbf {v} }$

#### Vector subtraction and scalar division

Using the algebraic properties of subtraction and division, along with scalar multiplication, it is also possible to “subtract” two vectors and “divide” a vector by a scalar.

Vector subtraction is performed by adding the scalar multiple of −1 with the second vector operand to the first vector operand. This can be represented by the use of the minus sign as an operator. The difference between two vectors u and v can be represented in either of the following fashions:

• ${\displaystyle \mathbf {u} +-\mathbf {v} }$
• ${\displaystyle \mathbf {u} -\mathbf {v} }$

Scalar division is performed by multiplying the vector operand with the numeric inverse of the scalar operand. This can be represented by the use of the fraction bar or division signs as operators. The quotient of a vector v and a scalar c can be represented in any of the following forms:

• ${\displaystyle {1 \over c}\mathbf {v} }$
• ${\displaystyle {\mathbf {v} \over c}}$
• ${\displaystyle {\mathbf {v} \div c}}$

### Norm

The norm of a vector is represented with double bars on both sides of the vector. The norm of a vector v can be represented as:

${\displaystyle \|\mathbf {v} \|}$

The norm is also sometimes represented with single bars, like ${\displaystyle |\mathbf {v} |}$, but this can be confused with absolute value (which is a type of norm).

### Inner product

The inner product (also known as the scalar product, not to be confused with scalar multiplication) of two vectors is represented as an ordered pair enclosed in angle brackets. The inner product of two vectors u and v would be represented as:

${\displaystyle \langle \mathbf {u} ,\mathbf {v} \rangle }$

#### Dot product

In ${\displaystyle \mathbb {R} ^{n}}$, the inner product is also known as the dot product. In addition to the standard inner product notation, the dot product notation (using the dot as an operator) can also be used (and is more common). The dot product of two vectors u and v can be represented as:

${\displaystyle \mathbf {u} \cdot \mathbf {v} }$

In some older literature, the dot product is implied between two vectors written side-by-side. This notation can be confused with the dyadic product between two vectors.

### Cross product

The cross product of two vectors (in ${\displaystyle \mathbb {R} ^{3}}$) is represented using the rotated cross as an operator. The cross product of two vectors u and v would be represented as:

${\displaystyle \mathbf {u} \times \mathbf {v} }$

In some older literature, the following notation is used for the cross product between u and v:

${\displaystyle [\mathbf {u} ,\mathbf {v} ]}$
{"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 65, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "url": "https://en.wikipedia.org/wiki/Vector_notation", "fetch_time": 1547635628000000000, "content_mime_type": "text/html", "warc_filename": "crawl-data/CC-MAIN-2019-04/segments/1547583657151.48/warc/CC-MAIN-20190116093643-20190116115643-00054.warc.gz", "warc_record_offset": 503957897, "warc_record_length": 26420, "token_count": 3951, "char_count": 15832, "score": 4.21875, "int_score": 4, "crawl": "CC-MAIN-2019-04", "snapshot_type": "latest", "language": "en", "language_score": 0.877934455871582, "file_path": "/sailhome/yjruan/project/latent-lm/data/processed/finemath-4plus/finemath-4plus/train-00015-of-00064.parquet"}