wanna mathMath ain't scary (not anymore)
4-Tier Textbook Index • Vol → Mod → Ch → Lab

Engineering Mathematics Volumes I–VI

6 Volumes • 20 Modules • 85 ChaptersFull Matrix →
4-Tier Statistics Index • Vol S → Mod → Ch → Lab

Interactive Statistics (S.1–S.6)

6 Modules • 18 ChaptersStatistics Index →
CHAPTER 4.2.4 • 2DPublished Interactive Labs~35 min study

Method of Variation of Parameters

Replace constant basis weights C₁, C₂ with varying parameter envelopes u₁(x), u₂(x) using Lagrange's zero-constraint system and Wronskian quadrature for arbitrary continuous forcing g(x).

Engineering & Physical Application Context

Impulse-driven beams and variable-stiffness spring systems under non-periodic forcing (ln x, 1/x, sec x, arbitrary sensor logs) and Green's function boundary kernels.

Governing Mathematical Formulation
yp(x)=u1(x)y1(x)+u2(x)y2(x),u1′y1+u2′y2=0,u1′y1′+u2′y2′=g(x)y_p(x) = u_1(x)y_1(x) + u_2(x)y_2(x), \qquad u_1'y_1 + u_2'y_2 = 0,\quad u_1'y_1' + u_2'y_2' = g(x)
u1′(x)=−y2(x) g(x)W(x),u2′(x)=y1(x) g(x)W(x),W=y1y2′−y2y1′u_1'(x) = -\frac{y_2(x)\,g(x)}{W(x)}, \qquad u_2'(x) = \frac{y_1(x)\,g(x)}{W(x)}, \qquad W = y_1 y_2' - y_2 y_1'
Volume IV • Module 4.21 Interactive Lab(s)

The Question You Should Ask

When forcing terms like sec⁡x\sec x, tan⁡x\tan x, or ex/xe^x/x fall outside Undetermined Coefficients, how can we build a particular solution yp(x)y_p(x) directly from the homogeneous basis {y1,y2}\{y_1, y_2\}?

In Simple Words & Math

Promoting constants C1,C2C_1, C_2 into unknown functions u1(x),u2(x)u_1(x), u_2(x) introduces two degrees of freedom for one differential equation—so Lagrange imposed the auxiliary zero constraint u1′y1+u2′y2=0u_1' y_1 + u_2' y_2 = 0 to eliminate second derivatives of u1,u2u_1, u_2.

After dividing by the leading coefficient a2(x)a_2(x) to write y′′+p(x)y′+q(x)y=g(x)y'' + p(x)y' + q(x)y = g(x), Cramer's rule gives u1′=−y2g/Wu_1' = -y_2 g / W and u2′=y1g/Wu_2' = y_1 g / W universally—working equally well for constant- and variable-coefficient linear equations.

4-Step Pedagogical Chapter Rhythm • Geometric Intuition First
Ch. 4.2.4
STEP 1 • GEOMETRIC QUESTION

Why does imposing u₁'y₁ + u₂'y₂ = 0 cleanly decouple y_p'' into two first-order integrals over the Wronskian W(x)?

STEP 2 • INTERACTIVE LAB EXPLORATION

Switch across sec x, tan x, eˣ/x, and variable-coefficient x²y'' − 2xy' + 2y = x³ ln x, scrub probe x₀, and watch Lagrange's zero constraint hold to zero while u₁(x), u₂(x) shape y_p(x).

STEP 3 • SYMBOLIC FORMALIZATION
yp(x)=−y1 ⁣∫y2gW dx+y2 ⁣∫y1gW dx(monic form a2=1)y_p(x) = -y_1\!\int \frac{y_2 g}{W}\,dx + y_2\!\int \frac{y_1 g}{W}\,dx \quad (\text{monic form } a_2 = 1)
STEP 4 • EDGE CASES & NEXT BRIDGE

Forgetting to divide by a₂(x) before substituting g(x) creates an off-by-a₂ error! Next, Chapter 4.2.5 solves the variable-coefficient Cauchy–Euler homogeneous basis that feeds this exact method.

Interactive Laboratories in Chapter 4.2.4
Initializing Interactive Laboratory
LOADING MODULE

Preparing interactive canvas & numerical solver…

wanna math drafting viewport

Variation of Parameters: Monic Normalization, Lagrange Constraint & Wronskian Formula

1. LAGRANGE'S AUXILIARY ZERO CONDITION
u1′(x)y1(x)+u2′(x)y2(x)=0u_1'(x)y_1(x) + u_2'(x)y_2(x) = 0

