WordGPT

Graph of y = āˆ’x + 1

The graph of y = āˆ’x + 1 is a straight line with slope -1 and y-intercept 1. It crosses the y-axis at (0, 1) and the x-axis at (1, 0).

Graph of y = āˆ’x + 1-6-4-2246-10-8-6-4-2246810xy(0, 1)(1, 0)y = āˆ’x + 1
Graph of y = āˆ’x + 1. Drag to move, scroll or pinch to zoom, double-click to reset.
f(x) =
ddx[āˆ’x+1]=āˆ’1\frac{d}{dx}\left[-x + 1\right] = -1

Type any function of x; the derivative is computed symbolically in your browser.

How to work it out

  1. 1

    Read the slope and the y-intercept. A line is y = mx + b, where m is the slope and b is where it crosses the y-axis. Here m = -1 and b = 1.

    y=āˆ’x+1y = -x + 1
  2. 2

    Plot the y-intercept: the point (0, 1) is on the line because x = 0 gives y = 1.

    y=āˆ’1ā‹…0+1=1y = -1\cdot 0 + 1 = 1
  3. 3

    Use the slope -1 = -1/1 as rise over run: from any point, go 1 to the right and down 1. From (0, 1) that gives the point (1, 0).

    (0,ā€…ā€Š1)→(1,ā€…ā€Š0)(0,\;1) \to (1,\;0)
  4. 4

    Find where it crosses the x-axis by setting y = 0 and solving for x.

    0=āˆ’x+1ā€…ā€Šā‡’ā€…ā€Šx=10 = -x + 1 \;\Rightarrow\; x = 1
  5. 5

    Draw the straight line through these points and extend it both ways. It falls from left to right (it is decreasing).

LaTeX source of the formulas on this page
\[ y = -x + 1 \]
\[ y = -1\cdot 0  + 1 = 1 \]
\[ (0,\;1) \to (1,\;0) \]
\[ 0 = -x + 1 \;\Rightarrow\; x = 1 \]

Table of values

xy
-34
-23
-12
01
10
2-1
3-2

Questions

What is the slope of y = āˆ’x + 1?

The slope is -1. For every 1 step to the right the line goes down 1.

What is the y-intercept of y = āˆ’x + 1?

The y-intercept is 1: the line crosses the y-axis at (0, 1).

What is the x-intercept of y = āˆ’x + 1?

Set y = 0: āˆ’x + 1 = 0, so x = 1 (about 1). The line crosses the x-axis at (1, 0).

Is y = āˆ’x + 1 increasing or decreasing?

Decreasing, because the slope -1 is negative. The line makes an angle of about -45° with the x-axis.

What is the slope of a line perpendicular to y = āˆ’x + 1?

1, the negative reciprocal of -1. A line parallel to it has the same slope -1.

Nearby lines

    Graph of y = āˆ’x + 1: slope, intercepts and table of values | WordGPT