Parametric Vector Form Calculator

Find the vector equation, parametric equations, and direction vector of a 3D line passing through two points.

The line through two points P₁ and P₂ is written as r(t) = P₁ + t(P₂ − P₁).

About the Author: Created by Fotios Angelakis, MSc in Mechanical Engineering, with experience in engineering calculations, vectors, and applied mathematics. Learn more about the author's qualifications and experience.

Point P₁

Point P₂

Enter two 3D points and click calculate.

How the Parametric Vector Form Calculator Works

The Parametric Vector Form Calculator finds the equation of a line in 3D space using two points. This is useful in vector geometry, engineering, physics, computer graphics, robotics, and analytical geometry.

If two points are given:

P₁ = (x₁, y₁, z₁), P₂ = (x₂, y₂, z₂)

then the direction vector is:

v = P₂ − P₁
P₁ P₂ v = P₂ − P₁ Line in parametric vector form r(t) = P₁ + tv

Parametric Vector Form Formula

The vector form of a line is:

r(t) = P₁ + t · v

Since v = P₂ − P₁, this becomes:

r(t) = (x₁, y₁, z₁) + t(x₂ − x₁, y₂ − y₁, z₂ − z₁)

Scalar Parametric Equations

The same line can be written as three scalar equations:

x = x₁ + at, y = y₁ + bt, z = z₁ + ct

where v = (a, b, c) is the direction vector.

How to Use the Calculator

  1. Enter the coordinates of point P₁.
  2. Enter the coordinates of point P₂.
  3. Choose the t-range for the 3D plot.
  4. Click Calculate Parametric Equation.
  5. Review the direction vector, vector form, scalar equations, and plot.

Example Calculation

Suppose:

P₁ = (1, 2, 3)
P₂ = (4, 5, 6)

First calculate the direction vector:

v = P₂ − P₁
v = (4 − 1, 5 − 2, 6 − 3)
v = (3, 3, 3)

The parametric vector form is:

r(t) = (1, 2, 3) + t(3, 3, 3)

The scalar parametric equations are:

x = 1 + 3t
y = 2 + 3t
z = 3 + 3t

Symmetric Form of a 3D Line

When none of the direction vector components are zero, the line can also be written in symmetric form:

(x − x₁)/a = (y − y₁)/b = (z − z₁)/c
Important: If a direction component is zero, the corresponding coordinate is constant and should not be placed in a denominator.

Applications

  • Engineering: modeling straight paths, beams, and geometry.
  • Physics: representing motion along a straight line.
  • Computer graphics: rays, camera paths, and 3D geometry.
  • Robotics: path planning and coordinate transformations.
  • Mathematics: analytical geometry and vector equations.

Frequently Asked Questions

What is parametric vector form?

Parametric vector form describes every point on a line using a point, a direction vector, and a parameter.

How do I find the direction vector?

Subtract P₁ from P₂: v = P₂ − P₁.

Can the two points be the same?

No. If both points are identical, they do not define a unique line.

What does t mean?

The parameter t controls position along the line. Different t-values produce different points on the same line.

Can this calculator plot the line?

Yes. The calculator uses Plotly to display a 3D line plot over the selected t-range.