My Digital Garden

Cartesian coordinates

Cartesian coordinates

Basics

Cartesian plane denoted \R2

Axes and Quadrants

xaxis={(x,y)\R2:y=0}yaxis={(x,y)\R2:x=0}first quadrant={(x,y)\R2:x>0,y>0}second quadrant={(x,y)\R2:x<0,y>0}third quadrant={(x,y)\R2:x<0,y<0}fourth quadrant={(x,y)\R2:x>0,y<0}

Calculating distance

Pythagoras

z=x2+y2

Distance formula

Given three points:

A=(xa,ya)B=(xb,yb)C=(xc,yc)dist(A,B)=(xaxb)2+(yayb)2dist(A,C)=(xaxc)2+(yayc)2

Clustering

If A and B are in Cluster I
and C is in Cluster II

Then

dist(A,B)<<dist(A,C)

Lines

Slope of line segment

Given
A=(a,b)
B=(c,d)

SlopeofAB=m=dbca

Basic line formula

yy0=m(xx0) "Point-slope" form
y=mx+b "slope-intercept" form

Given a line that passes through (2,1) and (3,2), i.e. a slope of 1,
for any point (x,y) to be on the line, the slope from (2,1) to (x,y) must be 1

1=y1x2

rearranging...

y1=1(x2)

so a definition of the line is:

={(x,y)\R2:y1=1(x2)}

Point-slope formula for line

Above generalises to

If a line has slope m, and if (x0,y0) is any point on , then has the equation:

yy0=m(xx0)

Slope-intercept formula for line

Considering same line defined as

={(x,y)\R2:y1=1(x2)}

This line intercepts the y-axis at a point (0,b) i.e.

b1=1(02)b=1

Substituting this intercept point back into the Point-Intercept formula:

y(1)=1(x0)y+1=xy=1x1

This generalises into the Slope-Intercept formula for the line:

If has slope m, and hits the y-axis at (0,b), then

y=mx+b

is an equation for , where m is the slope and b is the y-intercept.

Based on course material by Paul Bendich and Daniel Egger from Data Science Maths Skills