Analytic Geometry in Two and Three Dimensions