Calculate the linear equation from two points or the coordinates of one or two points on this line. A line is a one-dimensional, infinitely long, straight object. It lies on the shortest distance between two points and goes beyond them. Enter the coordinates (x,y) of both points, or slope m and vertical intercept b of the linear equation y=mx+b and one coordinate of one point. The distance of both points will be calculated when all four coordinates are given. Choose the number of decimal places and click Calculate.
Formulas:
yi = mxi + b (linear equation)
m = ( y2 - y1 ) / ( x2 - x1 )
b = y1 - x1 * m
d = √ (x2 - x1)² + (y2 - y1)²
You can draw the line within the coordinate system with the Function Graphs Plotter. Enter there mx+b with the values for m and b as formula for the graph.
There is always exactly one straight line passing through two points that are not identical. The straight line has no width and no boundaries. On a plane, two different lines can either be parallel to each other or intersect. In space and in higher dimensions there is still the possibility that two straight lines are skewed to each other. If two lines are parallel, they can be mapped onto each other by shifting them. When they intersect, four angles are created between them, with the two opposite ones being equal and all four together making 360 degrees. Two adjacent angles add up to 180 degrees because such an angle is straight. The two intersecting straight lines span a plane. If another line intersects this plane at a point, then you get a space. So every intersecting line that cannot be formed by adding previous lines increases the dimension by one.
If a straight line is limited in its length, then it is called a segment. All side lines of polygons (like the triangle) and polyhedra (like the cube) are line segments.