4.6.15 · D4Ordinary Differential Equations

Exercises — Non-homogeneous — variation of parameters

3,213 words15 min readBack to topic

Before the algebra, a picture of the whole machine. Read the pipeline left column top-to-bottom, then right column: normalize find compute the Wronskian (amber, because it feeds everything below) form the two derivative fractions integrate glue into . Every exercise below is just one trip through this diagram; if you get lost, find which box you are standing in.

Figure — Non-homogeneous — variation of parameters

Level 1 — Recognition

Goal: identify and assemble the pieces without heavy integration.

Exercise 1.1

The homogeneous equation has solutions . Compute the Wronskian .

Recall Solution

WHAT we do: plug into . . . WHY it matters: sits in the denominator of both fractions. A clean means no extra division later. .

Exercise 1.2

For with , compute .

Recall Solution

WHAT we do: differentiate each solution, then cross-multiply per . . WHY the sum of exponents: every time, so both products land on and simply subtract as coefficients . . It is never zero — the two exponentials are genuinely different building blocks, so the method is guaranteed to work (this is exactly what a non-vanishing Wronskian certifies).

Exercise 1.3

The ODE is not in standard form. Rewrite it so the leading coefficient is , then state .

Recall Solution

WHAT we do: divide every term by the leading coefficient . WHY: the formula's is the RHS of the normalized equation, not the raw . So , not .


Level 2 — Application

Goal: run the full recipe on friendly integrals.

Exercise 2.1

Solve on the interval .

Recall Solution

Step 1 — homogeneous. , so (see Second-order linear homogeneous ODE). Step 2 — Wronskian. From Ex 1.1, . Step 3 — the two derivatives. With : WHY rewrite as : because a bare has no standard antiderivative, but can be turned into secants and cosines, which do. Step 4 — integrate. The second is easy: . For , write so the fraction splits: WHY this split: (a known integral ) and (trivial). Turning one hard fraction into two known integrals is the whole trick. Step 5 — assemble. The terms cancel: General: .

Domain caveat. blows up at , and throughout , so the logarithm's argument is positive and the absolute value is unnecessary on this interval — but keep it if you extend to other branches, where changes sign. The solution is only valid on one such open interval between consecutive singularities of ; you cannot cross .

Exercise 2.2

Solve (compare with parent Example 2 where the RHS was ).

Recall Solution

, (Ex 1.2). With : WHY the fractions collapse so cleanly: numerator divided by leaves — exponentials always subtract exponents, so no messy integral survives. Integrate: (WHY the : , the inner-derivative factor of ), and . . General: . (Since is not a homogeneous solution, Method of Undetermined Coefficients would give the same answer with a guess — a good sanity check.)


Level 3 — Analysis

Goal: variable coefficients, standard-form discipline, given fundamental solutions.

Exercise 3.1

Solve on , given and solve the homogeneous part.

Recall Solution

Step 0 — standard form. Divide by : Step 2 — Wronskian. . . WHY : product rule on gives . Step 3. Step 4 — integrate. . WHY substitute : then , so the integral becomes — the was exactly the missing piece that makes 's own derivative appear. . Step 5. . General: . Domain caveat. needs ; and the whole solution live only on . The point is a singular point of the original Euler equation, so no solution crosses it.

Exercise 3.2

Solve on , given and solve the homogeneous equation.

Recall Solution

Step 0 — standard form. Divide by : , so (not !). Step 2 — Wronskian. , . A negative constant — perfectly fine. Step 3. Step 4. (we are on ), . WHY and — the standard power rule, then times . Step 5. WHY we may drop : it is a constant multiple of , i.e. already inside the complementary function , so it changes only and adds nothing new. . General: . Domain caveat. is singular at ; we work on (or symmetrically ), never across it.


Level 4 — Synthesis

Goal: combine ideas — verify independence, handle resonance, connect to other tools.

Exercise 4.1 (resonant RHS)

Solve . Note is itself a homogeneous solution — undetermined coefficients would need an guess. Show VoP handles this automatically.

Recall Solution