Imposing one auxiliary relation suppresses second derivatives u1′′,u2′′u_1'', u_2'', leaving a simple algebraic 2×22\times 2 linear system for (u1′,u2′)(u_1', u_2').

2. MONIC WRONSKIAN QUADRATURE
u1′=−y2gW,u2′=y1gWu_1' = -\frac{y_2 g}{W},\qquad u_2' = \frac{y_1 g}{W}

Always divide by a2(x)a_2(x) first so y′′+py′+qy=g(x)y'' + py' + qy = g(x) has unit leading coefficient before integrating with Wronskian W=y1y2′−y2y1′W = y_1 y_2' - y_2 y_1'.

3. BEYOND UNDETERMINED COEFFICIENTS
yp(x)=−y1 ⁣∫y2gW dx+y2 ⁣∫y1gW dxy_p(x) = -y_1\!\int\frac{y_2 g}{W}\,dx + y_2\!\int\frac{y_1 g}{W}\,dx

Works uniformly for non-annihilable forcings (sec⁡x,tan⁡x,ln⁡x,ex/x\sec x, \tan x, \ln x, e^x/x) and variable-coefficient equations once {y1,y2}\{y_1, y_2\} is known.

Universal Nonhomogeneous Solver • Ch. 4.2.4

Variation of Parameters Derivation, Monic Trap, Green's Kernel & Worked Proof

Open Variation Formulas →
1. FULL LAGRANGE DERIVATION (2ND TO nth ORDER)
yp′=(u1y1′+u2y2′)+(u1′y1+u2′y2)⏟= 0y_p' = (u_1 y_1' + u_2 y_2') + \underbrace{(u_1' y_1 + u_2' y_2)}_{=\,0}
yp′′+pyp′+qyp=u1′y1′+u2′y2′=g(x)y_p'' + p y_p' + q y_p = u_1' y_1' + u_2' y_2' = g(x)

Substituting yp=u1y1+u2y2y_p=u_1 y_1+u_2 y_2 into y′′+py′+qy=gy''+py'+qy=g eliminates both homogeneous operators L[y1]=L[y2]=0L[y_1]=L[y_2]=0 once Lagrange sets u1′y1+u2′y2=0u_1'y_1+u_2'y_2=0. For order nn, impose n−1n-1 zero rows and solve uk′=Wk/Wu_k' = W_k/W via Cramer's rule.

2. WORKED EXAMPLE: y'' + y = sec x
W=det⁡[cos⁡xsin⁡x−sin⁡xcos⁡x]=1W = \det\begin{bmatrix}\cos x & \sin x \\ -\sin x & \cos x\end{bmatrix} = 1
u1′=−sin⁡xsec⁡x=−tan⁡x,    u2′=cos⁡xsec⁡x=1u_1' = -\sin x\sec x = -\tan x,\;\; u_2' = \cos x\sec x = 1

Integrating gives u1=ln⁡∣cos⁡x∣u_1 = \ln|\cos x| and u2=xu_2 = x (omitting constants already captured by yhy_h), yielding yp(x)=(cos⁡x)ln⁡∣cos⁡x∣+xsin⁡xy_p(x) = (\cos x)\ln|\cos x| + x\sin x on (−π/2,π/2)(-\pi/2,\pi/2).

3. MONIC NORMALIZATION & GREEN'S KERNEL
yp(x)=∫x0xy1(s)y2(x)−y2(s)y1(x)W(s) h(s)a2(s) dsy_p(x) = \int_{x_0}^{x} \frac{y_1(s)y_2(x) - y_2(s)y_1(x)}{W(s)}\,\frac{h(s)}{a_2(s)}\,ds

Packing both integrals together exposes the causal Green's function G(x,s)G(x,s). Always divide first by a2(x)a_2(x): in x2y′′−2xy′+2y=x3ln⁡xx^2y'' - 2xy' + 2y = x^3\ln x, setting g=x3ln⁡xg = x^3\ln x instead of g=xln⁡xg = x\ln x produces an invalid extra x2x^2 factor!

Chapter 4.2.4 Laboratory Specifications

1 Interactive Lab(s)
LAB 4.2.4.1Component: VariationOfParametersLab

Method of Variation of Parameters Explorer

Inspect varying parameters u₁(x), u₂(x), monic normalization, and Lagrange's constraint u₁'y₁ + u₂'y₂ = 0.

u1′=−y2gW,  u2′=y1gWu_1' = -\frac{y_2 g}{W},\; u_2' = \frac{y_1 g}{W}