Variation of Parameters Solver
Solve $ay” + by’ + cy = g(t)$ for complex forcing functions like $\tan(t)$, $\sec(t)$, or $\ln(t)$.
System (LHS)
Forcing Function g(t)
Initial Conditions
*Initial conditions set at t=1 for stability with ln(t) or 1/t.
Calculated Basis & Wronskian
Variation Formulas
Numeric Solution Graph
Understanding Variation of Parameters
The Method of Undetermined Coefficients is powerful but limited: it only works when the forcing function $g(t)$ is a polynomial, exponential, sine, cosine, or a sum/product of these. What happens if $g(t) = \sec(t)$ or $g(t) = \ln(t)$?
This is where Variation of Parameters shines. It is a general method that works for any continuous forcing function. The idea is to replace the constants $c_1$ and $c_2$ in the homogeneous solution with unknown functions $u_1(t)$ and $u_2(t)$: $$ y_p(t) = u_1(t)y_1(t) + u_2(t)y_2(t) $$
We find these unknown functions by calculating the Wronskian, $W(t) = y_1 y_2′ – y_1′ y_2$, and solving the following integrals:
Although the integrals can sometimes be difficult to evaluate analytically, this tool performs Numerical Integration to graph the exact behavior of the system, showing you the response even when a closed-form solution is messy or impossible.