What the graph of y = x looks like
The graph of y = x is the simplest straight line: every output equals its input, so it passes through (1, 1), (2, 2), (−3, −3) and so on. It rises one unit for every unit you move right, which makes it climb at exactly 45° when both axes use the same scale. It splits the first and third quadrants in half.
This line is also the mirror used for inverse functions: reflecting any graph in y = x swaps x and y, which is how y = √x is obtained from y = x² (for x ≥ 0) and y = ln x from y = eˣ.
Key features of y = x
| Property | Value |
|---|---|
| Function | y = x (Identity function) |
| Family | Linear |
| Domain | All real numbers (−∞, ∞) |
| Range | All real numbers (−∞, ∞) |
| x-intercept(s) | x = 0 (the origin) |
| y-intercept | y = 0 |
| Symmetry | Odd — symmetric about the origin |
| Asymptotes | None |
| Period | Not periodic |
| Increasing on | (−∞, ∞) |
| Decreasing on | Never |
| Key points | Passes through (−1, −1), (0, 0) and (1, 1) |
| Derivative f′(x) | 1 |
| Antiderivative ∫ f(x) dx | x²/2 + C |
Symmetry: Odd — symmetric about the origin. For example f(2) = 2 while f(−2) = −2, its negative, so the graph looks the same after a half-turn about the origin. Intercepts: the graph meets the x-axis at x = 0 (the origin) and the y-axis at y = 0.
Table of values for y = x
| x | y = x | Slope f′(x) |
|---|---|---|
| −3 | −3 | 1 |
| −2 | −2 | 1 |
| −1 | −1 | 1 |
| 0 | 0 | 1 |
| 1 | 1 | 1 |
| 2 | 2 | 1 |
| 3 | 3 | 1 |
How to sketch y = x by hand
Plot the points from the table — (−3, −3), (−2, −2), (−1, −1), (0, 0), (1, 1), (2, 2) — on axes running from about −5 to 5 horizontally. There are no asymptotes to draw. Then join the points with a smooth curve. As a check on the shape — increasing: (−∞, ∞); decreasing: Never.
Derivative, tangent line and area
The derivative of y = x is 1, which gives the slope of the curve at each point (the third column of the table). At x = 1 the curve is at height 1 and its slope is f′(1) = 1, so the tangent line there is y = x.
The signed area under the curve from x = 0 to x = 1 is 0.5, found using the antiderivative x²/2 + C.
Related graphs and transformations
- y = −x — Reflect in the x-axis (slope −1)
- y = 2x + 1 — Steeper slope 2, shifted up 1
- y = x² — Square the output: a parabola
- y = |x| — Take |x|: the V-shape
- y = x³ — Cube instead: same intercept, an S-curve
Browse all graphs of common functions by family, or open the graphing calculator.