偏导数:冻结其余所有变量
只有在记录预测和观察证据之后才允许求助。
前提条件
Day 19 的链式法则练习;若标量法则不熟,先打开当天恢复链接再继续。
学习目标
把偏导数定义为冻结其他变量后沿单轴的普通导数,手算多项式的两个偏导数,并用有限差分确认。
操作说明
学习来源:在本活动现有的阅读与练习时段内,参考 MIT OCW 18.02SC Multivariable Calculus 的 Part 2: Partial Derivatives; differentiation, chain rule and gradient sessions,用自己的话解释一处与本地任务的联系。保留现有练习与验收检查;若外部资料无法访问,使用课程自写的解释。对 f(x, y) = x^2 y + 3y - x,冻结 y 对 x 求导:∂f/∂x = 2xy - 1。冻结 x 对 y 求导:∂f/∂y = x^2 + 3。在点 (2, 1):f = 4*1 + 3 - 2 = 5,∂f/∂x = 4 - 1 = 3,∂f/∂y = 4 + 3 = 7。先用中心差分检验前请预测:(f(2.00001, 1) - f(1.99999, 1)) / 0.00002 趋近 3,y 方向切片趋近 7。
练习与预测记录
手算并数值验证:(a) f(x, y) = x^2 y + 3y - x 在 (2, 1) 处的两个偏导数;(b) f(x, y) = x y^2 在 (3, 2) 处的两个偏导数。每一步求导都记录被冻结的变量。
(b) 中 ∂f/∂x 把 y^2 当作 x 的常数系数,得 y^2;∂f/∂y 把 x 当作常数系数,得 2xy。
(a) 在 (2, 1) 处 ∂f/∂x = 2xy - 1 = 3,∂f/∂y = x^2 + 3 = 7;f(2, 1) = 5。中心差分返回约 3.0000 和 7.0000。(b) f(x, y) = x y^2:在 (3, 2) 处 ∂f/∂x = y^2 = 4,∂f/∂y = 2xy = 12;f(3, 2) = 12。若符号推导与有限差分不一致,应同时检查三处:推导过程(每一行冻结了哪个变量)、数值检验代码(函数定义、求值点、扰动的是哪个变量)以及步长 h(比较 h = 1e-3、1e-4、1e-5,真正一致时结果保持稳定)。
无帮助下算出两个函数的全部偏导数,说明每行冻结了哪个变量,且 3、7、4、12 四个值都与你亲自运行的有限差分一致。
权威源资源与出处
MIT OCW 18.02SC Multivariable Calculus
相关章节/时间戳: Part 2: Partial Derivatives; differentiation, chain rule and gradient sessions
验证版本与日期: Fall 2010 (Verified: 2026-10-30)
Rigorous university-lecture treatment that lets motivated learners go deeper on partial derivatives and the gradient after the OpenStax primary text.
Single-variable calculus and coordinate geometry
All required formulas, worked examples, and numeric checks are contained in the localized lesson text.
候选源比较与选择分析 (2)
Chosen as the primary written reference; MIT OCW is the deeper lecture companion.
More accessible pacing but less rigorous than the Auroux lectures for the path-sum chain rule.
OpenStax Calculus Volume 3
相关章节/时间戳: Section 4.3 Partial Derivatives: definition, notation, and worked examples
验证版本与日期: OpenStax Calculus Volume 3 web edition (verified 2026-10-30)
Openly licensed primary definition of the partial derivative matching the day's slice-and-differentiate method.
Single-variable derivatives and the chain rule (Study Days 16-19).
The lesson contains complete local derivations, worked answers, and a finite-difference check.
候选源比较与选择分析 (2)
Selected as the lecture-depth companion for partial derivatives; OpenStax Volume 3 remains the written primary reference.
Strong visual coverage of gradients, but the OpenStax text better matches the lesson's theorem-plus-hand-check structure.