Variation Of Parameters Particular Solution: Build Forced Solutions

By Vegard Gjerde Based on Masterful Learning 12 min read Published
variation-of-parameters-particular-solution differential-equations math learning-strategies

Variation Of Parameters Particular Solution builds one particular solution of a normalized second-order linear nonhomogeneous equation from a known fundamental pair: yp=y1y2gWdx+y2y1gWdxy_{p}=-y_{1}\int \frac{y_{2}g}{W}\,dx+y_{2}\int \frac{y_{1}g}{W}\,dx. It applies on a working interval where the pair is known and W0W\neq 0. Use it when a standard undetermined-coefficients trial is unavailable or awkward; normalize before identifying g(x)g(x), and set the two integration constants to zero when selecting a single particular solution.

Unisium hero image titled Variation Of Parameters Particular Solution showing the principle equation and a conditions card.
The variation-of-parameters formula uses the fundamental pair y1,y2y_1,y_2, forcing g(x)g(x), and Wronskian WW to construct one particular solution ypy_p.

On this page: The Principle | Conditions | Misconceptions | EE Questions | Retrieval Practice | Worked Example | Solve a Problem | Related Principles | FAQ


The Principle

Statement

Variation of parameters turns a known homogeneous fundamental pair into a particular solution for a forced second-order linear equation. Instead of guessing the shape of ypy_p, it lets the coefficients of y1y_1 and y2y_2 vary with xx and solves for the integrals those coefficients must contain.

The particular-solution formula is:

yp=y1y2gWdx+y2y1gWdxy_{p}=-y_{1}\int \frac{y_{2}g}{W}\,dx+y_{2}\int \frac{y_{1}g}{W}\,dx

This principle supplies the particular piece used by Linear Nonhomogeneous Solution Structure. After one ypy_p is found, the general solution has the form y=yh+ypy=y_h+y_p under the stated conditions.

Mathematical Form

yp=y1y2gWdx+y2y1gWdxy_{p}=-y_{1}\int \frac{y_{2}g}{W}\,dx+y_{2}\int \frac{y_{1}g}{W}\,dx

Where:

  • y1y_1, y2y_2 = a known fundamental solution pair for the associated homogeneous equation
  • g(x)g(x) = the forcing term in normalized standard form
  • W=y1y2y1y2W=y_1y_2^{\prime}-y_1^{\prime}y_2 = the Wronskian of the pair
  • ypy_p = one particular solution of the nonhomogeneous equation

Why the Wronskian appears

Variation of parameters replaces the constant weights C1C_1 and C2C_2 from Fundamental Solution Set General Form with functions. The Wronskian is the determinant that makes those two changing weights solvable from the forcing term. If W=0W=0, the pair is not a usable fundamental pair for this formula.

With yp=u1y1+u2y2y_p=u_1y_1+u_2y_2 and the auxiliary condition u1y1+u2y2=0u_1^{\prime}y_1+u_2^{\prime}y_2=0, the forcing equation gives

u1=y2gW,u2=y1gWu_1^{\prime}=-\frac{y_2g}{W},\qquad u_2^{\prime}=\frac{y_1g}{W}

Integrating those two coefficient derivatives gives the signs in the formula.


Conditions of Applicability

Condition: normalizedy+P(x)y+Q(x)y=g(x)normalized y^{\prime\prime}+P(x)y^{\prime}+Q(x)y=g(x); pair known; W0W\neq 0

Practical modeling notes

  • “Normalized” means the coefficient of yy^{\prime\prime} has already been divided to 11, so the right side is the resulting g(x)g(x).
  • The pair y1,y2y_1,y_2 must solve the associated homogeneous equation y+P(x)y+Q(x)y=0y^{\prime\prime}+P(x)y^{\prime}+Q(x)y=0 on the same working interval.
  • The Wronskian must be nonzero on the interval where the formula is used. A zero in the denominator is a domain warning, not a minor algebra issue.
  • The integrals are indefinite in the formula because changing their constants only adds homogeneous terms, which can be absorbed into yhy_h.

When It Doesn’t Apply

