Hubbry Logo
Sign (mathematics)Sign (mathematics)Main
Open search
Sign (mathematics)
Community hub
Sign (mathematics)
logo
8 pages, 0 posts
0 subscribers
Be the first to start a discussion here.
Be the first to start a discussion here.
Sign (mathematics)
Sign (mathematics)
from Wikipedia
The plus and minus symbols are used to show the sign of a number

In mathematics, the sign of a real number is its property of being either positive, negative, or 0. Depending on local conventions, zero may be considered as having its own unique sign, having no sign, or having both positive and negative sign. In some contexts, it makes sense to distinguish between a positive and a negative zero.

In mathematics and physics, the phrase "change of sign" is associated with exchanging an object for its additive inverse (multiplication with −1, negation), an operation which is not restricted to real numbers. It applies among other objects to vectors, matrices, and complex numbers, which are not prescribed to be only either positive, negative, or zero.

The word "sign" is also often used to indicate binary aspects of mathematical or scientific objects, such as odd and even (sign of a permutation), sense of orientation or rotation (cw/ccw), one sided limits, and other concepts described in § Other meanings below.

Sign of a number

[edit]

Numbers from various number systems, like integers, rationals, complex numbers, quaternions, octonions, ... may have multiple attributes, that fix certain properties of a number. A number system that bears the structure of an ordered ring contains a unique number that when added with any number leaves the latter unchanged. This unique number is known as the system's additive identity element. For example, the integers has the structure of an ordered ring. This number is generally denoted as 0. Because of the total order in this ring, there are numbers greater than zero, called the positive numbers. Another property required for a ring to be ordered is that, for each positive number, there exists a unique corresponding number less than 0 whose sum with the original positive number is 0. These numbers less than 0 are called the negative numbers. The numbers in each such pair are their respective additive inverses. This attribute of a number, being exclusively either zero (0), positive (+), or negative (−), is called its sign, and is often encoded to the real numbers 0, 1, and −1, respectively (similar to the way the sign function is defined).[1] Since rational and real numbers are also ordered rings (in fact ordered fields), the sign attribute also applies to these number systems.

When a minus sign is used in between two numbers, it represents the binary operation of subtraction. When a minus sign is written before a single number, it represents the unary operation of yielding the additive inverse (sometimes called negation) of the operand. Abstractly then, the difference of two number is the sum of the minuend with the additive inverse of the subtrahend. While 0 is its own additive inverse (−0 = 0), the additive inverse of a positive number is negative, and the additive inverse of a negative number is positive. A double application of this operation is written as −(−3) = 3. The plus sign is predominantly used in algebra to denote the binary operation of addition, and only rarely to emphasize the positivity of an expression.

In common numeral notation (used in arithmetic and elsewhere), the sign of a number is often made explicit by placing a plus or a minus sign before the number. For example, +3 denotes "positive three", and −3 denotes "negative three" (algebraically: the additive inverse of 3). Without specific context (or when no explicit sign is given), a number is interpreted per default as positive. This notation establishes a strong association of the minus sign "" with negative numbers, and the plus sign "+" with positive numbers.

Sign of zero

[edit]

Within the convention of zero being neither positive nor negative, a specific sign-value 0 may be assigned to the number value 0. This is exploited in the -function, as defined for real numbers.[1] In arithmetic, +0 and −0 both denote the same number 0. There is generally no danger of confusing the value with its sign, although the convention of assigning both signs to 0 does not immediately allow for this discrimination.

In certain European countries, e.g. in Belgium and France, 0 is considered to be both positive and negative following the convention set forth by Nicolas Bourbaki.[2]

In some contexts, such as floating-point representations of real numbers within computers, it is useful to consider signed versions of zero, with signed zeros referring to different, discrete number representations (see signed number representations for more).

The symbols +0 and −0 rarely appear as substitutes for 0+ and 0, used in calculus and mathematical analysis for one-sided limits (right-sided limit and left-sided limit, respectively). This notation refers to the behaviour of a function as its real input variable approaches 0 along positive (resp., negative) values; the two limits need not exist or agree.

Terminology for signs

[edit]

When 0 is said to be neither positive nor negative, the following phrases may refer to the sign of a number:

  • A number is positive if it is greater than zero.
  • A number is negative if it is less than zero.
  • A number is non-negative if it is greater than or equal to zero.
  • A number is non-positive if it is less than or equal to zero.

