# How to Give the equation of a line with a known slope and y-intercept

When graphing a line we found one method we could use is to make a table of values. However, if we can identify some properties of the line, we may be able to make a graph much quicker and easier. One such method is ﬁnding the slope and the y-intercept of the equation. The slope can be represented by m and the yintercept, where it crosses the axis and x = 0, can be represented by (0, b) where b is the value where the graph crosses the vertical y-axis. Any other point on the line can be represented by (x, y). Using this information we will look at the slope formula and solve the formula for y.

**Example 1:**

m, (0, b), (x, y)

Also Read:

Using the slope formula gives:

Simplify

Multiply both sides by x

y – b = mx

add b to both sides, so the solution is:

y = mx + b

This equation, y = mx + b can be thought of as the equation of any line that as a slope of m and a y-intercept of b. This formula is known as the slope-intercept equation.

**Slope **–**Intercept Equation**: y =mx +b

If we know the slope and the y-intercept we can easily ﬁnd the equation that represents the line.

**Example 2:**

Find the equation, if the slope is

Solution:

Use the slope -intercept equation

Slope , y – intercept is -3

m is the slope, b is the y –intercept and we find the equation.

y = mx + b

.

We can also ﬁnd the equation by looking at a graph and ﬁnding the slope and y – intercept.

**Also Read : **How to Find the slope of a line given a graph or two points.

**Example 3:**

Identify the point where the graph crosses the y-axis (0,3). This means the y-intercept is 3. Idenﬁty one other point and draw a slope triangle to ﬁnd the slope. The slope is

y =mx +b Slope-intercept equation, so the equation is

We can also move the opposite direction, using the equation identify the slope and y-intercept and graph the equation from this information. However, it will be important for the equation to first be in slope intercept form. If it is not, we will have to solve it for y so we can identify the slope and the y-intercept.

**Example 4:**

Write in slope -intercept form: 2x – 4y = 6

Solution:

Solve for y

Subtract 2x from both sides (and put x first term)

2x – 2x – 4y = -2x + 6

-4y = -2x + 6

Divide each term by -4 and the solution is

Once we have an equation in slope-intercept form we can graph it by first plotting the y-intercept, then using the slope, find a second point and connecting the dots.

**Example 5:**

Graph

Solution:

Recall the slope -intercept formula

y = mx + b

Identify the slope, m, and the y -intercept, b

latex y=\frac{1}{2}x-4$

latex m=\frac{1}{2}$ and b = -4

Make the graph

Starting with a point at the y-intercept of -4, Then use the slope , so we will rise 1 unit and run 2 units to ﬁnd the next point.

Once we have both points, connect the dots to get our graph.

**World View Note: **Before our current system of graphing, French Mathematician Nicole Oresme, in 1323 sugggested graphing lines that would look more like a bar graph with a constant slope!

**Example 6:**

Graph 3x +4y =12

Solution :

The equation 3x + 4y = 12 is Not in slope intercept form. Subtract 3x fromboth sides

3x – 3x + 4y = -3x + 12

4y = -3x + 12

Divide each term by 4 and Recall slope -intercept equation

Identify m and b

y = mx + b

, and b = 3

Make the graph

Starting with a point at the y-intercept of 3, Then use the slope , but its negative so it will go downhill, so we will drop 3 units and run 4 units to find the next point. Once we have both points, connect the dots to get our graph.

We want to be very careful not to confuse using slope to ﬁnd the next point with use a coordinate such as (4, – 2) to ﬁnd an individule point. Coordinates such as (4, – 2) start from the origin and move horizontally ﬁrst, and vertically second. Slope starts from a point on the line that could be anywhere on the graph. The numerator is the vertical change and the denominator is the horizontal change.

Lines with zero slope or no slope can make a problem seem very diﬀerent. Zero slope, or horiztonal line, will simply have a slope of zero which when multiplied by x gives zero. So the equation simply becomes y = b or y is equal to the y-coordinate of the graph. If we have no slope, or a vertical line, the equation can’t be written in slope intercept at all because the slope is undefined. There is no y in these equations. We will simply make x equal to the x-coordinate of the graph.

**Example 7:**

Give the equation of the line in the graph.

Because we have a vertical line and no slope there is no slope-intercept equation we can use. Rather we make x equal to the x-coordinate of -4.

The solution is

x = -4.