MatheramaMatherama
← Basic Maths
Basic Maths·Section 6·24 min read

Modulus or Absolute Value of a Real Number

Definition§

The modulus, absolute value, or magnitude of a real number xx is denoted by ∣x∣|x| and is defined as the distance of xx from the origin on the real number line. This distance is always non-negative.

Consider the numbers 5, -5, and 0:

  • For x=5x = 5, the modulus is ∣5∣=5|5| = 5. This is the distance from 0 to 5 on the number line, which is 5 units.
  • For x=−5x = -5, the modulus is ∣−5∣=5|-5| = 5. Although -5 is 5 units left of the origin, distance is measured positively, thus it is also 5 units.
  • For x=0x = 0, the modulus is ∣0∣=0|0| = 0. The point 0 itself is at the origin, so its distance from the origin is zero.

The modulus ∣x∣|x| of a number xx is defined by the following piecewise expression:

∣x∣={xif x≥0−xif x<0|x| = \begin{cases} x & \text{if } x \geq 0 \\ -x & \text{if } x < 0 \end{cases}

In this piecewise definition:

  • If xx is positive or zero (x≥0x \geq 0), then ∣x∣=x|x| = x. Here, the output is the same as the input because the distance from the origin to a positive number or zero is the number itself.
  • If xx is negative (x<0x < 0), then ∣x∣=−x|x| = -x. This calculation effectively removes the negative sign, turning xx into a positive value. This is because the distance, being a measure of magnitude without direction, must always be positive or zero.

Graph§

alt text

To draw the graph of y=∣x∣y = |x|:

Begin by recognizing that when the input xx is not negative, the output yy is equal to xx. Place marks on the graph where the input and the output match: (0,0), (1,1), (2,2), (3,3), and so on. There are infinite inputs and correspoding outputs, which results in infinte points. these infinite points form a continuous path that extends indefinitely to the right, starting from the origin and moving diagonally upward in a straight direction.

Conversely, for inputs xx that are less than zero, the output yy becomes the opposite of xx. Mark the points (-1,1), (-2,2), (-3,3), continuing this pattern. Connecting these points forms a continuous path that extends indefinitely to the left, starting from the origin and moving diagonally upward in a straight direction but mirrored compared to the previous path.

Merging these two paths at the origin, the complete graph forms a V shape with the bottom point at the origin, rising to the right and left. This V represents all pairs of inputs and their corresponding outputs for y=∣x∣y = |x|, where the distance from the origin reflects the magnitude of the input without regard to whether it was originally a negative or a positive number.

Graph of |x|

Properties of the Absolute Value Function§

  1. Non-negativity

    • The absolute value of any real number xx, denoted ∣x∣|x|, is always non-negative. This aligns with the geometric interpretation of absolute value as the distance of xx from the origin on the real number line, and distance is never negative.
    • The expression ∣x∣=0|x| = 0 if and only if x=0x = 0. This means the only scenario where the distance from the origin is zero is when the point is at the origin itself.
    • If ∣x∣>0|x| > 0, it implies that xx is in the set of all real numbers except zero, R∖{0}\mathbb{R} \setminus \{0\}. This is because a non-zero distance from the origin indicates the point is not at the origin.
  2. Square Root Relationship:

    • The equation x2=∣x∣\sqrt{x^2} = |x| holds for any real number xx. This can be understood through the squaring and square root operations:
      • Squaring any real number xx results in a non-negative number x2x^2, as the square of both positive and negative numbers is positive (e.g., (2)2=4(2)^2 = 4 and (−2)2=4(-2)^2 = 4).
      • Taking the square root of a non-negative number yields a non-negative result. Thus, x2\sqrt{x^2} effectively removes the sign of xx, yielding the non-negative magnitude of xx, which is exactly what ∣x∣|x| represents.
  3. Identity of Inverse: ∣−x∣=∣x∣|-x| = |x|

    The absolute value of the additive inverse (negative) of xx is equal to the absolute value of xx.

  4. Multiplicative Property: ∣xy∣=∣x∣∣y∣|xy| = |x||y|

    The absolute value of the product of xx and yy is the product of their respective absolute values.

  5. Quotient Property: ∣xy∣=∣x∣∣y∣\left| \frac{x}{y} \right| = \frac{|x|}{|y|} for y≠0y \neq 0

    The absolute value of the quotient of xx and yy is the quotient of their respective absolute values, provided yy is non-zero.

  6. Power Property: ∣xn∣=∣x∣n|x^n| = |x|^n for any integer nn

    The absolute value of xx raised to the power of nn is equal to the absolute value of xx raised to the power of nn.

  7. Product of Absolute Values: ∣a1a2…an∣=∣a1∣∣a2∣…∣an∣|a_1 a_2 \ldots a_n| = |a_1| |a_2| \ldots |a_n|

    The absolute value of the product of several numbers a1,a2,…,ana_1, a_2, \ldots, a_n is the product of the absolute values of each number.

∣x∣2=x2|x|^2 = x^2

Proof: The absolute value of xx, denoted ∣x∣|x|, is defined by:

∣x∣={xif x≥0−xif x<0|x| = \begin{cases} x & \text{if } x \geq 0 \\ -x & \text{if } x < 0 \end{cases}

Squaring ∣x∣|x| gives us:

∣x∣2={x2if x≥0(−x)2if x<0|x|^2 = \begin{cases} x^2 & \text{if } x \geq 0 \\ (-x)^2 & \text{if } x < 0 \end{cases}

Since (−x)2=x2(-x)^2 = x^2 for all real numbers xx, whether xx is positive or negative, we have:

∣x∣2=x2for all x∈R|x|^2 = x^2 \quad \text{for all } x \in \mathbb{R}

Solving Equations§

  1. If ∣x∣=a|x| = a and a>0a > 0, then x=±ax = \pm a. This indicates two possible real solutions for xx since both aa and −a-a have the same absolute value when aa is positive.

  2. If ∣x∣=0|x| = 0, then x=0x = 0. The only number with an absolute value of zero is zero itself.

  3. If ∣x∣=a|x| = a and a<0a < 0, then no real solution for xx exists. Absolute values are always non-negative; thus, they cannot equal a negative number.

  4. If ∣x∣=∣y∣|x| = |y|, then x=±yx = \pm y. This indicates that if two numbers have the same absolute value, they are either equal or opposites of each other.

  5. Triangle's Inequality

    The triangle inequality is a fundamental property of real numbers that states:

    For any two real numbers xx and yy, the absolute value of their sum is less than or equal to the sum of their absolute values. Mathematically, this is represented as:

    ∣x+y∣≤∣x∣+∣y∣|x + y| \leq |x| + |y|

    This inequality holds for all x,y∈Rx, y \in \mathbb{R} and can be understood with following examples:

    • For x=5x = 5 and y=3y = 3, the direct sum ∣5+3∣|5 + 3| equals 8, which is exactly the sum of their absolute values ∣5∣+∣3∣|5| + |3|.
    • When both xx and yy are negative, such as x=−5x = -5 and y=−3y = -3, the absolute value of their sum ∣−5+(−3)∣|-5 + (-3)| is also 8, matching ∣−5∣+∣−3∣|-5| + |-3|.
    • If xx and yy have opposite signs, for instance x=5x = 5 and y=−3y = -3, the absolute value of their sum ∣5+(−3)∣|5 + (-3)| is 2, which is less than the sum of their absolute values.
    • When one of the numbers is zero, such as x=−5x = -5 and y=0y = 0, the absolute value of their sum ∣−5+0∣|-5 + 0| equals the absolute value of the non-zero number.

    The strict inequality ∣x+y∣<∣x∣+∣y∣|x + y| < |x| + |y| is observed specifically when xx and yy are of opposite signs because the effect of one number's negation partially cancels out the magnitude of the other when summed.

    Conversely, the equality ∣x+y∣=∣x∣+∣y∣|x + y| = |x| + |y| occurs in two cases:

    • When both numbers have the same sign, their magnitudes directly add together without any cancellation.
    • When one of the numbers is zero, it does not contribute to the magnitude of the sum, effectively leaving the absolute value of the other number.
  6. Second Triangle's Inequality

    For all x,y∈Rx, y \in \mathbb{R},

    ∣∣x∣−∣y∣∣≤∣x−y∣| |x| - |y| | \leq |x - y|
    • The strict inequality ∣∣x∣−∣y∣∣<∣x−y∣||x| - |y|| < |x - y| occurs when xx and yy have opposite signs, which is mathematically stated as xy<0xy < 0. When xx and yy are of opposite signs, the difference ∣x∣−∣y∣|x| - |y| does not fully capture the distance between xx and yy on the number line, since it neglects the fact that they are in different directions from zero.

    • The equality ∣∣x∣−∣y∣∣=∣x−y∣||x| - |y|| = |x - y| occurs when xx and yy have the same sign or at least one is zero, which is represented as xy≥0xy \geq 0. When both xx and yy are non-negative or non-positive, ∣x∣−∣y∣|x| - |y| precisely measures the distance between them. If one of them is zero, the absolute values and the actual difference are equivalent.

Solving Inequations§

The following inequations help you solve inequations:

  1. For a>0a>0,

    ∣x∣<a  ⟹  −a<x<a|x| < a \implies -a < x < a

    Proof:

    To validate this, consider the nature of absolute values and break it down into two cases based on the value of xx:

    Case 1: x≥0x \geq 0

    • For non-negative values of xx, the absolute value ∣x∣|x| is simply xx itself. Hence, the condition ∣x∣<a|x| < a translates to:
    x<ax < a
    • This means that for x≥0x \geq 0, the values of xx must be less than aa. Thus, x∈[0,a)x\in[0,a)

    Case 2: x<0x < 0

    • For negative values of xx, the absolute value ∣x∣|x| is −x-x (since absolute value measures distance from zero on a number line, which is always positive). Therefore, the condition ∣x∣<a|x| < a translates to:
    −x<a-x < a
    • Multiplying both sides of the inequality by -1 (and flipping the inequality because of the multiplication by a negative number) yields:
    x>−ax > -a
    • Thus, for x<0x < 0, the values of xx must be greater than −a-a. Thus, x∈(−a,0)x\in(-a,0)

    Combining the Solutions:

    • Combining both solutions x∈[0,a)x\in[0,a) and x∈(−a,0)x\in(-a,0), we get
    −a<x<a-a < x < a
  2. For a>0a > 0, the inequality ∣x∣>a|x| > a implies x>ax > a or x<−ax < -a.

    Proof:

    To prove this, consider the definition of absolute value, which states ∣x∣=x|x| = x if x≥0x \geq 0 and ∣x∣=−x|x| = -x if x<0x < 0:

    1. If x≥0x \geq 0, then ∣x∣=x|x| = x, and ∣x∣>a|x| > a simplifies to x>ax > a.
    2. If x<0x < 0, then ∣x∣=−x|x| = -x, and ∣x∣>a|x| > a simplifies to −x>a-x > a. Multiplying both sides by −1-1 (and reversing the inequality) gives x<−ax < -a.

    Combining both cases, xx must either be greater than aa or less than −a-a, which completes the proof.

Section 6 of 7 · Basic Maths

Mark this section complete when you have worked through its proofs.