# Scalar

In physics, the word **scalar** is often used to refer simply to a real or complex number.
In other contexts, where vectors and tensors may also play a role, a scalar is defined by its transformation properties.

In order to explain the second definition of a scalar, it must be noted that most physical objects belong to—or are associated with—some linear space with inner product. The algebraic form of a physical quantity is—explicitly or implicitly—defined with respect to an orthonormal basis of this space. When a new orthonormal basis of the space is chosen, the algebraic form of a quantity expressed with respect to this new basis is in general different from the algebraic form of the same quantity with respect to the old basis. One expresses this by stating that *physical quantities transform under change of reference frame* (i.e., under change of basis of the space).

The transformation from one orthonormal basis of a linear space to another is called unitary or orthogonal, depending on whether the space is complex or real (if the space is real and 3-dimensional it is called a rotation). The determinant of a unitary transformation is a complex number of absolute value unity, that is, the determinant of a unitary transformation is on the unit circle in the complex plane. Transformations with determinant equal to 1 are called unimodular.^{[1]}^{[2]} Orthogonal (real) matrices clearly have determinant ±1.

The second kind of **scalars** then are quantities that are invariant under unimodular orthogonal basis transformations. That is, unlike physical quantities as vectors and tensors, scalars do *not* change under such a basis transformation. Two kinds of scalars are distinguished:
**proper scalars**, which are invariant under *all* orthogonal transformations and **pseudo-scalars**, which are invariant under unimodular orthogonal transformations and obtain a minus sign upon transformation by non-unimodular orthogonal transformations (those with determinant equal to −1). With respect to a given orthonormal reference frame and expressed in a suitable set of units, such as SI units, a scalar is represented by a single number. The essential property of a scalar is that this number is the same with respect to all frames that are related to each other by unimodular orthogonal transformations.

## Example

Examples of scalars of the first kind (no reference to a frame) are the number 3.14, 2exp[-i 300], the mass of the Earth in kilogram, and the elementary charge in Coulomb.

For an example of scalars of the second kind, we consider two elements, in ℝ^{3}. These vectors may have some physical meaning, for example, direction and strength of an electric and magnetic field, or velocities of two particles. Let the following be a basis of ℝ^{3},

where the column vectors (bold) are

and the matrix-matrix product is implied,

The column vectors **r** and **s** represent algebraically the physical quantities with respect to the given basis.

Choose now another basis of the same space

The 3×3 matrix **B** is assumed to be an orthogonal matrix (transforms orthonormal bases into each other). Clearly

The columns **r'**, **s'** represent the *same* vectors with respect to the new basis. They have another form, or more accurately, their three components have new values.

To construct a proper scalar (transformation invariant), we consider the inner product. The inner product is not a member of ℝ^{3}, but is clearly associated with it. (Formally it is a bilinear map of the Cartesian product ℝ^{3}×ℝ^{3} into ℝ). The inner product satisfies

The second equality follows in short-hand notation thus

In long-hand notation,

In both notations it is used that **B** is orthonormal,

where δ_{ij} is the Kronecker delta.
The inner product of does not depend on the basis used to express the vectors, it is a proper scalar. This proof holds for proper (unimodular) rotations and for improper (determinant = −1) rotations.

As an example of a *pseudo-scalar* the following triple product may be given

The product stands for a cross product, it is again an element of ℝ^{3} (sometimes referred to a pseudo vector) and hence the triple product, being an inner product, is a scalar. Remember that the improper rotations can be written as a product of a proper rotation times inversion. Under inversion the three vectors go into minus themselves and the triple product obtains the factor (−1)^{3} = −1 and in total the triple product is a pseudo-scalar.

## Scalar functions

Usually the term "scalar function" is used for a single-valued function on a certain space that map elements of the space pointwise into ℝ (real functions) or ℂ (complex functions). Scalar functions must be distinguished from vector functions that have more values—their components. In general vector functions map a space into ℝ^{n} or ℂ^{n}, *n* > 1.

If Φ is a scalar function on ℝ^{3}, we can define the operator ℛ by

where **R** is the matrix of a non-singular map ℝ^{3} → ℝ^{3}.
The "if and only if arrow" follows because the relations are true for all **r**, including
**R**^{−1}**r** and **R****r**

A scalar function on ℝ^{3} is spherically symmetric if

where an orthogonal (length preserving) matrix **R** appears in the definition of ℛ.