Equation of Straight Line
The general equation of a straight line is y = mx + c, where m is the slope of the line and c is the y-intercept. It is the most common form of the equation of a straight line that is used in geometry. The equation of a straight line can be written in different forms such as point-slope form, slope-intercept form, intercept form, standard form, etc. A straight line is a two-dimensional geometrical entity that extends on both ends till infinity.
In this article, we will explore the concept of the equation of a straight line in different forms. Try your hands at solving a few interesting examples and questions for a better understanding of the concept.
1. | What is the Equation of Straight Line? |
2. | Equation of Straight Line Formulas |
3. | Forms of Equation of a Straight Line |
4. | Equation of Straight Line on Graph |
5. | FAQs on Equation of Straight Line |
What is the Equation of Straight Line?
The equation of a straight line is an linear equation in two variables (usually x and y) and is satisfied by every point on the line. i.e. it is a mathematical equation that gives the relation between the coordinate points lying on that straight line. It can be written in different forms and tells the slope, x-intercept, and y-intercept of the line. It also can be used to find the points on the line. Mostly, the equation of a straight line is found by using point-slope form, slope-intercept form, two-point form, standard form, etc. Let us go through the formula for the equation of a straight line.
The most common formulas to find equation of straight line are mentioned below.
Equation of Straight Line Formulas
The equation of straight line formula varies depending on what information is available about the line like slope, intercepts, etc. Note that the slope of a line with two points (x1, y1) and (x2, y2) is calculated by the formula m = (y2 - y1)/(x2 - x1). Here are different straight line formulas.
Different Forms of Straight Lines | Equation of Straight Line |
---|---|
Two Point-Form (Given two points (x1, y1) and (x2, y2) on the line) |
y - y1 = (y2 - y1)/(x2 - x1) (x - x1) |
Point-Slope Form (Given slope m and point (x1, y1)) |
y - y1 = m (x - x1) |
Slope - Intercept Form (Given slope m and y-intercept (0, c)) |
y = mx + c |
Intercept Form (Given the intercepts a and b) |
x/a + y/b = 1 |
Normal Form (Given θ = the angle made by the normal with positive direction of x-axis and p = distance of line from origin) |
x cos θ + y sin θ = p |
General/Standard Form of a Line | ax + by = c |
Equation of a vertical line with some point (a, b) on it | x = a |
Equation of a horizontal line with some point (a, b) on it | y = b |
We will study each of these in detail in the section below.
Forms of Equation of a Straight Line
The equation of a straight line usually involves slope. Suppose a line l makes an angle of θ with a positive direction of the x-axis, the angle θ is called the inclination of the line and tan θ is called the slope of the line. Note that x-axis has a slope 0. In fact, all lines parallel to the x-axis have a slope of 0. Also, the slope of all the lines parallel to y-axis including the y-axis is not defined.
Now, Let us go through different forms of equations of a straight line.
Point-Slope Form
The equation of a straight line whose slope is m and which passes through a point (x1, y1) is found using the point-slope form. The equation of the point-slope form is:
y - y1 = m (x - x1), where (x, y) is an arbitrary point on the line.
Let us see how to find the point-slope form. We will derive this formula using the equation for the slope of a line. Let us consider a line whose slope is m. Let us assume that (x1, y1) is a known point on the line. Let (x, y) be any other random point on the line whose coordinates are not known. We know that the equation for the slope of a line is:
Slope = Difference in y-coordinates/Difference in x-coordinates
⇒ m = (y - y1)/(x - x1)
Multiplying both sides by (x - x1),
m (x - x1) = (y - y1)
This can be written as,
(y - y1) = m (x - x1)
Hence the point-slope form of the equation of a straight line is proved.
Two Point Form
Consider a line with two points (x1, y1) and (x2, y2) on it. Then its slope can be calculated by the formula m = (y2 - y1)/(x2 - x1). Substituting this in the above point-slope form, we get the two point form as y - y1 = (y2 - y1)/(x2 - x1) (x - x1).
Slope-Intercept Form
Now, suppose a line is given to you with its slope m and its y-intercept. Say, a line intersects the y-axis at the point (0, c). Using the point-slope form we have y - c = m (x - 0) ⇒ y = mx + c, where c is the y-intercept. This is called the slope-intercept form of a line.
Note: If d is the x-intercept, then the slope-intercept form of the equation of the line is y = m(x - d).
Intercept Form
If (a, 0) and (0, b) are the x and y-intercepts of a line respectively. Then its slope is, m = (b - 0)/(0 - a) = -b /a. Then its equation using the point-slope form is:
y - 0 = -b/a (x - a)
Multiplying both sides by a
ay = -bx + ab
bx + ay = ab
Dividing both sides by ab,
x/a + y/b = 1
Standard Form
The standard form of a straight line is given by ax + by = c, where a, b, c are real numbers. We can consider any form of a line into standard form. Let us consider an example to transform the equation y = 2x - 1 in the standard form. Subtract 2x from both sides of the equation, we have
y - 2x = 2x - 1 - 2x
⇒ y - 2x = -1
⇒ 2x - y = 1
So, we obtain the standard form of the equation of the line as 2x - y = 1.
Equation of Straight Line on Graph
The graph of a linear equation in one variable x forms a vertical line parallel to the y-axis and the graph of the equation of a straight line in one variable y is a horizontal line parallel to the x-axis The graph of a linear equation in two variables x and y forms a straight line with some slope.
If a straight line is increasing from left to right, its slope is positive. If it is decreasing, its slope is negative.
Important Notes on Equation of Straight Line:
-
The equation of a straight line is also called a linear equation in two variables.
-
If the product of slopes of two straight lines is -1, then lines are perpendicular to each other.
-
If two straight lines are parallel to each other, then they have the same slope.
-
Point Slope Form: (y - y1) = m (x - x1)
-
Slope-Intercept Form: y = mx + c
-
Standard Form = ax + by = c
☛Related Topics:
Cuemath is one of the world's leading math learning platforms that offers LIVE 1-to-1 online math classes for grades K-12. Our mission is to transform the way children learn math, to help them excel in school and competitive exams. Our expert tutors conduct 2 or more live classes per week, at a pace that matches the child's learning needs.
Equation of Straight Line Examples
-
Example 1: Find the equation of a straight line that passes through the points (1, 3) and (-2, 4). Write the equation in standard form.
Solution: To determine the equation of the line, we will use the formula point-slope form.
For this, we first need to find the slope of the line.
Slope = (4-3)/(-2-1) = -1/3
Therefore, the equation of the line passing through (1, 3) and (-2, 4) is y - 4 = (-1/3) (x + 2)
⇒ y - 4 = -x/3 - 2/3
⇒ y + x/3 = 4 - 2/3
⇒ x + 3y = 10
Answer: The required equation is x + 3y = 10.
-
Example 2: The cost of a notebook is $5 more than twice the cost of a pen. Represent the situation as an equation of a straight line.
Solution: Assume the cost of pen = $x and the cost of notebook = $y. Then, according to the question, we have
y = 2x + 5 which is the equation of a straight line.
Answer: y = 2x + 5
-
Example 3: The equation of a straight line is given by 3x - 4y = 12. Convert this into the intercept form and hence find the intercepts.
Solution:
The equation of given line is:
3x - 4y = 12
Dividing both sides by 12,
3x/12 - 4y/12 = 12/12
x/4 + y/(-3) = 1
This is in the intercept form x/a + y/b = 1.
Hence, the intercepts are (a, 0) = (4, 0) and (0, b)= (0, -3).
Answer: x/4 + y/(-3) = 1; Intercepts: (4, 0) and (0, -3).
FAQs on Equation of Straight Line
What is the Equation of Straight Line in Coordinate Geometry?
The equation of a straight line is a linear equation in x and y that gives the relation between the coordinate points that lie on that line. The equation of a straight line is usually of the form y = mx + c, where m is the slope of the line and c is its y-intercept.
What is the Formula for the Equation of a Straight Line?
The equation of a straight line can be found using different formulas:
- Point-slope form: y - y1 = m (x - x1)
- Two-point form: y - y1 = [(y2-y1) / (x2-x1)] (x - x1)
- Slope-intercept form: y = mx + c
- Intercept form: x/a + y/b = 1
- General form: ax + by = c
- Normal form: x cos θ + y sin θ = p
How to Find the Equation of a Straight Line?
The equation of any straight line can be found by using the point-slope form y - y1 = m (x - x1), where
- m = slope of the line and it can be calculated by the formula tan θ (or) (y2 - y1) / (x2 - x1).
- (x1, y1) is a point on the line.
How to Convert an Equation of Straight Line From Point-Slope Form to Slope-Intercept Form?
An equation of straight line can be converted from point-slope form to the slope-intercept form just by simplifying it such that the left-side of the equation has only y and all the other terms are moved to the right side. For example, y - 2 = 3 (x - 1) is in the point-slope form. If we simplify it, y - 2 = 3x - 3, adding 2 on both sides, y = 3x - 1, which is in the slope-intercept form.
How Do you Find the Slope and Y-intercept of an Equation of a Straight Line?
By converting an equation of straight line into slope-intercept form y = mx + c, we can find its slope m and the y-intercept c. For example, if the equation is 2x - 3y = 1, to find its slope and y-intercept, we first need to solve it for y. Then we get y = (2/3)x - 1/3. Comparing this with y = mx + c, we get slope, m = 2/3 and y-intercept = (0, c) = (0, -1/3).
How Do you Write an Equation for a Vertical and Horizontal Line?
- The equation of a horizontal line passing through (a, b) is of the form y = b.
- The equation of a vertical line passing through (a, b) is of the form x = a.
How To Find the Equation of a Straight Line when Given Two Points?
The equation of a straight line joining two points (x1, y1) and (x2, y2) is given by two-point form y - y1 = (x - x1)[(y2 - y1)/(x2 - x1)]. Alternatively, we can first find its slope using m = (y2 - y1)/(x2 - x1) and then use the point-slope form y - y1 = m (x - x1).
How to Graph a Straight Line Using its Equation?
To graph a straight line, find any two points on it using its equation. For example: consider the equation y = 3x + 2. Here, we assume any two random numbers for x and find the corresponding y-values using the equation.
x | y |
---|---|
0 | y = 3(0) + 2 = 2 |
1 | y = 3(1) + 2 = 5 |
Hence, (0, 2) and (1, 5) are two points on the given line. Just plotting them and joining them by a line gives its graph.
When do We Use the Normal Form to Find Equation of a Straight Line?
When a the normal from the origin to a line makes an angle θ with the positive direction of the x-axis and its perpendicular distance from the origin is p, then its equation can be found only by using normal form which states x cos θ + y sin θ = p.
visual curriculum