# How do you write the equation given (0,0); (-2,7)?

##### 2 Answers

See a solution process below:

#### Explanation:

First, we must determine the slope of the line running through the two points given in the problem. The slope can be found by using the formula:

Where

Substituting the values from the points in the problem gives:

Now, we can use the point-slope formula to write an equation for the line. The point-slope formula states:

Where

Substituting the slope we calculated and the values from the first point in the problem gives:

We can also substitute the slope we calculated and the values from the second point in the problem giving:

We can also take the first equation and write this in slope-intercept form. The slope-intercept form of a linear equation is:

Where

#### Explanation:

The find the equation of a line or gradient, first find the slope via the formula:

If we let

**This is the slope of the line/gradient**

Now that we have found the slope we can find the equation via the point-slope formula:

by substituting

Thus,

If we simplify this, we simply get

**This is our equation**

Graph:

graph{-7/2x [-10, 10, -5, 5]}