Vector form

Vector form

A line in vector form has the equation:

\vec r = \vec a + \lambda \vec d

…where:

See vector line equation.

Cartesian form

Cartesian form is the standard equation of a line (see cartesian line equation, written as:

y = mx + c

(or one of its variants).

Gradient

We can find the gradient of the line from the \vec d vector of the vector form equation.

From this, we can use the formula for gradient:

\text{gradient} = \frac{\text{change in } y}{\text{change in } x}

So the gradient of a line with direction vector \vec d=\begin{pmatrix}2\\6\end{pmatrix}, for example, will have gradient \frac62=3

Converting from vector to Cartesian form

Once we have the gradient, we can substitute it into the Cartesian form equation (y = mx + c) to find c.

Convert the vector equation \vec r = \begin{pmatrix}1 \\ 2\end{pmatrix} + \lambda \begin{pmatrix}3 \\ 4\end{pmatrix} to cartesian form

Convert the vector equation \vec r = \begin{pmatrix}2 \\ 5\end{pmatrix} + \lambda \begin{pmatrix}-1 \\ 2\end{pmatrix} to cartesian form

Convert the vector equation \vec r = \begin{pmatrix}-1 \\ 4\end{pmatrix} + \lambda \begin{pmatrix}2 \\ -3\end{pmatrix} to cartesian form