LINEAR-ALGEBRA Β· Interactive Practice | Unit 11 Β· Video 2

Your Diff EQ Course Was Linear Algebra All Along

IKey Formulas

Formula Name Description
L[c1y1+c2y2]=c1L[y1]+c2L[y2]L[c_1 y_1 + c_2 y_2] = c_1 L[y_1] + c_2 L[y_2] Linearity of LL Linear combinations of solutions are solutions
dim⁑(ker⁑L)=n\dim(\ker L) = n Dimension Theorem nnth-order homogeneous linear ODE has nn-dimensional solution space
W(y1,y2)=y1y2β€²βˆ’y2y1β€²W(y_1, y_2) = y_1 y_2' - y_2 y_1' Wronskian Nonzero β‡’\Rightarrow linearly independent
eix=cos⁑x+isin⁑xe^{ix} = \cos x + i\sin x Euler's Formula Change of basis between {cos⁑x,sin⁑x}\{\cos x, \sin x\} and {eix,eβˆ’ix}\{e^{ix}, e^{-ix}\}

IIVisualization 1 β€” Superposition

Every linear combination y=c1cos⁑x+c2sin⁑xy = c_1\cos x + c_2\sin x of the two basis solutions still solves yβ€²β€²+y=0y'' + y = 0 β€” the superposition principle.

IIIVisualization 2 β€” Initial Conditions as Coordinates