This formula is not the first move in every forced equation:

  • Unnormalized equations: if the equation is a(x)y+b(x)y+c(x)y=r(x)a(x)y^{\prime\prime}+b(x)y^{\prime}+c(x)y=r(x), normalize first so g(x)=r(x)/a(x)g(x)=r(x)/a(x).
  • Unknown homogeneous pair: variation of parameters starts after a fundamental pair is known.
  • Dependent pair: if W=0W=0, the pair cannot support the formula.
  • Simpler standard forcing: for constant-coefficient equations with standard nonresonant forcing, Undetermined Coefficients Trial Family may be faster.

Want the complete framework behind this guide? Read Masterful Learning.


Common Misconceptions

Misconception 1: “Variation of parameters finds the homogeneous solutions too”

The truth: the formula assumes y1y_1 and y2y_2 are already known.

Why this matters: if the associated homogeneous equation is still unsolved, variation of parameters has no pair to vary.

Misconception 2: “The right side can be copied before normalizing”

The truth: g(x)g(x) is the forcing after the second-order equation has leading coefficient 11.

Why this matters: using the unnormalized right side changes both integrals and usually gives the wrong particular solution.

Misconception 3: “I must keep arbitrary constants in both integrals”

The truth: constants in the two antiderivatives change ypy_p by C1y1+C2y2-C_1y_1+C_2y_2, which is already part of the homogeneous solution.

Why this matters: set those constants to zero when selecting one ypy_p; keep the arbitrary constants only in yhy_h.


Elaborative Encoding

Use these questions to build deep understanding. (See Elaborative Encoding for the full method.)

Within the Principle

  • What jobs do y1y_1, y2y_2, g(x)g(x), WW, and ypy_p each perform in the formula?
  • Why does the formula contain two integrals instead of a single guessed coefficient?

For the Principle

  • Before using the formula, what must be checked about the differential equation, the fundamental pair, and the Wronskian?
  • Why can constants from the indefinite integrals be ignored when the goal is one particular solution?

Between Principles

Generate an Example

  • Describe one forcing term where variation of parameters would be more natural than trying to guess an undetermined-coefficients trial.

Retrieval Practice

Answer from memory, then click to reveal and check. (See Retrieval Practice for the full method.)

State the principle in words: _____For a normalized second-order linear nonhomogeneous equation, a known fundamental pair gives a particular solution through two Wronskian-weighted integrals.
Write the canonical equation: _____yp=y1y2gWdx+y2y1gWdxy_{p}=-y_{1}\int \frac{y_{2}g}{W}\,dx+y_{2}\int \frac{y_{1}g}{W}\,dx
State the canonical condition: _____normalizedy+P(x)y+Q(x)y=g(x);pair known;W0normalized y^{\prime\prime}+P(x)y^{\prime}+Q(x)y=g(x);\, \text{pair known};\, W\neq 0

Worked Example

Use this worked example to practice Self-Explanation.

Problem

Use variation of parameters to find one particular solution of

yy=1xy^{\prime\prime}-y=\frac{1}{x}

on an interval where x>0x>0. For the associated homogeneous equation, use the fundamental pair y1=exy_1=e^x, y2=exy_2=e^{-x}. Choose a fixed base point x0>0x_0>0 for the definite integrals.

Step 1: Verbal Decoding

Target: ypy_p
Given: g(x)g(x), y1y_1, y2y_2
Constraints: normalized second-order linear nonhomogeneous equation; known fundamental pair; working interval avoids x=0x=0; Wronskian nonzero

Step 2: Visual Decoding

Sketch a two-column setup: one column for y1(y2g/W)dx-y_1\int (y_2g/W)\,dx and one column for y2(y1g/W)dxy_2\int (y_1g/W)\,dx. Mark x>0x>0 so the forcing has no singularity on the interval. (Both columns contribute one piece of ypy_p.)

Step 3: Mathematical Modeling

  1. yp(x)=exx0xet(1/t)Wdt+exx0xet(1/t)Wdty_p(x)=-e^x\int_{x_0}^{x} \frac{e^{-t}(1/t)}{W}\,dt+e^{-x}\int_{x_0}^{x} \frac{e^t(1/t)}{W}\,dt

