# How do you graph f(x)=-x+1?

Jan 4, 2017

A straight line with slope of $- 1$ and $y$ intercept of $+ 1$

#### Explanation:

A straight line with slope $m$ and $y$-intercept $\left(c\right)$ is $y = m x + c$

In this example:

$f \left(x\right) = y = - x + 1$

Hence: $m = - 1$ and $c = + 1$

The graph of $f \left(x\right)$ is shown below.

graph{-x+1 [-2.738, 2.737, -1.371, 1.365]}