Differential Equations
Wronskian
Sharan Sajiv Menon - September 6th, 2021
How to calculate
Linear Independence
If for some , then and are linearly independent. If for some , then and are linearly dependent.
For a differential equation, and must be linearly independent in order to be solutions to the DE
Example
Problem 8: Determine if the following functions are linearly independent or dependent: and
Solution 8: Use the Wronskian to determine linear independence
As long as , then and are linearly independent.
Code
We use sympy for this, since we are dealing with symbolic mathematics.
import sympy
from sympy import *
x, y, z, t = symbols('x y z t')
Function to calculate wronskian below:
def wronskian(f, g):
fp = diff(f, t)
gp = diff(g, t)
wronskianm = Matrix([[f, g], [fp, gp]])
return wronskianm.det()
Testing the function on the example we solved above.
f = 2*t**2
g = t**4
wronskian(f, g)
[OUTPUT]
4*t**5
4*t**5
is equivalent to .
Read More
Wikipedia Article