Graph of y = −x (Negative identity)

· How we calculate · Free, no sign-up

Quick answer

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

Functiony = −x
DomainAll real numbers (−∞, ∞)
RangeAll real numbers (−∞, ∞)
x-intercept(s)x = 0
y-intercepty = 0
Derivative−1
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 next to y = x in the interactive grapher.Open the Graphing Calculator →

What the graph of y = −x looks like

y = −x falls one unit for every unit you move right, running from the top-left (second quadrant) to the bottom-right (fourth quadrant) through the origin. It is the reflection of y = x in the x-axis — and equally in the y-axis, since −(x) and (−x) are the same thing.

The lines y = x and y = −x are perpendicular (their slopes multiply to −1) and together form the diagonals of the coordinate grid. y = −x is also its own inverse: applying it twice returns the original number.

Key features of y = −x

Key features of y = −x
PropertyValue
Functiony = −x (Negative identity)
FamilyLinear
DomainAll real numbers (−∞, ∞)
RangeAll real numbers (−∞, ∞)
x-intercept(s)x = 0
y-intercepty = 0
SymmetryOdd — symmetric about the origin
AsymptotesNone
PeriodNot periodic
Increasing onNever
Decreasing on(−∞, ∞)
Key pointsPasses 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 and the y-axis at y = 0.

Table of values for y = −x

Values of y = −x
xy = −xSlope f′(x)
−33−1
−22−1
−11−1
00−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: Never; decreasing: (−∞, ∞).

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