逐步主鏈
S01 · definition
操作前
y''-2y'+y=x^2-4x+2\ \text{on }I=\mathbb{R}操作後
F(x,y,y',y'')=y''-2y'+y-(x^2-4x+2)=0
條件:無
規則:mko_ode_def · 依賴:G1, G4
葉節點依據:mko_ode_def + def_intro
依 MKO,常微分方程是在指定區間上關聯未知單變數函數及其導數的方程。把右邊移到左邊,寫成 F(x,y,y′,y″)=0 的形式,區間明示為 I=ℝ。殘差 r_u 正是把候選 u 代入 F 所得的值(G4)。
S02 · implies
操作前
F(x,y,y',y'')=0
操作後
\text{order}=2條件:\text{coefficient of }y''\text{ is }1\neq 0
規則:mko_ode_def · 依賴:S01, mko_ode_def
葉節點依據:mko_ode_def + def_unfold
依 MKO,階數是方程中實際出現的最高導數階數。出現的導數是 y′ 與 y″,y″ 的係數是 1≠0,沒有三階或更高的導數,所以階數是 2。階數不是由左邊有三項決定,也不是由候選 x² 的次數決定。
S03 · implies
操作前
y_1(x)=x^2
操作後
y_1'(x)=2x
條件:無
規則:L_deriv_square · 依賴:G2, L_deriv_square
葉節點依據:func_limit_def + distributive
依引理 L_deriv_square(在 S03.1、S03.2 由導數的極限定義證明),y₁′(x)=2x 對每個實數 x 成立。
S04 · implies
操作前
y_1'(x)=2x
操作後
y_1''(x)=2
條件:無
規則:deriv_rules · 依賴:S03, deriv_rules
葉節點依據:deriv_rules + mul_one
再求一次導數:(2x)′=2·(x)′=2·1=2(常數倍規則與 (x)′=1)。
S05 · equivalent
操作前
y_1''(x)-2y_1'(x)+y_1(x)
操作後
2-2(2x)+x^2
條件:無
規則:eq_replace · 依賴:S03, S04, G2, G4
葉節點依據:eq_replace + mko_ode_check
依 MKO 的核對方法,把重算出的 y₁、y₁′、y₁″ 代入同一個方程的左邊:y₁″=2,y₁′=2x,y₁=x²。
S06 · equivalent
操作前
2-2(2x)+x^2
操作後
x^2-4x+2
條件:無
規則:distributive · 依賴:S05
葉節點依據:mul_assoc + add_comm + add_assoc
2(2x)=4x,重新排列各項得 x²−4x+2。這是多項式恆等式(N2),對每個實數 x 成立。
S07 · implies
操作前
r_{y_1}(x)=(x^2-4x+2)-(x^2-4x+2)操作後
\forall x\in\mathbb{R}:\ r_{y_1}(x)=0條件:無
規則:forall_intro · 依賴:S06, G4
葉節點依據:forall_intro + add_inverse
依 G4,殘差是左邊減右邊;由 S06 左邊等於 x²−4x+2,所以 r_{y₁}(x)=0。這個計算對 x 沒有任何額外假設,x 是任意實數,依全稱推廣 r_{y₁} 在整個 ℝ 上恆為零,所以 y₁ 是 E 在 I=ℝ 上的解。這是符號化簡得到的,不是抽樣點核對。
S08 · implies
操作前
y_2(x)=x^2+x
操作後
y_2'(x)=2x+1,\ \ y_2''(x)=2
條件:無
規則:deriv_rules · 依賴:G2, L_deriv_square, deriv_rules
葉節點依據:deriv_rules + L_deriv_square
依和的求導規則、L_deriv_square 與 (x)′=1,y₂′=2x+1;再求一次導數,y₂″=2+0=2。
S09 · equivalent
操作前
r_{y_2}(x)=2-2(2x+1)+(x^2+x)-(x^2-4x+2)操作後
r_{y_2}(x)=x-2條件:無
規則:distributive · 依賴:S08, G4
葉節點依據:distributive + add_assoc + add_comm + add_inverse
代入並化簡,細節在 S09.1、S09.2:先算左邊得 x²−3x,再減去右邊得 x−2。殘差是一個非零多項式。
S10 · implies
操作前
r_{y_2}(x)=x-2操作後
r_{y_2}(2)=0,\ r_{y_2}(0)=-2\neq 0\ \Rightarrow\ y_2\ \text{not a solution on }\mathbb{R}條件:無
規則:quantifier_negation · 依賴:S09, G4
葉節點依據:quantifier_negation + numeric_evaluation
在 x=2 殘差為 0,單點核對會誤判 y₂ 為解;但 r_{y₂}(0)=−2≠0。「對所有 x∈ℝ 殘差為零」只要一個反例就被否定,所以 y₂ 不是 ℝ 上的解。更進一步,x−2=0 ⇔ x=2,所以在任何含有 2 以外的點的區間上,y₂ 都不是解。
S11 · implies
操作前
y_1(0),\ y_1'(0)
操作後
y_1(0)=0,\ y_1'(0)=0
條件:無
規則:numeric_evaluation · 依賴:G2, G3, S03
葉節點依據:numeric_evaluation + mul_zero
y₁(0)=0²=0,y₁′(0)=2·0=0,所以 y₁ 滿足 G3 的兩個初值條件。初值在這裡起篩選作用。
S12 · theorem_application
操作前
y''+p\,y'+q\,y=g,\ p=-2,\ q=1,\ g=x^2-4x+2,\ y(0)=0,\ y'(0)=0
操作後
y_1\ \text{is the unique solution of the IVP on }\mathbb{R}條件:p,q,g\ \text{continuous on }\mathbb{R}; 0\in\mathbb{R},\ \mathbb{R}\ \text{open}
規則:thm_linear_ivp · 依賴:S07, S11, G1, G3, thm_linear_ivp, poly_exp_continuous
葉節點依據:thm_linear_ivp + poly_exp_continuous
把 E 寫成標準形 y″+p y′+q y=g,p(x)=−2、q(x)=1 是常數函數,g(x)=x²−4x+2 是多項式,三者在開區間 ℝ 上連續,且 x₀=0∈ℝ。引用定理 thm_linear_ivp(Y₀=0、Y₁=0):初值問題恰有一個解,且在整個 ℝ 上存在。S07 與 S11 說明 y₁ 就是這樣一個解,所以它就是那唯一的解。唯一性來自定理與其連續性假設,而不是來自方程本身。
S13 · implies
操作前
y_3(x)=x^2+e^x
操作後
y_3'(x)=2x+e^x,\ \ y_3''(x)=2+e^x
條件:無
規則:deriv_rules · 依賴:G2, deriv_rules, L_deriv_square
葉節點依據:deriv_rules + L_deriv_square
為了說明沒有初值時解不唯一,取 y₃=x²+eˣ。依和的規則、L_deriv_square 與 (eˣ)′=eˣ:y₃′=2x+eˣ,y₃″=2+eˣ。
S14 · implies
操作前
r_{y_3}(x)=(2+e^x)-2(2x+e^x)+(x^2+e^x)-(x^2-4x+2)操作後
r_{y_3}(x)=0\ \forall x,\ \ y_3(0)=1\neq 0條件:無
規則:distributive · 依賴:S13, G4, G3
葉節點依據:distributive + add_inverse + numeric_evaluation
展開:eˣ 的係數 1−2+1=0,x 的係數 −4+4=0,x² 的係數 1−1=0,常數 2−2=0,所以對每個 x 殘差為 0(N7 把 eˣ 當作獨立符號 E 做恆等式核對,因此對 eˣ 的任何值都成立)。y₃ 也是 E 在 ℝ 上的解,但 y₃(0)=0+1=1≠0,不滿足初值。所以方程本身有不只一個解,初值才把 y₁ 選出來。
S15 · implies
操作前
\text{proved facts about }E操作後
\text{order }2;\ y_1\ \text{solves};\ y_2\ \text{does not};\ y_1\ \text{unique for the IVP};\ E\ \text{alone not unique}條件:無
規則:and_intro_elim · 依賴:S02, S07, S10, S12, S14
葉節點依據:and_intro_elim
合併結論:E 的階數為 2;y₁=x² 在 ℝ 上是解;y₂=x²+x 不是(殘差 x−2);在初值 y(0)=0、y′(0)=0 下 y₁ 是唯一解(依引用定理);沒有初值時 y₃=x²+eˣ 也是解。