When 0 is said to be both positive and negative,[citation needed] modified phrases are used to refer to the sign of a number:

  • A number is strictly positive if it is greater than zero.
  • A number is strictly negative if it is less than zero.
  • A number is positive if it is greater than or equal to zero.
  • A number is negative if it is less than or equal to zero.

For example, the absolute value of a real number is always "non-negative", but is not necessarily "positive" in the first interpretation, whereas in the second interpretation, it is called "positive"—though not necessarily "strictly positive".

The same terminology is sometimes used for functions that yield real or other signed values. For example, a function would be called a positive function if its values are positive for all arguments of its domain, or a non-negative function if all of its values are non-negative.

Complex numbers

[edit]

Complex numbers are impossible to order, so they cannot carry the structure of an ordered ring, and, accordingly, cannot be partitioned into positive and negative complex numbers. They do, however, share an attribute with the reals, which is called absolute value or magnitude. Magnitudes are always non-negative real numbers, and to any non-zero number there belongs a positive real number, its absolute value.

For example, the absolute value of −3 and the absolute value of 3 are both equal to 3. This is written in symbols as |−3| = 3 and |3| = 3.

In general, any arbitrary real value can be specified by its magnitude and its sign. Using the standard encoding, any real value is given by the product of the magnitude and the sign in standard encoding. This relation can be generalized to define a sign for complex numbers.

Since the real and complex numbers both form a field and contain the positive reals, they also contain the reciprocals of the magnitudes of all non-zero numbers. This means that any non-zero number may be multiplied with the reciprocal of its magnitude, that is, divided by its magnitude. It is immediate that the quotient of any non-zero real number by its magnitude yields exactly its sign. By analogy, the sign of a complex number z can be defined as the quotient of z and its magnitude |z|. The sign of a complex number is the exponential of the product of its argument with the imaginary unit. represents in some sense its complex argument. This is to be compared to the sign of real numbers, except with For the definition of a complex sign-function. see § Complex sign function below.

Sign functions

[edit]
Real sign function y = sgn(x)

When dealing with numbers, it is often convenient to have their sign available as a number. This is accomplished by functions that extract the sign of any number, and map it to a predefined value before making it available for further calculations. For example, it might be advantageous to formulate an intricate algorithm for positive values only, and take care of the sign only afterwards.

Real sign function

[edit]

The sign function or signum function extracts the sign of a real number, by mapping the set of real numbers to the set of the three reals It can be defined as follows:[1] Thus sgn(x) is 1 when x is positive, and sgn(x) is −1 when x is negative. For non-zero values of x, this function can also be defined by the formula where |x| is the absolute value of x.

Complex sign function

[edit]

While a real number has a 1-dimensional direction, a complex number has a 2-dimensional direction. The complex sign function requires the magnitude of its argument z = x + iy, which can be calculated as

Analogous to above, the complex sign function extracts the complex sign of a complex number by mapping the set of non-zero complex numbers to the set of unimodular complex numbers, and 0 to 0: It may be defined as follows:

Let z be also expressed by its magnitude and one of its arguments φ as z = |z|⋅e, then[3]

This definition may also be recognized as a normalized vector, that is, a vector whose direction is unchanged, and whose length is fixed to unity. If the original value was R,θ in polar form, then sign(R, θ) is 1 θ. Extension of sign() or signum() to any number of dimensions is obvious, but this has already been defined as normalizing a vector.

Signs per convention

[edit]

In situations where there are exactly two possibilities on equal footing for an attribute, these are often labelled by convention as plus and minus, respectively. In some contexts, the choice of this assignment (i.e., which range of values is considered positive and which negative) is natural, whereas in other contexts, the choice is arbitrary, making an explicit sign convention necessary, the only requirement being consistent use of the convention.

Sign of an angle

[edit]
Measuring from the x-axis, angles on the unit circle count as positive in the counterclockwise direction, and negative in the clockwise direction.

In many contexts, it is common to associate a sign with the measure of an angle, particularly an oriented angle or an angle of rotation. In such a situation, the sign indicates whether the angle is in the clockwise or counterclockwise direction. Though different conventions can be used, it is common in mathematics to have counterclockwise angles count as positive, and clockwise angles count as negative.[4]