Step 1. , a repeated root. So and (the second from Reduction of Order). Step 2 — Wronskian. , . WHY the cancels: the cross-terms are equal and opposite — this cancellation is exactly why the Wronskian of stays a clean . Step 3. : WHY a polynomial appears: dividing by kills the exponential entirely, leaving the bare factor from . That surviving is what will integrate into the resonance term. Step 4. , . Step 5. — exactly the shape resonance forces, and VoP produced it with no guessing. General: .

Exercise 4.2 (build yourself, then solve)

Solve .

Recall Solution

Step 1. , so . Step 2 — Wronskian. , . Step 3. : Step 4 — integrate. For : , WHY — the numerator is precisely the derivative of the denominator , so it is a direct pattern (and always, so no absolute value is ever needed here). Thus . For : let , so , i.e. . WHY this substitution — it converts the mixed into a pure rational function of , which partial fractions can crack: Partial fractions — why this shape. A denominator demands one term per distinct power of each factor: a (simple), a (repeated factor needs both powers), and a (the linear factor). Solving gives (set ), (set ), (match ). Hence Integrate term by term: Step 5. The is a constant, but is not a homogeneous solution here (those are ), so keep it. Cleanly: Domain caveat. for every real , so this solution is valid on the whole real line — no branch cuts, no excluded points. Contrast Ex 2.1, where forced us onto a single interval.


Level 5 — Mastery

Goal: full generality — derive a formula, or handle a genuinely awkward integral.

Exercise 5.1 (general formula / Green's function flavour)

For with arbitrary continuous , derive a single formula for as one integral, and identify the kernel. Connect it to Green's function.

Recall Solution

. Then Integrate from a base point to (use dummy variable ): WHY definite integrals with a base point ? An indefinite integral hides an arbitrary ; pinning the lower limit to a chosen fixes that constant. How to choose : pick it to match your initial data — if the problem specifies , then this very formula already satisfies those conditions (both vanish at , so , and one checks too). Any other merely shifts by a homogeneous piece , absorbed into the general solution. So is free for the general solution and set by the initial condition for an initial-value problem. Assemble: Pull both under one integral (both are integrals in ; are constants w.r.t. , so they slide inside): WHY the bracket became : it is the sine subtraction identity — the algebra was designed to reveal it. The kernel is precisely the Green's function for : VoP is the constructive route to it. Notice the kernel depends only on the gap (a "how long ago did the push at time act" factor) — see the figure below. Check with (parent Example 1) recovers up to homogeneous terms.

The kernel is worth seeing, not just reading. Below, fix the observation point and watch how a unit push delivered at an earlier time is weighted: the weight is a shifted sine that is when (a push that just happened has not yet moved the system), rises, and oscillates for pushes further in the past. This shape is the fingerprint of .

Figure — Non-homogeneous — variation of parameters

Exercise 5.2 (awkward integral, full assembly)

Solve (i.e. ) on .

Recall Solution

Step 1. , so . Step 2 — Wronskian. , . Step 3. : WHY collapses to a constant: in the numerator cancels the , leaving just — the cleanest possible integrand. Step 4. . . WHY the extra : , so — the inner derivative of demands the . Step 5. General: . Domain caveat. is singular wherever , i.e. . On we have , so and the absolute value is decorative there; keep it if you move to an adjacent interval where . The solution never crosses these singularities.


Recall Master checklist (reveal after finishing)
  1. Normalize to leading coefficient — get the true .
  2. Find (characteristic roots, or given).
  3. — confirm .
  4. , (minus on the first).
  5. Integrate, drop constants — mind chain-rule factors and the valid interval.
  6. ; absorb any homogeneous leftovers into .

Connections

  • Wronskian — the denominator; nonzero guarantees the two building blocks are independent.
  • Cramer's Rule — source of the two fractions with their signs.
  • Method of Undetermined Coefficients — faster on nice ; VoP wins on , , .
  • Second-order linear homogeneous ODE — supplies .
  • Reduction of Order — how the second solution in Ex 4.1 is born.
  • Green's function — the kernel of Ex 5.1 is exactly this object.