偏導數:凍結其餘所有變數
只有在記錄預測與觀察證據之後才允許求助。
先修條件
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.