Wronskian
calculator.
The Wronskian is a determinant that tests whether functions are linearly independent.
- Result
- Independent
- Largest size of W
- 403.4288
W is not 0 at x = 0, so these functions are linearly independent on any interval that holds that point. W stays away from 0 across the range, which is what a fundamental set of solutions looks like.
W across the range
Drag the point to move x₀W(x) from x = −2 to x = 2. It equals 1 at x = 0 and its size reaches 403.428793. It never reaches 0 here.
Working
- 1Build the matrix: the functions, then a row of derivatives for each order up to n − 1Rows (f₁, f₂), (f₁′, f₂′)
- 2Differentiate each functionf₁′ = exf₂′ = 2 e2x
- 3Take the determinant, with algebra but no trig identitiesW(x) = e2x ex
- 4Put in x = 0(1, 1), (1, 2), so W = 1
- 5Check: the formula and the numeric determinant must agreeThe formula gives 1 at x = 0, and the determinant of the matrix gives 1
- 6Read the resultW is not 0 somewhere from x = −2 to x = 2, so the functions are linearly independent there.
The matrix at x = 0
| Row | f₁ | f₂ |
|---|---|---|
| f | 1 | 1 |
| f′ | 1 | 2 |
Each column holds one function and its derivatives. W is the determinant of this matrix. A column that is a multiple of another makes it 0.
W across the range
| W(x) | Sign | |
|---|---|---|
| −2 | 0.0025 | Positive |
| −1.5 | 0.0111 | Positive |
| −1 | 0.0498 | Positive |
| −0.5 | 0.2231 | Positive |
| 0 | 1 | Positive |
| 0.5 | 4.4817 | Positive |
| 1 | 20.0855 | Positive |
| 1.5 | 90.0171 | Positive |
| 2 | 403.4288 | Positive |
Test against Abel’s formula
If your functions solve an equation written with the top derivative alone, the next term carries a p(x). Abel’s formula then fixes W everywhere from its value at x₀.
W against the prediction
| x | W(x) | Predicted |
|---|---|---|
| −2 | 0.0025 | 0.0025 |
| −1.5 | 0.0111 | 0.0111 |
| −1 | 0.0498 | 0.0498 |
| −0.5 | 0.2231 | 0.2231 |
| 0 | 1 | 1 |
How it's worked out
Functions are linearly dependent when one can be built from the others with constant multipliers. The Wronskian tests this with a determinant. Its matrix holds the functions in the first row, their first derivatives in the second, and so on, up to order n − 1 for n functions.
Why it works: if some mix of the functions is 0 everywhere, the same mix of their derivatives is 0 too. Then the columns of the matrix depend on each other, and its determinant is 0. Turned around, one point where W is not 0 proves the functions are independent on any interval that holds that point.
The value at your point comes from automatic differentiation, so it does not depend on small-step estimates. The formula for W(x) is built separately with symbolic rules. The test across your range checks W at 121 points and treats anything below about , relative to the matrix entries, as 0.
Worked examples
Noor checks the two solutions she found
Noor solved and got roots of −2 and −3. Before she writes the general solution, she needs to know that these two exponentials are a fundamental set, meaning every solution is a mix of them.
At , W is −1, and an exponential is never 0, so it never vanishes. That is what she needs. The coefficient of is 5, and Abel's formula predicts −0.0067 at . The real W there is −0.0067, so the two agree.
Elena has a triple root
Elena's third-order equation, , has one root repeated three times, so her solutions are , and . At the matrix has rows (1, 0, 0), (1, 1, 0), (1, 2, 2). It is triangular, so its determinant is the product down the diagonal, 2.
The formula is , which is never 0, so the three form a fundamental set. The coefficient of is −3, and W follows Abel's formula with that value across the range.
Jonas tests a set with a hidden link
Jonas tries , and 1. They look unrelated, but ties them together, so they are dependent. The largest W across the range is 2.4 × 10⁻¹⁶, which is rounding noise, and the formula is 0.
Here the link and the zero agree. The zero alone would not have settled it, as the next section shows. Finding the actual link is what proves dependence.
Reading your result
W is not 0 at your point. Your functions are independent on any interval through that point. That holds whether or not they solve an equation. For a pair of solutions of one equation, Trench's text adds that they then form a fundamental set.
W is 0 across the whole range. This does not prove dependence for functions in general. Peano's example is and . Here W comes out as 0 across the range, yet no single constant links them across 0, because one is positive on the left and the other negative. Analytic functions, such as those built from polynomials, exponentials and sines, do not behave this way, and neither do solutions of one linear equation.
W is 0 at one point only. The pair and has , which is 0 at 0 and 1 at 1. The two are still independent. They do solve the equation in the last row below, but only away from 0, where dividing through by breaks down. With , W matches Abel's formula on a range that stays right of 0.
Abel's formula. For solutions of an equation written with the top derivative alone, W is fixed by its value at one point and by p, the coefficient of the next derivative. So W is either 0 at every point of an interval where p is continuous, or at none of them.
| Solutions | Equation | W(1) |
|---|---|---|
| 445.24 | ||
| 7.39 | ||
| 3 | ||
| 1 |
Common mistakes
- Reading a zero at one point as dependence. and have W = 0 at 0 and are independent. Look at the whole range before you decide.
- Treating W ≡ 0 as proof. It proves dependence for solutions of one linear equation and for analytic functions. For anything else, you still need to find the actual link.
- Worrying about the sign. Swapping two functions swaps the sign: then gives 1 at 0, and the reverse order gives −1. Independence only asks if W is 0, so either answer is fine.
- Taking derivatives one order too far. Three functions need rows up to the second derivative. Four rows would not make a square matrix.
- Using p without dividing first. Abel's formula needs a top coefficient of 1. For , the coefficient is , not . A wrong p shows at once: with −1 for and , the test says W does not match, because W at 1 is 20.0855.