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:

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

This is a placeholder for Geometry content.