Understanding the Law of Cosines Equation

📅 Updated April 2026 ⏱ 8 min read 🎓 All levels ✍️ By MathSolver Team

📋 In this guide

  1. What is Law Of Cosines Equation?
  2. Key Formula
  3. Step-by-Step Guide
  4. Worked Examples
  5. Common Mistakes
  6. Real-World Uses
  7. Try AI Solver
  8. FAQ

The law of cosines equation is a fundamental concept in trigonometry that extends the Pythagorean theorem to non-right triangles. This equation is particularly useful when dealing with oblique triangles, where no angle is 90 degrees. Students often find the law of cosines equation challenging due to its complexity and the need to integrate multiple mathematical concepts simultaneously. In this article, we'll break down the law of cosines equation, explore its applications, and guide you through solving problems step by step.

The primary goal of this article is to demystify the law of cosines equation. You'll learn how to apply it to find missing sides or angles in triangles, understand the common mistakes to avoid, and discover its real-world applications. By the end, you'll be equipped with the knowledge and confidence to tackle any problem involving this essential trigonometric tool.

Whether you're a student grappling with algebra equations, a teacher looking for effective ways to explain trigonometry, or someone simply curious about mathematical concepts, this comprehensive guide will serve as a valuable resource. So, let's dive in and explore the intricacies of the law of cosines equation and how it fits into the vast landscape of mathematical equations.

c^2 = a^2 + b^2 - 2ab * cos(C)
Key Formula or Definition

Step-by-Step: How to Solve Law Of Cosines Equation

1

Step 1: Identify the Known Values

Before using the law of cosines equation, identify the given values in the problem. Typically, you'll have two sides and the included angle, or three sides of a triangle. It's crucial to correctly assign these values to the variables a, b, c, and the angle C.

2

Step 2: Rearrange the Formula if Necessary

Depending on the given information, you may need to rearrange the law of cosines equation. If you're solving for a side, use the formula as it is. However, if you're solving for an angle, rearrange the formula to isolate the cosine term, such as cos(C) = (a^2 + b^2 - c^2) / (2ab).

3

Step 3: Plug in the Known Values

Insert the known values into the equation. Be precise with your calculations, especially when dealing with angles in degrees or radians. Use a calculator for accurate results, ensuring the mode matches the angle measurement (degree or radian).

4

Step 4: Solve the Equation

Perform the necessary calculations to find the unknown value. If you're solving for a side, take the square root of the result. If you're solving for an angle, use the inverse cosine function to find the angle in degrees or radians. Double-check your work for accuracy.

🤖 Stuck on a math problem?

Take a screenshot and let our AI solve it step-by-step in seconds

⚡ Try MathSolver Free →

Worked Examples

Example 1

Problem: In triangle ABC, side a = 5, side b = 7, and angle C = 60 degrees. Use the law of cosines to find the length of side c.
Step 1: Identify the known values: a = 5, b = 7, C = 60 degrees.
Step 2: Use the formula: c^2 = a^2 + b^2 - 2ab * cos(C).
Step 3: Substitute the known values: c^2 = 5^2 + 7^2 - 2 * 5 * 7 * cos(60).
Step 4: Simplify: c^2 = 25 + 49 - 70 * 0.5 = 74 - 35 = 39.
Step 5: Take the square root: c = sqrt(39) ≈ 6.244.
MathSolver solving example 1 — Trigonometry

MathSolver Chrome extension solving this problem step-by-step

Example 2

Problem: In triangle DEF, side d = 8, side e = 10, and angle F = 45 degrees. Use the law of cosines to find the length of side f to three decimal places.
Step 1: Identify the known values: d = 8, e = 10, F = 45 degrees.
Step 2: Use the formula: f^2 = d^2 + e^2 - 2de * cos(F).
Step 3: Substitute the known values: f^2 = 8^2 + 10^2 - 2 * 8 * 10 * cos(45).
Step 4: Simplify: f^2 = 64 + 100 - 160 * sqrt(2)/2 = 164 - 113.137 = 50.863.
Step 5: Take the square root: f = sqrt(50.863) ≈ 7.131.
MathSolver solving example 2 — Trigonometry

MathSolver Chrome extension solving this problem step-by-step

Common Mistakes to Avoid

One common mistake when using the law of cosines equation is incorrect angle measurement. Ensure your calculator is set to the correct mode, whether degrees or radians, to avoid calculation errors. Another frequent error is mislabeling sides and angles. Always double-check that you've assigned the correct variables to the sides and angles before plugging them into the equation.

It's also easy to make arithmetic mistakes, especially when handling complex numbers or fractions. To prevent this, work through each step methodically and verify your calculations. These precautions will help you avoid common pitfalls and ensure accurate results.

Real-World Applications

The law of cosines equation has practical applications in various fields. For example, in navigation and surveying, it helps calculate distances and angles between landmarks or points on a map. This is particularly useful in fields like cartography and civil engineering.

In physics, the law of cosines can be applied in kinematic equations to determine the resultant vector when two vectors are combined at an angle. It's also used in architecture to design structures that require precise angle and length measurements, ensuring stability and accuracy.

Frequently Asked Questions

❓ What is the law of cosines equation and when is it used?
The law of cosines equation is c^2 = a^2 + b^2 - 2ab * cos(C). It's used to calculate unknown sides or angles in oblique triangles, where no angle is 90 degrees. This equation is essential for solving problems in trigonometry, navigation, and physics.
❓ How does the law of cosines equation differ from the Pythagorean theorem?
While the Pythagorean theorem applies only to right-angled triangles, the law of cosines equation can be used for any type of triangle. It accounts for the angle between two sides, making it versatile for solving more complex triangle problems.
❓ How can AI help with the law of cosines equation?
AI can assist in solving the law of cosines equation by providing instant, step-by-step solutions. Tools like the MathSolver Chrome extension allow students to take a screenshot of their problem and receive a detailed explanation, helping them understand the process and verify their work.
❓ Can the law of cosines be used to find angles?
Yes, the law of cosines can be rearranged to solve for angles. By isolating the cosine term, you can use the inverse cosine function to find the measure of the angle, given the lengths of all three sides of the triangle.
❓ What is the importance of the law of cosines in real-life applications?
The law of cosines is crucial in fields like surveying, navigation, and physics. It helps professionals calculate distances, design structures, and analyze forces, making it a valuable tool for accurate measurements and problem-solving.

Was this guide helpful?

⭐⭐⭐⭐⭐

4.8/5 based on 127 ratings

🚀 Solve any math problem instantly

2,000+ students use MathSolver every day — join them for free

📥 Add to Chrome — It's Free