Loading…

Variation of Parameter Tool

Math Calculus • Differential Equations

View all topics

7. Variation of Parameters Tool

Find a particular solution of \(y'' + p(x)\,y' + q(x)\,y = r(x)\) using \(y_p=u_1y_1+u_2y_2\) with a homogeneous basis \(\{y_1,y_2\}\). Computes the Wronskian and the formulas \(u_1'=-\frac{y_2 r}{W}\), \(u_2'=\frac{y_1 r}{W}\).

Input supports: pi, e, sqrt(), sin, cos, tan, exp, log. Use * for multiplication. Variable is x.
Homogeneous basis \(\{y_1(x),y_2(x)\}\)

The tool checks the Wronskian \(W=y_1y_2' - y_1'y_2\). If \(W\approx 0\) on your interval, the basis is not valid there.

Optional initial conditions (to get a full solution)

Graph marks \((x_0,y(x_0))\) and \((x^\*,y(x^\*))\) with coordinate labels.

Verification + Graph settings (optional)

Drag to pan, mouse wheel to zoom, double-click to reset view. Outputs scroll horizontally on small screens.

Ready

Steps

Enter \(p,q,r\) and a basis \(\{y_1,y_2\}\), then click Solve.

Graph

Plot of \(y_p(x)\) (and \(y(x)\) if IC enabled) — pan/zoom
Hover to probe \((x,y)\).

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

What does the variation of parameters tool solve?

It targets non-homogeneous second-order linear ODEs of the form y'' + p(x) y' + q(x) y = r(x). With a provided homogeneous basis y1 and y2, it constructs a particular solution yp and can also produce the full solution y = C1 y1 + C2 y2 + yp.

How do I choose y1(x) and y2(x) for variation of parameters?

y1 and y2 must be linearly independent solutions of the homogeneous equation y'' + p(x) y' + q(x) y = 0. A quick indicator is a nonzero Wronskian W(x) on the interval of interest.

Why does a near-zero Wronskian mean the basis is not valid?

If W(x) = y1 y2' - y1' y2 is approximately zero on an interval, y1 and y2 behave as dependent there and do not form a fundamental set. The formulas u1' = -y2 r / W and u2' = y1 r / W then become unstable or undefined.

How is the particular solution yp(x) computed in this tool?

The tool uses yp = u1 y1 + u2 y2 with u1' = -y2 r / W and u2' = y1 r / W, where W is the Wronskian of y1 and y2. It integrates u1' and u2' to obtain u1 and u2 and then forms yp.

Can the tool use initial conditions to find C1 and C2?

Yes, when initial conditions are enabled it solves for C1 and C2 from y(x0) = y0 and y'(x0) = v0. The resulting full solution is then plotted and can be inspected alongside the step-by-step work.