Graph of y = x (Identity function)

· How we calculate · Free, no sign-up

Quick answer

The graph of y = x is a straight line through the origin with slope 1 (a 45° line). Domain: All real numbers (−∞, ∞); range: All real numbers (−∞, ∞). x-intercept: x = 0 (the origin); y-intercept: y = 0. It is odd (symmetric about the origin).

Functiony = x
DomainAll real numbers (−∞, ∞)
RangeAll real numbers (−∞, ∞)
x-intercept(s)x = 0 (the origin)
y-intercepty = 0
Derivative1
Graph of y = x for −5 ≤ x ≤ 5−5−4−3−2−1012345−5−4−3−2−1012345
Graph of y = x for −5 ≤ x ≤ 5, −5 ≤ y ≤ 5. Dots mark intercepts.
Zoom, pan and trace y = x in the interactive grapher.Open the Graphing Calculator →

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

Key features of y = x
PropertyValue
Functiony = x (Identity function)
FamilyLinear
DomainAll real numbers (−∞, ∞)
RangeAll real numbers (−∞, ∞)
x-intercept(s)x = 0 (the origin)
y-intercepty = 0
SymmetryOdd — symmetric about the origin
AsymptotesNone
PeriodNot periodic
Increasing on(−∞, ∞)
Decreasing onNever
Key pointsPasses through (−1, −1), (0, 0) and (1, 1)
Derivative f′(x)1
Antiderivative ∫ f(x) dxx²/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

Values of y = x
xy = xSlope f′(x)
−3−31
−2−21
−1−11
001
111
221
331

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

Browse all graphs of common functions by family, or open the graphing calculator.

Frequently asked questions

What is the domain and range of y = x?

Domain: All real numbers (−∞, ∞). Range: All real numbers (−∞, ∞).

What are the intercepts of y = x?

x-intercept(s): x = 0 (the origin). y-intercept: y = 0.

What is the derivative of y = x?

f′(x) = 1. At x = 1 the curve is at height 1 and its slope is f′(1) = 1, so the tangent line there is y = x.

Is y = x even, odd or neither?

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.

Does y = x have asymptotes?

None.