Law of Cosines

    Understanding the Law of Cosines

    The Law of Cosines is a fundamental theorem in trigonometry that relates the lengths of the sides of a triangle to the cosine of one of its angles. It is a generalization of the Pythagorean theorem, which only applies to right triangles. The Law of Cosines is essential for solving triangles when you know two sides and the included angle (SAS) or all three sides (SSS), situations where the Law of Sines alone is insufficient.

    Formulas for the Law of Cosines

    For a triangle with sides a, b, c and angles A, B, C opposite those respective sides, the Law of Cosines can be stated in three equivalent forms:

    • c² = a² + b² - 2ab cos(C): This form is used to find side c when sides a, b and the included angle C are known.
    • a² = b² + c² - 2bc cos(A): This form is used to find side a when sides b, c and the included angle A are known.
    • b² = a² + c² - 2ac cos(B): This form is used to find side b when sides a, c and the included angle B are known.

    Notice the pattern: the square of one side equals the sum of the squares of the other two sides minus twice the product of those two sides times the cosine of the angle included between them.

    Deriving Angles from Side Lengths (SSS)

    When all three side lengths (SSS) are known, you can rearrange the Law of Cosines formulas to solve for an angle. For example, to find angle C:

    • Start with: c² = a² + b² - 2ab cos(C)
    • Rearrange: 2ab cos(C) = a² + b² - c²
    • Solve for cos(C): cos(C) = (a² + b² - c²) / (2ab)
    • Then, find C: C = arccos((a² + b² - c²) / (2ab))

    Similar rearrangements can be made to find angles A and B.

    When to Use the Law of Cosines

    The Law of Cosines is primarily used in two scenarios:

    • Side-Angle-Side (SAS): If you know two sides and the included angle (the angle between the two known sides), you can use the Law of Cosines to find the length of the third side. For example, if you know sides a, b, and angle C, you can find side c.
    • Side-Side-Side (SSS): If you know the lengths of all three sides of a triangle, you can use the Law of Cosines (in its rearranged form) to find the measure of any of the angles. It is generally recommended to find the angle opposite the longest side first to avoid potential ambiguity with the Law of Sines later.

    Comparison with the Law of Sines

    While both are used to solve triangles, they apply to different cases. The Law of Sines is used for Angle-Side-Angle (ASA), Angle-Angle-Side (AAS), and sometimes Side-Side-Angle (SSA), although SSA can lead to ambiguous cases. The Law of Cosines, conversely, is crucial for SAS and SSS cases where the Law of Sines cannot be directly applied without first finding an additional piece of information.

    Example Application

    Consider a triangle with sides a = 5, b = 7, and the included angle C = 60°. To find side c:

    • c² = a² + b² - 2ab cos(C)
    • c² = 5² + 7² - 2(5)(7) cos(60°)
    • c² = 25 + 49 - 70(0.5)
    • c² = 74 - 35
    • c² = 39
    • c = √39 ≈ 6.245

    Practice questions

    1

    Which of the following triangle cases typically requires the use of the Law of Cosines to find an unknown side first?

    2

    Given a triangle with sides a=8, b=10, and angle C=45°, what is the formula to find the length of side c?

    3

    If all three sides of a triangle (a, b, c) are known, how can the Law of Cosines be used to find angle A?

    4

    Why is the Law of Cosines considered a generalization of the Pythagorean theorem?

    Practice more free →

    Free AP4U account — unlimited practice, AI grader, and progress tracking.

    Canonical: https://apforu.com/ap/precalculus/unit-3-trigonometric-and-polar-functions/law-of-cosines