Differential-Equations · Unit 11 · Video 1 · Interactive Practice

Superposition: Why Linearity Makes c₁y₁ + c₂y₂ a Solution

IKey Formulas

FormulaNameWhat it says
Ly=0,L=D2+p(x) D+q(x)Ly = 0,\quad L = D^2 + p(x)\,D + q(x)Operator formThe ODE y′′+p y′+q y=0y'' + p\,y' + q\,y = 0 is one linear operator applied to yy
L(u1+u2)=L(u1)+L(u2),L(cu)=c L(u)L(u_1 + u_2) = L(u_1) + L(u_2),\quad L(cu) = c\,L(u)Linearity lawsSums and constant multiples pass through LL
L(c1y1+c2y2)=c1L(y1)+c2L(y2)=0L(c_1y_1 + c_2y_2) = c_1L(y_1) + c_2L(y_2) = 0SuperpositionAny linear combination of solutions is a solution
y2≠c y1y_2 \neq c\,y_1 and y1≠c′ y2y_1 \neq c'\,y_2IndependenceBoth conditions, so y1=0y_1 = 0 is never half of an independent pair

Key Insight: The proof uses nothing about pp, qq or the order of the equation — only that LL is linear and the right side is 00.

IIVisualization 1 — Apply LL to a Combination

For a homogeneous equation every combination c1y1+c2y2c_1y_1 + c_2y_2 is sent to 00; with a nonzero right side it is not.

IIIVisualization 2 — Which Operators Are Linear?

An operator is linear when both laws hold for every input; a single y2y^2 or y y′y\,y' term breaks them.

IVQuiz Questions

Problem 1 · Feeding x2x^2 into the Box

Given: L=D2+x D+1L = D^2 + x\,D + 1, so L(y)=y′′+x y′+yL(y) = y'' + x\,y' + y — find L(x2)L(x^2).

✅ Correct! 2+x⋅2x+x2=2+3x22 + x\cdot 2x + x^2 = 2 + 3x^2 — the video's 2+2xp+x2q2 + 2xp + x^2q with p=xp = x, q=1q = 1.
❌ Not quite. You dropped the last term: q=1q = 1 multiplies y=x2y = x^2 itself, adding another x2x^2.
❌ Not quite. The D2D^2 term is applied to x2x^2 too: (x2)′′=2(x^2)'' = 2 must be added.
❌ Not quite. p=xp = x multiplies y′=2xy' = 2x; it is not added to it. x D(x2)=x⋅2x=2x2x\,D(x^2) = x\cdot 2x = 2x^2.
Show solution

With y=x2y = x^2: y′=2xy' = 2x and y′′=2y'' = 2. Apply each term of LL:

L(x2)=2⏟D2y+x⋅2x⏟x Dy+x2⏟1⋅y=2+3x2.L(x^2) = \underbrace{2}_{D^2y} + \underbrace{x\cdot 2x}_{x\,Dy} + \underbrace{x^2}_{1\cdot y} = 2 + 3x^2.

Computing the output is the easy direction; solving Ly=0Ly = 0 asks which inputs give output 00.

Problem 2 · The Zero-Function Trap

Given: four pairs of functions — which pair is independent in the sense of the video (each is not a constant multiple of the other)?

✅ Correct! xex/ex=xx e^x / e^x = x is not constant, so neither function is a constant multiple of the other.
❌ That is the excluded case. exe^x is not a multiple of 00, but 0=0⋅ex0 = 0\cdot e^x is a multiple of exe^x. Both conditions are required, and the second one fails.
❌ Not quite. Here y2y_2 is a constant multiple of y1y_1, so every combination c1y1+c2y2c_1y_1 + c_2y_2 is just a multiple of y1y_1.
Show solution

Independent means y2≠c y1y_2 \neq c\,y_1 and y1≠c′ y2y_1 \neq c'\,y_2 for all constants.

  • (0,ex)(0, e^x): 0=0⋅ex0 = 0\cdot e^x, so y1y_1 is a multiple of y2y_2 — dependent.
  • (ex,3ex)(e^x, 3e^x) and (sin⁡x,−2sin⁡x)(\sin x, -2\sin x): y2=3y1y_2 = 3y_1 and y2=−2y1y_2 = -2y_1 — dependent.
  • (ex,xex)(e^x, xe^x): the ratio xx is not constant and neither function is 00 — independent.

Problem 3 · Which Combinations Solve It?

Given: y1=xy_1 = x and y2=x2y_2 = x^2 both solve y′′−2x y′+2x2 y=0y'' - \frac{2}{x}\,y' + \frac{2}{x^2}\,y = 0 for x>0x > 0 — for which constants is c1x+c2x2c_1x + c_2x^2 a solution?

✅ Correct! LL is linear even though p=−2/xp = -2/x and q=2/x2q = 2/x^2 vary, so L(c1x+c2x2)=c1⋅0+c2⋅0=0L(c_1x + c_2x^2) = c_1\cdot 0 + c_2\cdot 0 = 0.
❌ Not quite. c1+c2=1c_1 + c_2 = 1 is the condition for an equation with a nonzero right side ff, where L(c1y1+c2y2)=(c1+c2)fL(c_1y_1 + c_2y_2) = (c_1 + c_2)f. Here the right side is 00.
❌ Not quite. The superposition proof never used constant coefficients — only the two linearity laws, which hold for any functions p(x)p(x), q(x)q(x).
❌ Not quite. The sum law lets you add the two solutions as well: L(c1x+c2x2)=L(c1x)+L(c2x2)L(c_1x + c_2x^2) = L(c_1x) + L(c_2x^2).
Show solution

Check the two solutions: L(x)=0−2x⋅1+2x2⋅x=0L(x) = 0 - \frac{2}{x}\cdot 1 + \frac{2}{x^2}\cdot x = 0 and L(x2)=2−2x⋅2x+2x2⋅x2=2−4+2=0L(x^2) = 2 - \frac{2}{x}\cdot 2x + \frac{2}{x^2}\cdot x^2 = 2 - 4 + 2 = 0.

Then by the sum and constant-multiple laws,

L(c1x+c2x2)=c1L(x)+c2L(x2)=0L(c_1x + c_2x^2) = c_1L(x) + c_2L(x^2) = 0

for every pair of constants. For instance 3x−5x23x - 5x^2 is a solution.

Problem 4 · When the Right Side Is Not Zero

Given: LL is linear and y1y_1, y2y_2 both solve Ly=f(x)Ly = f(x) with f≠0f \neq 0 — find L(2y1−3y2)L(2y_1 - 3y_2).

✅ Correct! 2f−3f=−f2f - 3f = -f: the combination solves Ly=fLy = f only when the coefficients add up to 11.
❌ Not quite. The output is 00 only for a homogeneous equation. Here L(y1)=L(y2)=fL(y_1) = L(y_2) = f, not 00.
❌ Check the sign. The constant-multiple law brings out −3-3, not +3+3: L(−3y2)=−3 L(y2)=−3fL(-3y_2) = -3\,L(y_2) = -3f.
❌ Not quite. Linearity gives 2L(y1)−3L(y2)2L(y_1) - 3L(y_2), so ff is multiplied by 2−32 - 3, not left as is.
Show solution
L(2y1−3y2)=2 L(y1)−3 L(y2)=2f−3f=−f.L(2y_1 - 3y_2) = 2\,L(y_1) - 3\,L(y_2) = 2f - 3f = -f.

In general L(c1y1+c2y2)=(c1+c2)fL(c_1y_1 + c_2y_2) = (c_1 + c_2)f. Superposition in the form “every combination is a solution” uses the 00 on the right side.

Solved: 0 / 4