Main derivation
S01 · definition
Before
y''-2y'+y=x^2-4x+2\ \text{on }I=\mathbb{R}After
F(x,y,y',y'')=y''-2y'+y-(x^2-4x+2)=0
Conditions: none
Rule: mko_ode_def · Uses: G1, G4
Leaf basis: mko_ode_def + def_intro
By the MKO, an ordinary differential equation relates an unknown single-variable function and its derivatives on a specified interval. Moving the right side to the left gives the form F(x,y,y′,y″)=0, with the interval stated as I=ℝ. The residual r_u is exactly the value of F after substituting a candidate u (G4).
S02 · implies
Before
F(x,y,y',y'')=0
After
\text{order}=2Conditions: \text{coefficient of }y''\text{ is }1\neq 0
Rule: mko_ode_def · Uses: S01, mko_ode_def
Leaf basis: mko_ode_def + def_unfold
By the MKO, the order is the highest derivative order that actually occurs. The derivatives occurring are y′ and y″, the coefficient of y″ is 1≠0, and no third or higher derivative appears, so the order is 2. It is not determined by the left side having three terms, nor by the degree of the candidate x².
S03 · implies
Before
y_1(x)=x^2
After
y_1'(x)=2x
Conditions: none
Rule: L_deriv_square · Uses: G2, L_deriv_square
Leaf basis: func_limit_def + distributive
By Lemma L_deriv_square (proved from the limit definition of the derivative in S03.1 and S03.2), y₁′(x)=2x for every real x.
S04 · implies
Before
y_1'(x)=2x
After
y_1''(x)=2
Conditions: none
Rule: deriv_rules · Uses: S03, deriv_rules
Leaf basis: deriv_rules + mul_one
Differentiate once more: (2x)′=2·(x)′=2·1=2 (constant-multiple rule and (x)′=1).
S05 · equivalent
Before
y_1''(x)-2y_1'(x)+y_1(x)
After
2-2(2x)+x^2
Conditions: none
Rule: eq_replace · Uses: S03, S04, G2, G4
Leaf basis: eq_replace + mko_ode_check
Following the MKO's checking method, substitute the recomputed y₁, y₁′ and y₁″ into the left side of the same equation: y₁″=2, y₁′=2x, y₁=x².
S06 · equivalent
Before
2-2(2x)+x^2
After
x^2-4x+2
Conditions: none
Rule: distributive · Uses: S05
Leaf basis: mul_assoc + add_comm + add_assoc
2(2x)=4x, and rearranging the terms gives x²−4x+2. This is a polynomial identity (N2), valid for every real x.
S07 · implies
Before
r_{y_1}(x)=(x^2-4x+2)-(x^2-4x+2)After
\forall x\in\mathbb{R}:\ r_{y_1}(x)=0Conditions: none
Rule: forall_intro · Uses: S06, G4
Leaf basis: forall_intro + add_inverse
By G4 the residual is the left side minus the right side; by S06 the left side equals x²−4x+2, so r_{y₁}(x)=0. The computation makes no extra assumption on x, so x is an arbitrary real number and by generalization r_{y₁} vanishes on all of ℝ; hence y₁ solves E on I=ℝ. This comes from symbolic simplification, not from checking sample points.
S08 · implies
Before
y_2(x)=x^2+x
After
y_2'(x)=2x+1,\ \ y_2''(x)=2
Conditions: none
Rule: deriv_rules · Uses: G2, L_deriv_square, deriv_rules
Leaf basis: deriv_rules + L_deriv_square
By the sum rule, L_deriv_square and (x)′=1, y₂′=2x+1; differentiating again, y₂″=2+0=2.
S09 · equivalent
Before
r_{y_2}(x)=2-2(2x+1)+(x^2+x)-(x^2-4x+2)After
r_{y_2}(x)=x-2Conditions: none
Rule: distributive · Uses: S08, G4
Leaf basis: distributive + add_assoc + add_comm + add_inverse
Substitute and simplify, with details in S09.1 and S09.2: the left side is x²−3x, and subtracting the right side gives x−2. The residual is a nonzero polynomial.
S10 · implies
Before
r_{y_2}(x)=x-2After
r_{y_2}(2)=0,\ r_{y_2}(0)=-2\neq 0\ \Rightarrow\ y_2\ \text{not a solution on }\mathbb{R}Conditions: none
Rule: quantifier_negation · Uses: S09, G4
Leaf basis: quantifier_negation + numeric_evaluation
At x=2 the residual is 0, so a one-point check would wrongly accept y₂; but r_{y₂}(0)=−2≠0. 'The residual vanishes for all x∈ℝ' is refuted by one counterexample, so y₂ is not a solution on ℝ. Further, x−2=0 ⇔ x=2, so y₂ is not a solution on any interval containing a point other than 2.
S11 · implies
Before
y_1(0),\ y_1'(0)
After
y_1(0)=0,\ y_1'(0)=0
Conditions: none
Rule: numeric_evaluation · Uses: G2, G3, S03
Leaf basis: numeric_evaluation + mul_zero
y₁(0)=0²=0 and y₁′(0)=2·0=0, so y₁ satisfies both initial conditions of G3. Here the initial values act as a filter.
S12 · theorem_application
Before
y''+p\,y'+q\,y=g,\ p=-2,\ q=1,\ g=x^2-4x+2,\ y(0)=0,\ y'(0)=0
After
y_1\ \text{is the unique solution of the IVP on }\mathbb{R}Conditions: p,q,g\ \text{continuous on }\mathbb{R}; 0\in\mathbb{R},\ \mathbb{R}\ \text{open}
Rule: thm_linear_ivp · Uses: S07, S11, G1, G3, thm_linear_ivp, poly_exp_continuous
Leaf basis: thm_linear_ivp + poly_exp_continuous
Write E in the standard form y″+p y′+q y=g with p(x)=−2 and q(x)=1 constant and g(x)=x²−4x+2 a polynomial; all three are continuous on the open interval ℝ, and x₀=0∈ℝ. By the cited theorem thm_linear_ivp (Y₀=0, Y₁=0), the initial value problem has exactly one solution, and it exists on all of ℝ. S07 and S11 show that y₁ is such a solution, so it is that unique solution. Uniqueness comes from the theorem and its continuity hypotheses, not from the equation itself.
S13 · implies
Before
y_3(x)=x^2+e^x
After
y_3'(x)=2x+e^x,\ \ y_3''(x)=2+e^x
Conditions: none
Rule: deriv_rules · Uses: G2, deriv_rules, L_deriv_square
Leaf basis: deriv_rules + L_deriv_square
To show that without initial values the solution is not unique, take y₃=x²+eˣ. By the sum rule, L_deriv_square and (eˣ)′=eˣ: y₃′=2x+eˣ and y₃″=2+eˣ.
S14 · implies
Before
r_{y_3}(x)=(2+e^x)-2(2x+e^x)+(x^2+e^x)-(x^2-4x+2)After
r_{y_3}(x)=0\ \forall x,\ \ y_3(0)=1\neq 0Conditions: none
Rule: distributive · Uses: S13, G4, G3
Leaf basis: distributive + add_inverse + numeric_evaluation
Expand: the coefficient of eˣ is 1−2+1=0, of x is −4+4=0, of x² is 1−1=0, and the constant is 2−2=0, so the residual is 0 for every x (N7 checks this as an identity with eˣ treated as an independent symbol E, so it holds whatever the value of eˣ). So y₃ is also a solution of E on ℝ, but y₃(0)=0+1=1≠0 fails the initial condition. Hence the equation alone has more than one solution, and the initial values are what select y₁.
S15 · implies
Before
\text{proved facts about }EAfter
\text{order }2;\ y_1\ \text{solves};\ y_2\ \text{does not};\ y_1\ \text{unique for the IVP};\ E\ \text{alone not unique}Conditions: none
Rule: and_intro_elim · Uses: S02, S07, S10, S12, S14
Leaf basis: and_intro_elim
Combine the conclusions: E has order 2; y₁=x² solves it on ℝ; y₂=x²+x does not (residual x−2); under y(0)=0, y′(0)=0, y₁ is the unique solution (by the cited theorem); without initial values y₃=x²+eˣ is also a solution.