How to Use Derivation of the Law of Cosines
TL;DR: Wondering where the Law of Cosines actually comes from? Drop an altitude inside a general triangle, splitting it into two right triangles, then apply the Pythagorean theorem twice and do a bit of algebra cleanup. Out pops c squared equals a squared plus b squared minus 2ab times cosine of C. The point isn't just to admire the proof — once you've seen the derivation, the formula stops being random memorization and starts feeling like an old friend you actually understand.
Key takeaways:
- Place one vertex at the origin with one side along the x-axis.
- Drop an altitude from the third vertex to form two right triangles.
- Apply the Pythagorean theorem to the right triangle on the far side.
- The result is \(c^2 = a^2 + b^2 - 2ab\cos C\).
- The same approach works in vector form using the dot product.
The Law of Cosines, an invaluable tool in trigonometry, opens up a plethora of problem-solving avenues in mathematics and physics. The process of deriving this law is a critical step to fully understand its potential. This guide aims to elucidate the derivation of the Law of Cosines and how to employ it, intertwined with complex concepts and contextual applications.
Step-by-step Guide to How to Use Derivation of the Law of Cosines
Here is a step-by-step guide to how to use a derivation of the law of cosines:
Step 1: Comprehending the Law of Cosines
Start by firmly understanding the Law of Cosines. It states that for any triangle (not just right-angled) with sides of lengths \(a, b\), and \(c\), and the angle \(γ\) (gamma) opposite side \(c\), the following relationship holds: \(c² = a² + b²\ – 2ab\times cos(γ)\). Get to know this formula well, as it forms the backbone of the entire derivation process.
Step 2: Familiarizing Yourself with Vector Operations
Next, acquaint yourself with the concept of vectors. Understand their properties, and learn how to perform vector operations like addition, subtraction, and multiplication (both dot product and cross product). Grasp how to express a vector in terms of its components.
Step 3: Learning the Geometric Interpretation of Dot Product
The geometric interpretation of the dot product (or scalar product) of two vectors is the foundation of the Law of Cosines. When two vectors are dot-multiplied, the result is equal to the product of the vectors’ magnitudes and the cosine of the angle between them. Learn and appreciate this crucial principle.
Step 4: Deriving the Law of Cosines
Now, walk through the derivation itself. Consider an arbitrary triangle with vertices \(A, B\), and \(C\), and denote the vectors \(AB\) and \(AC\) by \(a\) and \(b\), respectively. The third side, \(BC\), can then be expressed as the vector \(c = b\ – a\). Square the magnitude of \(c\) and equate it with the dot product interpretation. This approach will lead you to the Law of Cosines.
Step 5: Comprehending the Derivation
After following the derivation, take a moment to fully understand it. Recognize how the formula was derived using vector principles and observe that it holds for any triangle, not just right-angled ones. This step is vital for deeply comprehending the Law of Cosines and its applications.
Step 6: Exploring Applications of the Law of Cosines
Once you understand the derivation, you can explore how to apply the Law of Cosines in different scenarios. It has extensive applications in diverse fields such as physics, engineering, computer science, and navigation. The law is particularly useful in calculating unknown side lengths or angles in a triangle when certain other measures are known.
Step 7: Applying the Law of Cosines in Problem-Solving
Put your understanding to the test by using the Law of Cosines to solve problems. Begin with simple problems, like finding the length of a side or an angle in a triangle. Gradually, take on more complex problems, such as calculating the distance between two points in three-dimensional space, or solving real-life navigation problems.
By following this step-by-step guide, you’ll gain a thorough understanding of the derivation and use of the Law of Cosines. This knowledge will prove indispensable in a variety of mathematical and scientific endeavors, showcasing the elegant power of trigonometry and vector calculus.
Recommended EffortlessMath Books
For a complete trig workbook that walks through every derivation alongside the applications, the Trigonometry for Beginners covers law of cosines, law of sines, and the trig identities with worked examples. For precalc-level prep that ties trig to vectors and analytic geometry, see Pre-Calculus for Beginners.
Frequently Asked Questions
Why does the law of cosines need to be derived?
Memorizing a formula without seeing where it comes from leaves you stuck if you forget a sign. The derivation shows that the law of cosines is just the Pythagorean theorem applied after dropping an altitude — once you’ve seen this, you can re-derive the formula in 60 seconds if your memory slips during a test.
What’s the geometric idea behind the derivation?
Drop a perpendicular from one vertex to the opposite side. This splits the triangle into two right triangles. The Pythagorean theorem on the larger right triangle, combined with the cosine definition for one of the angles, produces the law of cosines after a few algebraic steps.
Can the law of cosines be derived using vectors?
Yes — it’s faster. Let \(\vec{a}\) and \(\vec{b}\) be two sides meeting at angle \(C\). Then the third side is \(\vec{c} = \vec{a} – \vec{b}\), and \(|\vec{c}|^2 = (\vec{a} – \vec{b}) \cdot (\vec{a} – \vec{b}) = |\vec{a}|^2 + |\vec{b}|^2 – 2\vec{a}\cdot\vec{b}\). Since \(\vec{a}\cdot\vec{b} = ab\cos C\), you get \(c^2 = a^2 + b^2 – 2ab\cos C\).
Why does the formula have a minus sign?
The minus comes from the \(-2ab\cos C\) term that appears when you expand \((a\cos C – b)^2\) — specifically the cross term \(-2ab\cos C\). Geometrically, the minus sign reflects that as angle \(C\) grows from 0 to 180, side \(c\) goes from \(|a-b|\) (cos = 1) up to \(a+b\) (cos = -1).
What’s the role of the Pythagorean identity?
It’s the magic step that simplifies the derivation. After expanding, you have an \(a^2\cos^2 C + a^2\sin^2 C\) term, which equals \(a^2(\cos^2 C + \sin^2 C) = a^2 \cdot 1 = a^2\). Without that identity, the formula would not collapse to its clean three-term form.
Does the derivation work for obtuse triangles?
Yes. The coordinate setup and the algebra work for any angle \(C\) between 0 and 180 degrees. For an obtuse \(C\), the foot of the altitude falls outside the segment \(b\), but the formula still gives the correct answer because \(\cos C\) becomes negative.
Can I derive the formula by dropping an altitude inside the triangle?
Yes — this is the classical pre-coordinate derivation. Drop an altitude from \(B\) to side \(AC\), creating two right triangles. Apply the Pythagorean theorem to the larger right triangle and use \(\cos C = (\text{adjacent})/a\) to substitute. After simplification, you arrive at the same formula.
How long should the full derivation take?
With practice, about 2-3 minutes start to finish. The setup is the part most students forget; once coordinates are in place, the algebra is automatic. If you’ve never derived it before, plan 15-20 minutes to work through it slowly the first time.
Is the derivation tested directly?
Rarely on standardized tests, but it’s common on trigonometry final exams and AP Precalculus. Even when it’s not tested, knowing the derivation prevents sign mistakes and makes the formula easier to recall under pressure.
What’s the relationship between the law of cosines and the dot product?
They’re the same equation. The dot product definition \(\vec{u}\cdot\vec{v} = |\vec{u}||\vec{v}|\cos\theta\) is mathematically equivalent to the law of cosines applied to the triangle formed by the two vectors. This is why physics and engineering courses use both interchangeably.
Related EffortlessMath Lessons
If a topic on this page feels rusty, these short lessons go deeper:
Related to This Article
More math articles
- The History of Random Number Generation: From Dice to Quantum Chips
- 4th Grade IAR Math FREE Sample Practice Questions
- The Ultimate ISEE Lower Level Math Formula Cheat Sheet
- Casino Influencer Wins, Variance, and What You Don’t See on Camera
- Ohio OST Grade 7 Math Worksheets: 95 Free Printable PDFs with Step-by-Step Answer Keys
- How to Find Rotation of Axes and General Form of Conic Sections
- Best Calculator for College Algebra
- Grade 3 Math: 2D Shapes
- Weighted Average & GPA Calculator (Free)
- How to Solve Arithmetic Series

























What people say about "How to Use Derivation of the Law of Cosines - Effortless Math"?
No one replied yet.