Finding the equation for a line is a common problem in geometry and trigonometry. There are two common situations where you are asked to find the equation for a line: either you'll be provided with one point on the line and the slope of the line, or you'll be provided two points on the line. In either case, finding the equation for that line isn't difficult, provided you use the correct formula and work carefully.
How to Find Formula of a Line
If you know a single point and the slope of the line, use the formula y-y 1 = m(x-x 1 ) , where m is the slope and (x 1 , y 1 ) are the point coordinates. Simplify the equation for y to the formula y = mx + c (where c is the y-intercept).
Steps
-
Plug the slope in for m in the formula y-y 1 = m (x-x 1 ). This is known as the point-slope formula. [1] X Expert Source Grace Imson, MA
Math Teacher Expert Interview. 1 November 2019. The point-slope formula uses the slope and the coordinates of a point along the line to find the y-intercept. Use the slope in place of m in y-y 1 = m (x-x 1 ). [2] X Research source- For example, if you know the slope of the line is 2, then your formula will look like this: y-y 1 = 2(x-x 1 ) .
-
Replace x 1 and y 1 with the coordinates of the point. Use the coordinates you’re given as (x 1 , y 1 ). Put the numbers in the corresponding spot on your formula before you start solving the equation. [3] X Expert Source Grace Imson, MA
Math Teacher Expert Interview. 1 November 2019.For example, if you know the coordinate is (4, 3), your formula will read: y-3 = 2(x-4) .
Advertisement -
Solve the formula for y to get the final slope-intercept formula. Follow the mathematical order of operations and the distributive property to remove the x-term from parenthesis. [4] X Expert Source Grace Imson, MA
Math Teacher Expert Interview. 1 November 2019.- In our example, first you’d use the distributive property to get y-3=2x-8.
- Then, add 3 to each side so y is by itself.
- The final equation for a line in slope-intercept form with a slope of 2 that contains the point (4, 3) is y = 2x-5 .
EXPERT TIPMath TeacherJoseph Meyer is a High School Math Teacher based in Pittsburgh, Pennsylvania. He is an educator at City Charter High School, where he has been teaching for over 7 years. Joseph is also the founder of Sandbox Math, an online learning community dedicated to helping students succeed in Algebra. His site is set apart by its focus on fostering genuine comprehension through step-by-step understanding (instead of just getting the correct final answer), enabling learners to identify and overcome misunderstandings and confidently take on any test they face. He received his MA in Physics from Case Western Reserve University and his BA in Physics from Baldwin Wallace University.The distributive property helps you avoid repetitive calculations. You can use the distributive property to solve equations where you must multiply a number by a sum or difference. It simplifies calculations, enables expression manipulation (like factoring), and forms the basis for solving many equations.
-
Find the slope using m = (y 2 -y 1 )/(x 2 -x 1 ). The ordered pairs of the coordinates you have are listed as (x, y). Use the first set of coordinates as (x 1 , y 1 ) and the second set as (x 2 , y 2 ). [5] X Research source Plug the numbers into the formula m = (y 2 -y 1 )/(x 2 -x 1 ) and solve for m . [6] X Expert Source Grace Imson, MA
Math Teacher Expert Interview. 1 November 2019.For example, if your coordinates are (3, 8) and (7, 12), the formula would read: m = (12-8)/(7-3) = 4/4 = 1 . In this case, your slope, or m , equals 1.
-
Replace the m in the slope-intercept formula with the slope you found. The slope-intercept formula of a line is written as y = m x+b, where m is the slope and b is the y-intercept (the point on the y-axis where the line crosses it). Plug the number you found for your slope in place of m . [7] X Research source
- In our example, the formula would read y = 1x+b or y = x+b when you replace the slope value.
-
Substitute x and y for one of the points you know to solve for the y-intercept. Pick one of the ordered pairs to put into the slope-intercept formula. Put the x-value in place of x and the y-value in place of y. [8] X Research source
- In this example, if you chose (3, 8) as your coordinates, then the formula would read 8 = 1(3)+b .
-
Solve the equation for b. Once you plug the x- and y-values as well as your slope into the formula, find the value of b in the equation. Follow the order of operations first before moving the rest of the numbers to the other side. Leave b on one side of the equation to solve it. [9] X Research source
- In our example, the formula currently reads 8 = 1(3)+b. Multiply 1 and 3 together to get 8 = 3+b. Since 3 is a positive number, subtract 3 from each side to isolate b. This leaves you with 5 = b, or b = 5.
-
Plug in the slope and y-intercept into the slope-intercept formula to finish the equation. Once you’re finished, plug in the slope for m and the y-intercept for b. After that, you’ve found the equation for the line. [10] X Research source
- For example, the equation for the line with points on (3, 8) and (7, 12) is y = 1x+5 or simply y = x+5 .
Community Q&A
-
QuestionHow do I find an intercept of a line?DonaganTop AnswererUsing the equation, set x equal to zero and solve for y to find the y-intercept, or set y equal to zero and solve for x to find the x-intercept.
-
QuestionWhat should I do with a negative y?Community AnswerYou multiply the whole equation by -1 to remove the negative sign. For example, if the question is: -y=-5x+1, you would then change the question to: -y*(-1) = (-5x+1)*(-1), and then get: y=5x-1.
-
QuestionWhat about given a slope and an intercept in y?DonaganTop AnswererExpress the equation in standard form, y = mx + b, where m is the slope, and b is the y-intercept.
Tips
References
- ↑ Grace Imson, MA. Math Teacher. Expert Interview. 1 November 2019.
- ↑ http://www.coolmath.com/algebra/08-lines/11-finding-equation-line-point-slope-01
- ↑ Grace Imson, MA. Math Teacher. Expert Interview. 1 November 2019.
- ↑ Grace Imson, MA. Math Teacher. Expert Interview. 1 November 2019.
- ↑ https://www.cuemath.com/geometry/equation-of-a-line/
- ↑ Grace Imson, MA. Math Teacher. Expert Interview. 1 November 2019.
- ↑ https://www.cuemath.com/geometry/equation-of-a-line/
- ↑ https://content.byui.edu/file/b8b83119-9acc-4a7b-bc84-efacf9043998/1/Math-2-11-2.html
- ↑ https://content.byui.edu/file/b8b83119-9acc-4a7b-bc84-efacf9043998/1/Math-2-11-2.html
About This Article
To find the equation of a line using 2 points, start by finding the slope of the line by plugging the 2 sets of coordinates into the formula for slope. Then, plug the slope into the slope-intercept formula, or y = mx + b, where "m" is the slope and "x" and "y" are one set of coordinates on the line. Next, solve the formula to find the value of "b," which is the y-intercept. Finally, plug the slope and y-intercept into the slope-intercept formula to finish the equation of the line. To learn how to find the equation of a line using 1 point, scroll down!
Reader Success Stories
- "The article led you through each method clearly, step by step, with picture examples and simple explanations. It helped me complete my MyMaths problems and to produce a set of revision notes about equations of lines. Thank you very much." ..." more