Graph of y = x

Linear functions · Updated 2026-11-26

Quick answer

The graph of y = x is a linear function. Its domain is all real numbers and its range is all real numbers. It crosses the x-axis at (0, 0) and the y-axis at (0, 0).

−10−8−6−4−2246810−6−4−2246
  • y=x
Open in graphing calculator

Click the curve to show intercepts and turning points.

Key features

DomainAll real numbers
RangeAll real numbers
x-intercepts(0, 0)
y-intercept(0, 0)
Turning pointsNone
Symmetryodd (symmetric about the origin)
AsymptotesNone
End behaviorAs x → −∞, y → −∞; as x → ∞, y → ∞
Derivativey′ = 1
Second derivativey″ = 0

The identity function maps every input to itself. Its graph is the line through the origin at 45°, and it is the line every inverse function is reflected across.

Table of values

x−3−2−10123
y−3−2−10123

How to graph y = x

  1. Open the graphing calculator and type y = x.
  2. Plot the y-intercept (0, 0).
  3. Plot the x-intercepts: (0, 0).
  4. Use the table of values to add a few more points, then connect them with a smooth curve that follows the end behavior.

About linear functions

A linear function has a constant rate of change, so its graph is a straight line. In slope-intercept form y = mx + b, m is the slope and b is the y-intercept.

Frequently asked questions

What is the domain and range of y = x?

Domain: All real numbers. Range: All real numbers.

What are the x-intercepts of y = x?

(0, 0).

What is the derivative of x?

1. Graph it by defining f(x) = x and typing f'(x).

Is x even, odd or neither?

It is odd (symmetric about the origin).