Vector Form :
Let \(\vec a \ and \ \vec b\)be the position vectors of two points A(x1 y1 z1) and B(x2, y2, z2), respectively that are lying on a line L.
If O be origin, then \(\overrightarrow {OA} = \vec a \ and \ \overrightarrow {OB} = \vec b.\)
\(\overrightarrow {AB}\) = (Position vector of B) - (Position vector of A)
= \(\vec b \ - \ \vec a\)

Let \(\vec r\)be the position vector of an arbitrary point P(x, y, z) on line L, then \(\overrightarrow {OP} = \vec r\)
\(\overrightarrow {AP} = \vec r - \vec a\)
Since, \(\overrightarrow {AP} = \overrightarrow {AB}\) are collinear vectors,

Thus, vector equation of line L, passing throughpoints \(A(\vec a) \ and \ B(\vec b)\) is

Derivation of Cartesian Form from Vector Form:
We have \(\vec r\)= xî + yĵ + zk̂
\(\vec a\)= x1î + y1ĵ + z1k̂
\(\vec b\)= x2î + y2ĵ + z2k̂
Substituting these values in equation (2), we get
xî + yĵ + zk̂ = x1î + y1ĵ + z1k̂ + λ(x2 - x1)î + (y2 - y1)ĵ + (z2 - z1)k̂]
Eliminating the like coefficients of î, ĵ, k̂, we get
x = x1 + λ(x2 - x1),
⇒ x - x1 = λ(x2 - x1);
y = y1 + λ(y2 - y1)
⇒ y - y1 = λ(y2 - y1);
z = z1 + λ(z2 - z1)
⇒ z - z1 = λ(z2 - z1)
On eliminating λ, we get

Which is the equation of line in cartesian form passing through the given points.
Angle Between Two Lines
(i) Let L1 and L2 be two lines passing through origin whose directionratios are a1 b1 c1 and a2, b2, c2 respectively. Let P and Q be two points on L1 and L2 respectively and θ be the acute angle between OP and OQ.
The angle θ between them is given by

The angle between the lines in terms of sin θ is given by

Remarks:
If the lines L1 and L2 do not pass through the origin, we may take lines L1 and L2 which are parallel to L1 and L2 respestively and pass through the origin.
(ii) Let l1 m1 n1 and l2, m2, n2 be the direction-cosines of line OP and OQ respectively. If θ is the angle between these lines, then
cos θ = |l1l2 + m1m2 + n1n2|
(Since, l12 + m12 + n12 = 1 = l22 + m22 + n22)
and sin θ =

⇒ l1l2 + m1m2 + n1n2 = 0
If a1 b1 c1 and a2, b2, c2 are the direction-ratios of the lines, then the lines are mutually perpendicular if a1a2 + b1b2 + c1c2 = 0
(iv) Two parallel lines : If l1 m1 n1 and l2, m2, n2 are the direction-cosines of two lines and the lines are mutually parallel, then 0 = 0°
sin θ = sin 0° = 0

When a1 b1 c1 and a2, b2, c2 are the direction-ratios of the lines then they are mutually parallel if

Now, we find the angle between two lines when their equations are given. If θ is the acute angle between the lines

where, a1 b1 c1 and a2, b2, c2 are the direction ratios of the lines (1) and (2), respectively, then