It is also possible to associate a sign to an angle of rotation in three dimensions, assuming that the axis of rotation has been oriented. Specifically, a right-handed rotation around an oriented axis typically counts as positive, while a left-handed rotation counts as negative.

An angle which is the negative of a given angle has an equal arc, but the opposite axis.[5]

Sign of a change

[edit]

When a quantity x changes over time, the change in the value of x is typically defined by the equation

Using this convention, an increase in x counts as positive change, while a decrease of x counts as negative change. In calculus, this same convention is used in the definition of the derivative. As a result, any increasing function has positive derivative, while any decreasing function has negative derivative.

Sign of a direction

[edit]

When studying one-dimensional displacements and motions in analytic geometry and physics, it is common to label the two possible directions as positive and negative. Because the number line is usually drawn with positive numbers to the right, and negative numbers to the left, a common convention is for motions to the right to be given a positive sign, and for motions to the left to be given a negative sign.

On the Cartesian plane, the rightward and upward directions are usually thought of as positive, with rightward being the positive x-direction, and upward being the positive y-direction. If a displacement vector is separated into its vector components, then the horizontal part will be positive for motion to the right and negative for motion to the left, while the vertical part will be positive for motion upward and negative for motion downward.

Likewise, a negative speed (rate of change of displacement) implies a velocity in the opposite direction, i.e., receding instead of advancing; a special case is the radial speed.

In 3D space, notions related to sign can be found in the two normal orientations and orientability in general.

Signedness in computing

[edit]
most-significant bit
0 1 1 1 1 1 1 1 = 127
0 1 1 1 1 1 1 0 = 126
0 0 0 0 0 0 1 0 = 2
0 0 0 0 0 0 0 1 = 1
0 0 0 0 0 0 0 0 = 0
1 1 1 1 1 1 1 1 = −1
1 1 1 1 1 1 1 0 = −2
1 0 0 0 0 0 0 1 = −127
1 0 0 0 0 0 0 0 = −128
Most computers use two's complement to represent the sign of an integer.

In computing, an integer value may be either signed or unsigned, depending on whether the computer is keeping track of a sign for the number. By restricting an integer variable to non-negative values only, one more bit can be used for storing the value of a number. Because of the way integer arithmetic is done within computers, signed number representations usually do not store the sign as a single independent bit, instead using e.g. two's complement.

In contrast, real numbers are stored and manipulated as floating point values. The floating point values are represented using three separate values, mantissa, exponent, and sign. Given this separate sign bit, it is possible to represent both positive and negative zero. Most programming languages normally treat positive zero and negative zero as equivalent values, albeit, they provide means by which the distinction can be detected.

Other meanings

[edit]
Electric charge may be positive or negative.

In addition to the sign of a real number, the word sign is also used in various related ways throughout mathematics and other sciences:

  • Words up to sign mean that, for a quantity q, it is known that either q = Q or q = −Q for certain Q. It is often expressed as q = ±Q. For real numbers, it means that only the absolute value |q| of the quantity is known. For complex numbers and vectors, a quantity known up to sign is a stronger condition than a quantity with known magnitude: aside Q and Q, there are many other possible values of q such that |q| = |Q|.
  • The sign of a permutation is defined to be positive if the permutation is even, and negative if the permutation is odd.
  • In graph theory, a signed graph is a graph in which each edge has been marked with a positive or negative sign.
  • In mathematical analysis, a signed measure is a generalization of the concept of measure in which the measure of a set may have positive or negative values.
    • The concept of signed distance is used to convey side, inside or out.
    • The ideas of signed area and signed volume are sometimes used when it is convenient for certain areas or volumes to count as negative. This is particularly true in the theory of determinants. In an (abstract) oriented vector space, each ordered basis for the vector space can be classified as either positively or negatively oriented.
  • In a signed-digit representation, each digit of a number may have a positive or negative sign.
  • In physics, any electric charge comes with a sign, either positive or negative. By convention, a positive charge is a charge with the same sign as that of a proton, and a negative charge is a charge with the same sign as that of an electron.

See also

[edit]

References

