Algebra, Geometry and Trigonometry at a Glance

When a Geometry Problem Becomes an Algebra Problem

Learn how to turn points, lines and circles into equations, choose smart coordinates, and know when algebra helps and when it hides.

Key takeaways

  • Place the origin and axes to make coordinates simple, since distances and angles do not depend on that choice.
  • Slopes, midpoints, distances and dot products translate most statements about figures into equations.
  • Counting the solutions of those equations tells you how figures intersect, including when they only touch.
  • Algebra also shows what is impossible, as with several classical straightedge-and-compass constructions.

A geometry problem becomes an algebra problem the moment you give its points coordinates. Distances turn into square roots of sums of squares, lines and circles turn into equations, and "where do these meet?" turns into "which numbers satisfy both?"

The payoff is that you can often replace a flash of insight with a reliable calculation. The cost is that the calculation may be long, and it can hide the reason a fact is true. Knowing when to switch languages is a skill worth practicing.

The basic dictionary

For points P = (x₁, y₁) and Q = (x₂, y₂):

Geometric idea Algebraic form
Distance PQ √((x₂ − x₁)² + (y₂ − y₁)²)
Midpoint of PQ ((x₁ + x₂)/2, (y₁ + y₂)/2)
Slope (if x₁ ≠ x₂) (y₂ − y₁)/(x₂ − x₁)
Line ax + by = c, with a and b not both 0
Circle, center (h, k), radius r (x − h)² + (y − k)² = r²
Perpendicular vectors (u, v), (s, t) us + vt = 0
Parallel vectors ut − vs = 0

The last two rows are often better than slopes, because they need no special case for vertical lines. The background to this translation is told in how coordinates joined algebra to geometry, and the history of the method's founders in Descartes, Fermat and analytic geometry.

A first translation: the angle in a semicircle

Claim: if AB is a diameter of a circle and P is any other point on the circle, then angle APB is a right angle.

Put the center at the origin, so A = (−r, 0), B = (r, 0) and P = (x, y) with x² + y² = r². The vectors from P to the two ends are (−r − x, −y) and (r − x, −y). Their dot product is

(−r − x)(r − x) + (−y)(−y)
  = x² − r² + y²
  = 0                      (since x² + y² = r²)

A zero dot product means the vectors are perpendicular. The whole theorem collapsed into one line of cancellation.

A second translation: the medians meet

A median joins a corner of a triangle to the midpoint of the opposite side. Claim: the three medians pass through one point.

Let the corners be A, B and C, treated as coordinate pairs. The midpoint of BC is (B + C)/2. Go two thirds of the way from A toward it:

A + (2/3) ( (B + C)/2 − A )
  = A − (2/3)A + (B + C)/3
  = (A + B + C)/3

The result is unchanged if you rename the corners. So the same point lies two thirds of the way along each of the three medians. You get the concurrence and the 2 to 1 ratio together. This point is the centroid.

Intersections and what the discriminant says

Where does the line y = x + 1 meet the circle x² + y² = 25? Substitute:

x² + (x + 1)² = 25
2x² + 2x − 24 = 0
x² + x − 12 = 0
x = 3  or  x = −4

The points are (3, 4) and (−4, −3), and both satisfy the circle equation.

Now slide the line: y = x + c gives 2x² + 2cx + c² − 25 = 0. The discriminant is 4c² − 8(c² − 25) = 200 − 4c². It is positive when c² < 50 (two crossing points), zero when c² = 50 (the line is tangent), and negative when c² > 50 (they miss). A picture of a line sliding across a circle has become the sign of a number.

Areas and straightness

Put one corner of a triangle at the origin and the other two at (a, b) and (c, d). The area is half the absolute value of ad − bc. For corners (0, 0), (6, 1) and (2, 5), that gives ½ |30 − 2| = 14 square units.

The same expression tests whether three points are on one line, because a triangle with zero area is flat. Points (0, 0), (3, 2) and (9, 6) give 3 × 6 − 2 × 9 = 0, so they are collinear. A question about straightness has become a single subtraction, with no drawing and no worry that a sketch looks right when it is slightly off.

You can use the area formula backward too. The distance from a corner to the opposite side equals twice the area divided by that side's length. That route often avoids finding the foot of the perpendicular at all.

Finding a hidden shape

Algebra is especially good at "which points satisfy this condition?" questions. Suppose you want every point P that is twice as far from O = (0, 0) as from Q = (3, 0).

x² + y² = 4 ( (x − 3)² + y² )        (square both distances)
3x² + 3y² − 24x + 36 = 0
x² + y² − 8x + 12 = 0
(x − 4)² + y² = 4                    (complete the square)

