Linear equations form the basis for linear algebra. In the previous lesson, you learned about graph of equations plotted using points on a Cartesian plane, intercepts and symmetry of graphs.

You will learn about a graph of linear equations of two variables in this lesson.

The graph of linear equation is a straight line

where

m = slope of the line and

b = (0, b) = y-intercept of the line

## The Slope

In the linear equation, the slope is very important and tells lot about the graph. There are 4 slope condition of the line as follows.

**Slope is 0 ( m = 0)**

The value of m is 0, hence the line has no slope and it is a straight line.

Consider the equation , when . The equation becomes.

**Slope is greater than 0 (m > 0)**

When the slope is greater than 0, then it is rising upwards. Consider the following example

where the slope is a positive value with b = 1 as intercept value.

The graph of this equation is given below.

**Slope is less than 0 (m < 0)**

When the value of , the slope goes downwards. Consider the following example.

The value of slope is and b intercept is .

Note: then a vertical line has no slope and its slope is undefined.

The above form of equation of a line is called *point-slope form.
*

**The Slope of a line passing through Two-Points**

Suppose a line is passing through two points and . Then the slope of the line is given by following.

or

For example, Consider 2 points – (2, 5) and (4, 7). Then their slope is given by

Therefore, the slope of the line is 1.

**Slope of Parallel Lines ( m1 = m2)**

The slope of a parallel line is same, because essentially they both are the same line just shifted above or below by few units.

In the diagram above, both lines have the same slope. This could be proved easily using the equations of both lines.

(1)

(2)

Consider the above example, let , then the equations become

(1)

(2)

Therefore,

for parallel lines.

**Slope of Perpendicular Lines (m1 = 1/-m2)**

The perpendicular line make an angle of degrees. The slope of two line that are perpendicular to each other is