[edit]
Revisions and contributorsEdit on WikipediaRead on Wikipedia
from Grokipedia
In mathematics, the sign function, commonly denoted as sgn(x)\operatorname{sgn}(x) or sign(x)\operatorname{sign}(x), is a piecewise function that determines the sign of a real number xx by returning +1+1 if x>0x > 0, 1-1 if x<0x < 0, and 00 if x=0x = 0. This function serves as a fundamental tool for identifying the direction or polarity of numbers in various mathematical contexts. The sign function can be expressed algebraically for x0x \neq 0 as sgn(x)=xx\operatorname{sgn}(x) = \frac{x}{|x|}, where x|x| denotes the absolute value of xx, highlighting its close relationship to the modulus operation. It is also related to the H(x)H(x), which equals 1 for x0x \geq 0 and 0 otherwise, via the identity sgn(x)=2H(x)1\operatorname{sgn}(x) = 2H(x) - 1. For complex numbers z0z \neq 0, the sign function generalizes to sgn(z)=zz\operatorname{sgn}(z) = \frac{z}{|z|}, where z|z| is the modulus, mapping to the unit circle in the complex plane. Key properties include its odd symmetry (sgn(x)=sgn(x)\operatorname{sgn}(-x) = -\operatorname{sgn}(x)), range limited to {1,0,1}\{-1, 0, 1\}, and discontinuity at x=0x = 0, making it a step function rather than continuous. Graphically, the sign function appears as horizontal lines at y=1y = 1 for x>0x > 0 and y=1y = -1 for x<0x < 0, connected by an isolated point at (0,0)(0, 0), illustrating its abrupt jumps. In applications, it is essential in for defining piecewise functions and handling absolute values, such as in integration and differentiation of non-smooth expressions.

Sign of Real Numbers

Definition and Properties

In mathematics, the sign of a real number refers to its classification as positive, negative, or , providing a fundamental way to describe its position relative to on the real number line. A real number xx is positive if x>[0](/page/0)x > [0](/page/0), negative if x<[0](/page/0)x < [0](/page/0), and if x=[0](/page/0)x = [0](/page/0). This ternary classification—positive, negative, or —captures all real numbers, while a binary view considers only positive or negative for non-zero values, treating separately. The sign determines the direction of the number on the number line: positive numbers are located to the right of zero, indicating values greater than zero, while negative numbers are to the left, indicating values less than zero, with zero at the origin serving as the reference point. For example, the sign of 5 is positive, the sign of -3 is negative, and the sign of 0 is zero. These classifications have key algebraic implications, as the sign influences the behavior of numbers under arithmetic operations and helps determine their role in inequalities and orderings on the real line. Regarding properties, the sign exhibits predictable patterns under multiplication. The product of two positive real numbers is positive, the product of two negative real numbers is positive, and the product of one positive and one negative real number is negative. This preservation of sign occurs when both factors have the same sign (both positive or both negative), resulting in a positive product, which underscores the algebraic structure of the real numbers. For addition, the sign rules are similarly straightforward: the sum of two positive real numbers is positive, and the sum of two negative real numbers is negative. When adding numbers of opposite signs, the result's sign matches that of the addend with the larger absolute value, after subtracting the smaller absolute value from the larger one. These properties highlight how the sign guides the outcome of operations, ensuring consistency in the ordered field of real numbers.

Terminology

In mathematics, the sign of a real number xx is described using standard terminology: xx is positive if x>0x > 0, negative if x<0x < 0, nonnegative if x0x \geq 0, and nonpositive if x0x \leq 0. The symbols ++ and - used to denote positive and negative signs originated in the late 15th century, introduced by German mathematician Johannes Widmann in his 1489 treatise Behende und hüpsche Rechenung auf allen Kauffmannschaft for accounting purposes, where ++ represented surplus (more than) and - represented deficit (less than). These symbols, derived from abbreviations influenced by Latin plus (more) and minus (less), were later popularized in England by Robert Recorde in his 1557 book The Whetstone of Witte. In older mathematical texts, particularly from Indian and early European traditions, positive numbers were sometimes termed "affirmative quantities," while negative numbers were simply called "negative" to contrast with debts or deficits. Contextually, in graphical representations on the number line or Cartesian plane, positive values are positioned to the right of or above the origin or axis, while negative values are to the left or below. The absolute value x|x| disregards the sign of xx to yield its magnitude, whereas the signum function extracts the sign itself, returning 11 for positive, 1-1 for negative, and 00 for zero. Regarding zero, it is neither positive nor negative but is included in both nonnegative and nonpositive categories.

