Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Geometry is the branch of mathematics concerned with the properties and relations of points, lines, surfaces, and solids. This chapter surveys the major areas of classical and coordinate geometry, with key formulas and Python examples.


1. Plane Geometry

1.1 Angles and Lines

Two lines are parallel if they never intersect and perpendicular if they intersect at a right angle (90°90°). Angles are measured in degrees or radians:

θrad=π180θdeg\theta_{\text{rad}} = \frac{\pi}{180} \theta_{\text{deg}}

Complementary angles sum to 90°90°; supplementary angles sum to 180°180°.

1.2 Triangles

For any triangle with sides aa, bb, cc and angles AA, BB, CC opposite to those sides:

  • Angle sum: A+B+C=180°A + B + C = 180°

  • Area: S=12absinC\displaystyle S = \frac{1}{2}ab\sin C

  • Perimeter: p=a+b+cp = a + b + c

  • Heron’s formula: S=s(sa)(sb)(sc)\displaystyle S = \sqrt{s(s-a)(s-b)(s-c)}, where s=p/2s = p/2

Pythagorean theorem (right triangle, C=90°C = 90°):

a2+b2=c2a^2 + b^2 = c^2

Law of cosines (general triangle):

c2=a2+b22abcosCc^2 = a^2 + b^2 - 2ab\cos C

Law of sines:

asinA=bsinB=csinC=2R\frac{a}{\sin A} = \frac{b}{\sin B} = \frac{c}{\sin C} = 2R

where RR is the circumradius of the triangle.

1.3 Circles

For a circle of radius rr:

PropertyFormula
CircumferenceC=2πrC = 2\pi r
AreaA=πr2A = \pi r^2
Arc length (central angle θ\theta)s=rθs = r\theta
Sector areaAsector=12r2θA_{\text{sector}} = \frac{1}{2}r^2\theta

1.4 Common Polygons

For a regular nn-gon with side length ss:

Interior angle=(n2)180°nArea=ns24cot ⁣(πn)\begin{align} \text{Interior angle} &= \frac{(n-2)\cdot 180°}{n} \\ \text{Area} &= \frac{ns^2}{4}\cot\!\left(\frac{\pi}{n}\right) \end{align}

2. Coordinate Geometry

In the Cartesian plane, every point is given by (x,y)(x, y).

2.1 Distance and Midpoint

The distance between P1=(x1,y1)P_1 = (x_1, y_1) and P2=(x2,y2)P_2 = (x_2, y_2):

d=(x2x1)2+(y2y1)2d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}

The midpoint MM:

M=(x1+x22,  y1+y22)M = \left(\frac{x_1 + x_2}{2},\; \frac{y_1 + y_2}{2}\right)

2.2 Lines

The equation of a line through (x1,y1)(x_1, y_1) with slope m=ΔyΔxm = \dfrac{\Delta y}{\Delta x}:

yy1=m(xx1)(point-slope form)y - y_1 = m(x - x_1) \quad \text{(point-slope form)}

Standard form: ax+by+c=0ax + by + c = 0. The distance from a point (x0,y0)(x_0, y_0) to this line:

d=ax0+by0+ca2+b2d = \frac{|ax_0 + by_0 + c|}{\sqrt{a^2 + b^2}}

2.3 Conic Sections

Conic sections arise as the intersection of a plane with a double cone.

ConicStandard Equation
Circlex2+y2=r2x^2 + y^2 = r^2
Ellipsex2a2+y2b2=1\dfrac{x^2}{a^2} + \dfrac{y^2}{b^2} = 1
Parabolay=ax2+bx+cy = ax^2 + bx + c
Hyperbolax2a2y2b2=1\dfrac{x^2}{a^2} - \dfrac{y^2}{b^2} = 1

For an ellipse, the eccentricity e=c/ae = c/a where c2=a2b2c^2 = a^2 - b^2 (a>ba > b). When e=0e = 0 it is a circle; as e1e \to 1 it becomes a parabola.


