Line Through a Point (3D) Calculator
This Line Through a Point (3D) Calculator writes the equation of the line through a given point in a given direction, and shows the working line by line. The point fixes where the line sits and the direction vector fixes which way it runs, so together they pin it down completely. A parameter slides along the direction to reach every other point. Following the same pattern every time keeps position and direction from being confused.
Enter the point \((x_{0}, y_{0}, z_{0})\) and the direction \(\vec{d} = \langle a, b, c \rangle\).
Step-by-step method
- Set up the problem.
- Write the formula.
- Substitute into the vector equation.
- Write the parametric equations.
- Write the symmetric equations.
Formula: Vector Equation of a Line
This formula describes every point on a line from one point and a direction. Start at the point and add any multiple t of the direction vector.
Useful Tips to Remember
The point fixes where the line is and the direction fixes which way it runs. The parametric equations come straight from the components, \(x = x_{0} + at\) and so on. Any non-zero multiple of the direction gives the same line. A direction component of 0 means that coordinate stays fixed, and the zero vector cannot be a direction.
Required knowledge
- How to scale a vector by t, covered in the Scalar Multiplication Calculator.
- How vectors are added, covered in the Vector Addition Calculator.
- How to rearrange a simple equation, covered in the Distributive Property Calculator.
Where Is the Equation of a Line from a Point and a Direction Used?
A point and a direction are the most natural way to describe motion in a straight line, so this equation appears throughout physics and computing. An object moving at constant velocity follows exactly this line, with t as time. Laser beams, light rays and sight lines are modelled this way in optics and graphics. Robots and CNC machines use it to move a tool along a set direction, and game engines use it to cast rays for shooting and picking objects.
- Motion at constant velocity in physics
- Light rays and laser beams in optics
- Ray casting for aiming in games
- Tool paths for CNC machines and robots
- Lines of sight in surveying
Line Through a Point Practice Problems
Example 1 uses the point \((1, 2, 3)\) and the direction \(\langle 4, 5, 6 \rangle\), and Example 2 uses the origin and \(\langle 1, 0, 0 \rangle\), where two coordinates stay fixed. Write the vector, parametric and symmetric forms and compare. For two more free worked examples, check out the Line Through a Point (3D) Notes.
The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. For more practice, the notes page goes further with extra worked examples and fuller explanations of the ideas behind each step. Use them together to check your answers and to understand why each step works.
See Example 1 Hide Example 1
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Substitute into the vector equation.
- Write the parametric equations.
- Write the symmetric equations.
Formula
Formula: Vector Equation of a Line
This formula describes every point on a line from one point and a direction. Start at the point and add any multiple t of the direction vector.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the line through \(P_{0} = \left(1,\; 2,\; 3\right)\) in the direction \(\vec{d} = \left\langle 4,\; 5,\; 6 \right\rangle\).
Step 2
Step 2 - Write the formula.
In this problem: Every point on the line is reached by starting at the given point and moving some multiple t of the direction vector.
Step 3
Step 3 - Substitute into the vector equation.
In this problem: Replacing \(\vec{r}_{0}\) and \(\vec{d}\) in \(\vec{r} = \vec{r}_{0} + t\vec{d}\) gives \(\vec{r} = \left\langle 1,\; 2,\; 3 \right\rangle + t\left\langle 4,\; 5,\; 6 \right\rangle\).
Step 4
Step 4 - Write the parametric equations.
In this problem: Writing each component on its own gives \(x = 1 + 4t\), \(y = 2 + 5t\) and \(z = 3 + 6t\).
Step 5
Step 5 - Write the symmetric equations.
In this problem: Solving each parametric equation for t and setting them equal gives \(\frac{x - 1}{4} = \frac{y - 2}{5} = \frac{z - 3}{6}\).
Final Answer
See Example 2 Hide Example 2
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Substitute into the vector equation.
- Write the parametric equations.
- Write the symmetric equations.
Formula
Formula: Vector Equation of a Line
This formula describes every point on a line from one point and a direction. Start at the point and add any multiple t of the direction vector.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the line through \(P_{0} = \left(0,\; 0,\; 0\right)\) in the direction \(\vec{d} = \left\langle 1,\; 0,\; 0 \right\rangle\).
Step 2
Step 2 - Write the formula.
In this problem: Every point on the line is reached by starting at the given point and moving some multiple t of the direction vector.
Step 3
Step 3 - Substitute into the vector equation.
In this problem: Replacing \(\vec{r}_{0}\) and \(\vec{d}\) in \(\vec{r} = \vec{r}_{0} + t\vec{d}\) gives \(\vec{r} = \left\langle 0,\; 0,\; 0 \right\rangle + t\left\langle 1,\; 0,\; 0 \right\rangle\).
Step 4
Step 4 - Write the parametric equations.
In this problem: Writing each component on its own gives \(x = t\), \(y = 0\) and \(z = 0\).
Step 5
Step 5 - Write the symmetric equations.
In this problem: Only one coordinate changes along the line, so the symmetric form is just the fixed coordinates \(y = 0,\; z = 0\).
Final Answer
Notes and Practice Mode
Want to understand the method more deeply? The Line Through a Point (3D) Notes go through the same pattern with extra worked examples and fuller explanations of the ideas behind each step, so you can see why every step works and not just what to do. When you are ready to test yourself, Line Through a Point (3D) Practice gives you a new problem at Easy, Medium or Hard level, checks your answer and shows the full working whenever you get one wrong. Practice Mode for this calculator is available on the Pro plan.
Login and upgrade to Pro to unlock the full step solution.
Example Problems
Click one to load it into the box and solve it.