Sign of Zero

In mathematics, the sign of zero is conventionally defined as neither positive nor negative, with the signum function assigning sgn(0) = 0 to reflect this neutral status. This convention arises from the standard definition where sgn(x) = x / |x| for x ≠ 0, and by continuity or explicit stipulation, sgn(0) = 0, distinguishing zero from the binary outcomes of ±1 for nonzero reals. Debates on zero's classification often center on its inclusion in sets defined by inequalities. In strict contexts, such as positive real numbers (x > 0), zero is excluded to maintain properties like closure under , while nonnegative reals (x ≥ 0) include it to encompass boundary cases in optimization and . Similarly, nonpositive reals (x ≤ 0) incorporate zero, but negative reals (x < 0) do not, highlighting zero's role as a divisor between signed magnitudes without inheriting a sign itself. This neutrality has significant implications in limits and continuity. For the signum function, the one-sided limit as x approaches 0 from the positive side is 1, yet sgn(0) = 0, rendering the function discontinuous at zero and underscoring zero's exceptional position in real analysis. In sign functions, zero thus serves as a defined neutral point that preserves the function's piecewise nature without introducing indeterminacy. Historically, zero's sign ambiguity stems from early number systems where it functioned primarily as a placeholder rather than a signed entity. In Babylonian mathematics around 2000 BCE, zero was indicated by an empty space or dual wedges but lacked integration with negative numbers, which emerged later in Indian and Chinese traditions around the 7th century CE, delaying formal assignment of sign to zero until the development of the real number line in the 19th century. This evolution resolved ambiguities by treating zero as unsigned in positional notation before its philosophical framing as neither positive nor negative in modern axiomatic systems.

Sign Functions

Real Signum Function

The real signum function, commonly denoted as \sgn(x)\sgn(x), maps a real number xx to its sign: \sgn(x)=1\sgn(x) = 1 if x>0x > 0, \sgn(x)=1\sgn(x) = -1 if x<0x < 0, and \sgn(x)=0\sgn(x) = 0 if x=0x = 0. This piecewise definition captures the essential behavior of the function in distinguishing positive, negative, and zero values across the real line. For x0x \neq 0, the signum function can be expressed in a compact form as \sgn(x)=xx\sgn(x) = \frac{x}{|x|}, where x|x| is the of xx. Key properties include the multiplicative relation \sgn(xy)=\sgn(x)\sgn(y)\sgn(xy) = \sgn(x) \sgn(y) for any real numbers xx and yy, which reflects how signs combine under multiplication, and the identity x=\sgn(x)x|x| = \sgn(x) \cdot x, linking the signum to the modulus. These properties make the signum function useful in algebraic manipulations involving signs and magnitudes. The graph of \sgn(x)\sgn(x) is a classic example of a step function, remaining constant at 1-1 for all x<0x < 0, jumping to 00 at x=0x = 0, and then stepping up to 11 for all x>0x > 0. This results in a discontinuity at x=0x = 0, where the left-hand limit is 1-1 and the right-hand limit is 11, rendering the function neither continuous nor differentiable at the origin. Applications of the real signum function span several areas of mathematics. In solving inequalities, it facilitates sign charts by directly indicating the polarity of expressions, aiding in determining solution intervals without exhaustive testing. In Fourier analysis, the Fourier transform of \sgn(t)\sgn(t) yields 2jω\frac{2}{j\omega} (in the sense of distributions), which is fundamental for analyzing signals and deriving properties of Hilbert transforms in signal processing. For normalization in one dimension, \sgn(x)\sgn(x) provides the unit vector in the direction of xx, as xx=\sgn(x)\frac{x}{|x|} = \sgn(x) for x0x \neq 0, essential in contexts like vector projections and optimization.

Complex Signum Function