Step 4: Mathematical Procedures

  1. W=ex(ex)exexW=e^x(-e^{-x})-e^xe^{-x}
  2. W=2W=-2
  3. yp(x)=exx0xet2tdt+exx0xet2tdty_p(x)=-e^x\int_{x_0}^{x} \frac{e^{-t}}{-2t}\,dt+e^{-x}\int_{x_0}^{x} \frac{e^t}{-2t}\,dt
  4. yp(x)=ex2x0xettdtex2x0xettdty_p(x)=\frac{e^x}{2}\int_{x_0}^{x} \frac{e^{-t}}{t}\,dt-\frac{e^{-x}}{2}\int_{x_0}^{x} \frac{e^t}{t}\,dt
  5. Let A(x)=ex2x0xettdtA(x)=\dfrac{e^x}{2}\displaystyle\int_{x_0}^{x}\dfrac{e^{-t}}{t}\,dt.
  6. Let B(x)=ex2x0xettdtB(x)=\dfrac{e^{-x}}{2}\displaystyle\int_{x_0}^{x}\dfrac{e^t}{t}\,dt.
  7. yp(x)=A(x)B(x),x0>0\underline{y_p(x)=A(x)-B(x),\qquad x_0>0}

Step 5: Reflection

  • Domain check: the interval x>0x>0 avoids the singular forcing term 1/x1/x.
  • Connection to concept: the answer is allowed to keep non-elementary antiderivatives because the formula constructs ypy_p by integration.
  • Independence check: W=20W=-2\neq 0, so the pair is usable in the formula.

Before moving on: self-explain the model

Try explaining Step 3 out loud or in writing: why exe^x and exe^{-x} are the pair being varied, why g(x)=1/xg(x)=1/x after normalization, and why the Wronskian belongs in both denominators.

Mathematical model with explanation

Principle: Variation Of Parameters Particular Solution - yp=y1y2gWdx+y2y1gWdxy_{p}=-y_{1}\int \frac{y_{2}g}{W}\,dx+y_{2}\int \frac{y_{1}g}{W}\,dx.

Conditions: the equation is normalized, exe^x and exe^{-x} are a known fundamental pair for yy=0y^{\prime\prime}-y=0, and W=20W=-2\neq 0 on the interval.

Relevance: the forcing 1/x1/x is not a standard undetermined-coefficients forcing, but variation of parameters can still build one particular solution.

Description: The homogeneous pair supplies the two basis functions. The forcing term determines how their coefficients vary, and the Wronskian keeps the two coefficient equations independent.

Goal: substitute the pair, forcing term, and Wronskian into the formula to construct a valid ypy_p.


Solve a Problem

Apply what you’ve learned with Problem Solving.

Problem

Use variation of parameters to find one particular solution of

y+y=tanxy^{\prime\prime}+y=\tan x

on an interval where cosx0\cos x\neq 0. For the associated homogeneous equation, use the fundamental pair y1=cosxy_1=\cos x, y2=sinxy_2=\sin x.

Hint (if needed): the Wronskian of cosx\cos x and sinx\sin x is 11.

Show Solution

Step 1: Verbal Decoding

Target: ypy_p
Given: g(x)g(x), y1y_1, y2y_2
Constraints: normalized second-order linear nonhomogeneous equation; known fundamental pair; working interval avoids zeros of cosine; Wronskian nonzero

Step 2: Visual Decoding

Sketch a number line and mark consecutive zeros of cosx\cos x, then choose one open interval between them. Set up two integral slots matching the two formula terms. (The forcing tanx\tan x is legal only inside such an interval.)

Step 3: Mathematical Modeling

  1. yp=cosxsinxtanxWdx+sinxcosxtanxWdxy_p=-\cos x\int \frac{\sin x\tan x}{W}\,dx+\sin x\int \frac{\cos x\tan x}{W}\,dx

