Wronskian and Linear Independence of Solutions

April 13, 2026

Problem

Compute W(e^x, e^(2x)) and show it equals e^(3x), which is non-zero, confirming the two functions are linearly independent. Display the Wronskian determinant.

Explanation

What is the Wronskian?

The Wronskian of two differentiable functions y1(x)y_1(x) and y2(x)y_2(x) is the determinant W(y1,y2)(x)  =  det(y1y2y1y2)  =  y1y2y2y1.W(y_1, y_2)(x) \;=\; \det \begin{pmatrix} y_1 & y_2 \\ y_1' & y_2' \end{pmatrix} \;=\; y_1 \, y_2' - y_2 \, y_1'.

For nn functions, it's the n×nn \times n determinant of the matrix whose rows are yiy_i, yiy_i', …, yi(n1)y_i^{(n-1)}.

It's one of the most useful tools in linear ODEs because it gives a single-number test for linear independence of solutions.

The linear-independence test

Theorem (Wronskian test). Let y1,,yny_1, \ldots, y_n be solutions of a linear homogeneous ODE on an interval II. Then the yiy_i are linearly independent on II if and only if their Wronskian is nonzero at some point of II — equivalently, nonzero at every point (Abel's theorem guarantees WW is either identically zero or never zero on II).

So checking linear independence reduces to evaluating one determinant at one point.

Caution. For functions that are not simultaneously solutions of a single linear ODE, a nonzero Wronskian still implies linear independence, but zero Wronskian does not imply linear dependence. The theorem above is specifically for solutions of a linear ODE.

Abel's theorem (why it's all-or-nothing)

For solutions of y+p(x)y+q(x)y=0y'' + p(x) y' + q(x) y = 0, the Wronskian satisfies W(x)=W(x0)exp ⁣(x0xp(t)dt).W(x) = W(x_0) \exp\!\left( -\int_{x_0}^{x} p(t) \, dt \right).

The exponential factor never vanishes, so W(x)W(x) is either identically zero (if W(x0)=0W(x_0) = 0) or nonzero everywhere on II. Evaluating at one convenient point fully determines the answer.

