calculus

链式法则:何时以及如何运用(附示例)

通过七个涵盖三角、指数与嵌套复合的解题示例精通链式法则。学会"先外后内"的模式,避开最常见的错误。
AI-Math Editorial Team

作者: AI-Math Editorial Team

发布于 2026-05-02

链式法则是求导中使用频率最高的工具,同时也是出错最多的来源。一旦你把"先外后内"的模式内化于心,几乎任何复合函数你都能用三行算出导数。本指南向你展示这一模式,带你走过七个难度递增的示例,并列出四个值得提前记住的错误。

链式法则说了什么

如果 ffgg 可导,那么复合函数 f(g(x))f(g(x)) 的导数是

ddxf(g(x))=f(g(x))g(x).\frac{d}{dx} f(g(x)) = f'(g(x)) \cdot g'(x).

用文字说:对在内层函数处取值的外层函数求导,然后乘以内层函数的导数。"外层"和"内层"的标签不容含糊——混淆它们会让答案颠倒。

一个实用的口诀:链式法则是"外层导数乘以内层导数",绝不是相加,也绝不只取其一。

解题示例(易 → 难)

示例 1:ddxsin(2x)\frac{d}{dx}\sin(2x)

  • 外层:sin(u)\sin(u),内层:u=2xu = 2x
  • ddusin(u)=cos(u)\frac{d}{du}\sin(u) = \cos(u)ddx(2x)=2\frac{d}{dx}(2x) = 2
  • 结果:cos(2x)2=2cos(2x)\cos(2x) \cdot 2 = 2\cos(2x)

示例 2:ddxex2\frac{d}{dx} e^{x^2}

  • 外层:eue^u,内层:u=x2u = x^2
  • ddueu=eu\frac{d}{du} e^u = e^uddx(x2)=2x\frac{d}{dx}(x^2) = 2x
  • 结果:ex22x=2xex2e^{x^2} \cdot 2x = 2x e^{x^2}

示例 3:ddx(3x2+1)4\frac{d}{dx}(3x^2 + 1)^4

  • 外层:u4u^4,内层:u=3x2+1u = 3x^2 + 1
  • dduu4=4u3\frac{d}{du} u^4 = 4u^3ddx(3x2+1)=6x\frac{d}{dx}(3x^2 + 1) = 6x
  • 结果:4(3x2+1)36x=24x(3x2+1)34(3x^2 + 1)^3 \cdot 6x = 24x(3x^2 + 1)^3

示例 4:ddxln(cosx)\frac{d}{dx}\ln(\cos x)

  • 外层:lnu\ln u,内层:u=cosxu = \cos x
  • ddulnu=1u\frac{d}{du}\ln u = \frac{1}{u}ddxcosx=sinx\frac{d}{dx}\cos x = -\sin x
  • 结果:1cosx(sinx)=tanx\frac{1}{\cos x} \cdot (-\sin x) = -\tan x

示例 5:ddxx2+1\frac{d}{dx}\sqrt{x^2 + 1}

  • 改写为 (x2+1)1/2(x^2 + 1)^{1/2}
  • 外层:u1/2u^{1/2},内层:u=x2+1u = x^2 + 1
  • 外层导数:12u1/2\frac{1}{2}u^{-1/2}。内层:2x2x
  • 结果:12(x2+1)1/22x=xx2+1\frac{1}{2}(x^2+1)^{-1/2} \cdot 2x = \frac{x}{\sqrt{x^2+1}}

示例 6:嵌套链式 —— ddxsin(cos(x2))\frac{d}{dx}\sin(\cos(x^2))

三层——两次应用链式法则。

  • 最外层:sin(u)\sin(u),内层 u=cos(x2)u = \cos(x^2)
  • dudx=sin(x2)2x\frac{du}{dx} = -\sin(x^2) \cdot 2x(对 cos(x2)\cos(x^2) 用链式法则)。
  • 结果:cos(cos(x2))(sin(x2))2x=2xsin(x2)cos(cos(x2))\cos(\cos(x^2)) \cdot (-\sin(x^2)) \cdot 2x = -2x\sin(x^2)\cos(\cos(x^2))

示例 7:链式 + 乘积法则联用 —— ddx(x2sin(3x))\frac{d}{dx}\bigl(x^2 \sin(3x)\bigr)

  • 先用乘积法则:(fg)=fg+fg(fg)' = f'g + fg'
  • f=x2f = x^2f=2xf' = 2xg=sin(3x)g = \sin(3x),由链式法则 g=3cos(3x)g' = 3\cos(3x)
  • 结果:2xsin(3x)+x23cos(3x)=2xsin(3x)+3x2cos(3x)2x \sin(3x) + x^2 \cdot 3\cos(3x) = 2x\sin(3x) + 3x^2\cos(3x)

值得记住的四个错误

  1. 忘记内层导数。 写成 ddxsin(2x)=cos(2x)\frac{d}{dx}\sin(2x) = \cos(2x) 是最常见的链式法则错误。因子 22 是必须的。
  2. 在代入之前对内层求导。 ddx(3x2+1)4\frac{d}{dx}(3x^2+1)^4 不是 4(6x)34(6x)^3。外层导数是在内层表达式处取值,而不是在内层导数处。
  3. 把嵌套函数误当作乘积。 sin(2x)\sin(2x)复合,不是乘积。用链式法则,不要用乘积法则。
  4. 三角函数幂的括号弄错。 sin2(x)=(sinx)2\sin^2(x) = (\sin x)^2——外层是 u2u^2,内层是 sinx\sin x。很容易和 sin(x2)\sin(x^2) 混淆,后者外层是 sin\sin,内层是 x2x^2

卡住时:代换技巧

u=(内层部分)u = \text{(内层部分)},求出 dydu\frac{dy}{du}dudx\frac{du}{dx},相乘。即使函数看起来吓人,这种机械代换始终有效。

自己动手试试

把任意复合函数粘贴到我们的免费导数计算器中,看着每一步链式法则的应用逐步展开。配合我们的链式法则速查表小节,在写作业时快速查阅。

更深入的相关材料:

常见问题

The chain rule states that the derivative of a composite function f(g(x)) is f′(g(x)) · g′(x). In words: differentiate the outer function leaving the inner function unchanged, then multiply by the derivative of the inner function.

Use the chain rule whenever you differentiate a function composed of two or more functions, such as sin(x²), e^(3x), or (2x+1)⁵. If you can identify an "outer" and an "inner" function, the chain rule applies.

Forgetting to multiply by the derivative of the inner function. For example, the derivative of sin(x²) is cos(x²) · 2x, not just cos(x²). Always multiply the outer derivative by the inner derivative.

AI-Math Editorial Team

作者: AI-Math Editorial Team

发布于 2026-05-02

A small team of engineers, mathematicians, and educators behind AI-Math, focused on making step-by-step math help accessible to every student.