# 余弦定理可视化

余弦定理交互式可视化，支持拖动三角形和分步证明

> 标准页面: https://elysiatools.com/zh/visualizations/law-of-cosines

- **分类:** Math

## 概述

Interactive visualization of the Law of Cosines with draggable triangle vertices. Features four comprehensive sections: (1) Explore - Drag vertices A, B, C to change triangle shape in real-time. Displays side lengths (a, b, c) and angles (A, B, C) with live measurements. Shows the Law of Cosines formula c² = a² + b² - 2ab·cos(C) with substituted values. Automatically identifies triangle type (acute/right/obtuse) and provides step-by-step verification showing both sides of the equation are equal. (2) Proof - Animated 5-step derivation from Pythagorean Theorem. Step 1: Drop altitude h from B to AC, creating two right triangles. Step 2: Apply Pythagorean theorem to both triangles (h² = a² - x² and h² = c² - (b-x)²). Step 3: Equate expressions and expand (a² - x² = c² - b² + 2bx - x²). Step 4: Solve for x ((a² - c² + b²) / 2b). Step 5: Use cosine definition (x = a·cos(A)) to derive final formula c² = a² + b² - 2ab·cos(C). Each step includes visual diagram updates and mathematical explanations. (3) Examples - Pre-configured triangle demonstrations: Acute (all angles < 90°), Right (one angle = 90°, reduces to Pythagorean theorem), Obtuse (one angle > 90°, cos(C) is negative), SAS case (given two sides and included angle), SSS case (given three sides, find angles). Each example includes detailed explanations of how the Law of Cosines applies. (4) Practice - Two modes: Find Missing Side (given SAS) or Find Missing Angle (given SSS). Random problem generator with valid triangle constraints. Interactive canvas visualization of each problem. Input validation with answer checking. Step-by-step solution reveal feature. Practice history tracking showing recent attempts with correctness indicators. Real-time formula substitution and calculation display. Educational content covers relationship to Pythagorean theorem, behavior in different triangle types, and practical applications. Multi-language support (zh, en, es, fr, de, ru, pt) with comprehensive translations. Responsive design with color-coded measurements, smooth animations, and mobile-friendly touch controls.

## 相关内容

- [零级反应 - Zero-Order Reaction](https://elysiatools.com/zh/visualizations/zero-order-reaction): 零级反应动力学和浓度随时间变化的交互式可视化
- [一级反应 - First-Order Reaction](https://elysiatools.com/zh/visualizations/first-order-reaction): 一级反应动力学和指数浓度衰减的交互式可视化
- [二级反应 - Second-Order Reaction](https://elysiatools.com/zh/visualizations/second-order-reaction): 二级反应动力学和双分子碰撞动力学的交互式可视化
- [阿伦尼乌斯方程 - Arrhenius Equation](https://elysiatools.com/zh/visualizations/arrhenius-equation): 温度对反应速率影响的交互式可视化 - 探索活化能、指数因子和速率常数的关系
- [可逆反应 - Reversible Reaction](https://elysiatools.com/zh/visualizations/reversible-reaction): A ⇌ B 可逆反应动力学的交互式可视化 - 探索正逆反应速率、平衡常数和浓度随时间的变化
- [连续反应 - Consecutive Reaction](https://elysiatools.com/zh/visualizations/consecutive-reaction): A → B → C 连续反应动力学的交互式可视化 - 探索中间物浓度峰值、决速步和所有物种的完整演化
- [链式反应 - Chain Reaction](https://elysiatools.com/zh/visualizations/chain-reaction): 自由基链式反应聚合的交互式可视化 - 探索引发、增长、终止步骤，链增长动画和分子量分布
- [勒夏特列原理 - Le Chatelier's Principle](https://elysiatools.com/zh/visualizations/le-chateliers-principle): 勒夏特列原理的交互式可视化 - 探索浓度、压强和温度变化如何影响化学平衡，配合分子动力学动画展示平衡移动过程
