An absolute value function is a function that takes the absolute value of the input. The absolute value of a number is its distance from zero on the number line, regardless of direction, meaning it is always a non-negative value. The general form of an absolute value function is:
f(x) = ∣x∣
Where:
- f(x) is the output of the function,
- x is the input,
- ∣x∣ denotes the absolute value of x, which is defined as:
- If x ≥ 0, then ∣x∣ =x,
- If x < 0, then ∣x∣ = −x.
In simple words, we can say the absolute value of a number is its distance from zero on the number line, no matter which direction (positive or negative) it is. Mathematically, the absolute value function is defined as:
y=|x|=\begin{cases} x,& x \ge 0 \\ -x, & x<0 \end{cases}

Examples:
Properties of Absolute Value Function
Some of the common properties related to the Absolute Value Function are:
A function f(x) is idempotent if and only if f(f(x)) = f(x). The modulus function f(x) = |x| is idempotent because applying the modulus function twice does not change the result:
| | x | | = | x | ; x ∈ ℝ
The absolute value of any real number is always non-negative.
| x | ≥ 0; for all x ∈ ℝ
The absolute value of the product of two numbers is equal to the product of the individual moduli of both numbers.
| ab | = | a | | b | for all a, b ∈ ℝ
The absolute value of x is zero if and only if x is zero.
| x | = 0 ⇔ x = 0
The absolute value function |x| is symmetric with respect to origin. Mathematically, this is repesented by:
| -x | = | x |
The modulus of the sum of two numbers is less than or equal to the sum of the moduli of the individual numbers. If a, b \in\R, then:
∣ a + b ∣ ≤ ∣ a ∣ + ∣ b ∣
The triangle inequality has several variations. Here are three common forms:
- If a,b \in\R, then |\,|a|-|b|\,|\le|a-b|.
- If a,b \in\R, then |a-b|\le|a+b|.
- If a_1,a_2,a_3,... ,a_n are any real numbers, then |a_1+a_2+a_3+...+a_n|\le|a_1|+|a_2|+|a_3|+...+|a_n|.
Properties of Absolute Value Inequalities
Some of the common properties of the modulus function involving inequalities are:
- If c\ge, then |a|\lec if and only if -c\le a\le c.
- If b is a real number, then -|b|\le b\le|b|.
- If a and b are real numbers, then |a|\ge b if and only if a\in (-\infty,-b]\cup[b,\infty).
Graph of Absolute Value Function
In general, the graph of a modulus function is V-shaped. For example, the graph of the modulus function |x| is V-shaped with its vertex at the origin. To plot the graph of a modulus function, we need to simplify the modulus expression based on the sign of the function inside the modulus. This involves finding the intervals in which the function is positive or negative.
After simplifying, plot the graph of each individual equation obtained by simplifying the modulus function. For example, let us plot the graph of y=|x|. By the definition of modulus function, |x| can be simplified in following manner,
y=|x|=\begin{cases} x,& x \ge 0 \\ -x, & x<0 \end{cases}
1. For x\ge0, the equation is y = x, which is straight line passing through origin with slope of 1.
2. For x < 0, the resultant equation is y = -x, which is a straight line passing through origin with slope -1. After plotting the graph of both equation, we obtain the plot of y = |x|, as shown below:

