Analytic Geometry Formulas
Analytic Geometry Formulas
Analytic Geometry Formulas
Analytic geometry
Point: ( , , )
o o o
T x y z =
Distance between 2 points:
2 2 2
1 1 0 1 0
( ) ( ) ( )
o
x x y y z z o = + +
Directional vector is a vector with start point = (0,0,0): , ,
x y z
r a a a =< >or ( , , )
x y z
r a a a =
Important: ( , , )
x y z
r a a a =
Ex: ( 3, 2, 0) r =
between 2 points ( , , )
x y z
A a a a = and ( , , )
x y z
B b b b = has
directional vector: ( , , )
AB x x y y z z
r b a b a b a =
is ( , , )
y
x z
u
a
a a
r
r r r
=
or
3 2
( , , 0)
13 13
u
r
=
(multiply by -1)
Line: 3 forms (sometimes greek letter for parameter instead of t and no form is unique!)
p:
o o o
x y z
x x y y z z
a a a
= =
parametric 1: ( , , ) ( , , )
o o o x y z
p x y z t a a a = +
parametric 2:
o x
o y
o z
x x t a
y y t a
z z t a
= +
= +
= +
Equation of line through point ( , , )
o o o
T x y z = and parallel to ( , , )
x y z
r a a a =
Ex: (1, 0, 3) T = and parallel to (1, 2, 0) r =
= =
Equation of line through 2 points ( , , )
o o o
T x y z = and
1 1 1
( , , ) P x y z =
Form parallel directional vector:
1 1 0 1 0
, , ) (
TP o
r x x y y z z =
( ) ( ) ( ) 0
x o y o z o
a x x a y y a z z + + =
Ex: (1, 0, 3) T = and normal to (1, 2, 0) r =
is: 1( 1) 2( 0) 0( 3) 0 x y z + + + = or 2 1 x y + =
2
Equation of plane through 3 points: Form normal vector by first finding 2 parallel directional vectors and
taking their vector product and use any point.
Equation of plane through (a,0,0), (0,b,0) and (0,0,c): 1
x y z
a b c
+ + =
Angles:
Remember use the parallel and normal directional vectors of lines and planes!
The directional vector normal to two directional vectors is their vector product.
Directional vectors are normal if scalar product is 0.
Give 2 directional vectors: ( , , )
x y z
a a a a =
and ( , , )
x y z
b b b b =
a b
0 a b =
0
x x y y z z
a b a b a b + + =
Angle between:
2 2 2 2 2 2
cos ( , )
| | | |
( ) ( ) ( ) ( ) ( ) ( )
x x y y z z
x y z x y z
a b a b a b
a b
a b
a b
a a a b b b
+ +
= =
+ + + +
Normal to both vectors:
ab x y z
x y z
i j k
n a b a a a
b b b
= =
Condition 1 is proof; condition 2 is use.
a b
0, 0, 0
x y z
x y z
i j k
a b a a a
b b b
= =< >
| | | | a b a b =
Result: Two planes are parallel if their normals are parallel.
a R
0, 0, 0
x y z
x y z
i j k
a n a a a
n n n
= =< >
| | | | a n a n =
Point intersection of line and plane. ( , , ) ( , , )
o o o x y z
p x y z t a a a = + 0 Ax By Cz D + + + = .
Solve for t: ( ) ( ) ( ) 0
o x o y o z
A x t a B y t a C z t a D + + + + + + = and substitute back into line.
Line intersection of planes. 0 Ax By Cz D + + + = and
1 1 1 1
0 A x B y C z D + + + =
Find normal of normals (parallel to both planes) and find intersection point (pick x
0
=1 and find y
o
and z
o
).
3
Other formulas
Distance between 2 planes: 0 Ax By Cz D + + + = and
1
0 Ax By Cz D + + + = is
1
| | o = D D .
Distance between 2 lines: ( , , ) ( , , )
o o o x y z
p x y z t a a a = + and
1 1 1
( , , ) ( , , )
x y z
q x y z t b b b = +
1. Find normal between parallels:
ab x y z
x y z
i j k
n a b a a a
b b b
= =
. If <0,0,0> then lines are parallel.
2. Find intensity | |
ab
n
.
3. Find a point on each line: ( , , )
o o o
A x y z = and
1 1 1
( , , ) B x y z =
4. Distance =
| |
o =< >
ab
ab
n
B A
n
(scalar product)
If lines are parallel:
| |
< >
o =
B A a
a
See: http://youtube.com/lfahlberg Playlist: 3D Geometry