Have you ever thought of how some people can predict how much it will rain tomorrow or in the next week? What will be the price of some commodities in the next year? Think of it as some points of a straight line with the known slope. With the known quantities, we can calculate the unknown. In the previous section, we have studied some properties of lines. In this section, we will study the equation of line.

### Suggested Videos

## Various Forms of the Equation of Line

A line is a set of all possible points lying on it. An equation of a line shows the relationship between the various points of the lines. Does this mean that any point can lie on the line? An equation of line sets the conditions for the points to satisfy. The equation of line is algebraic in nature consisting of variables x and y. By the equation of line, we can do some future estimation and can get to know about the types of lines.

**You can download Straight Lines Cheat Sheet by clicking on the download button below**

**Browse more Topics under Straight Lines**

### Vertical Line

The equation of a vertical line at a distance *vÂ *from the y-axis is either x = *v* or x = âˆ’*v*. Sign depends upon the position of the line.

### Horizontal Line

The equation of a horizontal line at a distance *h* from the x-axis is either y = *h* or y = âˆ’*h*. Sign depends upon the position of the line.

### Point-Slope Form

This form of the equation gives the condition for a point to lie on the line. Suppose A (x_{0}, y_{0}) be a fixed point on the line *l *of slope m*. *Â Consider any other point, say B (x, y). The point B (x, y) will lie on the line *l i*f and only if, its coordinates satisfy the equation

m = (y âˆ’ y_{0}) / (x âˆ’ x_{0}) (from the definition of slope)

i.e., y âˆ’ y_{0} = m (x âˆ’ x_{0})

What if two points are given? Letâ€™s find out.

### Twoâ€“Points Form

Imagine a line *l* passing through two points A (x_{1}, y_{1}) and B (x_{2}, y_{2}). *Â *Consider a point, say C (x, y). This point will satisfy the condition to lie on *l *if they satisfy the condition of collinearity.

Slope of AC = Slope of BC = Slope of AC

i.e., (y âˆ’ y_{1}) / (x âˆ’ x_{1}) = (y_{2} âˆ’ y_{1}) / (x_{2} âˆ’ x_{1}) or, (y âˆ’ y_{1}) = (x âˆ’ x_{1}) (y_{2} âˆ’ y_{1}) / (x_{2} âˆ’ x_{1}) is the required equation of the line.

### Straight lines

### Slope-Intercept Form

What is an intercept? A y-intercept is a distance at which the line intersects the y-axis. An x-intercept is a distance at which the line cuts the x-axis. Suppose a line *l* with slope m intersects the y-axis at a distance â€˜câ€™ from the origin. The equation of line *l* passing through the point (0, c) is given by:

m = (y âˆ’ c) / (x âˆ’ 0) or, y = mx + c

Consider a line *l* with slope m intersects the x-axis at a distance â€˜dâ€™ from the origin. The equation of line *l* passing through the point (d, 0) is given by:

m = (y âˆ’ 0) / (x âˆ’ d) or, y = m(x âˆ’ d)

If the line *l *intersects both the axes what will be the equation of the line?

### Intercept Form

Suppose a line *l* with slope m intersect the y-axis at a distance â€˜câ€™ from the origin and x-axis at a distance of â€˜dâ€™ from the origin. The equation of line *l* passing through point (0, c) and (d, 0) is:

(y âˆ’ y_{1}) / (x âˆ’ x_{1}) = (y_{2} âˆ’ y_{1}) / (x_{2} âˆ’ x_{1}) or, (y âˆ’ 0) / (x âˆ’ d) = (c âˆ’ 0) / (0 âˆ’ d)

Solving we get, y/c + x/d = 1.

### Normal Form

Suppose we have a line* l* in XY-plane. The perpendicular distance (normal) from origin to the line is known and the angle with the positive direction of the x-axis.

Here, length of normal OA = *p* and it makes an angle Î± with the x-axis. The coordinates of A will be (*p* cosÎ±, *p* sinÎ±). OA is perpendicular to *l*. Slope of line *l* = âˆ’1 / slope of OA = âˆ’1 / tan Î±. Solving we have the required equation of the line, x cos Î± + y sin Î± = *p*. Till now, we have seen that the equations of the line are linear equations in x and y and can be generalized.

## General Equation of Line

The general equation for any line is Ax + By + C = 0, where x and y are variables; A and B are not zero simultaneously. It is interesting to know that the general equation of a line canÂ be reduced into any form of the equations.

### Slopeâ€“Intercept Form

If B â‰ 0, then Ax + By + C = 0 can be reduced to y = âˆ’ (A/B) x âˆ’ C/B (of the form y = mx + c). Here, the slope of the line, m = âˆ’ A/B, and y-intercept, c = âˆ’C/B. If B = 0, x =Â âˆ’C/A is the x-intercept.

### Intercept Form

If C â‰ 0, then Ax + By + C = 0 can be reduced to (x/ (âˆ’ C/A)) + (y/ (âˆ’ C/B)) = 1 (of the form x/a + y/b = 1). Here, x-intercept = âˆ’C/A, and y-intercept = âˆ’C/B. If C = 0, Ax + By = 0Â â‡’ A = B = 0. It shows a line passing through origin.

### Normal Form

The normal form of equation is x cosÎ± + y sinÎ± = *p*. Reducing it in the form of Ax + By + C = 0, we have cosÎ± = Â±A/(A^{2} + B^{2})^{1/2}; sin Î± = Â±B/(A^{2} + B^{2})^{1/2} and *p* = Â±C /(A^{2} + B^{2})^{1/2}.

## Solved Example for You

Problem: Find the slope and the x and y-intercepts from the equation 4x + 5y âˆ’ 8 = 0.

Solution: Given equation 4x + 5y âˆ’ 8 = 0 can be re-written as y = âˆ’ (4/5) x + 8/5.

Comparing with y = mx + c, we have slope,

m = âˆ’ 4/5, yâ€“intercept, c = 8/5.

Comparing with y = m(x âˆ’ d), we have

y = âˆ’ 4/5(x âˆ’ 2). So, x-intercept = 2.

Hi