Step 4: Mathematical Procedures

  1. W=cosxcosx(sinx)sinxW=\cos x\cos x-(-\sin x)\sin x
  2. W=1W=1
  3. yp=cosxsinxtanxdx+sinxcosxtanxdxy_p=-\cos x\int \sin x\tan x\,dx+\sin x\int \cos x\tan x\,dx
  4. cosxtanxdx=sinxdx\int \cos x\tan x\,dx=\int \sin x\,dx
  5. cosxtanxdx=cosx\int \cos x\tan x\,dx=-\cos x
  6. sinxtanxdx=sin2xcosxdx\int \sin x\tan x\,dx=\int \frac{\sin^2 x}{\cos x}\,dx
  7. sinxtanxdx=(secxcosx)dx\int \sin x\tan x\,dx=\int(\sec x-\cos x)\,dx
  8. sinxtanxdx=lnsecx+tanxsinx\int \sin x\tan x\,dx=\ln|\sec x+\tan x|-\sin x
  9. yp=cosx(lnsecx+tanxsinx)sinxcosxy_p=-\cos x\left(\ln|\sec x+\tan x|-\sin x\right)-\sin x\cos x
  10. yp=cosxlnsecx+tanx\underline{y_p=-\cos x\ln|\sec x+\tan x|}

Step 5: Reflection

  • Verification: substituting yp=cosxlnsecx+tanxy_p=-\cos x\ln|\sec x+\tan x| gives yp+yp=tanxy_p^{\prime\prime}+y_p=\tan x on the chosen interval.
  • Domain check: the formula and forcing require cosx0\cos x\neq 0.
  • Simplification check: the terms +cosxsinx+\cos x\sin x and sinxcosx-\sin x\cos x cancel algebraically; any integration constants would add only a homogeneous combination of cosx\cos x and sinx\sin x.

PrincipleRelationship to Variation Of Parameters Particular Solution
Fundamental Solution Set General FormSupplies the known pair y1,y2y_1,y_2 that variation of parameters needs.
Linear Nonhomogeneous Solution StructureExplains where the constructed particular solution fits in the full solution.
Undetermined Coefficients Trial FamilyGives a faster particular-solution route for standard nonresonant forcing in constant-coefficient equations.

See Differential Equations Subdomain for the higher-order linear sequence, and Principle Structures for organizing formulas, conditions, and problem types.


FAQ

What is Variation Of Parameters Particular Solution?

Variation Of Parameters Particular Solution is the formula that builds one particular solution of a normalized second-order linear nonhomogeneous equation from a known fundamental pair. It uses y1y_1, y2y_2, the forcing g(x)g(x), and the Wronskian WW in two integrals.

When does variation of parameters apply?

It applies when the equation is normalized as y+P(x)y+Q(x)y=g(x)y^{\prime\prime}+P(x)y^{\prime}+Q(x)y=g(x), the pair is known, and W0W\neq 0. Normalize first, use a pair from the associated homogeneous equation, and work on an interval where the Wronskian does not vanish.

Why do I have to normalize the equation first?

The formula is written for leading coefficient 11. If the original equation is a(x)y+b(x)y+c(x)y=r(x)a(x)y^{\prime\prime}+b(x)y^{\prime}+c(x)y=r(x), then the formula uses g(x)=r(x)/a(x)g(x)=r(x)/a(x) after dividing through by a(x)a(x).

How is variation of parameters different from undetermined coefficients?

Undetermined coefficients guesses a trial family from standard forcing terms in constant-coefficient equations. Variation of parameters uses a known homogeneous fundamental pair and can handle many forcings that do not fit a simple trial family.

Do the integrals need elementary antiderivatives?

Not always. The formula can define a particular solution through integrals even when the antiderivatives are not elementary. For many learning problems, setting up the correct integrals is already the main modeling step.



How This Fits in Unisium

Within the differential equations subdomain, Unisium treats Variation Of Parameters Particular Solution as the general-purpose route from a known homogeneous pair to one forced-equation solution. The Unisium Study System pairs this guide with elaborative encoding, retrieval practice, and structured problem solving so you learn the stable decision: normalize, verify the pair, compute the Wronskian, then build ypy_p from the integrals.

Ready to practice differential equations with structure? Check access and join the Unisium waitlist or explore the full framework in Masterful Learning.

Masterful Learning book cover

Masterful Learning

The book behind these guides: a study system for physics, math, & programming built on retrieval, connection, explanation, and problem solving.

Ready to apply this strategy?

Unisium turns these evidence-based techniques into guided study sessions for math and physics. Unisium is currently in early access. See pricing, availability, and join the waitlist.

Check Unisium Access and Pricing Read More Guides

Already have access? Sign in