For yβ€²β€²+y=0y'' + y = 0, the initial data (y(0), yβ€²(0))=(a,b)\big(y(0),\,y'(0)\big) = (a,b) are exactly the coordinates (c1,c2)(c_1,c_2) of the solution in the basis {cos⁑x,sin⁑x}\{\cos x,\sin x\}.

πŸ’‘ Two conditions fix two coordinates, so the solution space is 2-dimensional β€” the pattern the next visualization generalizes.

IVVisualization 3 β€” Order = Dimension

An nnth-order homogeneous linear ODE has an nn-dimensional solution space β€” the order sets the number of independent basis functions.

VQuiz Questions

Question 1

What is the dimension of the solution space of yβ€²β€²+y=0y'' + y = 0?

βœ… Correct! A 2nd-order homogeneous linear ODE has a 2-dimensional solution space.

❌ Not quite. Remember: the dimension of the solution space equals the order of the ODE.

Show solution

Solution:

The equation yβ€²β€²+y=0y'' + y = 0 is a 2nd-order homogeneous linear ODE. By the dimension theorem, the solution space has dimension equal to the order:

Order=2β€…β€ŠβŸΉβ€…β€Šdim⁑(solutionΒ space)=2\text{Order} = 2 \;\Longrightarrow\; \dim(\text{solution space}) = 2

A basis is {cos⁑x,sin⁑x}\{\cos x, \sin x\} β€” exactly two linearly independent functions. The general solution y=c1cos⁑x+c2sin⁑xy = c_1\cos x + c_2\sin x has two free constants, one per basis vector.

Question 2

If y1y_1 and y2y_2 are both solutions to a homogeneous linear ODE, which of the following is guaranteed to also be a solution?

βœ… Correct! Linear combinations of solutions are always solutions β€” that's the superposition principle, the hallmark of a vector space.

❌ Not quite. Only linear operations (addition and scalar multiplication) preserve the solution property. Products, quotients, and powers are nonlinear.

Show solution

Solution:

The solution set is a vector space, so it is closed under linear combinations:

L[c1y1+c2y2]=c1L[y1]+c2L[y2]=c1β‹…0+c2β‹…0=0L[c_1 y_1 + c_2 y_2] = c_1 L[y_1] + c_2 L[y_2] = c_1 \cdot 0 + c_2 \cdot 0 = 0

So 3y1βˆ’2y23y_1 - 2y_2 (with c1=3c_1 = 3, c2=βˆ’2c_2 = -2) is always a solution.

Products, quotients, and powers are nonlinear operations and do NOT preserve solutions in general.

Counterexample: cos⁑x\cos x and sin⁑x\sin x both solve yβ€²β€²+y=0y'' + y = 0, but their product cos⁑xβ‹…sin⁑x=12sin⁑(2x)\cos x \cdot \sin x = \tfrac{1}{2}\sin(2x) does not β€” check: (12sin⁑2x)β€²β€²+12sin⁑2x=βˆ’2sin⁑2x+12sin⁑2xβ‰ 0(\tfrac{1}{2}\sin 2x)'' + \tfrac{1}{2}\sin 2x = -2\sin 2x + \tfrac{1}{2}\sin 2x \neq 0.

Question 3

True or False: The set {eix,β€…β€Šeβˆ’ix}\{e^{ix},\; e^{-ix}\} is a valid basis for the solution space of yβ€²β€²+y=0y'' + y = 0.

βœ… Correct! Both functions solve the ODE and are linearly independent β€” they form a valid (complex-valued) basis for the same 2D space.

❌ Not quite. Try substituting e^(ix) into y'' + y = 0: since iΒ² = βˆ’1, the second derivative is βˆ’e^(ix), so the sum is zero.

Show solution

Solution: True

Both eixe^{ix} and eβˆ’ixe^{-ix} are solutions to yβ€²β€²+y=0y'' + y = 0:

  • y=eixy = e^{ix}: β€…β€Šyβ€²β€²=i2eix=βˆ’eix\;y'' = i^2 e^{ix} = -e^{ix}, so yβ€²β€²+y=βˆ’eix+eix=0y'' + y = -e^{ix} + e^{ix} = 0 βœ“
  • y=eβˆ’ixy = e^{-ix}: β€…β€Šyβ€²β€²=(βˆ’i)2eβˆ’ix=βˆ’eβˆ’ix\;y'' = (-i)^2 e^{-ix} = -e^{-ix}, so yβ€²β€²+y=βˆ’eβˆ’ix+eβˆ’ix=0y'' + y = -e^{-ix} + e^{-ix} = 0 βœ“

They are linearly independent (neither is a scalar multiple of the other), so they form a basis for the same 2-dimensional solution space that {cos⁑x,sin⁑x}\{\cos x, \sin x\} spans.

Euler's formula provides the change-of-basis matrix between these two bases:

cos⁑x=12eix+12eβˆ’ix,sin⁑x=12ieixβˆ’12ieβˆ’ix\cos x = \tfrac{1}{2}e^{ix} + \tfrac{1}{2}e^{-ix}, \qquad \sin x = \tfrac{1}{2i}e^{ix} - \tfrac{1}{2i}e^{-ix}

Question 4

The ODE yβ€²β€²β€²βˆ’yβ€²=0y''' - y' = 0 is 3rd order. Which of the following is a basis for its solution space?

βœ… Correct! The characteristic roots are 0, 1, βˆ’1, giving the basis {1, eΛ£, e⁻ˣ} β€” three functions for a 3rd-order equation.

❌ Not quite. Try solving the characteristic equation rΒ³ βˆ’ r = 0 by factoring out r, then check which functions actually satisfy the ODE.

Show solution

Solution:

Factor the characteristic equation:

r3βˆ’r=0β€…β€ŠβŸΉβ€…β€Šr(rβˆ’1)(r+1)=0β€…β€ŠβŸΉβ€…β€Šr=0,β€…β€Š1,β€…β€Šβˆ’1r^3 - r = 0 \;\Longrightarrow\; r(r-1)(r+1) = 0 \;\Longrightarrow\; r = 0,\; 1,\; -1

Each root gives a basis function:

Root Basis function Verify
r=0r = 0 y=e0β‹…x=1y = e^{0 \cdot x} = 1 yβ€²β€²β€²βˆ’yβ€²=0βˆ’0=0y''' - y' = 0 - 0 = 0 βœ“
r=1r = 1 y=exy = e^{x} yβ€²β€²β€²βˆ’yβ€²=exβˆ’ex=0y''' - y' = e^x - e^x = 0 βœ“
r=βˆ’1r = -1 y=eβˆ’xy = e^{-x} yβ€²β€²β€²βˆ’yβ€²=βˆ’eβˆ’xβˆ’(βˆ’eβˆ’x)=0y''' - y' = -e^{-x} - (-e^{-x}) = 0 βœ“

So the basis is {1,β€…β€Šex,β€…β€Šeβˆ’x}\{1,\; e^x,\; e^{-x}\} β€” three linearly independent solutions for a 3rd-order equation.

Why not the others?

  • {1,x,x2}\{1, x, x^2\}: y=x2β‡’yβ€²β€²β€²βˆ’yβ€²=0βˆ’2xβ‰ 0y = x^2 \Rightarrow y''' - y' = 0 - 2x \neq 0 βœ—
  • {ex,eβˆ’x,e2x}\{e^x, e^{-x}, e^{2x}\}: y=e2xβ‡’yβ€²β€²β€²βˆ’yβ€²=8e2xβˆ’2e2x=6e2xβ‰ 0y = e^{2x} \Rightarrow y''' - y' = 8e^{2x} - 2e^{2x} = 6e^{2x} \neq 0 βœ—
  • {cos⁑x,sin⁑x,ex}\{\cos x, \sin x, e^x\}: y=cos⁑xβ‡’yβ€²β€²β€²βˆ’yβ€²=sin⁑x+sin⁑x=2sin⁑xβ‰ 0y = \cos x \Rightarrow y''' - y' = \sin x + \sin x = 2\sin x \neq 0 βœ—

Solved: 0 / 4