# How do you create a table and graph the equation y=2x-1?

Oct 27, 2014

You can create a table by substituting any value for $x$ and then solving for $y$. I'll be taking 3 values:

1. Let $x = 0$
Then,
$y = 2 \left(0\right) - 1$
$y = - 1$
2. Let $x = 1$
Then,
$y = 2 \left(1\right) - 1 = 2 - 1$
$y = 1$
3. Let $x = 2$
Then,
$y = 2 \left(2\right) - 1 = 4 - 1$
$y = 3$

We can then make a table for $x$ and corresponding $y$ values as follows:

$x \star \cdot \left(0\right) \star \cdot \left(1\right) \star \cdot \left(2\right)$
$y \star \cdot \left(- 1\right) \star \cdot \left(1\right) \star \cdot \left(3\right)$

So, you'll get three points on the graph with x-coordinates and y-coordinates that can be taken from the table as $\left(0 , - 1\right) , \left(1 , 1\right) \mathmr{and} \left(2 , 3\right)$

Plot the points, and pass a straight line through them. The graph will look something like this: