How Do You Find the Equation of a Line Given Two Points?

In summary, Pavadrin has found that the standard form of a line, ax+by=c, is not always unique. However, if you know the slope and intercepts of the line, you can use slope-intercept form to get the equation in the correct form.
  • #1
pavadrin
156
0
Hey
I’m given a problem in which I need to calculate the values for a, b, c where a>0 where the equation for a straight line ax+by-c=0 and this line passes through then points (0,7) and (-2,0).

Here’s what I have got:
ax+by-c=0
by=c-ax therefore when the line crosses at (-2,0) this equation can be arranged as follows 0=c-a(-2)
I have done this for the other coordinates, therefore 0=c-b(7).

At this point I’m lost because I can’t see a possible connection between the two equations. Am I proceeding along the right path, or have I completed got it wrong?
Thanks, Pavadrin
 
Physics news on Phys.org
  • #2
In general if we have two points two points [itex](x_{1},y_{1})[/itex] and [itex](x_{2},y_{2})[/itex], we can form an equation which desribes the line which goes through each of these points thus;

[tex]y - y_{1} = m(x-x_{1})[/tex]

Now you are not given m (gradient), however you can work it out (change in y over change in x) thus;

[tex]y - y_{1} = \frac{y_{2}-y_{1}}{x_{2}-x_{1}} \cdot (x-x_{1}) \Leftrightarrow \frac{y - y_{1}}{y_{2}-y_{1}} = \frac{x-x_{1}}{x_{2}-x_{1}}[/tex]

~H
 
Last edited:
  • #3
yes, just as hootenanny has told create an equation with the two pts and compare it with the give equation to get a,b,c
 
  • #4
On the other hand, if you don't want to use memorized formulas like that, your method is completely valid.

You need to recognize that the form ax+ by= c, even requiring a> 0, is not unique. If you take any equation of the form ax+ by= c, a> 0, and multiply the equation by any positive number, you get a different equation, of the same "form" for the same line.

From ax+by= c, with x= 0, y= 7 you get 7b= c and with x= -2, y= 0 you get -2a= c, just as you had. Because you know any multiple of a solution is also a multiple, you can choose anyone of a, b, c to be any number you choose and solve for the other two! Since a is required to be positive here (and I don't like fractions!) I'm going to take c= -14 (divisible by both 2 and 7 and negative so a= -c/2= 7 is positive). Then a= 7 and b= c/7= -2. The equation of the line through (0,7) and (-2, 0) is 7x- 2y= -14.
 
  • #5
thanks for the replies
 
  • #6
Ax+By=C, A>0 is often called the "standard" form of a line. Personally, I find y=mx+b (slope-intercept form) to be of much greater utility. Usually the slope is either given or can be found using the formula Hootenanny cited. In this particular example, both intercepts are given. b is the y value of the y-intercept. If you aren't given b, you can plug one of the points in for x and y and solve for b.

Once you've gotten the equation in slope-intercept form, you can get it into the form you need here by moving y onto the same side as mx and b. If m is negative, multiply everything by -1. If you don't like fractions, multiply everything by the common denominator.

As you can see, there are many valid ways to arrive at the correct answer.
 
  • #7
thanks Nimz for the additional infomation
 

FAQ: How Do You Find the Equation of a Line Given Two Points?

What is the equation of a straight line?

The equation of a straight line is typically written in the form y = mx + b, where m is the slope of the line and b is the y-intercept (the point where the line crosses the y-axis). This equation can also be written in the form ax + by + c = 0, where a and b are the coefficients of x and y, respectively, and c is a constant.

How do you find the slope of a straight line?

The slope of a straight line can be found by calculating the change in y-values (rise) divided by the change in x-values (run) between any two points on the line. This can be represented by the formula m = (y2 - y1) / (x2 - x1), where (x1,y1) and (x2,y2) are two points on the line.

What is the significance of the y-intercept in the equation of a straight line?

The y-intercept represents the point where the line crosses the y-axis. It is the value of y when x = 0. In other words, it is the starting point for the line. The y-intercept can provide important information about the behavior of the line, such as whether it is increasing or decreasing.

Can a straight line have a slope of 0?

Yes, a straight line can have a slope of 0. This means that the line is horizontal and does not have any change in y-values (rise) between any two points. In this case, the equation of the line would be y = b, where b is the y-intercept.

How do you graph a straight line using its equation?

To graph a straight line using its equation, you can use the slope-intercept form y = mx + b. Start by plotting the y-intercept, which is the point (0,b). Then, use the slope (m) to find one or more additional points on the line by using the formula y = mx + b. Plot these points and connect them to create the line.

Similar threads

Back
Top