Subject: Civil Engineering Chapter: Engineering Mathematics Topic: 1.3 Coordinate Geometry
Coordinate geometry, also called analytic geometry, is the branch of mathematics in which geometric figures are studied using algebraic equations in a system of coordinates. For a civil engineer, coordinate geometry is the mathematical foundation of surveying, map-making, road and railway alignment, and the setting out of curves and structures on the ground. The location of every point on a construction site is defined by its coordinates in a survey grid, and the computation of distances, angles and areas between points is carried out entirely by the methods of this chapter. Competitive examinations in civil engineering regularly test the straight line, the circle, and the conic sections, together with the basic operations of distance, section and area computation.
The Cartesian coordinate system, named after Rene Descartes, locates every point in a plane by an ordered pair of numbers (x, y), where x is the distance of the point from the y-axis and y is its distance from the x-axis. The two perpendicular axes divide the plane into four quadrants. Points in the first quadrant have positive x and y coordinates, points in the second have negative x and positive y, points in the third have both negative, and points in the fourth have positive x and negative y. All geometric quantities, including distance, slope, midpoint, area and the equation of a curve, can be expressed purely in terms of these coordinates, which is why geometry becomes a subject of algebra and calculation rather than only of construction with instruments.
In this chapter we will study the fundamental formulas for distance, section and area, the various forms of the equation of a straight line and their interconversion, the concept of slope and parallelism and perpendicularity, the general equation of a circle and its special forms, and the standard equations of the conic sections, namely the parabola, ellipse and hyperbola. Special emphasis is placed on the application of the straight line and circle equations to surveying problems, where a traverse leg is a straight line between two stations and an alignment curve is a segment of a circle. The chapter closes with worked numerical examples in the style of competitive examinations so that every formula is immediately connected to a problem-solving context.
The distance between two points P(x1, y1) and Q(x2, y2) is given by the square root of (x2 - x1) squared plus (y2 - y1) squared. This formula is a direct application of the theorem of Pythagoras to the right-angled triangle formed by the horizontal and vertical differences between the two points. In surveying, the distance between two traverse stations is routinely computed from their coordinate differences, and this same formula is used in GIS and CAD systems to report distances on digital maps.
The section formula gives the coordinates of a point that divides the line segment joining two points in a given ratio. If the point divides the segment joining P(x1, y1) and Q(x2, y2) internally in the ratio m:n, then its coordinates are (m x2 + n x1)/(m + n), (m y2 + n y1)/(m + n). If the division is external, the coordinates are (m x2 - n x1)/(m - n), (m y2 - n y1)/(m - n). When m equals n, the point is the midpoint of the segment, whose coordinates are the averages of the corresponding coordinates of the endpoints. The centroid of a triangle, which is the point of intersection of the medians, has coordinates equal to the average of the three vertices, and it divides each median in the ratio 2:1 from the vertex.
The area of a triangle whose vertices are (x1, y1), (x2, y2) and (x3, y3) is given by half the absolute value of the expression x1(y2 - y3) + x2(y3 - y1) + x3(y1 - y2). The absolute value ensures that the area is always positive regardless of the order of the vertices. If this expression evaluates to zero, the three points are collinear, which provides a quick algebraic test for collinearity. In civil engineering, the area formula for a triangle and the shoelace method for polygons are the basis of computing land areas from survey coordinates, a task known as coordinate area computation in cadastral surveys.
Example 1: Find the distance between the points A(3, 4) and B(7, 1). Solution: Distance = sqrt((7-3) squared + (1-4) squared) = sqrt(16 + 9) = sqrt 25 = 5 units.
Example 2: Find the coordinates of the point dividing the join of P(2, 3) and Q(8, 9) internally in the ratio 1:2. Solution: Using the section formula with m = 1, n = 2: x = (1 x 8 + 2 x 2)/3 = 12/3 = 4, y = (1 x 9 + 2 x 3)/3 = 15/3 = 5. Hence the point is (4, 5).
Example 3: Find the area of the triangle with vertices (0, 0), (4, 0) and (0, 3). Solution: Area = 1/2 x |0(0 - 3) + 4(3 - 0) + 0(0 - 0)| = 1/2 x |0 + 12 + 0| = 6 square units. This matches the right-triangle area 1/2 x 4 x 3 = 6.
The equation of a straight line can be written in several standard forms, and the ability to convert between them is an important examination skill. The general equation of a straight line is a x + b y + c = 0, where a and b are not both zero. The slope-intercept form is y = m x + c, where m is the slope of the line and c is its intercept on the y-axis. The point-slope form is y - y1 = m(x - x1), describing the line of slope m passing through the point (x1, y1). The two-point form is (y - y1)/(y2 - y1) = (x - x1)/(x2 - x1), and the intercept form is x/a + y/b = 1, where a and b are the intercepts cut on the x-axis and y-axis respectively.
The slope of a line is the tangent of the angle it makes with the positive direction of the x-axis, and for a line through two points it equals (y2 - y1)/(x2 - x1). Two lines are parallel if and only if their slopes are equal, and two lines are perpendicular if and only if the product of their slopes is minus 1. These conditions allow quick verification of right angles and parallel alignment, which appear constantly in the checking of building plans and the design of road intersections. The angle between two lines with slopes m1 and m2 is given by tangent of the angle equals (m2 - m1)/(1 + m1 m2), and the distance of a point (x1, y1) from the line a x + b y + c = 0 is given by the absolute value of (a x1 + b y1 + c) divided by the square root of (a squared + b squared).
In civil engineering applications, the straight line is the fundamental element of a traverse, of road centre lines in straight reaches, and of property boundaries. The intersection point of two lines, found by solving their equations simultaneously, gives the location of a survey station or the turning point of a boundary. The distance of a point from a line is used in setting out building offsets from a centre line and in checking the clearance of structures from road alignments.
Example 4: Find the equation of the straight line passing through the points (1, 2) and (3, 6). Solution: Slope m = (6 - 2)/(3 - 1) = 4/2 = 2. Using the point-slope form with (1, 2): y - 2 = 2(x - 1), so y = 2x. Hence the equation is y = 2x.
Example 5: Find the distance of the point (3, 4) from the line 3x + 4y - 10 = 0. Solution: Distance = |3(3) + 4(4) - 10|/sqrt(9 + 16) = |9 + 16 - 10|/5 = 15/5 = 3 units.
The circle is the locus of all points at a fixed distance, called the radius, from a fixed point, called the centre. If the centre is (h, k) and the radius is r, the equation of the circle is (x - h) squared plus (y - k) squared equals r squared. When the centre is at the origin, this simplifies to x squared plus y squared equals r squared. The general equation of a circle is x squared + y squared + 2 g x + 2 f y + c = 0, whose centre is (-g, -f) and whose radius is the square root of (g squared + f squared - c). The radius is real only when g squared + f squared is greater than c, otherwise the equation does not represent a real circle.
The conic sections are the curves obtained by cutting a right circular cone by a plane, and they include the circle, the parabola, the ellipse and the hyperbola. A parabola is the locus of a point whose distance from a fixed point, called the focus, equals its distance from a fixed straight line, called the directrix. The standard equation of a parabola with vertex at the origin opening to the right is y squared = 4 a x, where a is the distance from the vertex to the focus. An ellipse is the locus of a point whose sum of distances from two fixed foci is constant, and its standard equation is x squared/a squared plus y squared/b squared equals 1. A hyperbola is the locus of a point whose difference of distances from two foci is constant, with standard equation x squared/a squared minus y squared/b squared equals 1, and its asymptotes are the lines y = plus or minus (b/a)x.
Parabolas and ellipses have direct civil engineering importance. The parabolic curve is the ideal shape for the cables of suspension bridges and for arch bridges, because a cable carrying a uniformly distributed load hangs in a parabola, and a parabolic arch transmits such loads primarily in compression. The ellipse appears in the design of elliptical arches, in the shape of culverts under load, and in the motion of projectiles in the study of ballistic trajectories. The tangent and normal to a conic at a given point, and the condition for a straight line to touch a conic, are standard examination topics that prepare the candidate for calculus-based geometry.
Example 6: Find the centre and radius of the circle x squared + y squared - 6x + 8y - 11 = 0. Solution: Here 2g = -6 so g = -3, and 2f = 8 so f = 4, with c = -11. Centre = (-g, -f) = (3, -4). Radius = sqrt(g squared + f squared - c) = sqrt(9 + 16 + 11) = sqrt 36 = 6 units.
Example 7: Find the focus of the parabola y squared = 16 x. Solution: Comparing with y squared = 4 a x gives 4a = 16, so a = 4. The focus is at (a, 0) = (4, 0).
| Form | Equation | Useful for |
|---|---|---|
| General | a x + b y + c = 0 | Uniform representation of any line |
| Slope-intercept | y = m x + c | Reading slope and intercept directly |
| Point-slope | y - y1 = m(x - x1) | Line through a known point |
| Two-point | (y-y1)/(y2-y1) = (x-x1)/(x2-x1) | Line through two points |
| Intercept | x/a + y/b = 1 | Reading axis intercepts a and b |
| Normal | x cos w + y sin w = p | Perpendicular distance form |
| Conic | Standard Equation | Focus / Centre | Key Quantity |
|---|---|---|---|
| Circle (origin) | x2 + y2 = r2 | centre (0,0) | radius r |
| Circle (general) | x2 + y2 + 2gx + 2fy + c = 0 | centre (-g,-f) | r = sqrt(g2+f2-c) |
| Parabola | y2 = 4 a x | focus (a,0) | latus rectum 4a |
| Ellipse | x2/a2 + y2/b2 = 1 | foci on x-axis | eccentricity < 1 |
| Hyperbola | x2/a2 - y2/b2 = 1 | foci on x-axis | eccentricity > 1 |
flowchart TD
A[Coordinate Geometry] --> B[Distance and section]
A --> C[Area and collinearity]
A --> D[Straight line]
A --> E[Circle]
A --> F[Conic sections]
B --> B1[Distance formula]
B --> B2[Section formula]
B --> B3[Centroid and midpoint]
C --> C1[Triangle area formula]
C --> C2[Collinearity test]
D --> D1[Slope m]
D --> D2[Parallel and perpendicular]
D --> D3[Distance of a point from a line]
E --> E1[Centre and radius]
E --> E2[General equation]
F --> F1[Parabola]
F --> F2[Ellipse]
F --> F3[Hyperbola]
The following diagrams show the coordinate axes with a straight line and its intercepts, and the conic sections with their standard equations.
Coordinate geometry transforms the geometric intuition of the surveyor and the structural designer into precise algebraic computation, and it is therefore one of the most directly useful chapters in engineering mathematics. In this chapter we have studied the distance, section and area formulas, the several forms of the equation of a straight line with the conditions for parallelism and perpendicularity, the general equation of the circle with its centre and radius, and the standard equations of the parabola, ellipse and hyperbola. Worked numerical examples have connected every formula to a concrete examination problem, and the quick revision tables and mind map provide rapid recall of all essential results. The techniques of this chapter are used continuously in surveying computations, in the setting out of horizontal curves on highways and railways, in the design of bridge cables and arches, and in the computer-aided drafting systems of modern civil engineering practice. A candidate who masters coordinate geometry will find that the analytical skills acquired here shorten the solution time of problems in several later chapters and significantly improve the overall mathematics score.