For the ODE with p(x)=0p(x) = 0 (no yy' term), WW is constant.

The given problem

Compute W(ex,e2x)W(e^{x}, e^{2 x}).

Step-by-step

y1=exy_1 = e^{x}, y2=e2xy_2 = e^{2 x}.

y1=exy_1' = e^{x}, y2=2e2xy_2' = 2 e^{2 x}.

W  =  det(exe2xex2e2x)=ex2e2xe2xex=2e3xe3x=e3x.W \;=\; \det \begin{pmatrix} e^{x} & e^{2 x} \\ e^{x} & 2 e^{2 x} \end{pmatrix} = e^{x} \cdot 2 e^{2 x} - e^{2 x} \cdot e^{x} = 2 e^{3 x} - e^{3 x} = e^{3 x}.

W(ex,e2x)=e3x\boxed{\, W(e^{x}, e^{2 x}) = e^{3 x} \,}

e3xe^{3 x} is never zero, so exe^{x} and e2xe^{2 x} are linearly independent on all of R\mathbb{R}.

A sanity check — which ODE do these solve?

Both are solutions of y3y+2y=0y'' - 3 y' + 2 y = 0 (characteristic roots r=1,2r = 1, 2; see #183). The Wronskian for this ODE, with p(x)=3p(x) = -3, satisfies by Abel W(x)=W(x0)e3dt=W(x0)e3(xx0).W(x) = W(x_0) e^{-\int -3 \, dt} = W(x_0) e^{3 (x - x_0)}.

At x0=0x_0 = 0: W(0)=1W(0) = 1. So W(x)=e3xW(x) = e^{3 x} — matching our direct computation exactly.

Examples — when functions are dependent

Compute W(ex,3ex)W(e^{x}, 3 e^{x}): W=det(ex3exex3ex)=3e2x3e2x=0.W = \det \begin{pmatrix} e^{x} & 3 e^{x} \\ e^{x} & 3 e^{x} \end{pmatrix} = 3 e^{2 x} - 3 e^{2 x} = 0.

Zero everywhere — these are linearly dependent (3ex=3ex3 e^{x} = 3 \cdot e^{x}). Confirmed.

Another: W(sinx,cosx)W(\sin x, \cos x): W=det(sinxcosxcosxsinx)=sin2xcos2x=10.W = \det \begin{pmatrix} \sin x & \cos x \\ \cos x & -\sin x \end{pmatrix} = -\sin^{2} x - \cos^{2} x = -1 \ne 0.

Linearly independent — forming the standard basis for solutions of y+y=0y'' + y = 0.

Why "linearly independent" is crucial

A second-order linear homogeneous ODE has a two-dimensional solution space. If you pick two solutions y1,y2y_1, y_2 and they're linearly independent (Wronskian nonzero), they form a basis — every solution is C1y1+C2y2C_1 y_1 + C_2 y_2 for some unique C1,C2C_1, C_2. If they're dependent, they span only a 1D subspace, and you can't express every solution that way.

So the Wronskian test is what you run before declaring "this is the general solution" — to make sure your two candidate solutions really are independent.

Wronskian in variation of parameters

In variation of parameters (#187), the Wronskian appears as the denominator of the coefficients: u1=y2gW,u2=y1gW.u_1' = -\frac{y_2 \, g}{W}, \qquad u_2' = \frac{y_1 \, g}{W}.

If the Wronskian is zero on an interval, variation of parameters breaks down — which only happens if y1,y2y_1, y_2 were already dependent (so they don't form a valid basis to begin with).

Higher-order and general-n case

For three solutions of a 3rd-order linear ODE, compute W(y1,y2,y3)=det(y1y2y3y1y2y3y1y2y3).W(y_1, y_2, y_3) = \det \begin{pmatrix} y_1 & y_2 & y_3 \\ y_1' & y_2' & y_3' \\ y_1'' & y_2'' & y_3'' \end{pmatrix}.

Same theorem: nonzero at a point ↔ linearly independent.

Abel's theorem generalises: for y(n)+pn1(x)y(n1)++p0(x)y=0y^{(n)} + p_{n-1}(x) y^{(n-1)} + \ldots + p_0(x) y = 0, W(x)=W(x0)exp ⁣(x0xpn1(t)dt).W(x) = W(x_0) \exp\!\left( -\int_{x_0}^{x} p_{n-1}(t) \, dt \right).

Only the coefficient of the (n1)(n-1)-th derivative matters for the Wronskian's evolution — the lower coefficients don't contribute to the exponential.

Common mistakes

  • Confusing the Wronskian matrix with the Wronskian determinant. The matrix is W(y1,y2)W(y_1, y_2)-matrix; the Wronskian is its determinant.
  • Concluding dependence from zero Wronskian for arbitrary functions. The zero-Wronskian-implies-dependence direction is true only for solutions of a linear ODE, not for arbitrary function pairs.
  • Evaluating at the wrong sign. y1y2y2y1y_1 y_2' - y_2 y_1', not y1y2y2y1y_1' y_2 - y_2' y_1.
  • Using the Wronskian on a set of functions that don't solve the same ODE. Then the test only half-applies — nonzero ⇒ independent, but zero doesn't mean dependent.

Try it in the visualization

Watch the Wronskian W(x)W(x) as a curve over xx, with the two underlying solutions y1,y2y_1, y_2 overlaid. Slide the initial conditions; see the Wronskian stay the same sign (never crossing zero) whenever the two solutions are independent. Swap in a multiple of y1y_1 as y2y_2 and watch WW collapse to zero everywhere.

Interactive Visualization

Parameters

e^x, e^(2x) (independent)
2.50
15.00
20.00
0.00
Your turn

Got your own math or physics problem?

Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.

Sign Up Free to Try It30 free visualizations every day
Wronskian and Linear Independence of Solutions | MathSpin