牛顿-拉弗森法

沿切线方向求根——观看逐步收敛

牛顿-拉弗森法通过迭代找到 f(x) = 0 的位置:从猜测值 x₀ 开始,在该点画切线,然后看切线与 x 轴的交点——那就是你的下一个、更好的猜测值。公式为:

x_{n+1} = x_n − f(x_n) / f'(x_n)

图形显示 f(x) = x³ − 2x − 5,在 x ≈ 2 附近有一个根。观察每条切线如何让你越来越接近精确的根。这就像数学 GPS——每一步都大幅减小误差。

牛顿-拉弗森法如何工作?
从初始猜测 x₀ 开始。在该点画 f(x) 的切线。切线与 x 轴的交点就是你的下一个猜测 x₁。重复迭代——每次迭代通常使正确位数翻倍。
公式是什么?
x_{n+1} = x_n − f(x_n) / f'(x_n)。你用函数值除以导数然后减去。几何上,这找到了过 (x_n, f(x_n)) 的切线与 x 轴的交点。
牛顿-拉弗森法何时会失败?
如果初始猜测离根太远、某次迭代中 f'(x) = 0(水平切线),或者函数在根附近有拐点,则方法可能失败。初始点选取不当也可能导致循环或发散。
这种方法为什么有用?
许多方程无法用代数精确求解(比如 x³ − 2x − 5 = 0)。牛顿-拉弗森法能以任意精度给出数值答案。它被广泛用于工程、物理、计算机图形学和机器学习优化。
What can it graph?
It can plot explicit, implicit, and parametric functions, add points and geometry, and animate sliders on the same graph.
Can I use voice or a photo?
Yes. You can talk to the tutor, upload a worksheet or handwritten problem, and let the graph update from that input.
Will it explain the steps?
Yes. The AI explains what it is drawing and why, so you see the answer on the graph instead of getting only a final number.