Ask a friend to sketch y = \sqrt{x^2} on a piece of paper. Ask another friend to sketch y = |x|. You will get two drawings of the same sharp V-shape through the origin — one line going up-and-to-the-right, another line going up-and-to-the-left, meeting at a corner at (0, 0).
The two functions are identical. Not approximately. Not only for positive x. Identical, for every real x. And once you see why, one of the most common errors in school algebra — writing \sqrt{x^2} = x — goes away forever.
The two curves on the same axes
Here is the picture that makes it obvious.
Look at what happens at x = -3:
- |-3| = 3. The absolute value strips the minus sign.
- \sqrt{(-3)^2} = \sqrt{9} = 3. The square destroys the sign, and the square root then picks the positive one.
Both give 3, not -3. Same answer, produced by a slightly different route.
The algebraic reason
Here is the one-line proof. For any real x:
Why? Work through the two cases.
Case 1: x \geq 0. Then x^2 \geq 0 and \sqrt{x^2} is the non-negative number whose square is x^2. That number is just x itself. And |x| = x for non-negative x. Both sides equal x.
Case 2: x < 0. Then x^2 > 0 still, and \sqrt{x^2} is the non-negative number whose square is x^2. That non-negative number is -x (which is positive, since x is negative). And |x| = -x for negative x. Both sides equal -x.
In both cases, \sqrt{x^2} and |x| agree. The two functions are the same.
Why the absolute value is needed: the square root is a function, so it returns exactly one output per input. By convention (the "principal root" convention from Roots and Radicals), that output is never negative. So \sqrt{9} is 3, not -3. When x is negative, \sqrt{x^2} cannot return x directly — that would be a negative number, which violates the convention. The next best thing is -x, which is positive and also squares to x^2. The absolute value |x| is the compact notation for "use x if non-negative, else use -x" — exactly what the principal root computes.
The most common mistake
Every year, thousands of students write:
This is right when x \geq 0 but wrong when x < 0. The correct statement covers both cases:
The error usually shows up when solving equations. Consider the innocent-looking equation
If you take the square root of both sides carelessly, you get "x = 5," losing the negative solution -5. The careful version is
The absolute value on the left-hand side is not a stylistic preference; it is what the square-root function actually returns. Dropping it is how you lose half your solutions.
The V is the graph of "distance from zero"
Both functions have the same plain-language meaning: "the distance of x from zero on the number line."
- |x| is defined directly as "the distance from x to 0." |-3| = 3 because -3 is three units away from the origin.
- \sqrt{x^2} squares first, which makes the sign irrelevant (distance squared doesn't care about direction), then takes the positive root, which gives back the magnitude. Same outcome: the distance.
The V-shape in the graph is the distance-from-zero function drawn along the x-axis: zero at the origin, one at x = \pm 1, two at x = \pm 2, and so on. The two arms of the V each have slope 1 in magnitude, because "every unit further from zero is exactly one unit higher on the graph."
This interpretation shows up all over JEE and class XII — in solving equations like |x - 3| = 2, in inequalities like |2x + 1| \leq 5, and in the definition of limits and continuity. The "distance from zero" reading is the same idea wearing \sqrt{\,\,} notation instead of vertical-bar notation.
A subtle variation: \sqrt{(a - b)^2} = |a - b|
The identity generalises. If you square any real expression and then take the principal square root, you get the absolute value of that expression:
This is the formula for the distance between a and b on the number line, and it is the one-dimensional case of the Euclidean distance formula you will meet in coordinate geometry. The magnitude bars are the correct bookkeeping — without them, you would get a negative distance when a < b, which makes no geometric sense.
For example, \sqrt{(3 - 5)^2} = \sqrt{4} = 2 = |3 - 5|, and \sqrt{(5 - 3)^2} = \sqrt{4} = 2 = |5 - 3|. The distance between 3 and 5 is 2 either way you compute it, because the square destroys the direction.
Why the graph has a sharp corner
Look again at the V: the curve changes direction abruptly at x = 0. This corner has a formal name — the function |x| (and therefore \sqrt{x^2}) is not differentiable at x = 0. The slope is +1 just to the right of zero and -1 just to the left, and those two slopes do not agree, so there is no single tangent line at the corner.
This is the simplest example of a continuous-but-not-smooth function, and you will meet it again when you study derivatives. The fact that \sqrt{x^2} has a corner is a direct consequence of squaring before rooting: squaring folds the left half of the y = x line up onto the right half, and that fold-line becomes the corner of the V when you undo the square.
The takeaway
\sqrt{x^2} and |x| are the same function. They plot as the same V-shape through the origin. They both represent the distance of x from zero. Treat the identity \sqrt{x^2} = |x| as a reflex — especially when solving equations — and you will never accidentally lose a negative solution again.
Related: Roots and Radicals · √(x²) Is Just x — Why Do Some Teachers Say It's |x|? · Absolute Value Equations · Exponents and Powers