4.6.15 · D1Ordinary Differential Equations

Foundations — Non-homogeneous — variation of parameters

2,271 words10 min readBack to topic

This page assumes you have seen nothing. We name every mark on the page, draw the picture it stands for, and say why the topic can't live without it. Read top to bottom; each item leans on the one above.


1. The function and its name

Picture. Look at figure s01. Slide a pointer along the horizontal axis (that's ). The height of the curve above that spot is the value . The whole curve is the function.

Why the topic needs it. An "ordinary differential equation" (ODE) is a puzzle whose answer is a whole function , not a single number. So before anything else we must be comfortable that the unknown is a curve.


2. The prime — a derivative

Picture. Look at figure s02. At any point the little tangent line touches the curve; its tilt is . Now watch that tilt as you slide right: on a curve that bends upward (a valley shape) the tangent starts tilting down, flattens, then tilts up — the tangent line rotates counter-clockwise. The speed of that rotation is . A bigger means the tangent swings faster, i.e. the curve bends more sharply.

Why the topic needs it. The whole equation is built entirely from . Without the prime we cannot even write the problem.


3. The equation

  • "Second-order" because the highest prime is (two primes).
  • "Linear" because appear only to the first power — no , no .

Why the topic needs it. This is the very equation variation of parameters solves. The left side is the machine; the right side is what we want it to print.


4. Homogeneous vs non-homogeneous, and

Picture. See figure s03. Left panel: a pendulum swinging freely — homogeneous. Right panel: a hand periodically nudging it — that nudge is , non-homogeneous.

Related, faster-but-narrower tool: Method of Undetermined Coefficients handles only special pushes.


5. The two building-block solutions

Why "two"? Second-order two independent choices to make (like choosing a starting position and a starting speed). Getting these is the job of Second-order linear homogeneous ODE, often via Reduction of Order when you already know one.

Why the topic needs it. The whole answer is built out of . They are the raw lumber.


6. Constants vs functions:

Picture. Figure s04. Top: two knobs frozen. Bottom: the same knobs, but now hands turn them as advances — the "variation of the parameters."


7. The determinant bars and the Wronskian

Plain meaning. is a "fairness scale." If , and are truly different building blocks; if , one is secretly a copy of the other and the method jams (you'd divide by zero). Full story: Wronskian.

Why the topic needs it. sits in the denominator of the final formula — it is literally the divisor when we solve for the strengths.


8. Solving two-equations-two-unknowns: Cramer's Rule

The setup produces a little system:

Two unknowns here are and (the rates the strengths change).

The minus on is not a mystery — it comes from the in the determinant when the right side lands in the first column.


9. The integral sign

Why the topic needs it. Cramer's rule gives us the rates . To get the actual strengths we must undo the prime — that is exactly integration:


10. Standard form (the leading-coefficient trap)


How it all feeds the topic

Read this as a build order — each stage below only makes sense once the stages above it are in hand:

  1. Function (§1) gives us something to differentiate.
  2. Primes (§2) let us write rates and curvature.
  3. Together they form the second-order linear ODE (§3).
  4. Splitting off the push distinguishes homogeneous vs (§4).
  5. The homogeneous side supplies two building blocks (§5).
  6. We swap constants for functions (§6) to reach the push.
  7. Independence of the blocks is measured by the Wronskian (§7).
  8. Steps 6–7 feed a 2×2 system solved by Cramer's Rule (§8), giving .
  9. Integrating (§9) turns those rates into — the particular solution.
  10. Standard form (§10) guards the whole pipeline by fixing first.

function y of x

derivative y prime and y double prime

second-order linear ODE

homogeneous vs push g

two building blocks y1 y2

swap constants for functions u1 u2

Wronskian W

two equations two unknowns

Cramers Rule gives u1 prime u2 prime

integrate to get u1 u2

Variation of Parameters y_p

standard form divide by leading coeff


Equipment checklist

Test yourself — cover the right side.

What does measure on a curve?
The slope (steepness) at each point; is how fast that slope changes (how sharply the curve bends).
In , which piece is "the push"?
, the forcing on the right-hand side.
What makes an equation homogeneous?
Its right-hand side is (no external push).
Why do we need exactly two solutions ?
A second-order equation has two independent free choices, so its free motion is a blend of two building blocks.
What is the single swap that defines variation of parameters?
Replace the constant strengths with varying functions .
Compute the determinant .
.
How do you tell determinant bars from absolute-value bars?
Absolute value wraps a single number (, never negative); a determinant wraps a grid of four numbers (, may be negative).
Write the Wronskian of .
.
What does warn you about, and why does one check suffice?
The two solutions are not independent and the method breaks down; Abel's identity shows is either zero everywhere or nowhere on the interval.
Cramer's rule gives and as?
and .
Why integrate after Cramer's rule, and why drop the ?
Integrating undoes the prime to recover ; the constants would only add , a homogeneous piece already counted in .
Write the final formula for .
.
What must you check before reading off ?
Put the ODE in standard form (leading coefficient ) by dividing through.

Connections

  • Wronskian — the fairness scale built in Section 7.
  • Cramer's Rule — the shortcut that solves the two-equation system in Section 8.
  • Second-order linear homogeneous ODE — where the building blocks come from.
  • Reduction of Order — a way to find when only is known.
  • Method of Undetermined Coefficients — the faster, narrower cousin for special .
  • Green's function — recasts this same idea as an integral kernel.