Enter two points, or a point and a direction, to write the equation of the line.
Write the three coordinates, like (1, 2, 3).
Write the three coordinates, like (1, 2, 3).
Try
Result
You enteredline through (0,0,0) and (2,0,4)
r=(0,0,0)+t(2,0,4)
Parametric
x=2t,y=0,z=4t
Symmetric
y=0,2x=4z
Show the work
1
Direction from two points
The line runs from P1 to P2, so the vector between them points along it. Subtract the coordinates of P1 from those of P2.
d=P2−P1=(2,0,4)−(0,0,0)=(2,0,4)
2
Vector form of a line
A line is fixed by one point on it, a, and a direction, d. Every point on the line is a plus some multiple t of d, and each value of t gives one point.
r=a+td=(0,0,0)+t(2,0,4)
3
Parametric form
Writing the vector equation one coordinate at a time gives three equations in t.
Using x=x0+td1,y=y0+td2,z=z0+td3
x=2t,y=0,z=4t
4
Symmetric form
Solving each parametric equation for t and setting the results equal removes the parameter. A coordinate whose direction component is 0 never changes, so it is written on its own as a fixed value instead of a fraction.