If A = (xa, ya) and B = (xb, yb) and xa is not equal to xb, then gradient of AB = (ya - yb)/(xb - xb).
If xa = xb then the gradient is undefined.
Chat with our AI personalities
. the equation of a straight line can be found by using two points on a line . First find the gradient of the line using the gradient formula . now substitute the gradient into general form replacing "m" . use one of the points and substitute into equation to solve "c" example 1: find the equation of the line which passes through the points (1,3) and (2,5). step 1: find the gradient M=5-3/2-1=2 (/=divide) step 2: place m into the equation Y=2x+c step 3: substitute point into equation 3=2(1)+c step 4: solve C=1 equation is Y=2x+1 hope that helps :)
Assuming you want the equation of the straight line between the two points (x0, y0) and (x1, y1), the equation is: y - y0 = m(x - x0) where m is the gradient between the two points: m = (y1 - y0) ÷ (x1 - x0) Note: if the two x coordinates are equal, that is x0 = x1, then the equation of the line is x = x0.
Gradients can be worked out by: 1. gradient formula, suppose the two points are (x1,y1); (x2,y2) then the gradient=(y2-y1)/(x2-x1) 2. rise/run Intercepts can be found by: 1. to find the x-intercept substitute y=0 into the equation of the line 2. to find the y-intercept substitute x=0 into the equation of the line
Yes. You need only two points. If A (ax, ay) and B (bx, by) are two points on the line then the gradient (slope) of the line is m = (by - ay)/(bx - ax) provided bx ≠ ax. From this you can calculate m. Then the general slope-intercept form of the equation is y = mx + c Substitute the coordinates of A or B into this equation to find c. If bx = ax then the line is parallel to the y axis and its equation is x = ax. [There are other methods but they are similar to the above]
A gradient requires two variables. There is information on only one.