y=xy = x

Graph of the Linear Function y=xy = x

y=xy = x is the simplest linear function: slope 11, intercept 001. It is the general linear function y=ax+by = ax + b with a=1a = 1 and b=0b = 0, and because it returns whatever value it is given, it is also called the identity function2. It is likewise the power function y=xny = x^n with n=1n = 1.

Domain and range

  • The domain is all real numbers
  • The range is all real numbers
  • Every real value is attained exactly once

Slope and intercepts

The slope is 11: each time xx increases by 11, yy increases by 11 as well, so the rate of change ΔyΔx\dfrac{\Delta y}{\Delta x} equals 11 everywhere on the graph. The line makes a 4545^\circ angle with the xx-axis, and both its yy-intercept and its xx-intercept are the origin.

Symmetry

Since f(x)=x=f(x)f(-x) = -x = -f(x), it is an odd function with point symmetry about the origin, running straight through the first and third quadrants.

Monotonicity

QuantityValueConsequence
yy'11increases monotonically
yy''00never bends

There is no maximum, no minimum and no inflection point. The rate of growth never changes, which makes this the simplest possible form of increase.

Notable points

xxyy
1-11-1
0000
1111
100100100100

The graph is precisely the condition that xx and yy have the same value.

Relationships with other functions

The line y=xy = x acts as a mirror between a function and its inverse: the graphs of y=f(x)y = f(x) and y=f1(x)y = f^{-1}(x) are reflections of each other across it.

FunctionInverse
y=exy = e^xy=lnxy = \ln x
y=x2y = x^2 (x0x \geq 0)y=xy = \sqrt{x}
y=x3y = x^3y=x3y = \sqrt[3]{x}

The general linear function y=ax+by = ax + b can be read as this same line with its slope changed to aa and shifted vertically by bb.

Applications

y=xy = x represents the operation that changes nothing. In a scatter plot of predicted against observed values, the points lying on this line are exactly the ones the prediction got right, so it is drawn as the reference line for judging goodness of fit. In models of proportionality it is the starting point: the plainest case, with constant of proportionality 11.

  1. Linear function, Wikipedia
  2. Identity function, Wikipedia