Slope Formula: Equation of Line & Derivation

Collegedunia Team logo

Collegedunia Team

Content Curator

Slope formula helps to calculate the slope of a line. The ratio of change in the X and Y axis is found through the slope formula. These coordinate values have a vital role in geometry. The letter ‘m’ represents the slope. The slope formula is used in several fields including economics, geoscience, and accounting, finance.

The Formula of Slope is:

\(\begin{array}{l}m=\frac{y_{2}-y_{1}}{x_{2}-x_{1}}\end{array}\)
  • Simply, the Slope formula helps us to determine the steepness or inclination of a given line.
  • The x and y coordinates of points which lie on the line are used to evaluate the slope of a line.
  • To predict whether a line is parallel or perpendicular or at any angle, the slope is measured.

Read more: Angle between Two Lines

Key Terms: Slope of a Line, Straight Lines, Positive Slope, Negative Slope, Equation of Line Graph, X-coordinate, Y-coordinate


What is a Slope?

[Click Here for Sample Questions]

A slope of a line, in maths, can be defined as the change in the y-coordinate with respect to the change in x-coordinate. The net change in the y-coordinate can be denoted by Δy. And the net change in the x-coordinate can be denoted by Δx.

Thus, the change in the y-coordinate with respect to the change in the x-coordinate can be represented by:

m = change in y/change in x = Δy/Δx

Where “m” is the slope of a line.

What is Slope?

What is Slope?

The slope of the line can also be denoted by:

tan θ = Δy/Δx

Thus, tan θ is the slope of a line.

Typically, the slope of a line helps to measure the steepness and direction. The change in the “y” coordinate with respect to the “x” coordinates is referred to as the slope of a line. It is denoted by the letter “m”

Read More:


Slope Formula

[Click Here for Previous Year Questions]

The slope of a line is calculated using the X and Y-axis. Consider two points of a line as F (x1,y1) and G(x2,y2). Hence, the formula of slope becomes,

⇒ Slope m = Change in Y-axis/ Change in X-axis

Thus,

\(\begin{array}{l}m=\frac{y_{2}-y_{1}}{x_{2}-x_{1}}\end{array}\)
  • In other words, the slope of a line increases as it passes from the Y to the X-axis. So,
  • Slope m = Y axis/X axis
  • The slope of a line between two points is also referred to as the rise of the line from one point to another point (along the y-axis) over the run (along the x-axis). Therefore, Slope, m = Rise/Run.

Solved Example

Example: Determine the slope of a line between the points P = (0, –1) and Q = (4,1).

Ans: As per the given question, the points P = (0, –1) and Q = (4,1).

According to the slope formula, we are aware that:

Slope of a line, m = (y2 – y1)/(x2 – x1

m = (1-(-1))/(4-0)

= 2/4

= ½

Also Read: Height and Distance 


Calculating Slope of a Line

[Click Here for Sample Questions]

Consider two points of a line as (x1, y1) and (x2, y2). Three steps are essential to obtain a straight-line slope. 

  • Ensure the two points are in a line.
  • Choose one side as (x1, y1) and another as (x2, y2).
  • Find the slope using the slope line formula. 

Several facts are vital in finding the slope of a line:

  • The slope formula results in positive or negative.
  • A rise in the line occurs during a positive value in slope.
  • The absence of slope is seen in vertical lines
  • Equal slope can be found in parallel lines. On another side, horizontal lines form a zero slope.

Derivation of Slope Formula

[Click Here for Previous Year Questions]

The x and y coordinates of the line are used to calculate the slope of the line. The net change in y-coordinate is Δy, while the net change in the x coordinate is Δx. So the change in y-coordinate with respect to the change in x-coordinate can be written as,

m = Δy/Δx

where

  • m = slope
  • Δy = change in y-coordinates
  • Δx = change in the x-coordinates

We are aware that tan θ can also be known as the slope of the line wherein θ is the angle made by the line with the x-axis’ positive direction.

Thus, tanθ = height/base

Now, the height/base between any two points = (y2 - y1)/(x2 - x1)

Thus, the slope equation is going to be, m = tanθ = Δy/Δx

From a graph, we can observe:

  • Δy = (y2 - y1)
  • Δx = (x2 - x1)

Thus, the slope formula can be represented by: Slope = m = (y2 - y1)/(x2 - x1)


Slope of a Line

[Click Here for Sample Questions]

The range of slope varies in different lines. Let us look at the formation of decline in various lines. Thus, in the equation of a line formula, the following are used:

Perpendicular Lines

Consider two perpendicular lines, I1 and I2. By using the properties of angles, β = α + 90°. From the slopes, we get that the product of perpendicular lines of a slant is equal to -1. 

Vertical Lines

There is no slope in vertical lines. The rising and falling of the angle are not determined in vertical lines. Value is absent in x coordinates. According to slope formula of line, m = (y2 – y1)/(x2 – x1). In the case of vertical lines, x2 = x1 = 0. Therefore, the value of slope in y-coordinates is zero. 

What is a Slope Infograph

What is a Slope Infograph

Also Read: 


Difference between Positive and Negative Slope

[Click Here for Previous Year Questions]

There are positive and negative slopes. The table given below depicts the difference between these two slopes.

Positive Slope Negative Slope
Depicts a positive relationship through the slope.  Depicts a negative relationship through the slope.
The variables are complements to each other.  An inverse variable form in slope.
It moves in an upward direction.  It moves in a downward direction.
Example: Supply curve in economics Example: Demand curve in economics.

Slope of Line Equation

[Click Here for Sample Questions]

The slope of a line equation is:

m = rise/run = tanθ = Δy/Δx = (y2 - y1)/(x2 - x1)

where,

  • m = slope
  • Δy = change in y-coordinates
  • Δx = change in the x-coordinates
  • θ = angle made by the line with the positive x-axis

The equation for the point-slope of a line given as,

y − y1 = m(x − x1)

Therefore, the slope-intercept is,

y = mx + b. 

Here, b is y-intercept. 

Also Read: Distance between Two Points


Things to Remember

  • The slope of a line can be determined through the slope formula. The ratio of change in the X and Y axis is found through the slope formula. 
  • Th formula of slope is given by: \(\begin{array}{l}m=\frac{y_{2}-y_{1}}{x_{2}-x_{1}}\end{array}\).
  • The product of perpendicular lines of a slope is equal to -1. There are no slope forms in vertical lines.
  • A positive slope moves in an upward direction and form a positive relationship. Conversely, inverse variables produce a negative slope and move in a downward direction.
  • The equation of a line is m = rise/run = tanθ = Δy/Δx = (y2 - y1)/(x2 - x1).

Read Also: Horizontal and Vertical Lines


Previous Year Questions


Sample Questions

Ques: Calculate the slope of line between A = (0, –1) and B = (4,1). (3 marks)

Ans: The two points depict here are, A = (0, –1), B = (4,1)

As per the formula of slope, 

m = Slope of a line = m = (y2 – y1)/(x2 – x1

So, m = (1-(-1))/(4-0) = 2/4 = ½.

Ques: The coordinates in a line are (2,6) and (5,1). Find the slope for these points? (3 marks)

Ans: As per the coordinates, 

(x1, y1) = (2, 6)

(x2, y2) = (5, 1)

The slope formula in a line, m = (y2 − y1 / x2 − x1)

So, m = (1 − 6/ 5 − 2)

= −5/3

= − 2.

Ques: Consider the two points (b, 7) and (8, -5) slope as 6. Find the value of b? (3 marks)

Ans: The values depict here are,

m = 6

Points: (x1x1, y1y1) = (b, 7) 

  (x2x2, y2y2) = (8, -5)

The Slope (m) = (y2y2– y1y1) / (x2x2– x1x1)

6 = (-5-7)/(8-b)

6 = (-12)/(8-b)

-2= (8-b)

So, b = 10.

Ques: A slope of a line is 5. What is the line that passes through coordinates (2,5)? (3 marks)

Ans: From the above question, the values are,

Slope m = 5

y – y1= m (x – x1)

The point (x1, y1) = (2,5)

Hence, put the value in equation

y – 5 = 5 x (x – 2)

So, 

y – 5 = 5x – 10

= 5x – 10 + 5

= 5x -5

Ques: Define the slope formula. (2 marks)

Ans: The inclination of a line is calculated through the slope formula using X and Y-axis. Consider two points of a line as F((x1, y1) and G(x2,y2). Hence, the formula of slope becomes,

Slope m = Change in Y-axis/ Change in X-axis

Ques: How to calculate the slope of a line? (3 marks)

Ans: Consider two points of a line as (x1, y1) and (x2, y2). Three steps are essential to seeking a straight-line slope. 

  • Ensure the two points are in a line.
  • Choose one side as (x1, y1) and another as (x2, y2).
  • Find the slope using the slope line formula. 

Ques: How the formation of slope takes place in vertical lines? (1 mark)

Ans: There are no slope forms in vertical lines. The rising and falling of angle is not determined in vertical lines. Value is absent in x coordinates. According to slope formula of line, m = (y2 – y1)/(x2 – x1). In the case of vertical lines, x2 = x1 = 0. However, the value of slope in y-coordinates is zero. 

Ques:What are positive and negative slopes? (1 mark)

Ans: Positive slope moves in an upward direction. The supply curve in firm economics is an example. The negative slope moves in a downward direction. The demand curve in economics is an example.

Ques: Determine the slope of a line which has the given coordinates: (2,9) and (4,1). (2 marks)

Ans: As per the given question, we can say, (x1, y1) = (2, 9) and (x2, y2) = (4, 1)

The slope formula is m = (y2 - y1)/(x2 - x1)

Thus,

m = (1 − 9)/(4 − 2)

m = -8/2 = -4

Ques: How to calculate slope using slope formula? (3 marks)

Ans: The slope of a line can be obtained by:

When coordinates are known:

  • Step 1: Determine the coordinates of the given line.
  • Step 2: Put the values in the formula as given, (m) = (y2 - y1)/(x2 - x1)

When angle is provided:

  • Step 1: Recognize the angle that has been made with the axis.
  • Step 2: Put the value in the given formula, m = tanθ

Check-Out: 

CBSE CLASS XII Related Questions

  • 1.
    Find:

    The shortest distance between the lines: \[ \vec{r}=(4+\lambda)\hat{i}+(2\lambda-1)\hat{j}-3\lambda\hat{k} \] and \[ \vec{r}=(1+2\mu)\hat{i}+(4\mu-1)\hat{j}+(2-5\mu)\hat{k} \]


      • 2.
        Find the vector and cartesian equations of the line passing through the point of intersection of the lines \( \vec{r} = (\hat{i} + \hat{j} - \hat{k}) + \lambda(3\hat{i} - \hat{j}) \) and \( \vec{r} = (4\hat{i} - \hat{k}) + \mu(2\hat{i} + 3\hat{k}) \) and parallel to the line \( \frac{x - 1}{-2} = \frac{7 - y}{-3} = z \).


          • 3.

            At a birthday party, children are being served orange juice in conical cups, as shown in the figure. 


            Each cup is 15 cm deep and has a radius 5 cm. The juice is being poured into this cup at a rate of 0·1 cm3/s.
            On the basis of the above information, answer the following questions :


              • 4.
                Find:

                If the function \[ f(x)= \begin{cases} \frac{\sin x}{x}+\cos x, & x\neq0\\ k, & x=0 \end{cases} \] is continuous at \(x=0\), then find the value of \(k\).

                  • \(0\)
                  • \(-2\)
                  • \(-1\)
                  • \(2\)

                • 5.
                  Find: \[ \int \frac{x^2}{(x^2-1)(x^2+4)}\,dx \]


                    • 6.
                      If \( xy = e^{x - y} \), then find \( \frac{dy}{dx} \).

                        CBSE CLASS XII Previous Year Papers

                        Comments


                        No Comments To Show