The set is a circle with center (4, 0) and radius 2, often called a circle of Apollonius. Test two points: (2, 0) is 2 from O and 1 from Q, and (6, 0) is 6 from O and 3 from Q. Squaring was safe here because distances are never negative.

A parabola can be found the same way. Ask for all points equally far from the point (0, 1) and the horizontal line y = −1.

x² + (y − 1)² = (y + 1)²
x² = 4y

The squared terms in y cancel, and a curve defined purely by distances turns out to be the graph of a quadratic.

From figure to answer
1 Place axes Choose origin and directions to create zeros 2 Name unknowns Use as few letters as the figure allows 3 Write equations Distances, lines, circles, dot products 4 Solve or simplify Watch for division by zero and extra roots 5 Read it back State the result as a fact about the figure Place axes Choose origin and directions to create zeros 1 Name unknowns Use as few letters as the figure allows 2 Write equations Distances, lines, circles, dot products 3 Solve or simplify Watch for division by zero and extra roots 4 Read it back State the result as a fact about the figure 5

Choosing coordinates well

A good setup can cut a page of work to three lines.

  • Put a vertex or a center at the origin.
  • Lay one important side along the x-axis.
  • Use symmetry: for an isosceles triangle, place the corners at (−a, 0), (a, 0) and (0, b).
  • Keep generality. If you set a triangle up as equilateral, you have proved nothing about other triangles.
  • Double the letters to avoid fractions: corners (2a, 0) and (2b, 2c) give tidy midpoints.

This is legitimate because translations, rotations and reflections preserve distances and angles. You can say "without loss of generality" only for moves like these. Stretching one axis alone changes angles, although it keeps midpoints and parallel lines.

What algebra reveals about impossibility

Straightedge-and-compass constructions only ever intersect lines and circles. In coordinates, each step solves a linear or quadratic equation, so every constructible length can be built from the starting lengths using arithmetic and square roots.

Doubling a cube requires the length ∛2, and trisecting a general angle leads to a cubic equation. In 1837 Pierre Wantzel showed that neither can be done with these tools in general. Squaring the circle requires √π, and Lindemann's 1882 proof that π is transcendental ruled it out. Centuries of geometric effort were settled by algebra. See the impossible constructions for the details.

Moving up a dimension

The dictionary extends to space with one more coordinate. Distance gains a third squared term, a sphere is x² + y² + z² = r² when centered at the origin, and a single linear equation ax + by + cz = d, with a, b and c not all zero, describes a plane.

Here algebra really earns its keep, because spatial pictures are hard to draw. Take a cube with corners at coordinates made of 0s and 1s. What is the angle between two diagonals of the cube? The diagonals point along (1, 1, 1) and (1, 1, −1). Their dot product is 1 and each has length √3, so the cosine of the angle is 1/3 and the angle is about 70.5°. A purely visual attempt often guesses 90°.

The same recipes keep working in four or more dimensions, where no picture is available at all. You simply add coordinates, and distance and angle are defined by the formulas.

When to stay geometric

Algebra is not always the better route. Square roots multiply, expressions swell, and a symmetric figure can turn into an unsymmetric mess. Try a synthetic argument, one that reasons directly from the figure, when you see equal lengths, reflections, or angles on a common arc.

Compare two solutions of one problem. A walker starts at A = (0, 2), must touch a straight river along the x-axis, and then go to B = (6, 4). Where should she touch it? You could write the total length as √(x² + 4) + √((6 − x)² + 16) and use calculus. Or you could reflect A across the river to (0, −2), which leaves every distance to the river unchanged. The shortest route from the reflected point to B is a straight line, y = x − 2, which crosses the axis at x = 2. The length is √72, about 8.49. The reflection gets there almost without effort, and coordinates then supply the numbers.

Mathematically, the translation has a remarkable guarantee. Tarski showed that elementary geometry, formulated in first-order terms, can be decided by an algorithm working with real-number algebra. In practice that algorithm can be far too slow for large problems. Computer systems use related methods in robotics and design. Algebraic geometry develops the theory of shapes defined by polynomial equations.

Common slips

Dividing by a quantity that could be zero. Vertical lines have no slope. Handle them separately or use the vector forms.

Losing the geometry's conditions. A length is nonnegative, a point may be required to lie on a segment, and a triangle needs three non-collinear corners. Algebra will happily return solutions that violate these.

Adding false roots by squaring. If you square an equation whose sides could differ in sign, check each solution in the original.

Stopping at the numbers. Finish by saying what the result means for the figure. An answer like "c² = 50" is more useful when you add "the line just touches the circle."

Written for 4Mathematics with AI writing tools and not reviewed line by line by a person. Check anything you rely on against a textbook or primary source. Report an error.

Keep reading

All 31 articles in Algebra, Geometry and Trigonometry at a Glance →

Latest news on this topic