Calculus

Sec.3.5 - 隱式曲線集合

Applied Project in Sec.3.5, Calculus by Stewart 英文版請見 Families of Implicit Curves 在這個專題中你將會發現,若你改變一個隱式曲線集合中的常數,它的形狀會如何改變,並決定集合中的成員會有哪些共同的特徵。

擲硬幣問題

重複擲一枚硬幣, 當出現連續兩次為正時停止, 平均要扔幾次? 第一種做法: 窮舉法 我們以正負號 (+ -) 代表正面反面. 觀察 假設花 $n$ 次才擲到連續兩次為正, $n \geq 2$. 我們發現, 可以從第 $n-1$ 次的結果進行窮舉法得到第 $n$ 次的結果。

Lagrange Multiplier - 01

在微積分課程裡我們有學到如何利用 Lagrange multiplier 來解 constraint optimization 問題. 這邊要介紹課本裡沒教的 Lagrangian function. Goal: 我們想要解以下這個問題 $$ \min_{x} f(x), \quad \text{subject to } \quad g(x)=0. $$ Observation 微積分課本告訴我們一個相對好懂的直觀, 就是這個解會發生在兩個等高線相切的地方, 因此在這個問題的解那個點的位置, 兩個函數 $f$ 與 $g$ 等高線的法向量會平行, 因此可以列出以下兩個式子 $$ \partial_x f + \lambda \partial_x g = 0, \quad g(x)=0. $$ 這裡我們引進一個新的未知數 $\lambda$, 即稱為 Lagrange multiplier. 因為有兩個方程式, 因此我們可以解出兩個未知數 $x$ 以及 $\lambda$.

Lagrange Multiplier - 02

這裡我們再多討論一點 Lagrangian function. 我們先看最簡單的一維問題, 求一個有限制式的函數最小值問題: $$ \min_{x} f(x), \quad \text{subject to } \quad g(x)=0. $$ 我們引進 Lagrangian function $$ L(x, \lambda) = f(x) + \lambda g(x) $$ 並且知道原問題的解發生在 $\nabla L=0$ 的地方.

Lagrange Multiplier - 03

這裡我們討論一下 Lagrange multiplier. 我們知道, 如果想要解以下這個有限制式的最佳化問題 $$ \min_{x} f(x), \quad \text{subject to } \quad g(x)=k, $$ 一個方式是引進 Lagrange multiplier, $\lambda$, 然後可以列出以下兩個式子 $$ \partial_x f + \lambda \partial_x g = 0, \quad g(x)=k. $$

Sec.15.8 - Roller Derby

Applied Project in Sec.15.8, Calculus by Stewart Chinese version 滾動競賽 Suppose that a solid ball(a marble), a hollow ball (a squash ball), a solid cylinder (a steel bar), and a hollow cylinder (a lead pipe) roll down a slope. Which of these objects reaches the bottom first? To answer this question, we consider a ball or cylinder with mass $m$, radius $r$, and moment of inertia $I$ (about the axis of rotation). If the vertical drop is $h$, then the potential energy at the top is $mgh$. Suppose the object reaches the bottom with velocity $v$ and angular velocity $\omega$, so $v=\omega r$. The kinetic energy at the bottom consists of two parts: $\frac{1}{2}mv^2$ from translation (moving down the slope) and $\frac{1}{2}I\omega ^2$ from rotation. If we assume that energy loss from rolling friction is negligible, the conservation of energy gives $$ mgh=\frac{1}{2}mv^2+\frac{1}{2}I\omega ^2 $$

Sec.15.8 - 滾動競賽

Applied Project in Sec.15.8, Calculus by Stewart 英文版請見 Roller Derby 假設有一實心圓球(如一顆彈珠)、一空心圓球 (如一顆壁球)、一實心圓柱(如一根鋼條)、與一空心圓柱(如一根鉛管)同時由一斜面滾下,何者會最先到達斜面底端?

Sec.5.2 - Area functions

Discovery Project in Sec.5.2, Calculus by Stewart Chinese version 面積函數 Question 1(a): Draw the line $y = 2t+1$ and use geometry to find the area under this line, above the t-axis, and between the vertical lines $t=1$ and $t = 3$. Answer: let $f(x)=y=2t+1$, then $f(1)=3$ and $f(3)=7$. So, Area$= \frac{1}{2}(3+7)(3-1) = 10$ Question 1(b): If $x>1$, let $A(x)$ be the area of the region that lies under the line $y = 2t + 1$ between $t =1$ and $t = x$. Sketch this region and use geometry to find expression for $A(x)$.

Sec.5.2 - 面積函數

Discovery Project in Sec.5.2, Calculus by Stewart 英文版請見 Area functions Question 1(a): 畫出 $y = 2t+1$ 且用幾何方法找出在此線下方、$t$軸上方、與$t=1$和$t=3$兩條垂直線所圍出的面積. Answer: 令 $f(x)=y=2t+1$, 則 $f(1)=3$ 且 $f(3)=7$. 所以其面積為$\frac{1}{2}(3+7)(3-1) = 10$

以內插多項式來做數值積分

前情提要: 數值積分初探 連續函數可以用多項式來逼近它, 因此直覺來講, 既然我們已經找到一個離給定函數"很近"的多項式了, 何不就以這個多項式的積分值來當成原函數積分值的一個逼近呢.