The complex signum function, often denoted as \sgn(z)\sgn(z), provides an extension of the real-valued signum function to the domain of complex numbers. For a nonzero complex number zC{0}z \in \mathbb{C} \setminus \{0\}, it is defined as \sgn(z)=zz,\sgn(z) = \frac{z}{|z|}, where z|z| denotes the modulus of zz. At z=0z = 0, the function is conventionally assigned the value \sgn(0)=0\sgn(0) = 0, although the limit as zz approaches depends on the direction and is not uniquely defined. Geometrically, the complex signum function maps each nonzero zz to the point on the unit circle w=1|w| = 1 that lies along the ray from the origin through zz, thereby preserving the argument or phase of zz. This interpretation highlights its role in capturing the directional aspect of complex numbers in the plane, independent of their magnitude. For instance, if z=reiθz = re^{i\theta} in polar form, then \sgn(z)=eiθ\sgn(z) = e^{i\theta}. The function exhibits mirror such that \sgn(z)=\sgn(z)\sgn(-z) = -\sgn(z), and it is homogeneous with respect to positive real scaling: \sgn(kz)=\sgn(z)\sgn(kz) = \sgn(z) for k>0k > 0. Key properties include the fact that \sgn(z)=1|\sgn(z)| = 1 for all z0z \neq 0, ensuring the output lies on the unit circle. It also satisfies conjugate symmetry: \sgn(zˉ)=\sgn(z)\sgn(\bar{z}) = \overline{\sgn(z)}, which follows directly from the definition since zˉ=z|\bar{z}| = |z| and conjugation commutes with division by the modulus. The complex signum function is discontinuous at the origin and not analytic anywhere in the , as it fails the Cauchy-Riemann equations. This contrasts with the real signum function, which serves as a special case along the real axis. The relation to the argument function is explicit: \sgn(z)=eiarg(z)\sgn(z) = e^{i \arg(z)} for z0z \neq 0, where arg(z)\arg(z) is the argument of zz (typically the principal value in (π,π](-\pi, \pi]). This equivalence underscores its utility in polar representations. In applications within , the complex signum function facilitates normalization of vectors in the plane to unit length, aiding in the study of phases, rotations, and directional properties of analytic functions. It also appears in engineering contexts, such as for phase extraction in complex-valued signals, and in models for handling multidimensional phase quantization./05%3A_Complex_Numbers_and_Polar_Coordinates/5.02%3A_The_Trigonometric_Form_of_a_Complex_Number)

Sign Conventions in Geometry and Measurement

Sign of Angles

In the standard convention for measuring angles in the plane, a positive angle is formed by rotating a ray counterclockwise from its initial position, while a negative angle results from a rotation. This sign assignment distinguishes the direction of and is fundamental in geometric and trigonometric contexts. Angles are typically measured from the positive x-axis in the Cartesian plane, with the initial side coinciding with this axis in standard position. A full counterclockwise corresponds to a positive of 2π2\pi radians or 360360^\circ, after which the terminal side returns to the initial position. Negative angles extend beyond this cycle in the direction, allowing representation of any orientation with signed measures. The sign of an angle influences , which exhibit odd or even parity. For instance, the sine function is odd, satisfying sin(θ)=sin(θ)\sin(-\theta) = -\sin(\theta), reflecting the across the x-axis for negative angles. Similarly, cosine is even, with cos(θ)=cos(θ)\cos(-\theta) = \cos(\theta), underscoring how signed angles preserve or invert function values based on direction. Signed angles find applications in describing rotations, where a positive angle denotes a counterclockwise turn around a point or axis, essential for transformations in . In polygons, the sign indicates the orientation of turns at vertices, with counterclockwise traversals yielding positive interior or exterior angles to determine convexity or winding direction. Additionally, in vector analysis, the sign of the scalar triple product or the magnitude's direction in the a×b\mathbf{a} \times \mathbf{b} reveals the rotational sense between vectors, positive for right-handed orientations.

Sign of Directions and Vectors

In Cartesian coordinate systems, the positive directions are conventionally defined along the principal axes: the positive x-axis extends to the right, the positive y-axis points upward in the plane, and the positive z-axis points out of the plane in a right-handed configuration. This convention ensures a consistent orientation for positioning points and measuring displacements relative to the origin. The sign of a coordinate value thus directly indicates the position relative to these axes: positive values lie in the positive half-spaces, while negative values are in the opposite directions. For vectors, the sign of each component specifies the direction of the vector's projection along the corresponding axis in the coordinate system. A vector v=(vx,vy,vz)\vec{v} = (v_x, v_y, v_z)
Add your contribution
Related Hubs
User Avatar
No comments yet.