By observing the above graph, we can see that the graph of |x| is symmetric about y-axis. This is known as the symmetric property of modulus function. The line of symmetry passes through vertex of absolute value function. The vertex is the point where the graph changes direction.
Absolute Value Function of Complex Number
The absolute value of any complex number gives the distance of that number from the origin. If z is a complex number, z=x+\iota y then the absolute value of z, denoted as |z|, gives the distance of z from the origin and is given below:
|z| = |\ x \ + \ y\iota| = \sqrt{x^2 \ + \ y^2}
Example: Find the distance of z=4+3\iota from the origin.
Solution:
Absolute value of z is,
|z| = |4+3\iota| \\ |z| = (\ 4^2 \ + \ (3)^2)^1 \ ^/ \ ^2 \\ |z| = (\ 16 \ + \ 9)^1 \ ^/ \ ^2\\ |z| = (25)^1 \ ^/ \ ^2\\ |z| = 5
Thus, the distance of z from origin is 5 unit, the graphical representation of z=4+3i is given by following plot.
Absolute Value Function in Calculus
In calculus we study continuity, differentiablity, derivative and integration of absolute value function.
Continuity of Absolute Value Function
A function f(x) is continuous at point x=a if the function satisfies the following condition:
\lim_{x \to a} f(x)= f(a) \\\lim_{x \to a^-} f(x)= f(a^-) = f(a) \quad \text{[Left hand limit]} \\\lim_{x \to a^+} f(x)= f(a^+) = f(a) \quad \text{[Right hand limit]}
Example: Check the continuity of y = |x| at x = 0.
Solution:
\lim_{{x \to 0^+}} |x| = \lim_{{x \to 0^+}} x = 0 \quad \text{[Right Hand Limit]} \\\lim_{{x \to 0^-}} |x| = \lim_{{x \to 0^-}} (-x) = 0 \quad \text{[Left Hand Limit]} \\\therefore f(0^-) = f(0^+) = f(0) = 0
Since the limit exists at x = 0 and it is equal to value of y=|x| which is 0 ,the function y = |x| is continous at x = 0.
Differentiability of Absolute Value Function
A function f(x) is differentiable at a point x=c if the derivative exists at that point and it is given by,
f'(c)\ =\ \lim_{{h \to 0}}\frac{f(c+h) - f(c)}{h}
Example: Check differentiability of y=|x| at x=0.
Solution:
f'(0) \ =\ \lim_{{h \to 0}} \frac{|0+h| - |0|}{h} = \lim_{{h \to 0}} \frac{|h|}{h}
For h > 0:
\lim_{{h \to 0^+}} \frac{|h|}{h} = \lim_{{h \to 0^+}} \frac{h}{h} = 1.
For h < 0:
\lim_{{h \to 0^-}} \frac{|h|}{h} = \lim_{{h \to 0^-}} \frac{-h}{h} = -1.
Since, the value of left hand limit and right hand limit are not equal, the limit doesn't exist. And hence, the function y=|x| is not differentiable at x=0.
Derivative of Absolute Value Function
The derivation of moudulus function f(x) is given by,
\frac{d}{dx}|f(x)|=\begin{cases}\frac{d}{dx}f(x)\quad &;f(x)>0\\\frac{d}{dx}(-f(x))\quad &;f(x)<0\end{cases}
Example: Find the derivative of y=|x| for all x\in\R.
Solution:
When x>0:
\frac{d}{dx}|x|=\frac{d}{dx}x=1
When x<0:
\frac{d}{dx}|x|=\frac{d}{dx}(-x)=-1
Integration of Absolute Value Function
Integration involving the absolute value function can be solved using its properties: if the expression inside the modulus is positive, the modulus can be removed with a positive sign; if the expression inside the modulus is negative, the modulus can be removed with a negative sign
To integrate such functions, it's necessary to identify the points where the expression inside the modulus changes sign. We then split the integral at these points and integrate the resulting expressions accordingly. This method allows us to handle absolute value functions effectively in integration problems.
Example: Find the value of integral I =\int\limits_{-5}^{5} |x| \, dx.
Solution:
|x|=\begin{cases} \ \ x \quad;&x \ge 0 \\ -x \quad;&x<0 \end{cases}
then,
I=\int\limits_{-5}^{5} |x|\,dx \\I=\int\limits_{-5}^{0} |x|dx+\int\limits_{0}^{5} |x|dx\\ \\ I=\int\limits_{-5}^{0} (-x)dx+\int\limits_{0}^{5} x \ dx \\I =-\int\limits_{-5}^{0} (x)dx+\int\limits_{0}^{5} x \ dx \\I=-[\frac{x^2}{2}]_{-5}^{0}+ [\frac{x^2}{2}]_{0}^{5}\\I=-[\frac{0^2}{2}-\frac{(-5)^2}{2}]+[\frac{5^2}{2}-\frac{0^2}{2}] \\I=0+ \frac{25}{2} + \frac{25}{2}-0 \\ \therefore I=25
Solved Examples on Absolute Value Function
Example 1: Find the value of x for |x-2| = 3.
Solution:
First, Identify the value of x for which the expression inside the modulus function becomes zero.
In this example, the function inside the modulus, f(x) = x-2, becomes zero at x=2.
By definition of absolute value function, when x>2 the modulus will open with positive sign and when x<2 it will open with negative sign.
For x > 2
|x - 2| = 3
x - 2 = 3
x = 5
And for x < 2:
|x - 2| = 3
-(x - 2) = 3
x - 2 = -3
x = -3+2
x = -1
Therefore, the value of x are 5 or -1.
Example 2: Find the value of x for |x-5| = 0.
Solution:
In this question when x is greater than 5 it will open will positive sign and it will open with negative sign when x is less than 5.
For x\ge0 and x<0,
|x-5| = 0
±(x-5) = 0
x-5 = 0
x = 5
Example 3: Solve the inequality for x: |x-4| > 3.
Solution:
Inequality |x-4| > 3 means that the distance between x and 4 is greater than 3.
This can be split into two separate inequalities:
- When x>4, the inequality becomes x-4>3.
- When x<4, the inequality becomes -(x-4)>3, which is equivalently x-4 < -3.
Now, let's solve these inequalities separately.
Solving the inequality when x>4:
\Rightarrowx-4>3
Adding 4 to both sides, we get:
\Rightarrowx>7
Solving the inequality when x<4:
\Rightarrowx-4<-3
Adding 4 to both sides, we get:
\Rightarrowx<1
The solution to |x-4|>3 is the union of the solutions to the two cases:
\Rightarrow x>7 \,\cup\,x<1\\\Rightarrow x\in(-\infty,1)\cup(7,\infty)
Example 4: Solve the inequality for x: \frac{|x-4|}{|x+4|}>0.
Solution:
\Rightarrow\frac{|x-4|}{|x+4|}>0
The above inequality can be rearranged to:
\Rightarrow\frac{|x-4|}{|x+4|}\cdot|x+4|>0\cdot |x+4|
Since |x+4| is a positive quantity, it does not affect the inequality. Therefore, for x\in\R-\{-4\}:
\Rightarrow|x-4|>0
Using the property, |a|\ge b\iff a\in (-\infty,-b]\cup[b,\infty) we get:
x-4 > 0 or x-4 < 0
Adding 4 on both sides:
x > 4 or x < 4
Therefore, the final solution will be:
\Rightarrow x\in(-\infty,4)\cup(4,\infty)-\{-4\} or x\in\R\,-\,\{-4,4\}.
Example 5: Solve the inequality for x: |x-4|(x-5) > 0.
Solution:
Critical points are x = 4, and x = 5, where the product is zero. The expression |x-4| is always non-negative, and the factor x-5 is greater than zero when x>5.
Therefore, the expression |x-4|(x-5) is greater than zero if and only if x > 5.
Solution will be: x > 5
Practice Questions on Absolute Value Function
Question 1: Find the value of x in the following equations.
- |x-1| = 1
- |3x+5| = 0
- |x|(x+2) = 5
- \frac{x}{|x-1|} = 3
- |2x-4| = |x+2|
Question 2: Solve the following inequalities.
- |x-3| < 1
- |3x+1| \le 4
- |2x-3| \ge 3
- \frac{|x|}{|x+1|} < 2
- |1+\frac{4}{x}| > 5
Question 3: Prove the following.
- |a^2|=|a|^2
- |a^3|=|a|^3
Question 4: Find the point at which the function is not differentiable.
- |x-1|
- |2x+5|
- \frac{1}{3x-7}-5
Answer Key
Answer key for Q1
- x = 2 or 0
- x = \frac{-5}{3}
- x = -1-\sqrt{6} or -1+\sqrt{6}
- x = \frac{2}{3} or \frac{3}{4}
- x = 6 or \frac{2}{3}
Answer key for Q2
- 2 < x < 4
- -\frac{5}{3} \le x \le 1
- x\in(-\infty,0] \cup[3,\infty)
- -2<x<-1 or -\frac{2}{3}<x<2
- x<-\frac{2}{3} or 0<x<1
Answer key for Q4
- x = 1
- x = \frac{-5}{2}
- x = \frac{7}{3}
Related Articles:
Explore
Maths
4 min read
Basic Arithmetic
Algebra
Geometry
Trigonometry & Vector Algebra
Calculus
Probability and Statistics
Practice