MatheramaMatherama
← Coordinate Geometry Fundamentals
Coordinate Geometry Fundamentals·Section 2·8 min read

Measuring Distances

Measuring Distances§

Distance between two points§

Theorem: The distance dd between two points A(x1,y1)A(x_1, y_1) and B(x2,y2)B(x_2, y_2) in the Cartesian coordinate system is given by the formula:

d=(x2−x1)2+(y2−y1)2d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}

Corrolary: The distance dd of a point P(x,y)P(x, y) from the origin O(0,0)O(0, 0) in the Cartesian coordinate system is given by the formula:

d=x2+y2d = \sqrt{x^2 + y^2}

Distance from axes§

The distance of a point P(x,y)P(x, y) from the x-axis and from the y-axis in the Cartesian coordinate system can be determined by considering the perpendicular distances from PP to these axes.

Distance from the x-axis

The distance of point P(x,y)P(x, y) from the x-axis is equal to the absolute value of the ordinate yy of the point. This is because the distance from any point to the x-axis is measured vertically (along the y-direction). Therefore, the distance dxd_x from P(x,y)P(x, y) to the x-axis is:

dx=∣y∣d_x = |y|

Distance from the y-axis

Similarly, the distance of point P(x,y)P(x, y) from the y-axis is equal to the absolute value of the abscissa xx of the point. The distance from any point to the y-axis is measured horizontally (along the x-direction). Thus, the distance dyd_y from P(x,y)P(x, y) to the y-axis is:

dy=∣x∣d_y = |x|

Conversion between Cartesian and Polar Coordinates§

Interconversion between Polar and Cartesian Coordinates

Polar to Cartesian Conversion§

Given polar coordinates (r,θ)(r, \theta), where rr is the radial distance from the origin and θ\theta is the angle from the positive x-axis:

  1. x-coordinate: x=rcos⁡(θ)x = r \cos(\theta)

    The x-coordinate is found by projecting the radius rr onto the x-axis, which forms the adjacent side of the right-angled triangle. The length of this side is rcos⁡(θ)r \cos(\theta).

  2. y-coordinate: y=rsin⁡(θ)y = r \sin(\theta)

    The y-coordinate is obtained by projecting the radius rr onto the y-axis, which forms the opposite side of the right-angled triangle. The length of this side is rsin⁡(θ)r \sin(\theta).

Cartesian to Polar Conversion§

Given Cartesian coordinates (x,y)(x, y):

  1. Radial distance (r): r=x2+y2r = \sqrt{x^2 + y^2}

    The radial distance rr is the hypotenuse of the right-angled triangle formed by the x and y coordinates. According to Pythagoras' theorem, rr is the square root of the sum of the squares of the x and y coordinates.

  2. Angle (θ\theta): θ=tan⁡−1(yx)\theta = \tan^{-1}\left(\frac{y}{x}\right)

    The angle θ\theta is the angle between the radius rr and the positive x-axis. It is calculated using the arctan function of the ratio of the y-coordinate to the x-coordinate. Note that care must be taken to determine the correct quadrant for θ\theta, as tan⁡−1(yx)\tan^{-1}\left(\frac{y}{x}\right) alone does not distinguish between all four quadrants.

Distance between two points expressed in polar form.§

Distance between two points expressed in polar form

To find the distance between two points A(r1,θ1)A(r_1, \theta_1) and B(r2,θ2)B(r_2, \theta_2) given in polar coordinates without using vector analysis, we construct a triangle OABOAB where OO is the origin, AA and BB are the points given by their polar coordinates, and ABAB is the line segment connecting AA and BB.

Applying the Law of Cosines directly to triangle OABOAB:

AB2=OA2+OB2−2⋅OA⋅OB⋅cos⁡(∠AOB)AB^2 = OA^2 + OB^2 - 2 \cdot OA \cdot OB \cdot \cos(\angle AOB)

Substitute OAOA with r1r_1 and OBOB with r2r_2, and recognize that the angle ∠AOB\angle AOB is the difference in the angles of the two polar coordinates, which is θ2−θ1\theta_2 - \theta_1 or θ1−θ2\theta_1 - \theta_2 (the cosine function is even, so the sign does not affect the result):

AB2=r12+r22−2r1r2cos⁡(θ2−θ1)AB^2 = r_1^2 + r_2^2 - 2r_1r_2\cos(\theta_2 - \theta_1)

Taking the square root to solve for ABAB:

AB=r12+r22−2r1r2cos⁡(θ2−θ1)AB = \sqrt{r_1^2 + r_2^2 - 2r_1r_2\cos(\theta_2 - \theta_1)}

This formula calculates the distance ABAB between the two points AA and BB in polar coordinates.

Application of distance formula§

