Cartesian Coordinates
Cartesian Coordinates
sillyMistakes
28 September 2023
§1 Formulas
Equation of a straight line:
y − y1 = m(x − x1 )
y = mx + c
– Given the altitude p from (0, 0) and the angle θ between the altitude and the
positive x-axis,
x cos θ + y sin θ = p
– Given a point (x1 , y1 ) the angle θ between the line and the positive x-axis,
x − x1 y − y1
=
cos θ sin θ
ax + by = aα + bβ
bx − ay = bα − aβ
1
sillyMistakes — 28 September 2023 Straight Lines
m1 = m2
m1 m2 = −1
a1 a2 + b 1 b 2 = 0
§2 Methods
2
sillyMistakes — 28 September 2023 Straight Lines
Example 2.1
The slope of line l is m/n. Determine two points located at distance d from a point
(α, β) on this line.
m
Assume l forms angle θ with the x-axis. Then, tan θ = n
and so
m n
sin θ = √ , cos θ = √
2
m +n 2 m + n2
2
or
m n
sin θ = − √ , cos θ = − √
m 2 + n2 m 2 + n2
so the equation of the line is given by,
x−α y−β
= =d
cos θ sin θ
from where we can calculate x and y.
n
x = α + d cos θ = α + d · √ ,
m2 + n2
m
y = β + d sin θ = β + d · √
m2+ n2
or
−n
x = α + d cos θ = α + d · √ ,
m2 + n2
−m
y = β + d sin θ = β + d · √
m2 + n2
Example 2.2
What is the distance from A = (−1, 1) to the line 3x + 5y − 11 = 0 along a line that
makes an angle 45◦ with the positive x-axis.
Walkthrough.
1. Determine the line l that goes through P and has slope tan 45◦ .