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.

Graphs of y equals square root of x squared and y equals absolute value of x coinciding as a V through the origin A coordinate plane with the horizontal axis from minus four to four and the vertical axis from zero to four. A sharp V-shaped curve is drawn through the origin: one arm goes up and to the left to minus four comma four, the other arm goes up and to the right to four comma four. The curve is labelled y equals absolute value of x in orange and y equals square root of x squared in a dashed green overlay, with a note saying these are the same curve. Sample points are marked at minus three comma three, minus two comma two, two comma two, and three comma three. x y −3 −2 −1 1 2 3 1 2 3 y = |x| y = √(x²) Same curve. Dashed green lies exactly on top of solid orange. (−3, 3) (−2, 2) (2, 2) (3, 3)
Solid orange is $y = |x|$; dashed green is $y = \sqrt{x^2}$. They are the same curve — a V-shape meeting at the origin. For $x = 3$, both functions give $3$. For $x = -3$, both functions give $3$. The V never dips below the x-axis, because neither an absolute value nor a principal square root can produce a negative output.

Look at what happens at x = -3:

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:

\sqrt{x^2} = |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:

\sqrt{x^2} = x \quad \text{(WRONG for negative } x\text{)}

This is right when x \geq 0 but wrong when x < 0. The correct statement covers both cases:

\sqrt{x^2} = |x| \quad \text{(always correct)}

The error usually shows up when solving equations. Consider the innocent-looking equation

x^2 = 25

If you take the square root of both sides carelessly, you get "x = 5," losing the negative solution -5. The careful version is

\sqrt{x^2} = \sqrt{25} \implies |x| = 5 \implies x = \pm 5

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."

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:

\sqrt{(a - b)^2} = |a - b|

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