3. Transformations

A geometric transformation maps points in the plane to new positions.

3.1 Translation

Shift every point by (Δx,Δy)(\Delta x, \Delta y):

(xy)=(xy)+(ΔxΔy)\begin{pmatrix} x' \\ y' \end{pmatrix} = \begin{pmatrix} x \\ y \end{pmatrix} + \begin{pmatrix} \Delta x \\ \Delta y \end{pmatrix}

3.2 Rotation

Rotate by angle θ\theta about the origin:

(xy)=(cosθsinθsinθcosθ)(xy)\begin{pmatrix} x' \\ y' \end{pmatrix} = \begin{pmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{pmatrix} \begin{pmatrix} x \\ y \end{pmatrix}

3.3 Reflection

Reflection across the xx-axis: (x,y)(x,y)(x, y) \mapsto (x, -y). Reflection across the line y=xy = x: (x,y)(y,x)(x, y) \mapsto (y, x).

3.4 Scaling (Dilation)

Scale by factor kk from the origin:

(x,y)(kx,  ky)(x, y) \mapsto (kx,\; ky)

4. Solid Geometry

4.1 Common 3-D Volumes and Surface Areas

SolidVolumeSurface Area
Cube (side aa)a3a^36a26a^2
Rectangular boxwh\ell w h2(w+h+wh)2(\ell w + \ell h + wh)
Sphere (radius rr)43πr3\dfrac{4}{3}\pi r^34πr24\pi r^2
Cylinder (rr, hh)πr2h\pi r^2 h2πr(r+h)2\pi r(r + h)
Cone (rr, hh)13πr2h\dfrac{1}{3}\pi r^2 hπr(r+l)\pi r(r + l), l=r2+h2l = \sqrt{r^2 + h^2}
Tetrahedron (side aa)a362\dfrac{a^3}{6\sqrt{2}}a23a^2\sqrt{3}

4.2 Coordinates in 3-D

Cartesian: (x,y,z)(x, y, z). Euclidean distance:

d=(x2x1)2+(y2y1)2+(z2z1)2d = \sqrt{(x_2-x_1)^2 + (y_2-y_1)^2 + (z_2-z_1)^2}

Spherical (r,θ,ϕ)(r, \theta, \phi):

x=rsinϕcosθy=rsinϕsinθz=rcosϕ\begin{align} x &= r\sin\phi\cos\theta \\ y &= r\sin\phi\sin\theta \\ z &= r\cos\phi \end{align}

Cylindrical (ρ,θ,z)(\rho, \theta, z):

x=ρcosθy=ρsinθz=z\begin{align} x &= \rho\cos\theta \\ y &= \rho\sin\theta \\ z &= z \end{align}

5. Trigonometry

5.1 Right-Triangle Definitions

For angle θ\theta in a right triangle (opposite oo, adjacent aa, hypotenuse hh):

sinθ=oh,cosθ=ah,tanθ=oa\sin\theta = \frac{o}{h}, \quad \cos\theta = \frac{a}{h}, \quad \tan\theta = \frac{o}{a}

5.2 Key Identities

sin2θ+cos2θ=1sin(α±β)=sinαcosβ±cosαsinβcos(α±β)=cosαcosβsinαsinβtan(α+β)=tanα+tanβ1tanαtanβ\begin{align} \sin^2\theta + \cos^2\theta &= 1 \\ \sin(\alpha \pm \beta) &= \sin\alpha\cos\beta \pm \cos\alpha\sin\beta \\ \cos(\alpha \pm \beta) &= \cos\alpha\cos\beta \mp \sin\alpha\sin\beta \\ \tan(\alpha + \beta) &= \frac{\tan\alpha + \tan\beta}{1 - \tan\alpha\tan\beta} \end{align}

Double-angle formulas:

sin2θ=2sinθcosθcos2θ=cos2θsin2θ=12sin2θ\begin{align} \sin 2\theta &= 2\sin\theta\cos\theta \\ \cos 2\theta &= \cos^2\theta - \sin^2\theta = 1 - 2\sin^2\theta \end{align}

5.3 Inverse Trig Functions

FunctionRange
arcsinx\arcsin x[π/2,  π/2][-\pi/2,\; \pi/2]
arccosx\arccos x[0,  π][0,\; \pi]
arctanx\arctan x(π/2,  π/2)(-\pi/2,\; \pi/2)

6. Geometric Inequalities

  • Triangle inequality: ab<c<a+b|a - b| < c < a + b

  • AM–GM inequality: a+b2ab\dfrac{a+b}{2} \geq \sqrt{ab} for a,b0a, b \geq 0

  • Isoperimetric inequality: Among all plane figures with perimeter LL, the circle has the maximum area A=L2/(4π)A = L^2 / (4\pi).


7. Vectors in Geometry

Vectors provide a powerful algebraic framework for solving geometric problems.

7.1 Position Vectors and Geometric Proofs

A point PP with position vector p\mathbf{p} relative to the origin. Key constructions:

  • Midpoint of ABAB: m=a+b2\mathbf{m} = \dfrac{\mathbf{a} + \mathbf{b}}{2}

  • Point dividing ABAB in ratio m:nm:n: p=na+mbm+n\mathbf{p} = \dfrac{n\,\mathbf{a} + m\,\mathbf{b}}{m + n}

  • Centroid of triangle ABCABC: g=a+b+c3\mathbf{g} = \dfrac{\mathbf{a} + \mathbf{b} + \mathbf{c}}{3}

7.2 Equations of Lines and Planes

Line through point a\mathbf{a} in direction d\mathbf{d}:

r=a+td,tR\mathbf{r} = \mathbf{a} + t\,\mathbf{d}, \quad t \in \mathbb{R}

Plane through point a\mathbf{a} with normal n\mathbf{n}:

n(ra)=0nr=na\mathbf{n} \cdot (\mathbf{r} - \mathbf{a}) = 0 \quad \Longleftrightarrow \quad \mathbf{n} \cdot \mathbf{r} = \mathbf{n} \cdot \mathbf{a}

7.3 Distance Formulas (Vector Form)

  • Point to line: d=d×(ap)dd = \dfrac{\|\mathbf{d} \times (\mathbf{a} - \mathbf{p})\|}{\|\mathbf{d}\|}

  • Point to plane: d=n(pa)nd = \dfrac{|\mathbf{n} \cdot (\mathbf{p} - \mathbf{a})|}{\|\mathbf{n}\|}

  • Angle between two planes: cosθ=n1n2n1n2\cos\theta = \dfrac{|\mathbf{n}_1 \cdot \mathbf{n}_2|}{\|\mathbf{n}_1\|\,\|\mathbf{n}_2\|}

7.4 Area and Volume via Cross and Scalar Triple Products

  • Area of parallelogram spanned by u,v\mathbf{u}, \mathbf{v}: A=u×vA = \|\mathbf{u} \times \mathbf{v}\|

  • Area of triangle: A=12u×vA = \frac{1}{2}\|\mathbf{u} \times \mathbf{v}\|

  • Volume of parallelepiped spanned by u,v,w\mathbf{u}, \mathbf{v}, \mathbf{w}: V=u(v×w)V = |\mathbf{u} \cdot (\mathbf{v} \times \mathbf{w})|

  • Volume of tetrahedron: V=16u(v×w)V = \frac{1}{6}|\mathbf{u} \cdot (\mathbf{v} \times \mathbf{w})|


8. Curves and Parametric Equations

8.1 Parametric Curves

A curve in the plane can be described by r(t)=(x(t),y(t))\mathbf{r}(t) = (x(t),\, y(t)) for t[a,b]t \in [a, b].

CurveParametrisation
Circle (radius rr)x=rcost,  y=rsintx = r\cos t,\; y = r\sin t
Ellipse (a,ba, b)x=acost,  y=bsintx = a\cos t,\; y = b\sin t
Cycloidx=r(tsint),  y=r(1cost)x = r(t - \sin t),\; y = r(1 - \cos t)
Lissajousx=Asin(at+δ),  y=Bsin(bt)x = A\sin(at + \delta),\; y = B\sin(bt)

8.2 Arc Length

For a smooth curve (x(t),y(t))(x(t), y(t)) over [a,b][a, b]:

L=ab(dxdt)2+(dydt)2dtL = \int_a^b \sqrt{\left(\frac{dx}{dt}\right)^2 + \left(\frac{dy}{dt}\right)^2}\, dt

8.3 Curvature

The curvature κ\kappa measures how fast the curve bends:

κ=xyyx(x2+y2)3/2\kappa = \frac{|x'y'' - y'x''|}{(x'^2 + y'^2)^{3/2}}

For y=f(x)y = f(x): κ=f(1+f2)3/2\kappa = \dfrac{|f''|}{(1 + f'^2)^{3/2}}. The radius of curvature is R=1/κR = 1/\kappa.


9. Non-Euclidean Geometry

9.1 Euclidean Parallel Postulate

Euclid’s fifth postulate: through a point not on a given line, there is exactly one parallel line. Modifying this postulate yields non-Euclidean geometries.

9.2 Spherical (Elliptic) Geometry

On the surface of a sphere of radius RR:

  • Lines are great circles

  • No parallel lines exist (all great circles intersect)

  • Angle sum of a triangle: A+B+C=π+SR2A + B + C = \pi + \dfrac{S}{R^2} where SS is the area

  • Area of spherical triangle: S=R2(A+B+Cπ)S = R^2(A + B + C - \pi) (spherical excess)

9.3 Hyperbolic Geometry

In the Poincaré half-plane model (upper half of R2\mathbb{R}^2):

  • Lines are vertical rays and semicircles orthogonal to the xx-axis

  • Through a point not on a given line, there are infinitely many parallel lines

  • Angle sum of a triangle: A+B+C<πA + B + C < \pi

  • Area of hyperbolic triangle: S=π(A+B+C)S = \pi - (A + B + C) (angular defect)

  • The metric is ds2=dx2+dy2y2ds^2 = \dfrac{dx^2 + dy^2}{y^2}, giving constant negative curvature K=1K = -1

9.4 Gaussian Curvature

The Gaussian curvature KK classifies surfaces locally:

KKGeometryModel
K=0K = 0Euclidean (flat)Plane, cylinder
K>0K > 0Spherical (elliptic)Sphere
K<0K < 0Hyperbolic (saddle)Pseudosphere

The Gauss–Bonnet theorem relates total curvature to topology:

 ⁣ ⁣SKdA=2πχ(S)\int\!\!\int_S K\, dA = 2\pi\chi(S)

where χ(S)\chi(S) is the Euler characteristic of the surface (χ=2\chi = 2 for a sphere, χ=0\chi = 0 for a torus).


10. Compass and Straightedge Constructions

Classical Greek geometry restricted constructions to an unmarked straightedge and a compass.

10.1 Constructible Operations

  • Bisecting a segment or angle

  • Constructing a perpendicular to a line

  • Constructing a line parallel to a given line

  • Transferring a length

10.2 Impossible Constructions (proved in the 19th century)

Three famous problems are impossible with compass and straightedge alone:

ProblemWhy impossible
Squaring the circleRequires constructing π\sqrt{\pi}; π\pi is transcendental
Doubling the cubeRequires constructing 23\sqrt[3]{2}; not a constructible number
Trisecting a general angleLeads to an irreducible cubic equation

A length is constructible if and only if it can be obtained from the rationals by a finite sequence of additions, subtractions, multiplications, divisions, and square roots — equivalently, the minimal polynomial has degree a power of 2.