Four-vector
In special relativity, a four-vector (or 4-vector) is an object with four components, which transform in a specific way under Lorentz transformation. Specifically, a four-vector is an element of a four-dimensional vector space considered as a representation space of the standard representation of the Lorentz group, the (,) representation. It differs from a Euclidean vector in how its magnitude is determined. The transformations that preserve this magnitude are the Lorentz transformations, which include spatial rotations and boosts (a change by a constant velocity to another inertial reference frame). Four-vectors describe, for instance, position in  spacetime modeled as Minkowski space, a particle's four-momentum , the amplitude of the electromagnetic four-potential at a point in spacetime, and the elements of the subspace spanned by the gamma matrices inside the Dirac algebra. The Lorentz group may be represented by 4×4 matrices . The action of a Lorentz transformation on a general contravariant four-vector (like the examples above), regarded as a column vector with Cartesian coordinates with respect to an inertial frame in the entries, is given by (matrix multiplication) where the components of the primed object refer to the new frame. Related to the examples  above that are given as contravariant vectors, there are also the corresponding covariant vectors , and . These transform according to the rule where denotes the matrix transpose. This rule is different from the above rule. It corresponds to the dual representation of the standard representation. However, for the Lorentz group the dual of any representation is equivalent to the original representation. Thus the objects with covariant indices are four-vectors as well. For an example of a well-behaved four-component object in special relativity that is "not" a four-vector, see bispinor. It is similarly defined, the difference being that  the transformation rule under Lorentz transformations is given by a representation other than the standard representation. In this case, the rule reads , where is a 4×4 matrix other than . Similar remarks apply to objects with fewer or more components that are well-behaved under Lorentz transformations. These include scalars, spinors, tensors and spinor-tensors. The article considers four-vectors in the context of special relativity. Although the concept of four-vectors also extends to general relativity, some of the results stated in this article require modification in general relativity. Notation. The notations in this article are: lowercase bold for three -dimensional vectors, hats for three-dimensional unit vectors, capital bold for four dimensional vectors (except for the four-gradient), and tensor index notation. Four-vector algebra. Four-vectors in a real-valued basis. A four-vector "A" is a vector with a "timelike" component and three "spacelike" components, and can be written in various equivalent notations: where in the last form the magnitude component and basis vector have been combined to a single element. The upper indices indicate contravariant components. Here the standard convention is that Latin indices take values for spatial components, so that "i" = 1, 2, 3 , and Greek indices take values for space "and time" components, so "α" = 0, 1, 2, 3, used with the summation convention. The split between the time component and the spatial components is a useful one to make when determining contractions of one four vector with other tensor quantities, such as for calculating Lorentz invariants in inner products (examples are given below), or raising and lowering indices. In special relativity, the spacelike basis E, E, E and components "A", "A", "A" are often Cartesian basis and components: although, of course, any other basis and components may be used, such as  spherical polar coordinates or cylindrical polar coordinates, or any other orthogonal coordinates, or even general curvilinear coordinates. Note the coordinate labels are always subscripted as labels and are not indices taking numerical values. In general relativity, local curvilinear coordinates in a local basis must be used. Geometrically, a four-vector can still be interpreted as an arrow, but in spacetime - not just space. In relativity, the arrows are drawn as part of Minkowski diagram (also called "spacetime diagram"). In this article, four-vectors will be referred to simply as vectors. It is also customary to represent the bases by column  vectors: so that: The relation between the covariant and contravariant coordinates is through the Minkowski metric tensor (referred to as the metric), "η" which raises and lowers indices as follows: and in various equivalent notations the covariant components are: where the lowered index indicates it to be covariant. Often the metric is diagonal, as is the case for orthogonal coordinates (see line element), but not in general curvilinear coordinates. The bases can be represented by row vectors: so that: The motivation for the above conventions are that the inner product is a scalar, see below for details. Lorentz transformation. Given  two inertial or rotated frames of reference, a four-vector is defined as a quantity which transforms according to the Lorentz transformation matrix Λ: In index notation, the contravariant and covariant components transform according to, respectively: in which the matrix Λ has components Λ"" in row "μ" and column "ν", and the inverse matrix Λ has components Λ"" in row "μ" and column "ν". For background on the nature of this transformation definition, see tensor. All four-vectors transform in the same way, and this can be generalized to four-dimensional relativistic tensors; see special relativity. Pure rotations about an  arbitrary axis. For two frames rotated by a fixed angle "θ" about an axis defined by the unit vector: without any boosts, the matrix Λ has components given by: where "δ" is the Kronecker delta, and "ε" is the three-dimensional Levi-Civita symbol. The spacelike components of four-vectors are rotated, while the timelike components remain unchanged. For the case of rotations about the "z"-axis only, the spacelike part of the Lorentz matrix reduces to the rotation matrix about the "z"-axis: Pure boosts in an arbitrary direction. For two frames moving at constant relative three-velocity v (not four -velocity, see below), it is convenient to denote and define the relative velocity in units of "c" by: Then without rotations, the matrix Λ has components given by: where the Lorentz factor is defined by: and "δ" is the Kronecker delta. Contrary to the case for pure rotations, the spacelike and timelike components are mixed together under boosts. For the case of a boost in the "x"-direction only, the matrix reduces to; Where the rapidity "ϕ" expression has been used, written in terms of the hyperbolic functions: This Lorentz matrix illustrates the boost to be a "hyperbolic rotation" in four  dimensional spacetime, analogous to the circular rotation above in three-dimensional space. Properties. Linearity. Four-vectors have the same linearity properties as Euclidean vectors in three dimensions. They can be added in the usual entrywise way: and similarly scalar multiplication by a scalar "λ" is defined entrywise by: Then subtraction is the inverse operation of addition, defined entrywise by: Minkowski tensor. Applying the Minkowski tensor "η" to two four-vectors A and B, writing the result in dot product notation, we have, using Einstein notation: It is convenient to rewrite the definition in matrix form: in which case "η" above  is the entry in row "μ" and column "ν" of the Minkowski metric as a square matrix. The Minkowski metric is not a Euclidean metric, because it is indefinite (see metric signature). A number of other expressions can be used because the metric tensor can raise and lower the components of A or B. For contra/co-variant components of A and co/contra-variant components of B, we have: so in the matrix notation: while for A and B each in covariant components: with a similar matrix expression to the above. Applying the Minkowski tensor to a four-vector  A with itself we get: which, depending on the case, may be considered the square, or its negative, of the length of the vector. Following are two common choices for the metric tensor in the standard basis (essentially Cartesian coordinates). If orthogonal coordinates are used, there would be scale factors along the diagonal part of the spacelike part of the metric, while for general curvilinear coordinates the entire spacelike part of the metric would have components dependent on the curvilinear basis used. Standard basis, (+−−−) signature. In the (+−−−) metric signature, evaluating the summation over indices gives: while  in matrix form: It is a recurring theme in special relativity to take the expression in one reference frame, where "C" is the value of the inner product in this frame, and: in another frame, in which "C"′ is the value of the inner product in this frame. Then since the inner product is an invariant, these must be equal: that is: Considering that physical quantities in relativity are four-vectors, this equation has the appearance of a "conservation law", but there is no "conservation" involved. The primary significance of the Minkowski inner product is that for any two four -vectors, its value is invariant for all observers; a change of coordinates does not result in a change in value of the inner product. The components of the four-vectors change from one frame to another; A and A′ are connected by a Lorentz transformation, and similarly for B and B′, although the inner products are the same in all frames. Nevertheless, this type of expression is exploited in relativistic calculations on a par with conservation laws, since the magnitudes of components can be determined without explicitly performing any Lorentz transformations. A particular example is with energy and momentum in  the energy-momentum relation derived from the four-momentum vector (see also below). In this signature we have: With the signature (+−−−), four-vectors may be classified as either spacelike if formula_39, timelike if formula_40, and null vectors if formula_41. Standard basis, (−+++) signature. Some authors define "η" with the opposite sign, in which case we have the (−+++) metric signature. Evaluating the summation with this signature: while the matrix form is: Note that in this case, in one frame: while in another: so that: which is equivalent to the above expression for "C" in terms of A and  B. Either convention will work. With the Minkowski metric defined in the two ways above, the only difference between covariant and contravariant four-vector components are signs, therefore the signs depend on which sign convention is used. We have: With the signature (−+++), four-vectors may be classified as either spacelike if formula_40, timelike if formula_39, and null if formula_41. Dual vectors. Applying the Minkowski tensor is often expressed as the effect of the dual vector of one vector on the other: Here the "A"s are the components of the dual vector A* of A in the dual basis and  called the covariant coordinates of A, while the original "A" components are called the contravariant coordinates. Four-vector calculus. Derivatives and differentials. In special relativity (but not general relativity), the derivative of a four-vector with respect to a scalar "λ" (invariant) is itself a four-vector. It is also useful to take the differential of the four-vector, "d"A and divide it by the differential of the scalar, "dλ": where the contravariant components are: while the covariant components are: In relativistic mechanics, one often takes the differential of a four-vector and divides by the differential in proper time  (see below). Fundamental four-vectors. Four-position. A point in Minkowski space is a time and spatial position, called an "event", or sometimes the position four-vector or four-position or 4-position, described in some reference frame by a set of four coordinates: where r is the three-dimensional space position vector. If r is a function of coordinate time "t" in the same frame, i.e. r = r("t"), this corresponds to a sequence of events as "t" varies. The definition "R" = "ct" ensures that all the coordinates have the same units (of distance). These coordinates are the  components of the "position four-vector" for the event. The "displacement four-vector" is defined to be an "arrow" linking two events: For the differential four-position on a world line we have, using a norm notation: defining the differential line element d"s" and differential proper time increment d"τ", but this "norm" is also: so that: When considering physical phenomena, differential equations arise naturally; however, when considering space and time derivatives of functions, it is unclear which reference frame these derivatives are taken with respect to. It is agreed that time derivatives are taken with respect to the proper time  formula_60. As proper time is an invariant, this guarantees that the proper-time-derivative of any four-vector is itself a four-vector. It is then important to find a relation between this proper-time-derivative and another time derivative (using the coordinate time "t" of an inertial reference frame). This relation is provided by taking the above differential invariant spacetime interval, then dividing by ("cdt") to obtain: where u = "d"r/"dt" is the coordinate 3-velocity of an object measured in the same frame as the coordinates "x", "y", "z", and coordinate time "t", and is the Lorentz factor . This provides a useful relation between the differentials in coordinate time and proper time: This relation can also be found from the time transformation in the Lorentz transformations. Important four-vectors in relativity theory can be defined by applying this differential formula_64. Four-gradient. Considering that partial derivatives are linear operators, one can form a four-gradient from the partial time derivative /"t" and the spatial gradient ∇. Using the standard basis, in index and abbreviated notations, the contravariant components are: Note the basis vectors are placed in front of the components, to prevent confusion between taking the derivative of  the basis vector, or simply indicating the partial derivative is a component of this four-vector. The covariant components are: Since this is an operator, it doesn't have a "length", but evaluating the inner product of the operator with itself gives another operator: Geometrically, U is a normalized vector tangent to the world line of the particle. Using the differential of the four-position, the magnitude of the four-velocity can be obtained: in short, the magnitude of the four-velocity for any object is always a fixed constant: The norm is also: so that: which reduces to the  definition of the Lorentz factor. Units of four-velocity are m/s in SI and 1 in the geometrized unit system. Four-velocity is a contravariant vector. Four-acceleration. The four-acceleration is given by: where a = "d"u/"dt" is the coordinate 3-acceleration. Since the magnitude of U is a constant, the four acceleration is orthogonal to the four velocity, i.e. the Minkowski inner product of the four-acceleration and the four-velocity is zero: which is true for all world lines. The geometric meaning of four-acceleration is the curvature vector of the world line in Minkowski space . Dynamics. Four-momentum. For a massive particle of rest mass (or invariant mass) "m", the four-momentum is given by: where the total energy of the moving particle is: and the total relativistic momentum is: Taking the inner product of the four-momentum with itself: and also: which leads to the energy–momentum relation: This last relation is useful relativistic mechanics, essential in relativistic quantum mechanics and relativistic quantum field theory, all with applications to particle physics. Four-force. The four-force acting on a particle is defined analogously to the 3-force as the time derivative of 3-momentum  in Newton's second law: where "P" is the power transferred to move the particle, and f is the 3-force acting on the particle. For a particle of constant invariant mass "m", this is equivalent to An invariant derived from the four-force is: from the above result. Thermodynamics. Four-heat flux. The four-heat flux vector field, is essentially similar to the 3d heat flux vector field q, in the local frame of the fluid: where "T" is absolute temperature and "k" is thermal conductivity. Four-baryon number flux. The flux of baryons is: where "n" is the  number density of baryons in the local rest frame of the baryon fluid (positive values for baryons, negative for antibaryons), and U the four-velocity field (of the fluid) as above. Four-entropy. The four-entropy vector is defined by: where "s" is the entropy per baryon, and "T" the absolute temperature, in the local rest frame of the fluid. Electromagnetism. Examples of four-vectors in electromagnetism include the following. Four-current. The electromagnetic four-current (or more correctly a four-current density) is defined by formed from the current density j and charge density "ρ". Four-potential. The electromagnetic  four-potential (or more correctly a four-EM vector potential) defined by formed from the vector potential a and the scalar potential "ϕ". The four-potential is not uniquely determined, because it depends on a choice of gauge. In the wave equation for the electromagnetic field: Waves. Four-frequency. A photonic plane wave can be described by the four-frequency defined as where "ν" is the frequency of the wave and formula_92 is a unit vector in the travel direction of the wave. Now: so the four-frequency of a photon is always a null vector. Four-wavevector. The quantities  reciprocal to time "t" and space r are the angular frequency "ω" and wave vector k, respectively. They form the components of the four-wavevector or wave four-vector: A wave packet of nearly monochromatic light can be described by: The de Broglie relations then showed that four-wavevector applied to matter waves as well as to light waves. : yielding formula_97 and formula_98, where "ħ" is the Planck constant divided by 2"π". The square of the norm is: and by the de Broglie relation: we have the matter wave analogue of the energy–momentum relation: Note that for massless particles , in which case , we have: or ‖k‖ = "ω"/"c". Note this is consistent with the above case; for photons with a 3-wavevector of modulus "ω"/"c", in the direction of wave propagation defined by the unit vector formula_92. Quantum theory. Four-probability current. In quantum mechanics, the four-probability current or probability four-current is analogous to the electromagnetic four-current: where "ρ" is the probability density function corresponding to the time component, and j is the probability current vector. In non-relativistic quantum mechanics, this current is always well defined because the expressions for density and current are positive  definite and can admit a probability interpretation. In relativistic quantum mechanics and quantum field theory, it is not always possible to find a current, particularly when interactions are involved. Replacing the energy by the energy operator and the momentum by the momentum operator in the four-momentum, one obtains the four-momentum operator, used in relativistic wave equations. Four-spin. The four-spin of a particle is defined in the rest frame of a particle to be where s is the spin pseudovector. In quantum mechanics, not all three components of this vector are simultaneously measurable, only one component is . The timelike component is zero in the particle's rest frame, but not in any other frame. This component can be found from an appropriate Lorentz transformation. The norm squared is the (negative of the) magnitude squared of the spin, and according to quantum mechanics we have This value is observable and quantized, with "s" the spin quantum number (not the magnitude of the spin vector). Other formulations. Four-vectors in the algebra of physical space. A four-vector "A" can also be defined in using the Pauli matrices as a basis, again in various equivalent notations: or explicitly: and  in this formulation, the four-vector is represented as a Hermitian matrix (the matrix transpose and complex conjugate of the matrix leaves it unchanged), rather than a real-valued column or row vector. The determinant of the matrix is the modulus of the four-vector, so the determinant is an invariant: This idea of using the Pauli matrices as basis vectors is employed in the algebra of physical space, an example of a Clifford algebra. Four-vectors in spacetime algebra. In spacetime algebra, another example of Clifford algebra, the gamma matrices can also form a basis. (They are also called  the Dirac matrices, owing to their appearance in the Dirac equation). There is more than one way to express the gamma matrices, detailed in that main article. The Feynman slash notation is a shorthand for a four-vector A contracted with the gamma matrices: The four-momentum contracted with the gamma matrices is an important case in relativistic quantum mechanics and relativistic quantum field theory. In the Dirac equation and other relativistic wave equations, terms of the form: appear, in which the energy "E" and momentum components are replaced by their respective operators.