With distance formula we are able to convert geomterical distance into algebraic expression. We can use the distance formula to achieve many things.

Collinearity of Three Points§

To check if three points A(x1,y1)A(x_1, y_1), B(x2,y2)B(x_2, y_2), and C(x3,y3)C(x_3, y_3) are collinear using the distance formula:

  1. Calculate the distances between each pair of points:

    AB=(x2−x1)2+(y2−y1)2AB = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2} BC=(x3−x2)2+(y3−y2)2BC = \sqrt{(x_3 - x_2)^2 + (y_3 - y_2)^2} AC=(x3−x1)2+(y3−y1)2AC = \sqrt{(x_3 - x_1)^2 + (y_3 - y_1)^2}
  2. Verify the collinearity condition:

    • Points AA, BB, and CC are collinear if one of the following is true:
    AB+BC=ACAB + BC = AC AC+BC=ABAC + BC = AB AB+AC=BCAB + AC = BC

Collinearity of three points by measuring distances between them

Example:

Consider points A(1,2)A(1, 2), B(3,6)B(3, 6), and C(5,10)C(5, 10).

Calculate distances:

AB=(3−1)2+(6−2)2=4+16=20AB = \sqrt{(3 - 1)^2 + (6 - 2)^2} = \sqrt{4 + 16} = \sqrt{20} BC=(5−3)2+(10−6)2=4+16=20BC = \sqrt{(5 - 3)^2 + (10 - 6)^2} = \sqrt{4 + 16} = \sqrt{20} AC=(5−1)2+(10−2)2=16+64=80AC = \sqrt{(5 - 1)^2 + (10 - 2)^2} = \sqrt{16 + 64} = \sqrt{80}

Check the condition:

AB+BC=20+20=220AB + BC = \sqrt{20} + \sqrt{20} = 2\sqrt{20} AC=80=220AC = \sqrt{80} = 2\sqrt{20}

Since AB+BC=ACAB + BC = AC, points AA, BB, and CC are collinear.

Determining the Type of Triangle Using the Distance Formula§

To determine the type of a triangle given three points A(x1,y1)A(x_1, y_1), B(x2,y2)B(x_2, y_2), and C(x3,y3)C(x_3, y_3) using the distance formula:

  1. Compute the lengths of the sides using the distance formula:

    AB=(x2−x1)2+(y2−y1)2AB = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2} BC=(x3−x2)2+(y3−y2)2BC = \sqrt{(x_3 - x_2)^2 + (y_3 - y_2)^2} AC=(x3−x1)2+(y3−y1)2AC = \sqrt{(x_3 - x_1)^2 + (y_3 - y_1)^2}
  2. Compare the lengths to identify the triangle type:

    • Equilateral: All three sides are equal (AB=BC=ACAB = BC = AC).
    • Isosceles: Exactly two sides are equal (e.g., AB=ACAB = AC or AB=BCAB = BC or AC=BCAC = BC, but not all three).
    • Scalene: All sides have different lengths (AB≠BC≠ACAB \neq BC \neq AC).
  3. To check for right-angled triangles, apply the Pythagorean theorem:

    • Right-Angled: One side squared equals the sum of the squares of the other two sides (e.g., AB2+BC2=AC2AB^2 + BC^2 = AC^2, or equivalent permutations).
    • Right-Angled Isosceles: It's a right-angled triangle with two equal sides.
  4. To determine whether a triangle is acute or obtuse, we approach in the following way:

    An acute triangle is one where all the interior angles are less than 90 degrees. In the context of a triangle with sides ABAB, BCBC, and ACAC, for all combinations of the sides, the square of one side is less than the sum of the squares of the other two sides. This can be expressed as:

    1. AB2+BC2>AC2AB^2 + BC^2 > AC^2
    2. AC2+AB2>BC2AC^2 + AB^2 > BC^2
    3. BC2+AC2>AB2BC^2 + AC^2 > AB^2

    If these inequalities hold for all three combinations, then the triangle is acute.

    For a right-angled triangle, one of these equations becomes an equality, corresponding to the Pythagorean theorem.

    For an obtuse triangle, where one angle is greater than 90 degrees, the square of the longest side is greater than the sum of the squares of the other two sides. This yields:

    1. AB2+BC2<AC2AB^2 + BC^2 < AC^2 (if angle CC is obtuse),
    2. AC2+AB2<BC2AC^2 + AB^2 < BC^2 (if angle BB is obtuse),
    3. BC2+AC2<AB2BC^2 + AC^2 < AB^2 (if angle AA is obtuse).

By calculating the side lengths using the distance formula and testing these conditions, you can determine the type of triangle formed by three points. Using these checks, you can classify the triangle formed by the three given points.

Section 2 of 6 · Coordinate Geometry Fundamentals

Mark this section complete when you have worked through its proofs.