Math 275 · Differential Equations

Chapter 4, Worked

Every homework and classwork problem from §4.1 through §4.9, written out from the first move to the answer — with a note on what each question is actually asking before any algebra starts, and the trap that costs the point flagged where there is one.

On this page

Every answer on this page was verified symbolically before it was written down.

What the textbook assumes you already know

None of this is stated in §4.1. All of it is used.

The Wronskian, set up once

Six of these problems ask for a Wronskian. The construction never changes, so learn it once and stop re-deriving it.

  1. Count the functions. That number is the size of the matrix. Two functions give a 2×2; four functions give a 4×4. Nothing else decides the size.
  2. Row 1 is the functions themselves. Not their derivatives. Written left to right in the order given.
  3. Each row down takes one more derivative. Row 2 is the first derivatives, row 3 the second, and so on.
  4. Stop at the (n−1)th derivative. Two functions → stop at the 1st. Four functions → stop at the 3rd. The matrix has to come out square, and that is the only rule you need.
  5. Take the determinant. For 2×2: W = y1y2′ − y2y1′. Keep that order — the minus sign is part of the answer.
  6. Read the verdict. W ≠ 0 somewhere on the interval ⇒ linearly independent. W ≡ 0 everywhere on the interval ⇒ dependent.

Two things that cost points on this assignment

“How many derivatives do I take?” This was the sticking point on the four-function problem. The answer is never “keep going until it looks done.” It is fixed by the count: n functions, n rows, last row is derivative number n−1.

A constant in the set does not make it dependent. A constant is only a problem when another member of the set is also a constant multiple of it. {5, 10, cos x} is dependent, because 10 = 2·5. {5, 3x, cos x, sin x} is independent, because nothing in it is a multiple of anything else.

§4.1 · Setup note: operator notation

0 Notation · not a calculation How to read L

Write the equation y″ − 5y′ + 6y = 0 in operator form L(y) = 0.

What you're solving for

Nothing. There is no unknown and no answer to compute. You are rewriting the equation in a different notation. If you start differentiating, you have misread the question.

  1. Move 1Define D

    D is shorthand for “take the derivative”. It is an instruction, not a number and not a function.

    Dy = y′    D2y = y″    D3y = y′′′

    D2 does not mean “D squared” in the arithmetic sense. It means do it twice.

  2. Move 2Swap symbols

    Replace each derivative with its D. Coefficients stay exactly where they are.

    y″ − 5y′ + 6y  →  D2y − 5Dy + 6y

  3. Move 3Factor out y

    Every term has a y on the right. Pull it out. What is left in the bracket is the operator.

    L = D2 − 5D + 6,   so   L(y) = 0

The trap

Do not differentiate anything. The instinct is to attack an equation by working on it term by term. Here there is nothing to work on: L is the machine, and y is what you would feed into it later. Building the machine and running it are two different steps, and this question only asks you to build it.

Useful consequence: L factors like a polynomial. D2 − 5D + 6 = (D − 2)(D − 3), and those roots 2 and 3 are exactly the ones the auxiliary equation gives in §4.3. Same algebra, different costume.

Problems 1–4 · Computing Wronskians

1 4×4 Wronskian W = ?

Compute the Wronskian of {5,  3x,  cos x,  sin x} and decide whether the set is linearly independent.

What you're solving for

A single number or expression W, then a yes/no verdict. Four functions means a 4×4 matrix, and the last row is the third derivative. That is the whole answer to “how do I know when to stop.”

  1. Move 1Differentiate each column

    Work down one function at a time, not across. Three derivatives each.

    53xcos xsin x
    1st03−sin xcos x
    2nd00−cos x−sin x
    3rd00sin x−cos x

    A constant dies after one derivative. A degree-one term dies after two. That is where all the zeros come from.

  2. Move 2Assemble

    W = det [ row 1: 5, 3x, cos x, sin x ]

            [ row 2: 0, 3, −sin x, cos x ]

            [ row 3: 0, 0, −cos x, −sin x ]

            [ row 4: 0, 0, sin x, −cos x ]

  3. Move 3Exploit the zeros

    Column 1 is 5, 0, 0, 0. Expanding along it leaves one 3×3. Then column 1 of that is 3, 0, 0, leaving one 2×2. Never expand a 4×4 the long way when a column is mostly zeros.

    → 5 · 3 · det [ −cos x, −sin x ; sin x, −cos x ]

  4. Move 4The 2×2

    (−cos x)(−cos x) − (−sin x)(sin x) = cos2x + sin2x = 1

    W = 5 · 3 · 1 = 15

  5. Move 5Verdict

    15 ≠ 0, and it is nonzero for every x. The set is linearly independent.

    The 15 is literally 5 × 3 — the two leading coefficients. The trig part contributed a clean 1.

The trap

“There's a constant in the set, so it must be dependent.” Not so. A constant is harmless on its own. Dependence means one member is a combination of the others — and 5 cannot be built from 3x, cos x, sin x. The right conclusion for the wrong reason still costs you on a proof-style question.

2 2×2 Wronskian · chain rule inside product rule W = ?

Compute W(excos√x,  exsin√x).

What you're solving for

One expression. Two functions, so a 2×2 and only first derivatives. The work is entirely in the differentiation — each function needs the product rule with a chain rule buried inside it.

  1. Move 1The inside derivative

    Handle the hard piece by itself first, before it is tangled up in a product.

    √x = x1/2  ⇒  ddx√x = 12√x

  2. Move 2Differentiate y1

    Product rule with f = ex, g = cos√x. The derivative of cos brings a minus sign, and the chain rule multiplies by the inside derivative.

    y1′ = excos√x − exsin√x · 12√x

  3. Move 3Differentiate y2

    y2′ = exsin√x + excos√x · 12√x

    Same shape as y1′ with the roles swapped and the sign flipped — sin and cos always pair off this way.

  4. Move 4Multiply out

    Write c = cos√x, s = sin√x, k = 1/(2√x) so the bookkeeping is visible. Every ex·ex becomes e2x.

    W = e2x[ c(s + ck) − s(c − sk) ]

       = e2x[ cs + c2k − sc + s2k ]

    The two underlined terms cancel. What remains factors:

       = e2x · k(c2 + s2) = e2x · k · 1

  5. Move 5Restore k

    W = e2x2√x

Pattern worth memorizing

For any pair eαxcos g(x) and eαxsin g(x), the Wronskian is always W = e2αx · g′(x). Here α = 1 and g = √x, so g′ = 1/(2√x). The cos·sin cross terms always cancel and the squares always collapse to 1 — that is why only g′ survives.

3 2×2 Wronskian · logs W = ?

For x > 0, compute the Wronskian of {x ln x,  x2 ln x}.

What you're solving for

One expression. Both derivatives need the product rule, and in both of them a 1/x appears and then quietly disappears. Watching that happen is most of the problem.

  1. Move 1Derivatives

    y1′ = (1)(ln x) + (x)1x = ln x + 1

    y2′ = (2x)(ln x) + (x2)1x = 2x ln x + x

    The highlighted pieces are where the 1/x went: x·(1/x) = 1 and x2·(1/x) = x. No fraction survives into the answer.

  2. Move 2Determinant

    W = (x ln x)(2x ln x + x) − (x2 ln x)(ln x + 1)

       = 2x2ln2x + x2ln x − x2ln2x − x2ln x

    Underlined terms cancel; the two ln2 terms subtract to one.

    W = x2ln2x

The wrinkle

W = 0 at x = 1, because ln 1 = 0. That does not make the set dependent. Dependence requires W ≡ 0 on the whole interval; a zero at one isolated point proves nothing. Since W ≠ 0 everywhere else on x > 0, the set is independent.

4 2×2 Wronskian · repeated-root pair W = ? · independent?

Compute W(ex/6,  x ex/6). Is the set linearly independent on (−∞, ∞)?

What you're solving for

An expression, then yes/no. The second function is the first one times x, so it needs the product rule; the first needs only the chain rule.

  1. Move 1Derivatives

    y1′ = 16ex/6

    y2′ = (1)ex/6 + x·16ex/6 = ex/6 + x6ex/6

  2. Move 2Determinant

    Every product of two exponentials collapses: ex/6·ex/6 = ex/3. Add the exponents.

    W = ex/3 + x6ex/3 − x6ex/3

    W = ex/3

  3. Move 3Verdict

    An exponential is never zero, so W > 0 for every real x. Linearly independent — the cleanest possible case.

    Without the Wronskian: dependence would need xex/6 = c·ex/6, i.e. x = c. But x is not a constant, so no.

Pattern worth memorizing

For {erx, xerx} — exactly the pair a repeated root produces in §4.3 — the Wronskian is always e2rx. Here r = 1/6, giving ex/3. This is the proof that the repeated-root basis is legitimate, and it is why the second solution gets that extra factor of x.

Problem 5 · Wronskian feeding an IVP

5 Two parts · W, then constants W, C₁, C₂

Two solutions to ty″ + y′ = 0 are y1 = ln(7t), y2 = ln 5.

(a) Find the Wronskian.   (b) If the solution with y(1) = 0, y′(1) = 7 is written y = C1y1 + C2y2, find C1 and C2.

What you're solving for

Part (a): one expression. Part (b): two numbers. Notice first that y2 = ln 5 is a constant — there is no t in it. That is not a typo in the problem; it is the entire trick, and it makes both parts much shorter than they look.

  1. Move 1Why a constant works

    The equation has no y term — only y″ and y′. Every derivative of a constant is 0, so the equation reads 0 = 0. A constant is a legitimate solution.

  2. Move 2Derivatives

    Split the log first — it is cleaner than the chain rule: ln(7t) = ln 7 + ln t.

    y1′ = 1t      y2′ = 0

    The 7 vanishes entirely, which is why it appears nowhere in the answer.

  3. Move 3Wronskian

    W = y1y2′ − y2y1′ = ln(7t)·0 − ln 5 · 1t

    W = −ln 5t

    The first term dies because y2′ = 0. Keep the minus sign — it comes from the determinant, not from a sign error.

  4. Move 4Use y′ first

    Because y2 is constant, it disappears from y′ entirely. So the y′ condition involves only C1 — no system to solve.

    y′(t) = C1·1t  ⇒  y′(1) = C1 = 7

    C1 = 7

  5. Move 5Then y

    y(1) = C1 ln 7 + C2 ln 5 = 0

    7 ln 7 + C2 ln 5 = 0

    C2 = −7 ln 7ln 5 ≈ −8.4634

Transferable move

When one basis function is a constant, the two conditions decouple: apply the derivative condition first to get one constant outright, then substitute. Look for this any time a problem hands you a basis containing a constant — it turns a 2×2 system into two one-line steps.

Problems 6–7 · “Which of these are solutions?”

Do not test the options one at a time

Both of these give you a list and ask which members solve the equation. Substituting all five means five rounds of product rule. Solve the equation once instead, then read the list against what you found. The method differs depending on the right-hand side:

6 Select all · homogeneous Which are solutions?

Which of the following are solutions of y″ + 64y = 16y′?

(a) te8t + 8e8t    (b) 18te8t    (c) et    (d) e8t    (e) e8t + tet

What you're solving for

A set of checkboxes, not a number. The real task is to find the solution family once, then compare. The equation is written scrambled — the y′ term is on the right — so step one is rearranging, and that is where the sign error lives.

  1. Move 1Standard form

    y″ + 64y = 16y′  ⇒  y″ − 16y′ + 64y = 0

    Moving 16y′ across flips its sign. Everything to the left, equal to zero, in the order y″, y′, y.

  2. Move 2Auxiliary equation

    Swap y″ → m2, y′ → m, y → 1.

    m2 − 16m + 64 = 0  ⇒  (m − 8)2 = 0  ⇒  m = 8, repeated

  3. Move 3The family

    y = c1e8t + c2te8t

    A repeated root gets the extra t. The building blocks are e8t and te8t — nothing else.

  4. Move 4Read the list
    OptionMade of
    te8t + 8e8tboth blocks, c₁=8, c₂=1✓
    18te8tc₁=0, c₂=18✓
    etm = 1 is not a root✗
    e8tc₁=1, c₂=0✓
    e8t + tettet is not in the family✗

    Answer: (a), (b), (d)

Why the coefficients don't matter

Superposition. For a homogeneous linear equation the solution set is closed under scaling and addition: multiply a solution by any constant, add any two solutions, and you still have a solution. That is why the 18 in option (b) changes nothing. Option (e) is the trap — one good term never rescues a bad one; adding a non-solution to a solution always breaks it.

7 Select all · nonhomogeneous Which are solutions?

Which of the following are solutions of y″ − 10y′ + 25y = 7t + 8?

(a) 8t + 54125    (b) sin t    (c) 725t + 54125    (d) e5t(1 + t)

What you're solving for

Checkboxes again — but the right side is not zero, so the Problem 6 method does not apply. There is no family to pattern-match. You must substitute and land on 7t + 8 exactly.

  1. Move 1Test (c)

    y = 725t + 54125  ⇒  y′ = 725,   y″ = 0

    Substitute into y″ − 10y′ + 25y, piece by piece:

    −10·725 = −145     25·725t = 7t     25·54125 = 545

    7t − 145 + 545 = 7t + 8  ✓

  2. Move 2Why (a) fails

    Right shape, wrong coefficient: 25·8t = 200t, and nothing can reduce that to 7t. Full result: 200t − 346/5.

    Lesson. For a nonhomogeneous equation the constants are not free. This is the exact opposite of Problem 6, where 18te8t was fine.

  3. Move 3Why (b) fails

    sin t → 24 sin t − 10 cos t

    Lesson. Trig in, trig out. The form of the answer must match the form of the right-hand side — a first-degree polynomial needs At + B.

  4. Move 4Why (d) fails — the real trap

    Factor the left side: m2 − 10m + 25 = (m − 5)2, repeated root 5. So e5t(1 + t) is exactly yc with both constants 1.

    e5t(1 + t) → 0, not 7t + 8

    yc solves the homogeneous equation. It is the piece that vanishes — it can never produce the right-hand side on its own.

    Answer: (c) only

The structure this is testing

The full solution is y = yc + yp = c1e5t + c2te5t + 725t + 54125. Had the list offered e5t + 725t + 54125, that would also be correct — yc contributes 0 and yp contributes 7t + 8. In §4.4 you will derive the 7/25 and 54/125 by undetermined coefficients instead of being handed them.

Problems 8–9 · Concept checks

8 True / False True

If the general solution to xy′ − (1 + x)y = 0 is y = cxex, then y = x2 + 2 cannot be a particular solution to this differential equation.

What you're solving for

A verdict, not a value. “Particular solution” here means the general solution with one specific number chosen for c. So the question reduces to: is x2 + 2 a member of that family?

  1. Route 1Substitute

    y = x2 + 2,   y′ = 2x

    x(2x) − (1 + x)(x2 + 2) = −x3 + x2 − 2x − 2

    Not 0, so it does not satisfy the equation at all. Statement is True.

  2. Route 2Shape

    Faster: is there any c making cxex = x2 + 2? One is a polynomial, the other a polynomial times ex. No constant converts one into the other. Done.

  3. Route 3One line

    Set x = 0 in the original equation:

    0·y′ − (1 + 0)y = 0  ⇒  y(0) = 0

    Every solution is forced through the origin. And x2 + 2 gives y(0) = 2. Ruled out immediately.

    True

Vocabulary warning

“Particular solution” has two meanings in this course. (1) A specific member of the general family — pick a value for c. That is the meaning here. (2) The yp in y = yc + yp, which only exists for nonhomogeneous equations. This equation is homogeneous, so meaning (2) does not apply. Read the context before assuming which one is meant.

Notice also why the general solution has that factor of x out front: it makes y(0) = 0 automatic for every c.

9 Boundary value problem · select all Which conditions work?

y = c1excos x + c2exsin x is a two-parameter family of solutions to y″ − 2y′ + 2y = 0. Which boundary conditions can be satisfied by a member of the family?

(a) y(0) = 8, y′(π) = 0    (b) y(0) = 8, y(π) = −8    (c) y(0) = 8, y(π/2) = 8    (d) y(0) = 0, y(π) = 0

What you're solving for

Checkboxes. For each pair, ask whether some choice of c1, c2 satisfies both conditions at once. Build one small table first — evaluate the four quantities the problem asks about — and then every option is a two-second read instead of a fresh calculation.

  1. Move 1The table

    Each evaluation isolates something clean, because sin and cos take turns being zero at 0, π/2, π.

    QuantityValues usedResult
    y(0)cos 0 = 1, sin 0 = 0c₁
    y(π)cos π = −1, sin π = 0−c₁eπ
    y(π/2)cos = 0, sin = 1c₂eπ/2
    y′(π)see Move 2−(c₁+c₂)eπ
  2. Move 2The derivative

    Product rule on each term, then group by cos and sin:

    y′ = ex[(c1+c2)cos x + (c2−c1)sin x]

    at x = π:   y′(π) = −(c1 + c2)eπ

  3. Option (a)Works

    c1 = 8;   −(c1+c2)eπ = 0

    Since eπ ≠ 0, divide it out: c1 + c2 = 0.

    c1 = 8, c2 = −8  — exactly one solution ✓

  4. Option (b)Fails

    c1 = 8  ⇒  y(π) = −8eπ, but we need −8

    That would force eπ = 1, which is false (eπ ≈ 23.14). c1 is already pinned and has no freedom left.

    No solution ✗

  5. Option (c)Works

    The first condition fixes c1, the second involves only c2. They never compete.

    c1 = 8, c2 = 8e−π/2  — exactly one solution ✓

  6. Option (d)Works — slow down here

    y(0) = 0 ⇒ c1 = 0

    y(π) = −c1eπ = −(0)eπ = 0 automatically

    The second condition adds no information. c2 is completely free.

    y = c2exsin x for any c2 — infinitely many solutions ✓

    Answer: (a), (c), (d)

The trap in (d)

Both conditions are 0, so it looks as though the only answer is y ≡ 0, and “trivial” feels like it should not count. That is backwards. A homogeneous BVP has either only the trivial solution or infinitely many — and in both cases the conditions are satisfied. There is no version of this where the answer is “cannot be done.”

The three outcomes — the theorem this assignment is built on

An initial value problem (all conditions at the same point) with continuous coefficients has exactly one solution, always. A boundary value problem (conditions at different points) carries no such guarantee. It has one of three outcomes, and Problem 9 hands you an example of each:

That difference between IVPs and BVPs is the single most testable idea in §4.1. If a question gives you two conditions at two different x-values, stop and ask which of the three outcomes you are in before you start solving.

Patterns to carry into §4.3 and §4.4

§4.2 · Reduction of Order

The five moves, every time

Both problems in this set are the same machine with different numbers. The only thing that changes between them is how hard the two integrals are.

  1. Substitute y = y1v. Differentiate twice with the product rule and put all three pieces into the equation.
  2. Collect — the v terms always cancel. Not luck: it happens precisely because y1 solves the homogeneous equation. If they don't cancel, you have an arithmetic error. Go back rather than pushing forward.
  3. Set w = v′. Only v″ and v′ survive, so this drops a second-order equation to a first-order linear one — a §2.3 problem you already know how to solve.
  4. Integrating factor. μ = e∫P dx, then (μw)′ = μq and integrate.
  5. Integrate back twice. w → v → y = y1v. Two integrations, two constants, and the answer splits into yc and Y(x) on its own.
1 Cauchy–Euler · eight blanks general solution

x2y″ + 3xy′ + y = 8x3,  x > 0, given y1 = x−1.

What you're solving for

Eight boxes, but only one calculation. Work straight through moves 1–5 and each box is a line you already wrote. Don't try to answer them out of order.

  1. Move 1The derivatives

    y = x−1v

    y′ = −x−2v + x−1v′

    y″ = x−1v″ − 2x−2v′ + 2x−3v

    For y″: differentiate each piece of y′ again. The two −x−2v′ terms combine, which is where the 2 comes from.

  2. Move 2Collect

    v″:  x2·x−1 = xv″

    v′:  −2 + 3 = v′

    v:  2 − 3 + 1 = 0

    xv″ + v′ = 8x3

  3. Move 3Standard form

    Put w = v′ and divide by x.

    w′ + 1xw = 8x2

  4. Move 4Solve for w

    μ = e∫(1/x)dx = eln x = x

    (xw)′ = 8x3  ⇒  xw = 2x4 + c2

    w = 2x3 + c2x

  5. Move 5Back to y

    v = x42 + c2 ln x + c1

    y = c1x + c2ln xx + x32

    y2 = ln xx     Y(x) = x32

2 Constant coefficients · integration by parts general solution

2y″ + y′ − y = −12xe−x, given y1 = e−x.

What you're solving for

Same eight boxes. The third blank sits after a minus sign already printed in the equation — put e−xv inside it, not −e−xv.

  1. Move 1The derivatives

    y′ = e−xv′ − e−xv

    y″ = e−xv″ − 2e−xv′ + e−xv

  2. Move 2Collect

    v′:  −4 + 1 = −3     v:  2 − 1 − 1 = 0

    2e−xv″ − 3e−xv′ = −12xe−x

  3. Move 3Standard form

    Divide by 2e−x. Every exponential divides out — which is exactly why the problem tells you not to divide too early.

    w′ + (−32)w = −6x

  4. Move 4Solve for w

    μ = e−3x/2  ⇒  (e−3x/2w)′ = −6xe−3x/2

    The right side needs integration by parts with u = −6x:

    ∫−6xe−3x/2dx = 4xe−3x/2 + 83e−3x/2

    w = 4x + 83 + c2e3x/2

  5. Move 5Back to y

    Integrating c2e3x/2 puts a 2/3 out front — the 3/2 in the exponent flips.

    v = 2x2 + 83x + 23c2e3x/2 + c1

    Then y = e−xv, and e−x·e3x/2 = ex/2:

    y = c1e−x + 23c2ex/2 + 2x2e−x + 83xe−x

    y2 = ex/2     Y(x) = 2x2e−x + 83xe−x

Two checks

Cross-check with §4.3. The auxiliary equation here is 2m2 + m − 1 = (2m − 1)(m + 1) = 0, giving m = 1/2, −1. Reduction of order rediscovered ex/2 on its own — a free confirmation that the work is right.

If the grader rejects the 2/3. Some answer keys absorb it into the arbitrary constant and write plain c2ex/2. Mathematically identical; try that variant before assuming the rest is wrong.

§4.3 · Constant Coefficients

The three cases — the whole chapter on one line each

Rearrange to ay″ + by′ + cy = 0, write the auxiliary equation am2 + bm + c = 0, and let the discriminant decide.

b² − 4acRootsSolution
> 0distinct real r₁, r₂c₁er₁t + c₂er₂t
= 0repeated rc₁ert + c₂tert
< 0α ± βieαt(c₁cos βt + c₂sin βt)

Shortcuts worth memorizing. α = −b/2a and β = √4ac − b2 / 2a — no complex arithmetic needed. Running it backwards, for roots α ± βi the monic equation is m2 − 2αm + (α2 + β2).

Vieta, for going backwards from real roots. For m2 + Am + B: A = −(sum of roots), B = product.

Cubics. Test m = 1 by summing the coefficients and m = −1 by alternating their signs — two seconds each, and they hit far more often than the larger candidates. If every coefficient is positive, no positive root exists; skip half the list.

The auxiliary equation is scaffolding — m is not x

The auxiliary equation is not an equation whose answer you report. It is a device: you feed the differential equation in, it hands back roots, and then it has done its job and is discarded. Its coefficients never appear anywhere in the solution.

Watch what survives and what doesn't, on y″ + 3y′ + 2y = 0:

m2 + 3m + 2 = 0  →  (m + 1)(m + 2) = 0  →  m = −1, −2

y = c1e−x + c2e−2x

The numbers 1, 3, 2 are nowhere in that answer. Only −1 and −2 — the roots — made it through, and they arrived as exponents, not as coefficients.

Why m can't become x. Each power of m is standing in for a derivative, not for a variable: m2 came from y″, m from y′, and the constant from y itself. There is no x anywhere in the derivation — the emx was divided out before the polynomial appeared.

Three checks that catch this instantly.

• If a coefficient from the auxiliary equation shows up in your answer, something went wrong.

• A constant-coefficient homogeneous equation can only produce exponentials, x-times-exponentials, and sines and cosines. A term like Ax2 in yg is impossible.

• A finished answer contains no unsolved letters except c1, c2, …. A stray A or B means a step is missing.

Solving IVPs — one of each case

1Distinct real rootsy(t) = ?

y″ − y′ − 2y = 0,  y(0) = −3, y′(0) = 6

  1. Move 1Roots

    m2 − m − 2 = (m − 2)(m + 1) = 0 ⇒ m = 2, −1

    y = c1e2t + c2e−t

    Root r gives ert, sign and all. The root −1 gives e−t, not et.

  2. Move 2Conditions

    y′ = 2c1e2t − c2e−t

    c1 + c2 = −3     2c1 − c2 = 6

    Add the two equations — the c2 terms are +1 and −1, so they cancel: 3c1 = 3.

    y(t) = e2t − 4e−t

3Repeated rooty(t) = ?

y″ + 2y′ + y = 0,  y(0) = 4, y′(0) = −9

  1. Move 1Roots

    (m + 1)2 = 0 ⇒ m = −1 repeated

    y = c1e−t + c2te−t

    Coefficients 1, 2, 1 with the middle double the root of the outer product — always a perfect square. Discriminant confirms: 4 − 4 = 0.

  2. Move 2Conditions

    y′ = −c1e−t + c2e−t − c2te−t

    At t = 0 the te−t term vanishes, so y(0) hands you c1 outright.

    c1 = 4;   −4 + c2 = −9 ⇒ c2 = −5

    y(t) = 4e−t − 5te−t

The trap

Differentiating te−t as just −te−t drops the e−t from the product rule — and that missing term is the only thing that produces c2.

4Complex rootsy(t) = ?

y″ + 4y′ + 68y = 0,  y(0) = 3, y′(0) = 2

  1. Move 1Roots

    b2 − 4ac = 16 − 272 = −256

    m = (−4 ± 16i)/2 = −2 ± 8i  ⇒  α = −2, β = 8

    y = e−2t(c1cos 8t + c2sin 8t)

    α is the real part and lives in the exponential; β is the imaginary part and lives inside the trig. Never the reverse.

  2. Move 2Conditions

    y′ = −2e−2t(c1cos 8t + c2sin 8t) + e−2t(−8c1sin 8t + 8c2cos 8t)

    At t = 0, sin 0 = 0 kills every sine term:

    c1 = 3;   −2(3) + 8c2 = 2 ⇒ c2 = 1

    y(t) = e−2t(3cos 8t + sin 8t)

Entry trap — this one cost a point

Typing e^(-2t)(3cos(8t)) + sin(8t) leaves the sine outside the exponential, which is a different function. Both trig terms must sit inside one bracket. Safest form, with no nesting to get wrong: 3*e^(-2t)*cos(8t) + e^(-2t)*sin(8t)

Physically this is damped oscillation: the solution wiggles at frequency 8 inside a shrinking envelope e−2t. That picture is why §4.3 matters for the spring–mass problems later.

Reading behaviour off the roots

2Choose a constant for decayα = ?

y″ + 2y′ − 8y = 0, y(0) = α, y′(0) = 3. Find α so that y → 0 as t → ∞.

What you're solving for

Not the solution — α is unknown, so you can't have it yet. Work backwards: decide what must be true for the solution to decay, then solve for α.

  1. Move 1Sort the roots

    (m + 4)(m − 2) = 0 ⇒ m = −4, 2

    e−4t → 0  ✓     e2t → ∞  ✗

    No value of α can make e2t decay. The only move available is to zero out its coefficient: c2 = 0.

  2. Move 2Impose

    −4c1 + 2c2 = 3  ⇒  −4c1 = 3 ⇒ c1 = −3/4

    α = c1 + c2 = −34

    Resulting solution y = −(3/4)e−4t: y(0) = −3/4 ✓, y′(0) = 3 ✓, y → 0 ✓.

The recipe, and its variants

Sort roots into decaying (negative real part) and growing (positive). Set the coefficient of every growing term to zero, use the remaining condition for the survivor, then read α off the y(0) equation.

If the question asked for the solution to become unbounded, the answer would be an inequality (α ≠ −3/4), not a number. And if both roots were negative, every α would work — the answer is unique here only because exactly one root is positive.

10Slider graph · qualitativematch the curve

12y″ + by′ + cy = 0, y(0) = 0, y′(0) = 1, with b2 − 4ac > 0. Move the sliders until the red curve lands on the green one.

What you're solving for

Two slider values, by understanding rather than algebra. With those initial conditions the solution is always (er1t − er2t)/(r1 − r2), with r = −b ± √b2 − 2c.

  1. Read 1The tail

    Far to the right, every solution looks like er1t where r1 is the root closer to zero. A curve that dies off faster has a more negative slow root.

  2. Read 2The peak

    The gap r1 − r2 sits in the denominator, so roots far apart ⇒ low hump; roots close together ⇒ tall hump.

  3. Read 3Which slider does what

    Lowering b pulls the roots together (taller peak). Raising c also pulls them together, while pushing both deeper negative (faster decay).

    In the assigned instance the red control was b = 6, c = 8 (roots −1.53 and −10.47) and the green target was b = 5, c = 8.5 (roots −2.17 and −7.83) — taller peak and faster tail, which is why no single slider gets you there.

Running the machine backwards

Solutions → equation

Four problems in this set hand you solutions and ask for the equation. The move is always the same, and the thing most people get wrong is which part of the expression to read.

5Backwards · real rootsA, B

y1 = e4t, y2 = e−4t solve y″ + Ay′ + By = 0.

  1. One moveVieta

    (m − 4)(m + 4) = m2 − 16

    A = 0,   B = −16

    Symmetric roots ±r always give A = 0 (no damping) and B = −r2.

6Backwards · complex rootsa₀, a₁

y = e−8t[34cos t − 30sin t] solves y″ + a1y′ + a0y = 0.

  1. One moveRead α, β

    Ignore 34 and −30 entirely. α = −8 from the exponential, β = 1 from cos(t).

    (m + 8)2 + 1 = m2 + 16m + 65

    a1 = 16,   a0 = 65

    General: a1 = −2α, a0 = α2 + β2.

7Backwards · fill the blankscoefficients

y1 = e−5t, y2 = e−6t

  1. One moveVieta

    (m + 5)(m + 6) = m2 + 11m + 30

    y″ + 11y′ + 30y = 0

    Both roots negative ⇒ both coefficients positive. If either blank came out negative, something went wrong.

11Backwards · equation and datafour answers

y(t) = −e−2t − 5e−6t. Find the ODE and the initial data.

  1. Part AExponents only

    roots −2, −6 ⇒ (m + 2)(m + 6) = m2 + 8m + 12

    y″ + 8y′ + 12y = 0

  2. Part BCoefficients now matter

    y(0) = −1 − 5 = −6

    y′ = (−1)(−2)e−2t + (−5)(−6)e−6t = 2e−2t + 30e−6t

    y(0) = −6,   y′(0) = 32

    Both signs flip to positive — two negatives per term. Write the multiplication out; this is where the point gets lost.

9Vocabulary checkP(r), roots

Find the characteristic polynomial and its roots for y″ − 13y′ + 40y = 0.

  1. One moveSubstitute

    P(r) = r2 − 13r + 40,   r1 = 5, r2 = 8

    The question asks for the polynomial, so don't set it equal to zero. Positive constant with negative middle term ⇒ both roots positive — check that before hunting for factor pairs.

Third order

12Cubic · three distinct realy(t) = ?

y⁈ + 6y″ + 3y′ − 10y = 0,  y(0) = 6, y′(0) = −15, y″(0) = 81

  1. Move 1Find one root

    Rational candidates ±1, 2, 5, 10. Test m = 1 by summing coefficients: 1 + 6 + 3 − 10 = 0 ✓

  2. Move 2Synthetic division

    quotient m2 + 7m + 10 = (m + 2)(m + 5)

    y = c1et + c2e−2t + c3e−5t

  3. Move 33×3 system

    c1 + c2 + c3 = 6

    c1 − 2c2 − 5c3 = −15

    c1 + 4c2 + 25c3 = 81

    Subtract row 1 from the others — its coefficients are all 1, so c1 disappears in one step and you are left with a 2×2. Never set up a matrix inverse for this.

    y(t) = 2et + e−2t + 3e−5t

    Note m = +1: this solution grows. Exactly the setup for the “does it approach zero” question type.

13Cubic · repeated rooty(t) = ?

y⁈ − 5y″ + 8y′ − 4y = 0,  y(0) = 0, y′(0) = 4, y″(0) = 15

  1. Move 1Factor

    m = 1: 1 − 5 + 8 − 4 = 0 ✓. Quotient m2 − 4m + 4 = (m − 2)2.

    roots 1, 2, 2  ⇒  y = c1et + c2e2t + c3te2t

  2. Move 2Conditions

    c1 + c2 = 0    c1 + 2c2 + c3 = 4    c1 + 4c2 + 4c3 = 15

    y(t) = −et + e2t + 3te2t

Two things to carry

A root repeated k times gets ert, tert, …, tk−1ert. Writing c2e2t + c3e2t collapses to one term, leaving only two independent solutions for a third-order equation — and no way to meet three conditions.

Shortcut. A term c·t·ert contributes 0 to y(0), c to y′(0), and 2rc to y″(0). Useful for checking under time pressure.

14Cubic · real root + complex pairy(t) = ?

y⁈ + 11y″ + 44y′ + 60y = 0,  y(0) = 4, y′(0) = −11, y″(0) = 23

  1. Move 1Narrow the candidates

    All coefficients positive ⇒ no positive root can work. That halves the list before any arithmetic.

    m = −2: 8  ✗     m = −3: 0  ✓

  2. Move 2Divide and finish

    quotient m2 + 8m + 20,   disc = −16 ⇒ m = −4 ± 2i

    y = c1e−3t + e−4t(c2cos 2t + c3sin 2t)

  3. Move 3Conditions

    c1 + c2 = 4

    −3c1 − 4c2 + 2c3 = −11

    9c1 + 12c2 − 16c3 = 23

    y(t) = 3e−3t + e−4t(cos 2t + sin 2t)

Theory

8Select all that must be truefour of six

Given y″ + ay′ + by = 0 linear and homogeneous, with y1, y2 linearly independent solutions.

  1. TrueSuperposition

    Cy1 is a solution · y1 + y2 is a solution · any linear combination is a solution. These three are one idea stated three ways — accept one and you must accept all.

    Including C = 0, so y ≡ 0 always belongs.

  2. TrueGeneral solution

    y = c1y1 + c2y2 is the general solution — but only because they are independent. Two independent solutions span the whole two-dimensional solution space. Drop that word and the claim fails: e−5t and 3e−5t are both solutions but together reach only half the space.

  3. FalseProducts

    y1·y2 is not generally a solution. Counterexample in y″ + 11y′ + 30y = 0:

    e−5t·e−6t = e−11t → 30e−11t ≠ 0

    “Linear” means sums and scalar multiples only — not products, quotients, powers or compositions. Single most useful sentence in this question.

  4. FalseMultiples

    “y1 is a multiple of y2” is the definition of linearly dependent — it contradicts the premise outright.

§4.4 · Undetermined Coefficients (Superposition)

What the method is actually doing

Every problem here is nonhomogeneous: any(n) + … + a1y′ + a0y = g(x). You already know how to get yg (§4.3). The new work is finding one particular solution yp, and the trick is that you guess its shape from g(x) and let the algebra tell you the numbers.

  1. Solve the homogeneous equation for yg. Auxiliary equation, three cases, exactly as in §4.3. You need this before you can guess, because yg is what tells you whether your guess is in trouble.
  2. Build the guess from g(x). One piece per term of g, using the table below. Then check each piece against yg.
  3. Differentiate the guess and substitute. As many derivatives as the equation's order.
  4. Match coefficients and solve. Group by x2, x, 1, ex, xex, cos, sin…, set each group equal to its counterpart on the right, and solve the system.

The guess table

Match the whole family, not just the term you see. A lone x2 still needs Ax2 + Bx + C; a lone sin still needs both sin and cos.

term in g(x)guess for that piece
k (a constant)A
polynomial of degree nAnxn + … + A1x + A0 — all lower powers
eαxAeαx
(poly)·eαx(full poly of the same degree)·eαx
cos βx  or  sin βxA cos βx + B sin βx — both, always
(poly)·sin βx(full poly)cos βx + (full poly)sin βx

A and B are unknowns you solve for — not numbers you copy

The letters in the guess are placeholders. Their values come out of the coefficient-matching step at the end, and they are almost never the numbers sitting on the right-hand side.

For y″ + 3y′ + 2y = 3 sin 2x the guess is A cos 2x + B sin 2x. Writing 3 cos 2x + 3 sin 2x — copying the 3 across — skips the entire method. Substituting and matching gives

A = −920,   B = −320

Neither is 3, and both are negative even though the right side is positive.

The group with nothing opposite it matches zero. Here the right side has a sine but no cosine, so the two equations are

cos 2x: −2A + 6B = 0     sin 2x: −6A − 2B = 3

That first equation is doing real work — it is what forces A = 3B. Dropping it because “there is no cosine on the right” leaves you one equation short of two unknowns.

Same rule for polynomials. With g = 12x2 you still carry Ax2 + Bx + C, and the x and constant groups both match zero. Those two equations are what determine B and C.

The multiplicity rule — where the points are lost

After building a piece ypi, compare it against yg. If any term of the guess already appears in yg, multiply that whole piece by xn, with n the smallest power that clears every duplicate.

Why it is necessary. A term already in yg substitutes into the equation and gives zero — that is the definition of solving the homogeneous equation. It can never produce g(x), so its coefficient would come out undetermined and the system would be inconsistent. The extra x is what makes the new terms independent of yg.

Multiply the whole piece, not just the offending term. If yp1 = c5x + c6 clashes with yg containing 1 and x, you need x2 across the whole bracket: c5x3 + c6x2.

Check each piece separately. One piece may need an x2 while another needs only an x, and a third needs nothing at all. That is exactly what happens in Prof. Williams' write-up example.

1 Two pieces · complex yₓ general solution

Solve y″ − 8y′ + 20y = 100x2 − 26xex.

What you're solving for

Five unknown coefficients, then y = yg + yp. g(x) has two unrelated pieces, so the guess has two brackets — that is the “superposition” in the section title. Handle them separately; the polynomial part and the exponential part never mix.

  1. Move 1Homogeneous first

    m2 − 8m + 20 = 0,   disc = 64 − 80 = −16

    m = 4 ± 2i  ⇒  yg = e4x(c1cos 2x + c2sin 2x)

  2. Move 2Build the guess

    100x2 → full quadratic. −26xex → linear times ex.

    yp = Ax2 + Bx + C + (Dx + E)ex

    No multiplicity. yg is built from e4xcos 2x and e4xsin 2x — no polynomials, no bare ex. Nothing clashes, so no extra x.

  3. Move 3Polynomial piece

    With u = Ax2 + Bx + C: u′ = 2Ax + B, u″ = 2A. Substitute and collect by power.

    2A − 8(2Ax + B) + 20(Ax2 + Bx + C)

    = 20Ax2 + (−16A + 20B)x + (2A − 8B + 20C) = 100x2

    20A = 100 ⇒ A = 5

    −80 + 20B = 0 ⇒ B = 4

    10 − 32 + 20C = 0 ⇒ C = 1110

    The right side has no x and no constant, so those two groups are set to zero — not ignored.

  4. Move 4Exponential piece

    With w = (Dx + E)ex, the product rule gives w′ = (Dx + E + D)ex and w″ = (Dx + E + 2D)ex.

    [(Dx+E+2D) − 8(Dx+E+D) + 20(Dx+E)]ex

    = [13Dx + (−6D + 13E)]ex = −26xex

    13D = −26 ⇒ D = −2

    12 + 13E = 0 ⇒ E = −1213

    The 13 is 1 − 8 + 20 — the auxiliary polynomial evaluated at m = 1. Nonzero, which is another way of saying there was no multiplicity.

  5. Move 5Assemble

    y = e4x(c1cos 2x + c2sin 2x) + 5x2 + 4x + 1110 − (2x + 1213)ex

    Written plainly: yp = 5x2 + 4x + 11/10 + (−2x − 12/13)ex.

2 Polynomial times trig · six unknowns general solution

Solve y″ − 4y = (x2 − 3)sin 2x.

What you're solving for

Six coefficients. Even though only sin appears on the right, you must guess both sin and cos, each carrying a full quadratic. Differentiating sine produces cosine, so the cosine terms are generated whether you want them or not — leave them out and the system has no solution.

  1. Move 1Homogeneous

    m2 − 4 = 0 ⇒ m = ±2

    yg = c1e2x + c2e−2x

    Roots are real, so yg contains no trig. The guess is safe — no multiplicity. (Had the equation been y″ + 4y, the roots would be ±2i, yg would contain sin 2x, and every piece would need an extra x. One sign, completely different problem.)

  2. Move 2The guess

    yp = u cos 2x + v sin 2x

    u = Ax2 + Bx + C,   v = Dx2 + Ex + F

  3. Move 3Differentiate in shorthand

    Keeping u and v as symbols is far less error-prone than writing out six terms twice.

    y′ = (u′ + 2v)cos 2x + (v′ − 2u)sin 2x

    y″ = (u″ + 4v′ − 4u)cos 2x + (v″ − 4u′ − 4v)sin 2x

    y″ − 4y = (u″ + 4v′ − 8u)cos 2x + (v″ − 4u′ − 8v)sin 2x

  4. Move 4Two equations

    Match cosine against 0 and sine against x2 − 3.

    cos: −8Ax2 + (8D − 8B)x + (2A + 4E − 8C) = 0

    sin: −8Dx2 + (−8A − 8E)x + (2D − 4B − 8F) = x2 − 3

  5. Move 5Unwind the system

    Take them in the order that gives one unknown at a time.

    −8A = 0 ⇒ A = 0

    −8D = 1 ⇒ D = −18

    8D − 8B = 0 ⇒ B = D = −18

    −8A − 8E = 0 ⇒ E = 0 ⇒ C = 0

    2D − 4B − 8F = −3 ⇒ −14 + 12 − 8F = −3 ⇒ F = 1332

  6. Move 6Assemble

    y = c1e2x + c2e−2x − x8cos 2x + (−x28 + 1332)sin 2x

    Three of the six coefficients came out zero. That is normal — and it is not a sign you could have left them out of the guess. You only learn they vanish by including them.

3 Multiplicity ×2 · IVP y(x) with constants

Solve y″ + 4y′ + 4y = (3 + x)e−2x,  y(0) = 2, y′(0) = 5.

What you're solving for

Two coefficients in yp, then two constants from the initial conditions. This is the multiplicity problem. The naive guess collides with both terms of yg, so it needs x2, not x. Get that wrong and nothing downstream can be rescued.

  1. Move 1Homogeneous

    (m + 2)2 = 0 ⇒ m = −2 repeated

    yg = c1e−2x + c2xe−2x

  2. Move 2Fix the guess

    Naive guess from (3 + x)e−2x:

    (Ax + B)e−2x  —  both terms are already in yg

    Multiply by x: (Ax2 + Bx)e−2x — the Bxe−2x term still clashes. Multiply by x again:

    yp = (Ax3 + Bx2)e−2x

    n = 2 because the root −2 has multiplicity 2 in the auxiliary equation. That is the general rule: the power of x equals the multiplicity of the offending root.

  3. Move 3A shortcut that saves ten lines

    The operator factors as (D + 2)2. For any y = u(x)e−2x, that operator strips the exponential clean off:

    (D + 2)2[u e−2x] = u″e−2x

    So the equation collapses to u″ = 3 + x with u = Ax3 + Bx2:

    6Ax + 2B = x + 3 ⇒ A = 16, B = 32

    If you'd rather not use the shortcut, differentiating yp twice by product rule and substituting gives the same two equations — just with more cancellation to track.

  4. Move 4Apply the conditions

    y = e−2x(c1 + c2x + 32x2 + 16x3)

    Collecting everything under one e−2x makes the derivative much easier:

    y′ = e−2x[−2(c1 + c2x + …) + (c2 + 3x + 12x2)]

    y(0) = c1 = 2

    y′(0) = −2c1 + c2 = 5 ⇒ c2 = 9

    y = e−2x(2 + 9x + 32x2 + 16x3)

Order of operations

Find yp before applying the initial conditions. The conditions apply to the complete solution yg + yp. Fitting c1, c2 to yg alone and then adding yp gives the wrong answer, and it is a very easy mistake to make when the problem is long.

4 Simplest yₕ · but a BVP y(x) — how many?

Solve y″ − 2y′ + 2y = 2x − 2,  y(0) = 0, y(π) = π.

What you're solving for

Look hard at the conditions: y(0) and y(π) — two values of the function at two different points, and no derivative anywhere. This is a boundary value problem, not an IVP, and the §4.1 rule applies: one solution, none, or infinitely many. Decide which before you trust an answer.

  1. Move 1Homogeneous

    m2 − 2m + 2 = 0,   disc = 4 − 8 = −4

    m = 1 ± i  ⇒  yg = ex(c1cos x + c2sin x)

    The same family as Ch. 4.1 Problem 9 — and, as you will see, with the same punchline.

  2. Move 2Particular solution

    g is linear, so guess yp = Ax + B. No clash (yg has no polynomials).

    0 − 2A + 2(Ax + B) = 2Ax + (2B − 2A) = 2x − 2

    2A = 2 ⇒ A = 1;   2B − 2 = −2 ⇒ B = 0

    yp = x

  3. Move 3Apply the boundaries

    y = ex(c1cos x + c2sin x) + x

    y(0) = c1 + 0 = 0 ⇒ c1 = 0

    Now x = π, where cos π = −1 and sin π = 0:

    y(π) = eπ(−c1 + 0) + π = −c1eπ + π

    With c1 = 0 that is π — the second condition is satisfied automatically and says nothing about c2.

    y = c2exsin x + x,   c2 arbitrary

    Infinitely many solutions

Why this problem is here

“Infinitely many” is the answer, not a failure. If you write a single function with a specific number in place of c2, you have answered a question that wasn't asked.

The structural reason. exsin x vanishes at both x = 0 and x = π, so adding any multiple of it changes nothing at the two boundary points. The homogeneous BVP has a nontrivial solution, and that is exactly the condition under which the nonhomogeneous BVP has either none or infinitely many. Here the boundary data happens to be consistent, so it is infinitely many.

Change one number and the answer flips. If the condition were y(π) = 0 instead of π, the second equation would read 0 = π — contradictory, and the problem would have no solution. Same equation, same yp, opposite outcome.

Carrying §4.4 forward

§4.5 · Undetermined Coefficients (Annihilator)

Read this first: D is shorthand, nothing more

Everything in §4.5 rests on one piece of notation, and it is not a new idea — it is a compressed way of writing derivatives you already know how to take.

Operator formLonghand
Dyy′
D²yy″
D³yy′′′
5y5y  (no D means no derivative)

So a polynomial in D, applied to y, expands term by term:

(D2 − 4D + 5)y = D2y − 4Dy + 5y = y″ − 4y′ + 5y

Those two expressions are the same thing in two notations. Nothing was solved, derived or transformed — it is like writing 3x + 6x as 9x. And because every term carries a y, we factor it out and write the operator by itself: D2 − 4D + 5.

This single step is what Problem 2 is testing, and it is the one most easily skipped. If an operator ever appears without a function next to it, mentally put a y after it and expand.

D2 means differentiate twice, not “D squared” in the arithmetic sense. But operators do add, multiply and factor exactly like polynomials, which is the reason the notation is worth having.

What “annihilate” means

An operator annihilates a function if applying it gives exactly zero.

A annihilates f  ⇔  A(f) = 0

Concretely: D4 annihilates 2x3 + x2 + 1, because differentiating a cubic four times leaves nothing:

D: 6x2 + 2x  →  D2: 12x + 2  →  D3: 12  →  D4: 0

Say it two ways and the whole section opens up. “A annihilates f” and “f is a solution of A(y) = 0” are the same sentence. The first is §4.5 language; the second is the §4.3 homogeneous problem you have already done many times.

That equivalence is why the table below is not something to memorise: every row is §4.3's root–solution correspondence written backwards.

The annihilator table

OperatorAnnihilates
Dnany polynomial of degree n − 1 or lower
D − aeax
(D − a)nxn−1eax (and every lower power times eax)
D2 + β2cos βx and sin βx
D2 − 2αD + (α2 + β2)eαxcos βx and eαxsin βx
(D2 − 2αD + (α2 + β2))nxn−1eαxcos βx and xn−1eαxsin βx

The table reads in two directions, and the question tells you which.

Function → operator (“find an operator that annihilates f”): find the row whose right column has the shape of f, read the letters off by matching symbol to symbol, then substitute them into the left column. Pure pattern matching — no equation to solve.

Operator → function (“find a function annihilated by A”): write A(y) = 0 in longhand and solve it as a §4.3 homogeneous equation.

A note on the professor's six steps. They describe how to solve a nonhomogeneous equation end to end — that is Problem 3 below. Problems 1 and 2 are not six-step problems; they are single table look-ups, one in each direction, that supply the pieces step 3 will need. If the six steps felt like they didn't fit the question, that is why.

1 Table · function → operator find the operator

Find a linear differential operator that annihilates e2xcos(3x).

What you're solving for

An operator — a polynomial in D. Not a solution, not a number, and there is nothing to substitute or solve. This is a look-up: find the matching row, read off two letters, plug them in. Three lines of work.

  1. Move 1Find the row

    Scan the right column for the shape of your function. An exponential times a cosine appears in one row only:

    D2 − 2αD + (α2 + β2)   annihilates   eαxcos βx

  2. Move 2Match symbol to symbol

    Write the table's function directly above yours and line them up:

    eαx cos(βx)   ← the table

    e2x cos(3x)   ← your function

    α = 2,   β = 3

    α is whatever multiplies x in the exponent; β is whatever multiplies x inside the trig. That is the entire reading.

  3. Move 3Substitute into the operator

    Two numbers go into two slots. Compute each slot on its own line.

    −2α = −2(2) = −4

    α2 + β2 = 22 + 32 = 4 + 9 = 13

    D2 − 4D + 13

  4. Move 4Verify (optional, 60 seconds)

    Expand the operator in longhand and apply it. With f = e2xcos 3x, the product rule gives

    f′ = e2x(2cos 3x − 3sin 3x)

    f″ = e2x(−5cos 3x − 12sin 3x)

    f″ − 4f′ + 13f = e2x[(−5 − 8 + 13)cos 3x + (−12 + 12)sin 3x] = 0 ✓

Aside — where the table row comes from

Not needed to answer the question, but it makes the table stop feeling arbitrary. Set the operator to zero and treat it as a §4.3 auxiliary equation:

m2 − 2αm + (α2 + β2) = 0  ⇒  m = α ± βi

By §4.3, complex roots α ± βi produce exactly eαxcos βx and eαxsin βx — the right column. So “α ± βi” is not in the table and you never need it here; it is the reason the row looks the way it does. If you ever forget a row, you can rebuild it this way instead of looking it up.

Two details

The answer is not unique. Any operator with D2 − 4D + 13 as a factor also annihilates the function. What is wanted is the smallest one, which is what the table gives — a bigger one drags useless roots into the next step.

The same operator kills the sine. D2 − 4D + 13 also annihilates e2xsin 3x. Sine and cosine always arrive together, which is why that row lists both.

2 Translate · operator → function find a function

Find a function that is annihilated by D2 − 4D + 5.

What you're solving for

A function. The only new work is the first line — translating the operator into longhand. After that it is a §4.3 homogeneous equation and you already know every move.

  1. Move 1Write what the words say

    “Annihilated by” means apply it and get zero. Call the unknown function y and write exactly that:

    (D2 − 4D + 5)y = 0

  2. Move 2Expand with the dictionary

    Distribute the y and translate each term: D2y = y″, Dy = y′, and 5y stays as it is.

    D2y − 4Dy + 5y = 0

    y″ − 4y′ + 5y = 0

    This equation was not derived from anywhere. It is the operator, written out longhand. Compare it to the operator term by term — the numbers are identical and in the same order.

  3. Move 3Now it's §4.3

    m2 − 4m + 5 = 0,   disc = 16 − 20 = −4

    m = 4 ± √−42 = 4 ± 2i2 = 2 ± i

    Complex roots, so α = 2 in the exponential and β = 1 inside the trig:

    f(x) = e2xcos x

    Either member of the pair answers the question, as does any combination:

    e2xsin x,  or  c1e2xcos x + c2e2xsin x

  4. Move 4Verify

    f′ = e2x(2cos x − sin x)

    f″ = e2x(3cos x − 4sin x)

    f″ − 4f′ + 5f = e2x[(3 − 8 + 5)cos x + (−4 + 4)sin x] = 0 ✓

Shortcut, once Move 2 is automatic

You can also run the table backwards. Match D2 − 4D + 5 against the row D2 − 2αD + (α2 + β2): −2α = −4 gives α = 2, and α2 + β2 = 5 gives 4 + β2 = 5, so β = 1. Read the right column: e2xcos x.

Same answer, less writing — but only use it once Move 2 feels obvious. The longhand route works on every operator, including ones with no matching row; the shortcut only works when you can spot the row.

Problems 1 and 2 are one fact

Compare the two operators: D2 − 4D + 13 has β = 3, D2 − 4D + 5 has β = 1. Same α, different constant — because β only ever appears in α2 + β2. The pair of problems is the same relationship read in both directions.

3 The full six-step method general solution

Solve y″ + 3y′ = xe2x using the annihilator method.

What you're solving for

The complete y = yg + yp. This is the problem the professor's six steps describe, and Problems 1 and 2 were practice for steps 1 and 3. Watch the left side: there is no y term, so one root is 0.

  1. Step 1Left side → operator

    Translate using the same dictionary, in reverse this time:

    y″ + 3y′ = D2y + 3Dy = (D2 + 3D)y

  2. Step 2Solve it for yg

    D2 + 3D = D(D + 3) ⇒ m = 0, −3

    yg = c1 + c2e−3x

    Root 0 gives e0·x = 1, i.e. the bare constant c1. Easy to lose; it is there because the equation has no y term.

  3. Step 3Annihilate g(x)

    This is Problem 1's move. g = xe2x, which is x1e2x. Match the row:

    (D − a)n  annihilates  xn−1eax

    x1e2x ⇒ a = 2 and n − 1 = 1, so n = 2

    (D − 2)2

  4. Step 4Multiply and collect roots

    Apply the annihilator to both sides. The right side becomes 0 by construction — that is the point of the whole method.

    (D − 2)2D(D + 3)y = 0

    0, −3  from the original operator  →  yg

    2, 2  from the annihilator  →  yp

    yp = (Ax + B)e2x

    Repeated root 2 gives two terms, the second with an extra x — the §4.3 rule. And since {2, 2} does not overlap {0, −3}, no further multiplier is needed.

  5. Step 5Differentiate and substitute

    Into the original equation, not the annihilated one.

    yp′ = (2Ax + 2B + A)e2x

    yp″ = (4Ax + 4B + 4A)e2x

    yp″ + 3yp′ = [10Ax + (10B + 7A)]e2x = xe2x

  6. Step 6Match coefficients

    10A = 1 ⇒ A = 110

    10B + 710 = 0 ⇒ B = −7100

    The constant group matches zero, because the right side has no bare e2x term.

    y = c1 + c2e−3x + (x10 − 7100)e2x

Annihilator vs. §4.4 guessing

Same answer, different route. §4.4 would have you guess (Ax + B)e2x from the guess table, then check it against yg for multiplicity. §4.5 derives that form, and multiplicity takes care of itself as a repeated root in the combined polynomial.

Where §4.5 wins: a messy g(x) with several pieces, or one that overlaps yg. Multiply the annihilators, factor once, and the right form drops out with every multiplier already in place.

Where it loses: when g cannot be annihilated at all — tan x, 1/x, ln x. No finite operator kills those, so you need §4.6 variation of parameters.

Practice — the two directions

Six drills, answers below

Three of each. Each one is a single table look-up; none should take more than two minutes.

✓ Answers, with the one line of reasoning check yourself
  1. (a)D² + 2D + 17

    Match eαxsin βx: α = −1, β = 4. Then −2α = +2 and α2 + β2 = 1 + 16 = 17.

    Watch the sign: α is negative, so −2α comes out positive.

  2. (b)D⁴

    Degree 3, and Dn annihilates degree n − 1. So n − 1 = 3, n = 4.

    D3 is not enough — it leaves the constant 12 behind.

  3. (c)(D + 3)³

    Match xn−1eax: a = −3, and n − 1 = 2 so n = 3. Then (D − a)n = (D + 3)3.

    Two sign traps in one problem: a = −3 gives the factor (D + 3), and the power is one more than the power of x. (D + 3)2 leaves 2e−3x behind.

  4. (d)cos 3x

    Longhand: y″ + 9y = 0 ⇒ m2 = −9 ⇒ m = ±3i, so α = 0, β = 3.

    sin 3x works equally well. With α = 0 there is no exponential factor.

  5. (e)e5x

    Longhand: y′ − 5y = 0 ⇒ m = 5.

    First order, so one root and one solution.

  6. (f)xe−x

    Longhand: y″ + 2y′ + y = 0 ⇒ (m + 1)2 = 0, a repeated root at −1.

    e−x is also a valid answer. The repeated root is what makes xe−x available too.

The §4.5 checklist

Which method, and when — the Chapter 4 decider

By the end of this chapter you have five ways to find yp. Picking the right one is most of the battle, and the choice is made by looking at two things: the coefficients and g(x).

What you seeUseWhy
constant coefficients, g = 0§4.3 auxiliary equationroots give the whole answer
constant coefficients, g is a polynomial / exponential / sine / cosine or a product of these§4.4 guess, or §4.5 annihilatorthe guess table covers g
constant coefficients, g is anything else (tan x, sec x, 1/x, ln x)§4.6 variation of parametersno finite annihilator exists
coefficients are powers of x matching the derivative order (x²y″, xy′, y)§4.7 Cauchy–Eulery = xm works where emx doesn't
two unknown functions, two equations§4.8 eliminationoperator algebra removes one variable
y, y′ or y″ appearing squared, multiplied together, or inside a function§4.9 substitutionnothing linear applies at all

Variation of parameters always works on a linear second-order equation, including every case §4.4 handles. It is slower, because it needs two integrals that may be unpleasant, so it is the fallback rather than the default. But if you are stuck in an exam and cannot see a guess, it is the method that cannot fail you.

§4.6 · Variation of Parameters

The idea, and where the formula comes from

Take the two homogeneous solutions y1, y2 and replace their constants with functions:

yp = u1(x)y1(x) + u2(x)y2(x)

That is the whole name of the method — the parameters c1, c2 are allowed to vary. Substituting gives one equation in two unknown functions, which is underdetermined, so you are free to impose a second condition. Choosing u1′y1 + u2′y2 = 0 makes every second-derivative term collapse, and what survives is a clean 2×2 system:

u1′y1 + u2′y2 = 0

u1′y1′ + u2′y2′ = g(x)

Solving by elimination produces the two formulas you actually use. The denominator that appears is y1y2′ − y1′y2 — the Wronskian, back from §4.1.

u1′ = −y2 g(x)W     u2′ = y1 g(x)W

yp = −y1∫y2gWdx + y2∫y1gWdx

Two rules that are not optional

1. Standard form first. The formula assumes y″ + P(x)y′ + Q(x)y = g(x) — leading coefficient exactly 1. If the equation starts 3y″ or x2y″, divide through before reading off g. Forgetting this is the single most common error in the section, and it silently scales your answer by a constant or a power of x.

The Wronskian is not affected by the division, because it is built from y1 and y2 only. Just g changes.

2. No constants of integration in u1 and u2. You want one particular solution. Any constant you carry would just reproduce a multiple of y1 or y2, which yg already supplies. Harmless, but it clutters the answer and loses points for form.

1 §4.6 · g is not annihilable general solution

Solve y″ − 2y′ + y = ex1 + x2.

What you're solving for

The complete y. Notice first why §4.4 and §4.5 are unavailable: 1/(1 + x2) is not a polynomial, exponential or sinusoid, and no finite differential operator annihilates it. That observation is the first step — it is what tells you to use this method.

  1. Move 1Homogeneous solutions

    m2 − 2m + 1 = (m − 1)2 = 0 ⇒ m = 1, 1

    y1 = ex,   y2 = xex,   yg = c1ex + c2xex

  2. Move 2Wronskian

    W = ex(ex + xex) − xex·ex = e2x + xe2x − xe2x

    W = e2x

    This is the §4.1 repeated-root pattern W = e2rx with r = 1. Never zero, which is what makes the formula legal.

  3. Move 3Check standard form

    Leading coefficient is already 1, so g(x) = ex/(1 + x2) as written. Nothing to divide.

  4. Move 4First integral

    u1 = −∫y2gWdx = −∫xex · ex/(1 + x2)e2xdx

    Every exponential cancels — ex·ex = e2x, which is exactly W. This cancellation is typical and is what makes the integrals survivable.

    = −∫x1 + x2dx = −12ln(1 + x2)

    u-substitution with u = 1 + x2: the numerator x is half of du.

  5. Move 5Second integral

    u2 = ∫y1gWdx = ∫11 + x2dx = tan−1x

    The x in the numerator is the only difference between the two integrals, and it is what turns one into a log and the other into an arctangent.

  6. Move 6Assemble

    y = c1ex + c2xex − 12exln(1 + x2) + xextan−1x

    Each ui multiplies its own yi: the log rides on ex, the arctangent on xex. Swapping them is an easy and fatal slip.

Sign bookkeeping

The minus belongs to u1, the one paired with y2 in the numerator. A memory hook: the subscripts are crossed, and the crossed one carries the minus. u1′ = −y2g/W, u2′ = +y1g/W.

§4.6 · Classwork set (five problems)

Computing the Wronskian — the same four steps every time

This is the part of §4.6 that most often goes wrong, because it is easy to rush. It is the §4.1 construction, nothing new, but now an error here poisons both integrals.

  1. Write the 2×2 matrix. Row 1 is y1, y2. Row 2 is y1′, y2′. Two functions, so you stop at the first derivative.
  2. Differentiate each column separately, on its own line. Name the rule you are using. Almost every y in this set is a product, so almost every derivative is a product rule.
  3. Form both products. W = y1y2′ − y2y1′ — top-left times bottom-right, minus top-right times bottom-left. Expand each product fully before subtracting.
  4. Cancel and simplify. Something always cancels. For {erx, xerx} it is the x terms; for a cos/sin pair it is the cross terms, and the squares collapse by the Pythagorean identity. If nothing cancels, recheck step 2.

Two patterns worth knowing, but verify them anyway. W(erx, xerx) = e2rx and W(eαxcos βx, eαxsin βx) = βe2αx. They are genuine shortcuts, but on a graded problem write the computation out — a quoted formula earns no method marks, and a misremembered one costs everything downstream.

The Wronskian never changes when you divide into standard form. It is built from y1 and y2 only, and those solve the homogeneous equation, which dividing does not affect. Only g changes.

1Constant Wronskian · integration by partsgeneral solution

Solve y″ − 9y = 9xe−3x using variation of parameters.

What you're solving for

The complete y = yg + yp. §4.4 would also work on this one, but the question names the method. The leading coefficient is already 1, so there is no dividing to do — this is the clean case to learn the shape on.

  1. Move 1Homogeneous solutions

    m2 − 9 = 0 ⇒ m2 = 9 ⇒ m = 3, −3

    Two distinct real roots, so no extra x and no trig.

    y1 = e3x,   y2 = e−3x,   yg = c1e3x + c2e−3x

  2. Move 2The Wronskian, in full

    Step 1 — the matrix. Row 1 the functions, row 2 their first derivatives.

    y₁y₂
    row 1e3xe−3x
    row 23e3x−3e−3x

    Step 2 — the derivatives. Chain rule on each; the constant in the exponent comes down in front.

    y1′ = 3e3x     y2′ = −3e−3x

    Step 3 — both products. Expand each one before subtracting, and remember e3x·e−3x = e0 = 1.

    y1y2′ = e3x(−3e−3x) = −3

    y2y1′ = e−3x(3e3x) = 3

    Step 4 — subtract.

    W = (−3) − (3) = −6

    W = −6

    A constant Wronskian is normal whenever the roots are ±r — the exponentials are reciprocals and cancel exactly. Nonzero, so the formulas are legal everywhere.

  3. Move 3Standard form check

    The coefficient of y″ is already 1, so nothing to divide.

    g(x) = 9xe−3x

  4. Move 4u₁, with the integral in full

    u1 = −∫y2gWdx = −∫e−3x · 9xe−3x−6dx

    Numerator: e−3x·9xe−3x = 9xe−6x — add the exponents. Then the leading minus and the −6 give a plus, and 9/6 = 3/2.

    u1 = 32∫xe−6xdx

    By parts. Pick the polynomial as u so it differentiates away:

    u = x ⇒ du = dx     dv = e−6xdx ⇒ v = −16e−6x

    ∫xe−6xdx = −x6e−6x + 16∫e−6xdx

    = −x6e−6x − 136e−6x

    Multiply by the 3/2 out front:

    u1 = −x4e−6x − 124e−6x

    (3/2)(1/6) = 1/4 and (3/2)(1/36) = 1/24.

  5. Move 5u₂

    u2 = ∫y1gWdx = ∫e3x · 9xe−3x−6dx

    Here the exponents are 3x and −3x, so they cancel completely: the numerator is just 9x.

    u2 = −32∫x dx = −32·x22 = −3x24

    Always simplify the integrand before integrating. That cancellation is the whole reason the method is doable by hand — the integral went from "by parts" to the power rule.

  6. Move 6Assemble

    yp = u1y1 + u2y2

    = (−x4e−6x − 124e−6x)e3x + (−3x24)e−3x

    e−6x·e3x = e−3x, so every term collects under one exponential:

    y = c1e3x + c2e−3x − (3x24 + x4 + 124)e−3x

    The −124e−3x term is a constant multiple of y2, so it may legitimately be absorbed into c2. Both forms are correct; leaving it visible is safer if the grader matches term by term.

2Divide first · IVPy(x) with constants

Solve 2y″ + y′ − y = x + 1,  y(0) = 1, y′(0) = 0, using variation of parameters.

What you're solving for

Two integrals, then two constants. The leading 2 is the trap: g is (x+1)/2, not x+1. Note that the auxiliary equation uses the original coefficients — you do not divide before finding the roots, only before reading g.

  1. Move 1Homogeneous solutions

    2m2 + m − 1 = 0

    Factor: two numbers multiplying to 2(−1) = −2 and adding to 1 are 2 and −1.

    (2m − 1)(m + 1) = 0 ⇒ m = 12, −1

    y1 = ex/2,   y2 = e−x

  2. Move 2The Wronskian, in full

    Step 1 — the matrix.

    y₁y₂
    row 1ex/2e−x
    row 2½ex/2−e−x

    Step 2 — the derivatives.

    y1′ = 12ex/2     y2′ = −e−x

    Step 3 — both products. Adding the exponents: x/2 + (−x) = −x/2.

    y1y2′ = ex/2(−e−x) = −e−x/2

    y2y1′ = e−x(12ex/2) = 12e−x/2

    Step 4 — subtract. Both terms carry the same exponential, so factor it out.

    W = −e−x/2 − 12e−x/2 = (−1 − 12)e−x/2

    W = −32e−x/2

    Never zero, since an exponential is never zero. The −3/2 will divide into both integrals as a factor of −2/3.

  3. Move 3Standard form

    Divide every term by 2:

    y″ + 12y′ − 12y = x + 12

    W is unchanged by this — it was built from y1, y2, which solve the homogeneous equation either way.

  4. Move 4u₁, in full

    u1 = −∫e−x·(x+1)/2−(3/2)e−x/2dx

    Two minus signs make a plus. The constants give (1/2)÷(3/2) = 1/3, and the exponentials give e−x/e−x/2 = e−x/2.

    u1 = 13∫(x + 1)e−x/2dx

    By parts.

    u = x+1 ⇒ du = dx     dv = e−x/2dx ⇒ v = −2e−x/2

    ∫(x+1)e−x/2dx = −2(x+1)e−x/2 + 2∫e−x/2dx

    = −2(x+1)e−x/2 − 4e−x/2 = e−x/2(−2x − 6)

    u1 = 13e−x/2(−2x − 6) = e−x/2(−2x3 − 2)

  5. Move 5u₂, in full

    u2 = ∫ex/2·(x+1)/2−(3/2)e−x/2dx

    Now the exponentials give ex/2/e−x/2 = ex, and the sign is negative.

    u2 = −13∫(x + 1)exdx

    By parts with u = x+1, v = ex:

    ∫(x+1)exdx = (x+1)ex − ∫exdx = (x+1)ex − ex

    = xex + ex − ex = xex

    u2 = −xex3

  6. Move 6yₙ

    yp = e−x/2(−2x3 − 2)·ex/2 + (−xex3)·e−x

    In the first term e−x/2·ex/2 = 1; in the second ex·e−x = 1. Every exponential disappears.

    = −2x3 − 2 − x3 = −3x3 − 2

    yp = −x − 2

    Free check: a linear g should give a linear yp, which is exactly what §4.4 would have guessed. Verify directly: 2(0) + (−1) − (−x−2) = −1 + x + 2 = x + 1 ✓

  7. Move 7Apply the conditions

    y = c1ex/2 + c2e−x − x − 2

    y′ = 12c1ex/2 − c2e−x − 1

    At x = 0 both exponentials are 1:

    y(0) = c1 + c2 − 2 = 1 ⇒ c1 + c2 = 3

    y′(0) = c12 − c2 − 1 = 0 ⇒ c12 − c2 = 1

    Add the two equations — the c2 terms cancel:

    32c1 = 4 ⇒ c1 = 83 ⇒ c2 = 3 − 83 = 13

    y = 83ex/2 + 13e−x − x − 2

Order of operations

Find yp before applying the conditions. They apply to the complete yg + yp. Fitting the constants to yg alone and adding yp afterwards would miss the −2 in y(0) and the −1 in y′(0), giving c1 = 2/3, c2 = 1/3 — wrong.

3y₁, y₂ given · variable coefficientsgeneral solution

Solve x2y″ + xy′ + (x2 − 14)y = x3/2 on (0, ∞), given that y1 = x−1/2cos x and y2 = x−1/2sin x solve the associated homogeneous equation.

What you're solving for

Only yp — the homogeneous solutions are handed to you because no method in this course finds them. That is the tell. Whenever a problem supplies y1 and y2 instead of asking for them, it is a variation-of-parameters problem: the method needs nothing but those two functions and g.

  1. Move 1Standard form

    Divide every term by x2:

    y″ + 1xy′ + (1 − 14x2)y = x3/2x2

    Subtract the exponents on the right: 3/2 − 2 = 3/2 − 4/2 = −1/2.

    g(x) = x−1/2

    Doing this first saves grief — if you carried x3/2 into the integrals, every answer would be off by a factor of x2.

  2. Move 2The Wronskian, in full

    Step 1 — the matrix.

    y₁y₂
    row 1x−1/2cos xx−1/2sin x
    row 2y₁′ (below)y₂′ (below)

    Step 2 — the derivatives. Each is a product of x−1/2 with a trig function, so product rule. The power rule gives (x−1/2)′ = −12x−3/2.

    y1′ = −12x−3/2cos x − x−1/2sin x

    y2′ = −12x−3/2sin x + x−1/2cos x

    The sign difference is just (cos)′ = −sin against (sin)′ = +cos.

    Step 3 — both products. Write c = cos x and s = sin x to keep the lines short, and note x−1/2·x−3/2 = x−2 and x−1/2·x−1/2 = x−1.

    y1y2′ = x−1/2c(−12x−3/2s + x−1/2c)

       = −12x−2cs + x−1c2

    y2y1′ = x−1/2s(−12x−3/2c − x−1/2s)

       = −12x−2sc − x−1s2

    Step 4 — subtract. Watch both minus signs in the second bracket.

    W = (−12x−2cs + x−1c2) − (−12x−2sc − x−1s2)

    = −12x−2cs + x−1c2 + 12x−2cs + x−1s2

    The two underlined cs terms cancel. What remains factors, and c2 + s2 = 1:

    = x−1(c2 + s2) = x−1(1)

    W = 1x

    Nonzero on (0, ∞), which is why the interval excludes 0 — and x = 0 is excluded anyway because the leading coefficient x2 vanishes there.

  3. Move 3u₁

    u1 = −∫y2gWdx = −∫x−1/2sin x · x−1/21/xdx

    Numerator first: x−1/2·x−1/2 = x−1. Dividing by 1/x means multiplying by x, and x−1·x = 1.

    u1 = −∫x−1sin x · x dx = −∫sin x dx

    u1 = cos x

  4. Move 4u₂

    u2 = ∫x−1/2cos x · x−1/21/xdx = ∫cos x dx

    u2 = sin x

    Identical algebra, with cos in place of sin and no leading minus.

  5. Move 5Assemble

    yp = cos x · x−1/2cos x + sin x · x−1/2sin x

    = x−1/2(cos2x + sin2x) = x−1/2(1)

    y = c1x−1/2cos x + c2x−1/2sin x + x−1/2

Why this is easier than it looks

The frightening parts — fractional powers, a Bessel-type equation — never reach the integrals. Simplify the integrand completely before integrating and you are left with ∫sin and ∫cos. If your integrand still has powers of x in it, go back and check the algebra rather than attempting the integral.

The Pythagorean collapse happens twice here — once in the Wronskian and once at the end. That is characteristic: when y1 and y2 are the same function times cos and sin, expect both.

4No elementary antiderivativeanswer in integral form

Solve 2y″ + 2y′ + y = 4√x using variation of parameters.

What you're solving for

The complete y — but the two integrals have no elementary antiderivative, so the expected answer leaves them as integrals. That is the finished answer, not a dead end. Everything up to and including the two integrands is ordinary work and carries full marks.

  1. Move 1Homogeneous solutions

    2m2 + 2m + 1 = 0,   b2 − 4ac = 4 − 8 = −4

    Negative, so complex roots. Divide by 2a = 4, not 2 — a very common slip.

    m = −2 ± √−44 = −2 ± 2i4 = −12 ± 12i

    α = −12,   β = 12

    y1 = e−x/2cos(x2),   y2 = e−x/2sin(x2)

  2. Move 2The Wronskian, in full

    Write E = e−x/2, c = cos(x/2), s = sin(x/2). Note E′ = −12E and c′ = −12s, s′ = 12c — the 1/2 comes from the chain rule on x/2.

    Step 2 — the derivatives (product rule on each):

    y1′ = −12Ec − 12Es = −12E(c + s)

    y2′ = −12Es + 12Ec = 12E(c − s)

    Step 3 — both products. E·E = e−x.

    y1y2′ = Ec·12E(c − s) = 12e−x(c2 − cs)

    y2y1′ = Es·(−12E(c + s)) = −12e−x(sc + s2)

    Step 4 — subtract. Subtracting a negative makes it positive:

    W = 12e−x(c2 − cs) + 12e−x(sc + s2)

    = 12e−x(c2 + s2) = 12e−x(1)

    W = 12e−x

    This matches the §4.1 pattern W = βe2αx with β = 1/2 and 2α = −1 — a useful check, but the computation above is what earns the marks.

  3. Move 3Standard form

    Divide every term by 2:

    y″ + y′ + 12y = 2√x

    4√x ÷ 2 = 2√x. The Wronskian stays as computed.

  4. Move 4Both integrands

    Dividing by 12e−x means multiplying by 2ex. Together with the 2 from g that gives a factor of 4, and ex·e−x/2 = ex/2.

    u1′ = −y2gW = −e−x/2sin(x/2) · 2√x(1/2)e−x = −4√x ex/2sin(x2)

    u2′ = y1gW = 4√x ex/2cos(x2)

  5. Move 5Recognise and stop

    Try integration by parts on √x ex/2sin(x/2). Taking u = √x = x1/2 gives du = 12x−1/2dx, then x−3/2, then x−5/2 — it never reaches zero, and each round makes the integral worse. Taking the exponential-times-trig as u instead cycles forever without the √x ever changing.

    So write the answer with definite integrals from a fixed x0 in the interval:

    y = c1e−x/2cos(x2) + c2e−x/2sin(x2)

      − 4e−x/2cos(x2) ∫x0x √t et/2sin(t2)dt

      + 4e−x/2sin(x2) ∫x0x √t et/2cos(t2)dt

    Use a dummy variable t inside the integrals — x is the upper limit and cannot also be the integration variable.

How to know when to stop

Integration by parts terminates only when one factor eventually differentiates to zero — that is, when it is a polynomial with whole-number powers. √x is x1/2, and fractional powers never die. Spotting that in the first thirty seconds is worth more marks here than any amount of integration technique.

This problem is also the argument for the method. §4.4 and §4.5 cannot touch √x — it is not in the guess table and has no finite annihilator. Variation of parameters still produces a complete, correct, fully specified answer; it just leaves it in integral form.

5Third order · Cramer's rulegeneral solution

Solve y′′′ + y′ = tan x using variation of parameters.

What you're solving for

The complete y. Third order means three u's and a 3×3 system, so the two memorised formulas do not apply — you need Cramer's rule. And tan x has no annihilator and is not in the guess table, so §4.4 and §4.5 are both unavailable.

  1. Move 1Homogeneous solutions

    m3 + m = m(m2 + 1) = 0 ⇒ m = 0, ±i

    Root 0 gives e0·x = 1; the pair ±i has α = 0, β = 1, so no exponential envelope.

    y1 = 1,   y2 = cos x,   y3 = sin x

    Leading coefficient is already 1, so g = tan x as written.

  2. Move 2The system

    The 2×2 pattern generalises: zeros in every row but the last, where g sits. Rows use successively higher derivatives.

    u1′y1 + u2′y2 + u3′y3 = 0

    u1′y1′ + u2′y2′ + u3′y3′ = 0

    u1′y1″ + u2′y2″ + u3′y3″ = g

  3. Move 3The Wronskian, in full

    Three functions, so a 3×3 and the last row is the second derivative.

    y1 = 1,   y1′ = 0,   y1″ = 0

    y2 = cos x,   y2′ = −sin x,   y2″ = −cos x

    y3 = sin x,   y3′ = cos x,   y3″ = −sin x

    1cos xsin x
    row 11cos xsin x
    row 20−sin xcos x
    row 30−cos x−sin x

    Expand along the first column — two of its three entries are zero, so only one term survives. The entry is at position (1,1), whose sign is (−1)1+1 = +.

    W = 1 · det[ −sin x, cos x ; −cos x, −sin x ]

    = (−sin x)(−sin x) − (cos x)(−cos x)

    = sin2x + cos2x

    W = 1

  4. Move 4Cramer: u₁′

    Replace column 1 with the right-hand side (0, 0, g):

    0cos xsin x
    0−sin xcos x
    g−cos x−sin x

    Expand along column 1 again. The only nonzero entry is g at position (3,1), sign (−1)3+1 = +. Delete row 3 and column 1:

    W1 = g · det[ cos x, sin x ; −sin x, cos x ]

    = g(cos2x + sin2x) = g = tan x

    u1′ = W1W = tan x

    u1 = −ln|cos x|

  5. Move 5Cramer: u₂′

    Replace column 2. The nonzero entry g is now at position (3,2), whose sign is (−1)3+2 = −. Delete row 3 and column 2:

    W2 = −g · det[ 1, sin x ; 0, cos x ] = −g(1·cos x − sin x·0)

    = −tan x · cos x = −sin xcos x·cos x = −sin x

    u2′ = −sin x

    u2 = cos x

  6. Move 6Cramer: u₃′

    Replace column 3. Entry at (3,3), sign (−1)3+3 = +. Delete row 3 and column 3:

    W3 = g · det[ 1, cos x ; 0, −sin x ] = g(−sin x)

    = −tan x · sin x = −sin2xcos x

    This is the step that makes it integrable. Replace sin2x with 1 − cos2x and split the fraction:

    u3′ = −1 − cos2xcos x = −1cos x + cos2xcos x = −sec x + cos x

    Now both pieces are standard integrals:

    u3 = −ln|sec x + tan x| + sin x

  7. Move 7Assemble

    yp = u1y1 + u2y2 + u3y3

    = (−ln|cos x|)(1) + (cos x)(cos x) + (−ln|sec x + tan x| + sin x)(sin x)

    = −ln|cos x| + cos2x + sin2x − sin x·ln|sec x + tan x|

    cos2x + sin2x = 1, and a bare constant is just a multiple of y1 = 1, so it is absorbed into c1.

    y = c1 + c2cos x + c3sin x − ln|cos x| − sin x · ln|sec x + tan x|

Three things to carry forward

The two memorised 2×2 formulas are Cramer's rule. For n = 2, replacing column 1 with (0, g) gives W1 = −y2g, and replacing column 2 gives W2 = y1g — exactly the numerators you memorised, minus sign and all. Learn the determinant version and the sign takes care of itself at every order.

Valid only where tan x is continuous, for example on (−π/2, π/2). The §4.1 existence theorem requires g continuous on the interval, and tan blows up at π/2. Stating the interval is part of a complete answer.

Memorise the two integrals. ∫tan x dx = −ln|cos x| and ∫sec x dx = ln|sec x + tan x|. The second cannot be derived under exam pressure, and this problem type is exactly where it appears.

What this set was testing

§4.7 · Cauchy–Euler Equations

How to recognise one, and why xm works

A Cauchy–Euler equation has the shape

anxny(n) + … + a1xy′ + a0y = f(x)

The power of x matches the order of the derivative, term by term. That is the whole recognition test: x2 with y″, x with y′, nothing with y.

Guess y = xm. Each derivative drops the power by one, and the matching x out front puts it back:

x2y″ = x2·m(m−1)xm−2 = m(m−1)xm

So every term comes out as a number times xm, the xm factors out, and you are left with a polynomial in m. That is why the exponential guess from §4.3 fails here and this one succeeds.

Roots of the auxiliary equationSolution
distinct real m₁ ≠ m₂c₁xm₁ + c₂xm₂
repeated real mc₁xm + c₂xmln x  (then xm(ln x)², …)
complex α ± βixα[c₁cos(β ln x) + c₂sin(β ln x)]

The dictionary. Every case is the §4.3 case with emx → xm and x → ln x. Repeated root gets an extra ln x instead of an extra x; complex roots put ln x inside the trig. If you know §4.3, you know §4.7 — it is the same three cases in a different alphabet.

Why x > 0 keeps appearing. At x = 0 the leading coefficient x2 vanishes, the equation stops being second order, and the existence-and-uniqueness theorem from §4.1 excludes that point. It is never in the interval.

2 §4.7 · homogeneous, irrational roots general solution

Solve 3x2y″ − 2xy′ + y = 0.

What you're solving for

Two exponents. The messy roots are not a sign you went wrong — Cauchy–Euler auxiliary equations produce irrational exponents routinely, and x raised to an ugly power is a perfectly good answer.

  1. Move 1Substitute xm

    3x2·m(m−1)xm−2 − 2x·mxm−1 + xm

    = [3m(m−1) − 2m + 1]xm = 0

    Since xm ≠ 0 on x > 0, divide it out — the same move as dividing out emx in §4.3.

  2. Move 2Auxiliary equation

    3m2 − 3m − 2m + 1 = 3m2 − 5m + 1 = 0

    m = 5 ± √25 − 126 = 5 ± √136

    y = c1x(5 + √13)/6 + c2x(5 − √13)/6

The arithmetic trap

3m(m − 1) = 3m2 − 3m, not 3m2 − m. The coefficient distributes over both terms. Expand that bracket on its own line rather than in your head.

3 §4.7 + §4.6 together general solution

Solve x2y″ − 2xy′ + 2y = x4ex.

What you're solving for

The complete solution of a nonhomogeneous Cauchy–Euler equation. Two decisions: xm gets you yg, and then you must pick a method for yp. Undetermined coefficients is available but a trap here — see the box below.

  1. Move 1Homogeneous part

    [m(m−1) − 2m + 2]xm = (m2 − 3m + 2)xm = 0

    (m − 1)(m − 2) = 0 ⇒ m = 1, 2

    y1 = x,   y2 = x2,   yg = c1x + c2x2

  2. Move 2Choose the method

    Undetermined coefficients would need yp = (Ax4 + Bx3 + Cx2 + Dx + E)ex — five unknowns and two product-rule differentiations of a quartic. Technically possible, practically a page of algebra and a near-certain sign error.

    Variation of parameters needs two integrals instead. Much shorter here.

  3. Move 3Wronskian

    W = x(2x) − x2(1) = 2x2 − x2 = x2

    Nonzero for x ≠ 0, and x = 0 is excluded from the interval anyway.

  4. Move 4Standard form — don't skip

    Divide the whole equation by x2:

    y″ − 2x−1y′ + 2x−2y = x2ex

    So g(x) = x2ex, not x4ex. Using the undivided right side here would make the answer wrong by a factor of x2. The Wronskian is unaffected.

  5. Move 5Both integrals

    u1 = −∫x2(x2ex)x2dx = −∫x2exdx

    u2 = ∫x(x2ex)x2dx = ∫xexdx

    Both are tabular integration by parts — differentiate the polynomial down to zero, integrate ex (which never changes), alternate signs:

    ∫x2exdx = x2ex − 2xex + 2ex

    ∫xexdx = xex − ex

  6. Move 6Assemble and collect

    u1y1 = −x(x2ex − 2xex + 2ex) = −x3ex + 2x2ex − 2xex

    u2y2 = x2(xex − ex) = x3ex − x2ex

    The x3ex terms cancel:

    yp = x2ex − 2xex

    y = c1x + c2x2 + (x − 2)xex

The judgement call worth internalising

Both methods are correct here. The one to pick is the one with less arithmetic, and a high-degree polynomial times an exponential is the signal to switch to variation of parameters — it converts a five-unknown system into two integration-by-parts problems you can do mechanically.

§4.7 · Classwork set (four problems)

Read this first: what makes an equation Cauchy–Euler, and why xm

A Cauchy–Euler (or equidimensional) equation looks like this:

a2x2y″ + a1xy′ + a0y = g(x)

The identifying feature is the matching: the power of x in front of each term equals the order of the derivative it multiplies. x2 rides with y″, x1 with y′, x0 = 1 with y. If that pattern breaks — say you see x3y″ or a lone xy — it is not Cauchy–Euler and none of this applies.

Why the guess is y = xm and not emx. In §4.3 the coefficients were constants, and emx reproduces itself under differentiation. Here the coefficients are powers of x, and xm is the function whose derivatives drop one power of x each time — exactly matching the power the equation then multiplies back on. Watch the bookkeeping:

x2 · y″ = x2 · m(m−1)xm−2 = m(m−1)xm

x · y′ = x · mxm−1 = mxm

1 · y = xm

Every term collapses to a number times xm. Factor that out, divide it off (legal for x > 0), and what is left is a plain polynomial in m. That polynomial is the auxiliary equation. It is not quoted from a table — it is what remains after the substitution.

Writing the general version out once makes every problem in this set mechanical:

a2m(m−1) + a1m + a0 = 0

So from 4x2y″ + 4xy′ − y = 0 you read off a2 = 4, a1 = 4, a0 = −1 and write 4m(m−1) + 4m − 1 = 0. Then expand.

The single most common error in this section: writing 4m2 + 4m − 1 = 0 — copying the coefficients straight across as if it were §4.3. The first term is m(m−1), not m2. That −m hiding inside the product changes the middle coefficient of every problem. Expand it before you factor, every time:

4m(m−1) + 4m − 1 = 4m2 − 4m + 4m − 1 = 4m2 − 1

The three cases — same three as §4.3, dressed differently

Solve the auxiliary equation for m, then read the answer off this table. The left column is identical to §4.3; only the right column changes.

roots of the auxiliary equation§4.3 answer (constant coefficients)§4.7 answer (Cauchy–Euler)
distinct real m1 ≠ m2c1em1x + c2em2xc1xm1 + c2xm2
repeated m (twice)c1emx + c2xemxxm(c1 + c2 ln x)
complex α ± βieαx(c1cos βx + c2sin βx)xα(c1cos(β ln x) + c2sin(β ln x))

One translation rule covers the whole right column. Wherever §4.3 writes x, Cauchy–Euler writes ln x; wherever §4.3 writes e( )x, Cauchy–Euler writes x( ). Problem 4 shows exactly why: the substitution x = et, i.e. t = ln x, turns any Cauchy–Euler equation into a constant-coefficient one. You are not learning a second method — you are learning §4.3 in a change of variable.

So the extra factor on a repeated root is ln x, not x. Writing c2x · xm is the §4.3 reflex firing in the wrong section, and it is wrong by a whole function.

Every problem in this classwork is stated for x > 0, which is why no absolute values appear around ln x. On a general interval the answers carry ln|x| and |x|m.

1Distinct real roots · fractional exponentsgeneral solution

Solve 4x2y″ + 4xy′ − y = 0.

What you're solving for

The general solution y(x) — two independent solutions with two arbitrary constants. The equation is homogeneous (right side is 0), so there is no yp and nothing to guess. First check the Cauchy–Euler pattern: x2 with y″, x with y′, constant with y. It matches, so y = xm is the right substitution.

  1. Move 1Substitute y = xm

    Write the three derivatives first, before touching the equation.

    y = xm     y′ = mxm−1     y″ = m(m−1)xm−2

    Now substitute, and multiply the x-powers in:

    4x2 · m(m−1)xm−2 + 4x · mxm−1 − xm = 0

    4m(m−1)xm + 4mxm − xm = 0

    Every term carries the same xm. That is the whole point of the method. Factor it out:

    xm [ 4m(m−1) + 4m − 1 ] = 0

    For x > 0, xm ≠ 0, so the bracket must be zero.

  2. Move 2The auxiliary equation

    Expand m(m−1) before combining. This is where the section's signature error lives.

    4m(m−1) + 4m − 1 = 4m2 − 4m + 4m − 1

    4m2 − 1 = 0

    The two middle terms cancel exactly. If you had written 4m2 + 4m − 1 = 0, you would be solving a different equation with irrational roots — and nothing downstream would warn you.

  3. Move 3Solve for m

    Difference of squares, or just isolate:

    4m2 − 1 = (2m − 1)(2m + 1) = 0

    m = 12,   m = −12

    Two distinct real roots — top row of the table. No ln x, no trig.

  4. Move 4Write the answer

    Case 1: y = c1xm1 + c2xm2. The roots go into the exponents, nowhere else.

    y = c1x1/2 + c2x−1/2

    Equivalently y = c1√x + c2/√x. Both forms are correct; the exponent form is safer to type into an answer box.

  5. Move 5Check

    Test y = x1/2: y′ = ½x−1/2, y″ = −¼x−3/2.

    4x2(−¼x−3/2) + 4x(½x−1/2) − x1/2 = −x1/2 + 2x1/2 − x1/2 = 0 ✓

    Verified symbolically for both solutions.

Watch for

Reading the roots as the base instead of the exponent — writing (1/2)x or ex/2. In Cauchy–Euler the root is the power on x. The exponential form belongs to §4.3 and to Problem 4's intermediate step only.

2Nonhomogeneous · variation of parametersgeneral solution

Solve 2x2y″ + 5xy′ + y = x2 − x using variation of parameters.

What you're solving for

The complete y = yc + yp. Two methods stacked: §4.7 to get y1 and y2, then §4.6 to get yp. Undetermined coefficients is not available here — that method needs constant coefficients, and these are not constant. Variation of parameters is the only route, which is why the problem names it.

  1. Move 1Homogeneous solutions

    Pattern matches, so substitute y = xm. Read a2 = 2, a1 = 5, a0 = 1:

    2m(m−1) + 5m + 1 = 2m2 − 2m + 5m + 1 = 2m2 + 3m + 1

    Factor (AC method: 2 · 1 = 2, need two numbers multiplying to 2 and adding to 3 → 1 and 2):

    2m2 + 3m + 1 = (2m + 1)(m + 1) = 0

    m = −12,   m = −1

    y1 = x−1/2,   y2 = x−1,   yc = c1x−1/2 + c2x−1

    Note 2m + 1 = 0 gives m = −½ — solve the factor for m; don't read the numbers inside it.

  2. Move 2Standard form — the step that decides everything

    The variation-of-parameters formulas require the coefficient of y″ to be exactly 1. Here it is 2x2. Divide the entire equation by 2x2 and read the new right-hand side. Skipping this is the number-one cause of wrong answers in this problem type — and the error is silent, because everything afterwards still computes.

    y″ + 52xy′ + 12x2y = x2 − x2x2

    Simplify the right side — factor x out of the numerator and cancel:

    x2 − x2x2 = x(x − 1)2x2 = x − 12x

    g(x) = x − 12x

    The Wronskian does not change when you divide. It is built only from y1 and y2, which solve the homogeneous equation. Only g changes.

  3. Move 3The Wronskian, in full

    Step 1 — the matrix.

    y₁y₂
    row 1x−1/2x−1
    row 2−½x−3/2−x−2

    Step 2 — the derivatives. Power rule, exponent down in front, subtract one:

    y1′ = −12x−3/2     y2′ = −x−2

    Step 3 — both products. Add exponents when multiplying.

    y1y2′ = x−1/2(−x−2) = −x−5/2

    y2y1′ = x−1(−½x−3/2) = −12x−5/2

    Step 4 — subtract. Careful with the double negative:

    W = −x−5/2 − (−12x−5/2) = −x−5/2 + 12x−5/2

    W = −12x−5/2

    Nonzero for x > 0, so y1 and y2 are independent and the formulas are legal.

  4. Move 4u₁′ and its integral

    u1′ = −y2 gW = −x−1 · x−12x−½x−5/2

    Numerator: x−1 · (x−1)/(2x) = (x−1)/(2x2). Dividing by −½x−5/2 means multiplying by −2x5/2; together with the leading minus, the two negatives give a plus.

    u1′ = x − 12x2 · 2x5/2 = (x − 1)x1/2 = x3/2 − x1/2

    Integrate with the power rule — add 1 to the exponent, divide by the new one. Dividing by 5/2 means multiplying by 2/5.

    u1 = 25x5/2 − 23x3/2

    No +C. A constant here would only reproduce a multiple of y1, which yc already provides.

  5. Move 5u₂′ and its integral

    u2′ = y1 gW = x−1/2 · x−12x−½x−5/2

    Numerator: (x−1)/(2x3/2). Multiply by −2x5/2:

    u2′ = −(x − 1)x = −x2 + x

    u2 = −x33 + x22

  6. Move 6Assemble yp

    yp = u1y1 + u2y2

    = 25x5/2 · x−1/2 − 23x3/2 · x−1/2 − x33 · x−1 + x22 · x−1

    Add exponents in each product. Every fractional power disappears — that collapse is the structural check that the Wronskian and both integrals are right.

    = 25x2 − 23x − 13x2 + 12x

    Collect x2: 2/5 − 1/3 = 6/15 − 5/15 = 1/15. Collect x: −2/3 + 1/2 = −4/6 + 3/6 = −1/6.

    yp = x215 − x6

  7. Move 7General solution and check

    y = c1x−1/2 + c2x−1 + x215 − x6

    Check yp in the ORIGINAL equation (not the standard-form one):

    yp′ = 2x15 − 16     yp″ = 215

    2x2·215 + 5x(2x15 − 16) + x215 − x6

    = 4x215 + 10x215 + x215 − 5x6 − x6 = x2 − x ✓

    The x2 pieces sum to 15/15 and the x pieces to −6/6. Verified symbolically.

Watch for

Using g = x2 − x straight from the printed equation. That is the right side before dividing by 2x2, and it is wrong by a factor of 2x2. Every Cauchy–Euler variation-of-parameters problem has this division, because the leading coefficient is never 1.

3Complex roots · IVPparticular solution through the point

Solve x2y″ + xy′ + y = 0,   y(1) = 1,   y′(1) = 2.

What you're solving for

One specific solution, not a family. Find the general solution first, then use the two conditions to pin c1 and c2. The conditions are given at x = 1 — which is no accident, since ln 1 = 0 and the trig collapses to cos 0 = 1, sin 0 = 0. That makes the algebra almost disappear.

  1. Move 1Auxiliary equation

    a2 = 1, a1 = 1, a0 = 1:

    m(m−1) + m + 1 = m2 − m + m + 1

    m2 + 1 = 0

    Again the middle terms cancel. Had you written m2 + m + 1 = 0 you would get −½ ± (√3/2)i and a far uglier answer.

  2. Move 2Solve — complex roots

    m2 = −1 ⇒ m = ±i

    Write them in the form α ± βi explicitly, so you can read off both pieces:

    m = 0 ± 1i   ⇒   α = 0,   β = 1

  3. Move 3General solution — case 3 of the table

    y = xα [ c1cos(β ln x) + c2sin(β ln x) ]

    With α = 0, the factor x0 = 1 vanishes; with β = 1, the arguments are just ln x.

    y = c1cos(ln x) + c2sin(ln x)

    Where ln x comes from. In §4.3 complex roots gave cos βx and sin βx. Under the substitution t = ln x (Problem 4), every x inside a function becomes ln x. It is the same solution, re-expressed.

  4. Move 4Apply y(1) = 1

    ln 1 = 0, so cos(0) = 1 and sin(0) = 0:

    y(1) = c1(1) + c2(0) = c1 = 1

    c1 = 1

  5. Move 5Differentiate, then apply y′(1) = 2

    Chain rule: the derivative of ln x is 1/x, and it multiplies onto every term.

    y′ = −c1sin(ln x) · 1x + c2cos(ln x) · 1x

    At x = 1: 1/x = 1, sin(0) = 0, cos(0) = 1:

    y′(1) = −c1(0)(1) + c2(1)(1) = c2 = 2

    c2 = 2

    The conditions decoupled completely — no system to solve. That is what evaluating at x = 1 buys you, and it is why problems in this section almost always use it.

  6. Move 6Answer and check

    y = cos(ln x) + 2 sin(ln x)

    Check both conditions on the final answer, not on the general form:

    y(1) = cos 0 + 2 sin 0 = 1 + 0 = 1 ✓

    y′(1) = −sin 0 + 2 cos 0 = 0 + 2 = 2 ✓

    Also verified symbolically in the ODE: x2y″ + xy′ + y = 0 exactly.

Watch for

Two slips, both common. (1) Writing cos x instead of cos(ln x) — the §4.3 reflex. (2) Forgetting the 1/x from the chain rule when differentiating. At x = 1 it equals 1 and hides the mistake here, but on any other initial point it changes the answer.

4Substitution x = et · repeated roottransform, then solve

Substitute x = et into x2y″ − 9xy′ + 25y = 0 to transform it into a DE with constant coefficients, and solve.

What you're solving for

Two things: the transformed equation in t (that is the point of the exercise — show the work), and then its solution translated back into x. This problem is the proof of the table in the method section. Once you see it, the ln x in case 2 and case 3 stops being arbitrary.

  1. Move 1Set up the substitution

    x = et   ⇒   t = ln x   ⇒   dtdx = 1x

    The goal is to re-express xy′ and x2y″ — the two combinations that actually appear — in terms of t-derivatives.

  2. Move 2First derivative

    Chain rule:

    dydx = dydt · dtdx = 1xdydt

    Multiply both sides by x — this is the first identity:

    xdydx = dydt

  3. Move 3Second derivative

    Differentiate dy/dx = (1/x)(dy/dt) with respect to x. This needs the product rule, then the chain rule again on the second factor.

    d2ydx2 = ddx 1xdydt = −1x2dydt + 1x ddx dydt

    That last piece is another chain rule: d/dx(dy/dt) = (d2y/dt2)(dt/dx) = (1/x)(d2y/dt2).

    d2ydx2 = 1x2 (d2ydt2 − dydt)

    Multiply by x2 — the second identity:

    x2d2ydx2 = d2ydt2 − dydt

    This is where m(m−1) comes from. The −dy/dt sitting inside x2y″ is exactly the −m inside m(m−1) = m2 − m. The two facts are the same fact, seen from two directions.

  4. Move 4Transform the equation

    Substitute both identities into x2y″ − 9xy′ + 25y = 0:

    (d2ydt2 − dydt) − 9dydt + 25y = 0

    Combine the two dy/dt terms: −1 − 9 = −10.

    d2ydt2 − 10dydt + 25y = 0

    Constant coefficients. Every power of x is gone — that is the entire purpose of the substitution. This is now an ordinary §4.3 problem.

  5. Move 5Solve the constant-coefficient equation

    Now the auxiliary equation is the §4.3 one — no m(m−1), because the coefficients are constants:

    m2 − 10m + 25 = (m − 5)2 = 0 ⇒ m = 5 (twice)

    Repeated root → second solution carries a factor of t:

    y(t) = c1e5t + c2te5t

  6. Move 6Translate back to x

    Substitute t = ln x. The key simplification:

    e5t = e5 ln x = (eln x)5 = x5

    y = c1x5 + c2(ln x)x5

    y = x5(c1 + c2 ln x)

    Compare with the table. Substituting y = xm directly gives m(m−1) − 9m + 25 = m2 − 10m + 25 = (m−5)2 — the same repeated root 5 — and case 2 of the table reads xm(c1 + c2 ln x). Identical answer, two routes.

    Verified symbolically: x2y″ − 9xy′ + 25y = 0 for all c1, c2.

Watch for

Writing x2y″ = d2y/dt2 and dropping the −dy/dt. That one missing term turns m2 − 10m + 25 into m2 − 9m + 25, whose roots are complex — a completely different-looking answer with cosines and sines in it. If your Problem-4-style answer suddenly has trig in it, check this identity first.

What to carry out of the §4.7 classwork

§4.7 · Homework set (eleven problems)

The whole chapter on one page

Substitute y = tm. Every term collapses to a multiple of tm, and what's left is the auxiliary polynomial:

P(m) = a3m(m−1)(m−2) + a2m(m−1) + a1m + a0

(Drop the first term for a second-order equation.) Expand before factoring — the hidden −m inside m(m−1) changes the middle coefficient every single time.

roots of P(m)solutionin this set
distinct realc1tm1 + c2tm2Q1, Q4, Q7, Q8
repeated mtm(c1 + c2 ln t)Q2, Q5
complex α ± βitα(c1cos(β ln t) + c2sin(β ln t))Q3, Q9

The tool that makes Q6, Q10 and Q11 one line each. Because substituting y = tm gives exactly

L[tm] = P(m) tm

a right-hand side that is itself a power of t can be matched by inspection:

  • Right side Ktr with r NOT a root:   yp = KP(r)tr
  • Right side Ktr with r a SIMPLE root:   yp = KP′(r)tr ln t

The second line is the Cauchy–Euler version of the multiplicity bump, and it comes from differentiating L[tm] = P(m)tm with respect to m: that gives L[tmln t] = P′(m)tm + P(m)tmln t, and at a root the second piece vanishes.

Variation of parameters gives the same answers and is what Problem 6 names, but it needs a 3×3 Wronskian and three integrals. When only the final answer is graded, use the shortcut; on paper, use it to check.

Every problem here puts the initial conditions at t = 1. That is deliberate: 1anything = 1 and ln 1 = 0, so each condition collapses to a plain linear equation in the constants.

1Distinct real roots · IVPy(t)

t2y″ − 5ty′ + 5y = 0,   y(1) = 3, y′(1) = 4.

  1. Move 1Auxiliary equation

    m(m−1) − 5m + 5 = m2 − m − 5m + 5 = m2 − 6m + 5

    (m−1)(m−5) = 0 ⇒ m = 1, 5

    y = c1t + c2t5

  2. Move 2Initial conditions

    y′ = c1 + 5c2t4

    c1 + c2 = 3     c1 + 5c2 = 4

    Subtracting kills c1: 4c2 = 1.

    y(t) = 114t + 14t5

    Check: 11/4 + 1/4 = 3 ✓, 11/4 + 5/4 = 4 ✓

2Repeated root · IVPy(t)

t2y″ + 15ty′ + 49y = 0,   y(1) = 7, y′(1) = 10.

  1. Move 1Auxiliary equation

    m(m−1) + 15m + 49 = m2 + 14m + 49 = (m+7)2

    m = −7, repeated

    y = t−7(c1 + c2 ln t)

    The second solution carries ln t, not t. Writing c2t·t−7 is the §4.3 reflex firing in the wrong section.

  2. Move 2Differentiate — product rule twice over

    y′ = −7t−8(c1 + c2ln t) + t−7·c2t

    At t = 1 every power is 1 and ln 1 = 0:

    y(1) = c1 = 7

    y′(1) = −7c1 + c2 = 10 ⇒ c2 = 10 + 49 = 59

    y(t) = t−7(7 + 59 ln t)

    The −7c1 is easy to lose — it comes from differentiating the t−7 in front, not from the bracket.

3Complex roots · IVPy(t)

4t2y″ − 4ty′ + 8y = 0,   y(1) = 2, y′(1) = 5.

  1. Move 1Auxiliary equation

    4m(m−1) − 4m + 8 = 4m2 − 8m + 8 = 4(m2 − 2m + 2)

    Quadratic formula: discriminant 4 − 8 = −4, negative ⇒ complex.

    m = 2 ± 2i2 = 1 ± i  ⇒  α = 1, β = 1

    y = t (c1cos(ln t) + c2sin(ln t))

    tα = t1 = t out front; β = 1 so the arguments are plain ln t.

  2. Move 2Initial conditions

    Product rule, and the 1/t from each logarithm cancels the t out front:

    y′ = (c1cos + c2sin) + (−c1sin + c2cos)

    y(1) = c1 = 2     y′(1) = c1 + c2 = 5 ⇒ c2 = 3

    y(t) = t (2cos(ln t) + 3sin(ln t))

4Just the rootsvalues of m

Find m so that y = xm solves x2y″ − 8xy′ + 8y = 0.

This is the auxiliary equation and nothing else — no general solution, no constants.

m(m−1) − 8m + 8 = m2 − 9m + 8 = (m−1)(m−8)

m = 1, 8

Note the pattern across Q1 and Q4: −5m gave −6m, and −8m gave −9m. The extra −1 is always the −m hiding in m(m−1).

5Third order · repeated rootthe solution set

Find the solution set for x3y′′′ + 8x2y″ − 19xy′ − 125y = 0.

  1. Move 1The third-order auxiliary equation

    Third order adds one factor: x3y′′′ → m(m−1)(m−2).

    m(m−1)(m−2) + 8m(m−1) − 19m − 125

    = (m3 − 3m2 + 2m) + (8m2 − 8m) − 19m − 125

    = m3 + 5m2 − 25m − 125

  2. Move 2Factor by grouping

    Four terms → try grouping before the rational root test:

    m2(m+5) − 25(m+5) = (m+5)(m2−25) = (m+5)(m−5)(m+5)

    (m+5)2(m−5) = 0 ⇒ m = −5 (twice), 5

  3. Move 3Write the three solutions

    The repeated root contributes two: the plain power and that power times ln x.

    x−5,   x−5ln x,   x5

    Entry: x^(-5), x^(-5)ln(x), x^5. Three independent functions for a third-order equation — that count is the check. Watch the near-miss: −5 repeated and +5 simple, which is easy to swap.

6Third order · nonhomogeneousy and y_p

x3y′′′ + 9x2y″ + 18xy′ + 6y = −60x2 on (0, ∞).

What you're solving for

The full y = c1y1 + c2y2 + c3y3 + yp, with the yi ordered by increasing power as the problem specifies, plus yp on its own.

  1. Move 1Homogeneous part

    m(m−1)(m−2) + 9m(m−1) + 18m + 6

    = m3 − 3m2 + 2m + 9m2 − 9m + 18m + 6 = m3 + 6m2 + 11m + 6

    Rational root test: m = −1 gives −1 + 6 − 11 + 6 = 0 ✓. Dividing out:

    (m+1)(m+2)(m+3) = 0 ⇒ m = −1, −2, −3

    Ordered by increasing power, as instructed: {x−3, x−2, x−1} — which matches the set the problem printed.

  2. Move 2Particular, by the P(m) shortcut

    The right side is −60x2, so r = 2. Is 2 a root? The roots are −1, −2, −3 — no. So no bump, and:

    P(2) = 8 + 6(4) + 11(2) + 6 = 8 + 24 + 22 + 6 = 60

    yp = −6060x2 = −x2

    Variation of parameters gives the same thing after a 3×3 Wronskian and three integrals. The shortcut is legitimate mathematics — it is undetermined coefficients, with P(r) doing the substitution for you.

  3. Move 3Assemble

    y = c1x−3 + c2x−2 + c3x−1 − x2

    yp = −x2

    Verified symbolically for arbitrary c1, c2, c3.

7List the basistwo functions

t2y″ + 9ty′ + 15y = 0. List the functions, comma separated.

m(m−1) + 9m + 15 = m2 + 8m + 15 = (m+3)(m+5)

t−5,   t−3

The question wants the functions, not c1t−3 + c2t−5 — its own example (“c1t + c2t2 → t, t2”) lists them in increasing power, which is why t−5 comes first.

If it rejects, swap the order — a set has no intrinsic order and some graders take either.

8Missing middle term · IVPy(t)

t2y″ − 6y = 0,   y(1) = −1, y′(1) = 12.

There is no ty′ term, so a1 = 0. The pattern still holds — just put nothing in that slot.

m(m−1) + 0 − 6 = m2 − m − 6 = (m−3)(m+2)

y = c1t3 + c2t−2,    y′ = 3c1t2 − 2c2t−3

c1 + c2 = −1     3c1 − 2c2 = 12

Substituting c2 = −1 − c1: 3c1 + 2 + 2c1 = 5c1 + 2 = 12.

y(t) = 2t3 − 3t−2

Check: 2 − 3 = −1 ✓, 6 + 6 = 12 ✓

9Complex roots · large βy(t)

t2y″ − 9ty′ + 74y = 0,   y(1) = 2, y′(1) = 17.

  1. Move 1Roots

    m(m−1) − 9m + 74 = m2 − 10m + 74

    discriminant = 100 − 296 = −196 ⇒ √−196 = 14i

    m = 10 ± 14i2 = 5 ± 7i  ⇒  α = 5, β = 7

    y = t5(c1cos(7 ln t) + c2sin(7 ln t))

    Divide by 2. Writing α = 10, β = 14 straight off the radical is the standard slip — the 2a in the quadratic formula applies to both parts.

  2. Move 2Initial conditions

    Product rule; the 7/t from each logarithm meets the t5:

    y′ = 5t4(c1cos + c2sin) + t4(−7c1sin + 7c2cos)

    y(1) = c1 = 2     y′(1) = 5c1 + 7c2 = 17 ⇒ c2 = 1

    y(t) = t5(2cos(7 ln t) + sin(7 ln t))

    General pattern for this case: y′(1) = αc1 + βc2. Worth knowing, but derive it on the page.

10Nonhomogeneous · RESONANCEy(t)

t2y″ − 6y = −15t−2,   y(1) = 3, y′(1) = 17. Given: yh = c1t−2 + c2t3.

What you're solving for

The complete IVP solution. Look at the right side against the given yh: the forcing is t−2 and t−2 is already a homogeneous solution. That's the Cauchy–Euler version of resonance, and the guess needs a ln t.

  1. Move 1Spot the collision

    P(m) = m(m−1) − 6 = m2 − m − 6 = (m−3)(m+2)

    Roots 3, −2 — consistent with the given yh. Right side exponent r = −2, which is a root. So P(−2) = 0 and the plain guess At−2 would give 0 = −15t−2 — impossible.

  2. Move 2Use the simple-root formula

    P′(m) = 2m − 1 ⇒ P′(−2) = −5

    yp = −15−5t−2ln t = 3t−2ln t

    y = c1t−2 + c2t3 + 3t−2ln t

  3. Move 3Initial conditions — on the COMPLETE solution

    y′ = −2c1t−3 + 3c2t2 + 3(−2t−3ln t + t−3)

    At t = 1, with ln 1 = 0:

    y(1) = c1 + c2 = 3

    y′(1) = −2c1 + 3c2 + 3 = 17 ⇒ −2c1 + 3c2 = 14

    Substituting c1 = 3 − c2: −6 + 2c2 + 3c2 = 5c2 − 6 = 14.

    c2 = 4,   c1 = −1

    y(t) = −t−2 + 4t3 + 3t−2ln t

Watch for — two traps, and I walked into the second one

(1) Guessing At−2 without the ln t. Always compare the right side's exponent against the roots first.

(2) When fitting y(1) = 3, remember that c2t3 contributes c2 at t=1 — every term does. I first wrote c1 = 3 as though only the first term survived, and got the wrong constants. The substitution check caught it immediately. Write out all three terms at t = 1 before setting anything equal.

11Nonhomogeneous · fractional powery(t)

t2y″ + 4ty′ − 10y = −66t1/2,   y(1) = 4, y′(1) = 3. Given: yh = c1t−5 + c2t2.

  1. Move 1Confirm the roots, then test r

    P(m) = m(m−1) + 4m − 10 = m2 + 3m − 10 = (m+5)(m−2)

    Roots −5, 2 — matches the given yh. Right side exponent r = 1/2, not a root, so no ln t this time.

  2. Move 2Particular

    P(1/2) = 14 + 32 − 10 = −334

    yp = −66−33/4t1/2 = 8t1/2

    Dividing by a fraction: −66 ÷ (−33/4) = 66 · 4/33 = 8.

  3. Move 3Initial conditions — all three terms

    y = c1t−5 + c2t2 + 8t1/2

    y′ = −5c1t−6 + 2c2t + 4t−1/2

    y(1) = c1 + c2 + 8 = 4 ⇒ c1 + c2 = −4

    y′(1) = −5c1 + 2c2 + 4 = 3 ⇒ −5c1 + 2c2 = −1

    Substituting c2 = −4 − c1: −5c1 − 8 − 2c1 = −7c1 − 8 = −1.

    c1 = −1,   c2 = −3

    y(t) = −t−5 − 3t2 + 8t1/2

    Check: −1 − 3 + 8 = 4 ✓, 5 − 6 + 4 = 3 ✓. Both the ODE and the conditions verified symbolically.

What to carry out of the §4.7 homework

§4.8 · Systems by Elimination

The method

Two unknown functions of the same variable, two equations. Operator notation turns the system into something you can do ordinary algebra on — multiply an equation by D, add, subtract, eliminate. Exactly like solving two linear equations in two unknowns, except the "numbers" multiplying the unknowns are operators.

  1. All dependent variables to one side. Both x and y terms on the left, constants and forcing on the right.
  2. Rewrite in operator notation. x′ → Dx, y″ → D2y.
  3. Eliminate one variable by multiplying one equation by whatever operator makes the two match, then subtracting.
  4. Solve the resulting single equation by §4.5 annihilation — it is a one-variable problem now.
  5. Repeat for the other variable.
  6. Reconcile the constants. You will have produced too many. Substitute both solutions back into the original system to pin the extras down — particular constants first, then homogeneous.

Step 6 is the one students skip, and it is where the marks are. Solving each variable separately gives c1, c2 for y and c4, c5 for x — four constants for a system that can only have two independent ones. The original equations are what tie them together. An answer with four free constants is wrong even if both halves individually satisfy their own derived equation.

4 §4.8 · two first-order equations x(t) and y(t)

Solve dxdt − 4y = 1,   dydt + x = 2.

What you're solving for

Two functions, x(t) and y(t), expressed with the same two arbitrary constants. Finishing with four independent constants means the job is not done.

  1. Move 1Operator form

    Dx − 4y = 1

    Dy + x = 2

  2. Move 2Eliminate x

    Apply D to the second equation so its x becomes Dx, matching the first. Note D(constant) = 0, so the right side becomes 0.

    D2y + Dx = 0

    Subtract the first equation from this:

    D2y + 4y = −1

  3. Move 3Annihilate and solve

    The right side is a constant, annihilated by D:

    D(D2 + 4)y = 0 ⇒ m = ±2i, 0

    y = c1cos 2t + c2sin 2t + c3

    The ±2i pair is yg; the root 0 is the new one from the annihilator, giving the constant c3 as yp.

  4. Move 4Repeat for x

    Apply D to the first, multiply the second by 4, add:

    D2x − 4Dy = 0

    4Dy + 4x = 8

    D2x + 4x = 8

    x = c4cos 2t + c5sin 2t + c6

    Same operator D2 + 4 both times. That always happens — both variables obey the same characteristic equation, since it comes from the system as a whole.

  5. Move 5Pin the particular constants

    Set xp = c6, yp = c3, both constant so both derivatives vanish, and substitute into the original system:

    0 − 4c3 = 1 ⇒ c3 = −14

    0 + c6 = 2 ⇒ c6 = 2

  6. Move 6Tie the homogeneous constants together

    Now put the oscillating parts into the homogeneous system x′ − 4y = 0, y′ + x = 0, and match the cos and sin coefficients separately:

    −2c4sin 2t + 2c5cos 2t − 4c1cos 2t − 4c2sin 2t = 0

    cos: 2c5 − 4c1 = 0 ⇒ c5 = 2c1

    sin: −2c4 − 4c2 = 0 ⇒ c4 = −2c2

    x(t) = −2c2cos 2t + 2c1sin 2t + 2

    y(t) = c1cos 2t + c2sin 2t − 14

    Four constants collapsed to two, as they must for a first-order system of size two.

How to know how many constants you should end with

Count the total order of the system: two first-order equations → two constants. Two second-order equations → four. If your answer has more than that, you have not finished step 6; if it has fewer, you lost a solution somewhere.

Verification is cheap and worth doing. Substitute both answers into both original equations. Here x′ = 4c2sin 2t + 4c1cos 2t, and x′ − 4y collapses term by term to exactly 1. If the constants were not properly tied, this would leave leftovers.

§4.8 · Classwork set (two systems)

Read this first: what elimination actually does, and the trap it sets

You have two (or three) unknown functions tangled together. Elimination untangles them by producing one single-variable equation you already know how to solve. That part is algebra you've done since high school. The part that is genuinely new — and the part the procedure doesn't warn you about — is what happens to the arbitrary constants afterwards.

The trap, stated plainly. Eliminate to get x, and you get a general solution with some constants. Eliminate again to get y, and you get another general solution with new constants. It looks like you're finished. You are not. Those two sets of constants are not independent — the original system ties them together. If you stop here you will have written down a family of functions that mostly do not solve the system.

Problem 1 produces six symbols (c1 through c6) but only two are free. Problem 2 produces nine but only three are free. Step 6 of the professor's procedure — "substitute your solution forms into the system to solve for your constant coefficients" — is where that gets fixed, and it is not optional.

Two facts make the whole section predictable, and neither is stated in the notes:

  1. Every variable satisfies the same homogeneous equation. Write the system in operator form and take the determinant of the coefficient matrix. That single operator annihilates x, y and z alike. So you never have to guess what form the other variables take — compute the determinant once and every variable is built from the same root list.
  2. The number of free constants is the degree of that determinant. Problem 1's determinant is degree 2 → two free constants. Problem 2's is degree 3 → three. This is your count check before you start reconciling, and it tells you how many symbols should survive.

The shortcut that avoids reconciliation altogether. Eliminate once to get one variable in full. Then get the others by back-substituting into an original equation, which is usually a one-line rearrangement. In Problem 1, once you have y, the second equation gives x = 2 − y′ — no new constants, nothing to reconcile, no chance of carrying an illegal combination. Show the professor's route on graded work since it's what the steps ask for, but use back-substitution as your check: if the two routes disagree, you made a reconciliation error.

The professor's six steps, annotated

  1. Move every dependent variable to the same side. Both unknown functions and all their derivatives go left; pure constants and functions of t go right. dx/dt = −x + z becomes x′ + x − z = 0.
  2. Rewrite in D notation. x′ → Dx, y″ → D2y. Then factor each variable out: Dx + x = (D+1)x. This is what makes the next step look like ordinary algebra.
  3. Eliminate one variable. Multiply whole equations by operators or numbers so one variable's coefficients match, then add or subtract. Multiplying by D means differentiating every term of that equation — including the right side.
  4. Solve the single remaining equation. Auxiliary equation if the right side is 0; annihilator (§4.5) if it isn't. The professor's write-up uses the annihilator route, which folds yp into the root list instead of guessing it separately.
  5. Repeat for the other variables. Or — see the callout above — back-substitute instead, which is faster and safer.
  6. Reconcile the constants. Substitute every solution form back into the original system and match coefficients. The professor splits this into two passes using superposition: particular constants first, then homogeneous ones. That split is what keeps the algebra small.

Steps 1 and 2 feel like busywork. They are not: writing (D+1)x instead of x′ + x is exactly what lets you treat D as a number you can multiply equations by, which is the entire method.

12×2 system · nonhomogeneousx(t) and y(t)

Solve   dxdt − 4y = 1,   dydt + x = 2.

What you're solving for

Two functions, x(t) and y(t), that satisfy both equations simultaneously — not two separate problems. The system is first-order in each variable, total order 2, so the final answer carries exactly two arbitrary constants between them. This is the example worked in the professor's write-up; the version below adds the checks and fills in the lines he compresses.

  1. Move 1Steps 1–2: operator form

    Dependent variables already on the left. Translate the derivatives:

    x′ − 4y = 1  →  Dx − 4y = 1

    y′ + x = 2  →  Dy + x = 2

    Count check before doing anything. The coefficient matrix is

    xy=
    eq 1D−41
    eq 21D2

    det = (D)(D) − (−4)(1) = D2 + 4

    Degree 2 ⇒ two free constants in the final answer, and both x and y will be built from the roots of D2 + 4. Knowing this now means nothing downstream can surprise you.

  2. Move 2Step 3: eliminate x

    To cancel x, multiply the second equation by D so its x-term becomes Dx, matching equation 1.

    (Dy + x = 2) · D  →  D2y + Dx = 0

    Why the right side became 0. Multiplying by D means differentiating the whole equation. The derivative of the constant 2 is 0. Forgetting to differentiate the right side — leaving a 2 there — is the most common slip in step 3.

    Now subtract to kill Dx:

    Dx − 4y = 1

    −(D2y + Dx = 0)

    −D2y − 4y = 1

  3. Move 3Step 4: solve for y

    Multiply through by −1 and factor:

    D2y + 4y = −1  ⇒  (D2 + 4)y = −1

    Annihilator route (§4.5). The right side is the constant −1, a degree-0 polynomial, annihilated by D. Apply it to both sides:

    D(D2 + 4)y = 0  ⇒  m = ±2i, 0

    The ±2i came from the original operator → that's yg. The m = 0 came from the annihilator → that's the form of yp, a constant.

    y = c1cos 2t + c2sin 2t + c3

    Equivalently, undetermined coefficients: guess yp = c3, get 0 + 4c3 = −1, so c3 = −¼ immediately. Same answer, one line shorter.

  4. Move 4Step 5: eliminate y

    Multiply equation 1 by D and equation 2 by 4, so both have 4Dy:

    (Dx − 4y = 1)·D  →  D2x − 4Dy = 0

    (Dy + x = 2)·4  →  4Dy + 4x = 8

    Add. Note the right sides: D on equation 1 killed the 1; multiplying by the number 4 does not kill the 2, it scales it to 8.

    D2x + 4x = 8  ⇒  (D2 + 4)x = 8

    D(D2 + 4)x = 0  ⇒  m = ±2i, 0

    x = c4cos 2t + c5sin 2t + c6

    Same roots as y — exactly as the determinant D2+4 predicted in Move 1. Six symbols now exist. Only two are free.

  5. Move 5Step 6i: reconcile the particular constants

    Superposition lets you handle the two halves separately. Take the constant parts alone: xp = c6, yp = c3, so xp′ = yp′ = 0, and substitute into the full system:

    xp′ − 4yp = 1  ⇒  0 − 4c3 = 1

    yp′ + xp = 2  ⇒  0 + c6 = 2

    c3 = −14,   c6 = 2

  6. Move 6Step 6ii: reconcile the homogeneous constants

    Now the trig parts alone, against the homogeneous system (right sides 0):

    xg = c4cos 2t + c5sin 2t  ⇒  xg′ = −2c4sin 2t + 2c5cos 2t

    yg = c1cos 2t + c2sin 2t  ⇒  yg′ = −2c1sin 2t + 2c2cos 2t

    First equation, xg′ − 4yg = 0:

    −2c4sin 2t + 2c5cos 2t − 4c1cos 2t − 4c2sin 2t = 0

    Group and set each coefficient to zero separately — cos 2t and sin 2t are independent functions:

    groupingequationgives
    cos 2t2c₅ − 4c₁ = 0c₅ = 2c₁
    sin 2t−2c₄ − 4c₂ = 0c₄ = −2c₂

    Second equation, yg′ + xg = 0:

    −2c1sin 2t + 2c2cos 2t + c4cos 2t + c5sin 2t = 0

    groupingequationgives
    cos 2t2c₂ + c₄ = 0c₄ = −2c₂
    sin 2t−2c₁ + c₅ = 0c₅ = 2c₁

    The second equation gave nothing new — the same two relations. That is the expected outcome and it is your confirmation that the reconciliation is right. Four symbols, two independent relations, two survivors: exactly the count the determinant predicted.

    A typo to watch for in the write-up. The notes display this equation as yg′ − xg = 0, but the original second equation is y′ + x = 2, so the homogeneous version is yg′ + xg = 0. The line underneath it in the notes does use the plus sign, and the final answer is correct — so it's a transcription slip, not a method error. Use the plus.

  7. Move 7Write the answer in terms of c₁ and c₂

    Substitute c4 = −2c2, c5 = 2c1, c6 = 2, c3 = −¼:

    x(t) = −2c2cos 2t + 2c1sin 2t + 2

    y(t) = c1cos 2t + c2sin 2t − 14

  8. Move 8Check — and the shortcut

    Verify in both original equations.

    x′ = 4c2sin 2t + 4c1cos 2t

    x′ − 4y = 4c2sin 2t + 4c1cos 2t − 4c1cos 2t − 4c2sin 2t + 1 = 1 ✓

    y′ + x = (−2c1sin 2t + 2c2cos 2t) + (−2c2cos 2t + 2c1sin 2t + 2) = 2 ✓

    The one-line shortcut. Once y is known, the second original equation y′ + x = 2 rearranges to x = 2 − y′:

    x = 2 − (−2c1sin 2t + 2c2cos 2t) = 2 + 2c1sin 2t − 2c2cos 2t

    Identical, in one line, with no second elimination and no reconciliation at all — because c4, c5, c6 were never introduced. Moves 4 through 7 exist only because the procedure eliminates twice. Show the long route if the question asks for the method; run this as your check every time.

Watch for

Stopping after Move 5 and reporting six independent constants. That answer is wrong for almost every choice of the six: pick c1 = 1 with c5 = 0 and the first equation fails outright. A system of total order 2 has exactly two degrees of freedom, no matter how many symbols the algebra produced along the way.

23×3 system · repeated rootx(t), y(t), z(t)

Solve   dxdt = −x + z,   dydt = −y + z,   dzdt = −x + y.

What you're solving for

Three functions satisfying all three equations at once. Everything is homogeneous — all right sides are 0 — so there is no yp and no annihilator step. Total order 3, so expect exactly three free constants across all three functions combined.

  1. Move 1Steps 1–2: operator form

    Move everything left, then factor each variable out of its own terms:

    x′ + x − z = 0  →  (D+1)x − z = 0

    y′ + y − z = 0  →  (D+1)y − z = 0

    z′ + x − y = 0  →  x − y + Dz = 0

    Dx + x = (D+1)x is the same factoring you'd do with a number: 3a + a = 4a. Treat D as an algebraic object.

  2. Move 2Count check: the operator determinant
    xyz
    eq 1D+10−1
    eq 20D+1−1
    eq 31−1D

    Cofactor expansion along the top row — same mechanics as a 3×3 Wronskian, operators in place of functions:

    det = (D+1) [(D+1)D − (−1)(−1)] − 0 + (−1) [0·(−1) − (D+1)(1)]

    = (D+1)(D2 + D − 1) + (D+1)

    Factor the common (D+1):

    = (D+1)(D2 + D − 1 + 1) = (D+1)(D2 + D) = (D+1)·D·(D+1)

    det = D(D+1)2  ⇒  m = 0, −1, −1

    Degree 3 ⇒ three free constants. The root −1 is repeated, so a te−t term must appear. Every one of x, y, z is built from the same list:

    constant  ·  e−t  ·  te−t

    Doing this determinant first tells you the shape of all three answers before you eliminate anything. If your final z contains a function not on this list, you've made an error.

  3. Move 3Step 3: eliminate down to one variable

    Equations 1 and 2 both equal z. Subtract them — the cheapest elimination available:

    (D+1)x − (D+1)y = 0  ⇒  (D+1)(x − y) = 0

    Let u = x − y. Then u′ + u = 0, a first-order equation with m = −1:

    x − y = Ce−t

    Now feed that straight into equation 3, since its left side contains exactly x − y:

    z′ = −(x − y) = −Ce−t

    Integrate directly:

    z = Ce−t + A

    Two of the three constants are already pinned down, and no determinant-sized elimination was needed. Looking for a structural cancellation before grinding is worth thirty seconds on any system.

  4. Move 4Step 4: solve for x

    Equation 1 now has a known right side:

    x′ + x = z = Ce−t + A

    First-order linear — integrating factor et:

    (etx)′ = et(Ce−t + A) = C + Aet

    etx = Ct + Aet + B

    x = A + Be−t + Cte−t

    There is the te−t, and here is where it came from. The right side contained Ce−t, and e−t already solves the homogeneous equation x′ + x = 0 — so the integrating factor turned it into ∫C dt = Ct. This is the §4.4 multiplicity bump showing up in first-order clothing, and it matches the repeated root m = −1 that the determinant predicted in Move 2.

  5. Move 5Step 5: back-substitute for y

    No second elimination needed — use y = x − Ce−t from Move 3:

    y = A + Be−t + Cte−t − Ce−t

    y = A + (B − C)e−t + Cte−t

    Because every variable came from one chain of substitutions, step 6 is already done — there are no stray constants to reconcile. Three symbols, three degrees of freedom, matching the determinant.

  6. Move 6The full answer

    x(t) = A + Be−t + Cte−t

    y(t) = A + (B − C)e−t + Cte−t

    z(t) = A + Ce−t

    Three patterns worth noticing, each a free check: the same constant A leads all three (the m = 0 root contributes equally to every variable); z has no te−t term; and x − y = Ce−t exactly, as Move 3 required.

  7. Move 7Check all three equations

    x′ = −Be−t + C(e−t − te−t)

    −x + z = −A − Be−t − Cte−t + A + Ce−t = −Be−t + Ce−t − Cte−t ✓

    y′ = −(B−C)e−t + Ce−t − Cte−t = −y + z ✓

    z′ = −Ce−t    and    −x + y = −Ce−t ✓

    All three verified symbolically for arbitrary A, B, C. The eigenvalues of the coefficient matrix are 0, −1, −1, and −1 has only a one-dimensional eigenspace — which is the linear-algebra statement of why the te−t term is genuinely required and not an artifact of the method.

Watch for

Writing z with its own fresh constants, say z = a + be−t + cte−t, and never reconciling. Equation 1 forces c = 0 and ties a and b to x's constants. Nine symbols, six relations, three survivors — and if you skip the step, eight of your nine "solutions" don't solve the system.

What to carry out of the §4.8 classwork

§4.8 · Homework set (eight problems)

The recipe — five of these problems are the same problem

Problems 1–5 are all x′ = ax + by, y′ = cx + dy with initial conditions. Learn one sequence and you have all five.

  1. Write the characteristic equation straight off the coefficients. m2 − (a+d)m + (ad − bc) = 0 This is the determinant of the operator matrix (D−a)(D−d) − bc, already expanded. Its two roots are the only exponentials that can appear — in both x and y.
  2. For each root, the direction is (b, m − a). That pair tells you the ratio of the x-part to the y-part for that exponential. Derivation: the first equation forces (a−m)v1 + bv2 = 0, which (b, m−a) satisfies. Scale it to whatever is tidiest.
  3. Assemble. x = k1b em1t + k2b em2t,   y = k1(m1−a)em1t + k2(m2−a)em2t
  4. Set t = 0 and solve two equations in two unknowns. Both exponentials become 1, so this is ordinary algebra.

Two routes, and when to use which. The recipe above is the eigenvalue route. The §4.8 elimination route — operator form, eliminate, solve, reconcile — is what the chapter teaches and what a written exam will want to see. They give identical answers. On an online box, where only the final answer is graded, use the recipe; on paper, show elimination and use the recipe as your check. Problem 1 below is worked both ways so you can see them land in the same place.

And the shortcut inside the elimination route: once you have x, get y by rearranging the first original equation — y = (x′ − ax)/b. No second elimination, no new constants, nothing to reconcile. This is where most §4.8 points are lost, and this move avoids the whole thing.

12×2 IVP · also Question 5x(t) and y(t)

dxdt = −2x − 2y,   dydt = −2x + y,   x(0) = 0, y(0) = 1.

What you're solving for

Two specific functions, no arbitrary constants left. Questions 1 and 5 are the identical system — same answer in both. Total order 2, so two constants get fitted and both disappear.

  1. Route AElimination (the §4.8 way)

    Operator form — everything left, factor each variable:

    (D+2)x + 2y = 0     2x + (D−1)y = 0

    Determinant of the coefficient matrix:

    (D+2)(D−1) − (2)(2) = D2 + D − 2 − 4 = D2 + D − 6

    m2 + m − 6 = (m+3)(m−2) = 0 ⇒ m = 2, −3

    Degree 2 ⇒ two free constants. Solve for x:

    x = k1e2t + k2e−3t

    Back-substitute instead of eliminating again. From x′ = −2x − 2y:

    y = −x′ − 2x2

    x′ = 2k1e2t − 3k2e−3t

    −x′ − 2x = −4k1e2t + k2e−3t

    y = −2k1e2t + 12k2e−3t

  2. Route BThe recipe (check)

    a = −2, b = −2, c = −2, d = 1. Characteristic equation straight from the coefficients:

    m2 − (−2+1)m + ((−2)(1) − (−2)(−2)) = m2 + m − 6

    Same equation. Directions (b, m−a):

    root(b, m − a)scaled
    m = 2(−2, 4)(1, −2)
    m = −3(−2, −1)(2, 1)

    x = c1e2t + 2c2e−3t,    y = −2c1e2t + c2e−3t

    Identical family to Route A — set c1 = k1, c2 = k2/2. Route B is faster to write; Route A is what a grader wants to see on paper.

  3. Move 3Apply the initial conditions

    Set t = 0 in the Route B form; every exponential becomes 1:

    x(0) = c1 + 2c2 = 0

    y(0) = −2c1 + c2 = 1

    First gives c1 = −2c2. Substituting: 4c2 + c2 = 5c2 = 1.

    c2 = 15,   c1 = −25

  4. Move 4Answer and check

    x(t) = −25e2t + 25e−3t

    y(t) = 45e2t + 15e−3t

    Check the ICs first — cheapest test available: x(0) = −2/5 + 2/5 = 0 ✓, y(0) = 4/5 + 1/5 = 1 ✓

    Both ODEs also verified symbolically. Entry: (-2/5)e^(2t)+(2/5)e^(-3t) and (4/5)e^(2t)+(1/5)e^(-3t) — parenthesise every fraction.

2Triangular system · decoupledx(t) and y(t)

x′ = x − 12y,   y′ = 0x − 2y,   x(0) = 6, y(0) = 1.

What you're solving for

Same shape as Problem 1, but look at the 0x. The second equation doesn't involve x at all, so y can be solved by itself and then fed into the first. No elimination needed at all.

  1. Move 1Solve y alone

    y′ = −2y ⇒ y = Ke−2t

    Apply its own initial condition immediately: y(0) = K = 1.

    y(t) = e−2t

  2. Move 2Feed it into the first equation

    x′ − x = −12y = −12e−2t

    First-order linear; integrating factor μ = e−t:

    (e−tx)′ = −12e−3t

    e−tx = 4e−3t + C

    Multiply through by et — every term, including the constant:

    x = 4e−2t + Cet

    x(0) = 4 + C = 6 ⇒ C = 2.

    x(t) = 2et + 4e−2t

  3. Move 3Cross-check against the recipe

    a=1, b=−12, c=0, d=−2: m2 + m − 2 = (m−1)(m+2), roots 1, −2. Matches the two exponentials above.

    A zero in the coefficient matrix always means one variable decouples. Spot it and you skip the determinant entirely. Verified symbolically; x(0)=6, y(0)=1 ✓

32×2 IVPx(t) and y(t)

x′ = x − 12y,   y′ = 2x − 9y,   x(0) = 3, y(0) = 2.

  1. Move 1Characteristic equation

    a=1, b=−12, c=2, d=−9. Trace = −8, determinant = (1)(−9) − (−12)(2) = −9 + 24 = 15.

    m2 − (−8)m + 15 = m2 + 8m + 15 = (m+3)(m+5)

    m = −3, −5

    The determinant ad − bc has two minus signs to track: −(−12)(2) = +24. Lose one and the roots come out wrong with no warning.

  2. Move 2Directions and assembly
    root(b, m − a)scaled
    m = −3(−12, −4)(3, 1)
    m = −5(−12, −6)(2, 1)

    x = 3c1e−3t + 2c2e−5t,    y = c1e−3t + c2e−5t

  3. Move 3Initial conditions

    3c1 + 2c2 = 3     c1 + c2 = 2

    From the second, c1 = 2 − c2. Substituting: 6 − 3c2 + 2c2 = 6 − c2 = 3.

    c2 = 3,   c1 = −1

    x(t) = −3e−3t + 6e−5t

    y(t) = −e−3t + 3e−5t

    Check: x(0) = −3+6 = 3 ✓, y(0) = −1+3 = 2 ✓. Both ODEs verified symbolically.

42×2 IVP · degenerate initial conditionx₁(t) and x₂(t)

x1′ = −11x1 + 42x2,   x2′ = −4x1 + 15x2,   x1(0) = −9, x2(0) = −3.

  1. Move 1Characteristic equation

    Trace = −11 + 15 = 4. Determinant = (−11)(15) − (42)(−4) = −165 + 168 = 3.

    m2 − 4m + 3 = (m−1)(m−3) ⇒ m = 1, 3

  2. Move 2Directions and assembly
    root(b, m − a)scaled
    m = 1(42, 12)(7, 2)
    m = 3(42, 14)(3, 1)

    x1 = 7c1et + 3c2e3t,    x2 = 2c1et + c2e3t

  3. Move 3Initial conditions — and a surprise

    7c1 + 3c2 = −9     2c1 + c2 = −3

    From the second, c2 = −3 − 2c1. Substituting into the first:

    7c1 − 9 − 6c1 = c1 − 9 = −9 ⇒ c1 = 0

    c1 = 0,   c2 = −3

    x1(t) = −9e3t,    x2(t) = −3e3t

    One exponential each — and that is correct. The initial condition (−9, −3) is exactly −3 times the direction (3, 1) belonging to m = 3. Start a system on one of its special directions and it stays there forever — the other exponential never switches on.

    If you got two terms, you made an arithmetic error in the constants. c1 = 0 looks like a mistake and isn't.

    Check: x1′ = −27e3t and −11(−9) + 42(−3) = 99 − 126 = −27 ✓

6Guided · operator notationthree parts

dxdt = 2x − 3y,   dydt = 6x − 7y. No initial conditions — general solution with c1, c2.

What you're solving for

This one walks you through the elimination route explicitly. The boxes have the shape ( )x + ( )y = 0, so everything must be moved to the left before you can fill them in.

  1. Part 1Operator notation

    Move the right-hand side across, then factor each variable out of its own terms.

    x′ − 2x + 3y = 0  →  (D−2)x + (3)y = 0

    y′ − 6x + 7y = 0  →  (−6)x + (D+7)y = 0

    The D always lands with the variable whose derivative it is: D with x in row 1, with y in row 2. The signs flip because the terms crossed the equals sign.

  2. Part 2Eliminate y

    Operator-matrix determinant — top-left times bottom-right, minus the off-diagonal product:

    (D−2)(D+7) − (3)(−6) = D2 + 5D − 14 + 18

    (D2 + 5D + 4)x = 0

    Watch the double negative: −(3)(−6) = +18, which turns −14 into +4. Getting −32 here is the standard slip.

  3. Part 3General solution

    m2 + 5m + 4 = (m+1)(m+4) ⇒ m = −1, −4

    x = c1e−t + c2e−4t

    Back-substitute from the first original equation, x′ = 2x − 3y, rearranged:

    y = 2x − x′3

    x′ = −c1e−t − 4c2e−4t

    2x − x′ = 3c1e−t + 6c2e−4t

    x(t) = c1e−t + c2e−4t

    y(t) = c1e−t + 2c2e−4t

    Verify in the OTHER equation — the one you didn't use. y′ = −c1e−t − 8c2e−4t, and 6x − 7y = (6−7)c1e−t + (6−14)c2e−4t — same thing ✓

    That cross-check is free and catches a bad back-substitution instantly. Make it the habit on every system problem.

7Guided · 3×3 systemthree parts

x′ = −x + 3y − 3z,   y′ = 2x + 0y − 3z,   z′ = 3x − 3y − z.

  1. Part 1Operator notation

    Same move three times: everything left, factor each variable.

    (D+1)x + (−3)y + (3)z = 0

    (−2)x + (D)y + (3)z = 0

    (−3)x + (3)y + (D+1)z = 0

    Row 2's y-coefficient is just D, because the printed 0y contributes nothing. Type D, not D+0.

  2. Part 2The 3×3 determinant
    xyz
    eq 1D+1−33
    eq 2−2D3
    eq 3−33D+1

    Cofactor expansion along the top row, signs + − +:

    = (D+1)[D(D+1) − 9] − (−3)[(−2)(D+1) − 3(−3)] + 3[(−2)(3) − D(−3)]

    = (D+1)(D2+D−9) + 3(−2D+7) + 3(3D−6)

    = (D3 + 2D2 − 8D − 9) + (−6D + 21) + (9D − 18)

    (D3 + 2D2 − 5D − 6)x = 0

    Degree 3 ⇒ three free constants, and every one of x, y, z is built from the same roots.

  3. Part 3aFactor the cubic

    Rational root test: any integer root divides the constant −6, so try ±1, ±2, ±3, ±6.

    m = 2:   8 + 8 − 10 − 6 = 0  ✓

    Divide out (m−2):

    m3 + 2m2 − 5m − 6 = (m−2)(m2 + 4m + 3) = (m−2)(m+1)(m+3)

    m = 2, −1, −3

  4. Part 3bFind the direction for each root

    For each m, substitute into the system and solve for the ratio (x:y:z). Using the coefficient matrix A and solving (A − mI)v = 0:

    m = 2: rows give a − b + c = 0 and 2a − 2b − 3c = 0. Substituting a = b − c into the second gives −5c = 0, so c = 0 and a = b.

    ⇒ (1, 1, 0)

    m = −1: rows give b = c and a = b.

    ⇒ (1, 1, 1)

    m = −3: 2a + 3b − 3c = 0 and 3a − 3b + 2c = 0 give c = 5a, b = 13a/3; take a = 3.

    ⇒ (3, 13, 15)

  5. Part 3cAssemble

    x(t) = c1e2t + c2e−t + 3c3e−3t

    y(t) = c1e2t + c2e−t + 13c3e−3t

    z(t) = c2e−t + 15c3e−3t

    z has no e2t term. The direction for m = 2 is (1,1,0) — its third entry is zero, so that exponential contributes nothing to z. A missing term is not a missing step.

    All three equations verified symbolically for arbitrary c1, c2, c3. If the grader rejects, try permuting which constant rides which root — the family is the same either way.

8Application · projectile, 8 boxeswith and without drag

A projectile of weight w = mg launched from (0,0) with initial velocity components vx0 and vy0. First with gravity alone; then with a drag force cv opposing the motion.

What you're solving for

Newton's second law applied separately in each direction, giving two independent second-order equations — a system only in the sense that there are two of them. Nothing couples x to y here, which is exactly why the problem is tractable.

  1. Part ANo air resistance (boxes 1–4)

    The only force is weight, pointing straight down. Horizontally there is no force at all.

    horizontal: mx″ = 0  ⇒  x″(t) = 0

    vertical: my″ = −mg  ⇒  y″(t) = −g

    The mass cancels in the vertical equation — that is why all projectiles fall alike. Now integrate twice, applying x(0) = y(0) = 0 and the initial velocities:

    x′ = vx0  ⇒  x(t) = vx0t

    y′ = −gt + vy0  ⇒  y(t) = −12gt2 + vy0t

    Both constants of integration are zero only because the launch point is the origin. Don't assume that on a problem that starts elsewhere.

  2. Part BWith drag (boxes 5–6)

    Drag has magnitude cv and points opposite the velocity, so each component gets a term proportional to that component's velocity, with a minus sign:

    horizontal: mx″ = −cvx  ⇒  x″(t) = −cmvx

    vertical: my″ = −mg − cvy  ⇒  y″(t) = −g − cmvy

    Resolving the drag vector is the conceptual step. A force of magnitude cv along the velocity direction has components cv·cosθ = cvx and cv·sinθ = cvy — the trig cancels out and you are left with the components themselves.

  3. Part BHorizontal position (box 7)

    In terms of vx it is first-order and separable:

    vx′ = −cmvx  ⇒  vx = vx0e−ct/m

    Integrate once more, with x(0) = 0:

    x = −mvx0ce−ct/m + K,    K = mvx0c

    x(t) = mvx0c(1 − e−ct/m)

    As t → ∞ this approaches mvx0/c — with drag the projectile has a finite maximum horizontal reach, which is the physical sanity check.

  4. Part BVertical position (box 8)

    This one is linear, not separable — the constant −g blocks separation:

    vy′ + cmvy = −g

    Integrating factor μ = ect/m:

    (ect/mvy)′ = −gect/m ⇒ ect/mvy = −gmcect/m + C

    vy = −gmc + (vy0 + gmc)e−ct/m

    Integrate, with y(0) = 0:

    y(t) = −mgct + mc(vy0 + mgc)(1 − e−ct/m)

    Sanity check: vy → −gm/c as t → ∞ — terminal velocity, downward, independent of how it was launched. All four drag results verified symbolically against their ODEs and initial conditions.

Watch for

Two things. (1) Writing drag as −cv in both equations rather than −cvx and −cvy — the question asks for each in terms of its own velocity component. (2) Typing the initial-velocity symbols differently from how the problem spells them. Copy the editor's own notation character for character.

What to carry out of the §4.8 homework

§4.9 · Nonlinear Equations

Everything you have relied on stops working

An equation is nonlinear if y or any of its derivatives appears squared, multiplied by another, or inside a function. Examples: y″ + (y′)2 + 2y = 0, y″ + x + y2 = 8, y″ + yey = 5xy, y′ − cos(y) = 0.

No superposition. Adding two solutions does not give a solution; scaling one does not either. So there is no yg + yp, no auxiliary equation, no Wronskian, no fundamental set. Everything from §4.1 through §4.8 assumed linearity.

Most nonlinear equations have no closed-form solution at all. What this section gives you is two substitutions that work in special cases, plus a series method for when nothing works.

Reduction of order by substitution — two cases

Both set u = y′. Which case you are in is decided by which variable is missing from the equation, and the two cases treat y″ differently.

MissingSubstituteBecause
y is absentu = y′,   y″ = u′u is a function of x; plain chain of derivatives
x is absentu = y′,   y″ = ududyu is a function of y, so y″ = (du/dy)(dy/dx) = u′u

The second case is the one to understand rather than memorize. If x is absent you treat u as a function of y, so differentiating with respect to x needs the chain rule: y″ = dudx = dudy·dydx = dudyu. That extra factor of u is the whole difference between the two cases.

Either way, the result is a first-order equation — separable, linear, or exact — so you are back in Chapter 2. Then integrate once more to recover y.

5 §4.9 · Case I, y missing y(x)

Solve y′y″ = 4x,  y(1) = 5, y′(1) = 2.

What you're solving for

A single function. Nonlinear because y′ and y″ are multiplied together. No y appears, so this is Case I. The initial conditions do real work here — they resolve a ± and rescue an integral that otherwise does not evaluate.

  1. Move 1Substitute

    u = y′,   u′ = y″  ⇒  uu′ = 4x

    ududx = 4x ⇒ u du = 4x dx

  2. Move 2Separate and integrate

    12u2 = 2x2 + c1 ⇒ u2 = 4x2 + c1

    u = ±(4x2 + c1)1/2

  3. Move 3Use the condition NOW, not later

    Integrating √4x2 + c1 in general is unpleasant. But y′(1) = 2 means u(1) = 2:

    2 = ±(4 + c1)1/2 ⇒ 4 = 4 + c1 ⇒ c1 = 0

    With c1 = 0 the radical collapses:

    u = ±(4x2)1/2 = ±2x

    u(1) = 2 is positive, so take u = +2x.

  4. Move 4Integrate back

    y′ = 2x ⇒ y = x2 + c

    y(1) = 5 ⇒ 1 + c = 5 ⇒ c = 4

    y = x2 + 4

    Check: y′ = 2x, y″ = 2, so y′y″ = 4x ✓, y(1) = 5 ✓, y′(1) = 2 ✓.

The move worth stealing

Apply an initial condition as soon as it is usable, not at the end out of habit. On a linear problem it makes no difference. Here it is the difference between a two-line finish and an integral that does not evaluate in elementary terms. Whenever you hit an awkward integral with a constant inside it, stop and check whether a condition pins that constant first.

Keep the ± until something resolves it. A square root introduces two branches; the initial condition picks one. Dropping it early is guessing.

6 §4.9 · Case II, x missing y(x)

Solve (y + 1)y″ = (y′)2.

What you're solving for

A general solution, no conditions given. No x appears anywhere — that is Case II, and it means y″ becomes u·du/dy, with the extra factor of u.

  1. Move 1Substitute

    (y + 1)ududy = u2

    One factor of u cancels from both sides:

    (y + 1)dudy = u

  2. Move 2Separate in y

    The variables here are u and y, not u and x.

    1udu = 1y + 1dy

    ln|u| = ln|y + 1| + c1 ⇒ u = c1(y + 1)

    Exponentiating turns the additive constant into a multiplicative one. Renaming it c1 is standard.

  3. Move 3Separate again, now in x

    dydx = c1(y + 1) ⇒ 1y + 1dy = c1dx

    ln|y + 1| = c1x + c2

    y + 1 = c3ec1x

    y = c3ec1x − 1

Look at that answer

The arbitrary constant c1 sits in the exponent. No linear equation ever does that — there, constants only ever multiply fixed exponentials. It is a clean illustration of why superposition fails: adding two such solutions with different c1 gives something of a completely different shape, not another solution.

One caution on cancelling u. Dividing both sides by u assumes u ≠ 0. The case u = y′ = 0 gives the constant solutions y = const, which satisfy the equation too and are recovered by c3 = 0 or c1 = 0. Worth a sentence if the question asks for all solutions.

7 §4.9 · Taylor series method first terms of y(x)

Find the first several nonzero terms of a Taylor series solution centred at zero for y″ = x2 + y2 − 2y′, y(0) = 1, y′(0) = 1.

What you're solving for

Not a formula — a list of numbers, the derivatives of y at 0, assembled into ∑ y(n)(0)xn/n!. This is the fallback when no substitution works: you never solve the equation, you just extract as many coefficients as you need.

  1. Move 1Seed from the conditions

    y(0) = 1,   y′(0) = 1

    The equation itself gives the next one — just evaluate it at x = 0:

    y″(0) = 02 + 12 − 2(1) = −1

  2. Move 2Differentiate the equation repeatedly

    Each differentiation needs the chain and product rules, because y is a function of x: (y2)′ = 2yy′.

    y′′′ = 2x + 2yy′ − 2y″

    y(4) = 2 + 2(y′)2 + 2yy″ − 2y′′′

    y(5) = 6y′y″ + 2yy′′′ − 2y(4)

    y(6) = 6(y″)2 + 8y′y′′′ + 2yy(4) − 2y(5)

  3. Move 3Evaluate at 0, in order

    Each line uses only values already computed. Keep a running table.

    ny(n)(0)from
    01given
    11given
    2−10 + 1 − 2
    340 + 2(1)(1) − 2(−1)
    4−62 + 2(1) + 2(1)(−1) − 2(4)
    5146(1)(−1) + 2(1)(4) − 2(−6)
    6−26(1) + 8(1)(4) + 2(1)(−6) − 2(14)

    = 6 + 32 − 12 − 28 = −2

  4. Move 4Assemble

    y(x) = 1 + x − 12!x2 + 43!x3 − 64!x4 + 145!x5 − 26!x6

    y(x) = 1 + x − 12x2 + 23x3 − 14x4 + 760x5 − 1360x6 + …

Correction to the course reader

The reader's version of this example gives the last coefficient as −6/6! = −1/120. Working the arithmetic line through: 2y(0)y(4)(0) = 2(1)(−6) = −12, not −16. So the sum is 6 + 32 − 12 − 28 = −2, giving y(6)(0) = −2 and a final term of −x6/360.

I confirmed this by solving the equation as a power series independently: the coefficients come out 1, 1, −1/2, 2/3, −1/4, 7/60, −1/360. Every term matches the reader except the last. Use −1/360, but if your professor grades against the reader, say which you used and why — showing the corrected arithmetic is a stronger answer than silently differing.

Where this method really belongs

You will meet it again in §6.1, applied to linear equations with variable coefficients, where it gives a recurrence relation for the coefficients instead of a hand-computed list. The §4.9 version is the brute-force warm-up: same idea, no machinery.

Chapter 4, end to end

Nine sections, and they stack into one procedure for second-order equations:

Three threads run through all of it. The Wronskian starts as an independence test in §4.1 and comes back as the denominator in §4.6. The three root cases from §4.3 reappear verbatim in §4.7 with xm for emx and ln x for x. And the extra factor on a repeated root — x in §4.3, the multiplicity multiplier in §4.4, the repeated annihilator factor in §4.5, ln x in §4.7 — is one idea wearing four costumes: when two solutions would collide, something has to break the tie.

§4.9 · Classwork set (four problems)

Read this first: why Chapter 4 stops working here

Everything from §4.1 to §4.8 rested on one property — the left side was a linear operator, so L[c1y1 + c2y2] = c1L[y1] + c2L[y2]. That is what licensed the arbitrary constants, the auxiliary equation, and the whole yc + yp split.

Square a y′ and it's gone. (2y′)2 = 4(y′)2, not 2(y′)2. Problem 1 is a demonstration of exactly this — two perfectly good solutions whose sum is not a solution.

So what can you do? Only one trick in this section: reduce the order. Substitute u = y′, turning one second-order equation into two first-order equations solved in sequence. First-order equations you can separate (Ch. 2). That's the whole method.

Two constants, arriving at two different moments. c1 appears when you integrate to find u; c2 appears when you integrate u to find y. If you only have one constant at the end, you skipped an integration.

Case I or Case II — decided by which variable is MISSING

Look at the equation and ask: is there a bare y in it, or a bare x? (Derivatives don't count — y′ is not a "y" for this purpose.)

which is missingsubstitutionsecond derivative becomesyou separate in
Case I: no yu = y′y″ = u′ = du/dxu and x
Case II: no xu = y′y″ = u·du/dyu and y

Where the u du/dy comes from — this is the step nobody writes down.

In Case II there is no x anywhere in the equation, so it is natural to treat u as a function of y rather than of x. But y″ still means du/dx. Chain rule:

y″ = dudx = dudy · dydx = dudy · u

The last step is the only clever bit: dy/dx is u, by definition of the substitution. That is the entire derivation of the professor's "y″ = u′u."

Picking the wrong case doesn't give a wrong answer — it gives an unsolvable mess. Use Case I on an equation with no x and you get du/dx sitting next to a y with no way to separate them. If you can't separate after substituting, you chose the wrong case.

If both x and y are missing (only derivatives appear), either case works — take Case I, it's simpler. If neither is missing, order reduction won't help and the problem needs something outside this course.

1Superposition counterexampleverify, then show the sum fails

Verify that y1 = 1 and y2 = x2 are both solutions of yy″ = ½(y′)2, but y = c1y1 + c2y2 is not.

What you're solving for

Nothing — this is a verification problem, not a solve problem. Three substitutions, no integration. The point is to see superposition fail in your own handwriting, so that you stop reaching for it the moment an equation is nonlinear.

  1. Move 1Verify y₁ = 1

    y1 = 1  ⇒  y1′ = 0,   y1″ = 0

    Check each side of yy″ = ½(y′)2 separately, then compare:

    left: y1y1″ = (1)(0) = 0     right: ½(0)2 = 0    ✓

  2. Move 2Verify y₂ = x²

    y2 = x2  ⇒  y2′ = 2x,   y2″ = 2

    left: y2y2″ = (x2)(2) = 2x2

    right: ½(2x)2 = ½(4x2) = 2x2    ✓

    Square the whole thing: (2x)2 = 4x2, not 2x2. That squaring is exactly what will break superposition in the next move.

  3. Move 3Test the combination

    y = c1 + c2x2  ⇒  y′ = 2c2x,   y″ = 2c2

    Left side — distribute carefully:

    yy″ = (c1 + c2x2)(2c2) = 2c1c2 + 2c22x2

    Right side:

    ½(y′)2 = ½(2c2x)2 = ½(4c22x2) = 2c22x2

    Subtract:

    left − right = 2c1c2

    The x2 terms match perfectly. What survives is a cross term 2c1c2, which is zero only when c1 = 0 or c2 = 0 — that is, only when you aren't actually combining the two solutions.

  4. Move 4Name a concrete failure

    A general argument is fine, but a single counterexample is airtight. Take c1 = c2 = 1, so y = 1 + x2:

    left: (1 + x2)(2) = 2 + 2x2

    right: ½(2x)2 = 2x2

    2 + 2x2 ≠ 2x2   (off by 2, for every x)

  5. Move 5Why — say it in one sentence

    The culprit is the product yy″ and the square (y′)2. Substituting a sum into a product produces cross terms that no single solution contributes:

    (a + b)(c + d) = ac + bd + ad + bc

    For a linear operator those cross terms cannot arise, which is precisely why superposition works in §4.1–§4.8 and dies here.

    Worth stating on the exam: “The equation is nonlinear because of the yy″ product and the (y′)2 term, so the superposition principle does not apply. Substituting the combination leaves a residual cross term 2c1c2, nonzero whenever both constants are nonzero.” That sentence is the answer; the algebra is the evidence.

Watch for

Verifying the two pieces and declaring victory. The question has three parts, and the third — showing the combination fails — carries the point. Also: don't argue “it isn't a solution because the equation is nonlinear.” That's the reason, not the proof. Substitute and exhibit the leftover.

2Case II · x missinggeneral solution

Solve (y + 1)y″ = (y′)2 using the substitution u = y′.

What you're solving for

y(x), with two arbitrary constants. Decide the case first: scan the equation for a bare x — there is none. So this is Case II, and y″ becomes u du/dy. This is the second worked example in the professor's write-up; below it is filled in with the steps he compresses.

  1. Move 1Substitute (Case II)

    y′ = u,    y″ = ududy

    (y + 1) ududy = u2

    Divide both sides by u:

    (y + 1)dudy = u

    Dividing by u assumes u ≠ 0. Check the discarded case separately: u = 0 means y′ = 0, so y is a constant — and any constant does satisfy (y+1)(0) = 02. Here it's harmless: the final family already contains the constants (take c1 = 0). Make the check a habit anyway — in other problems the lost branch is a genuine singular solution that no choice of constants recovers.

  2. Move 2Separate and integrate (first integration)

    1udu = 1y + 1dy

    ln|u| = ln|y + 1| + k

    Exponentiate both sides. The additive constant inside the logs becomes a multiplicative constant outside:

    |u| = ek|y + 1|  ⇒  u = c1(y + 1)

    Absorbing ±ek into a single constant c1 is standard and lets you drop the absolute values. Note c1 is a new constant, not the same symbol as k.

  3. Move 3Undo the substitution

    Replace u with dy/dx. You're now back in x, and this is a fresh first-order equation:

    dydx = c1(y + 1)

  4. Move 4Separate again (second integration)

    1y + 1dy = c1dx

    ln|y + 1| = c1x + c2

    Exponentiate once more:

    y + 1 = ec1x + c2 = ec2·ec1x = c3ec1x

    y = c3ec1x − 1

    ea+b = eaeb splits the exponential; the constant piece becomes the coefficient. Two constants, as required — one in the exponent, one out front.

  5. Move 5Check

    y + 1 = c3ec1x,   y′ = c1c3ec1x,   y″ = c12c3ec1x

    left: (y+1)y″ = c3ec1x · c12c3ec1x = c12c32e2c1x

    right: (y′)2 = (c1c3ec1x)2 = c12c32e2c1x   ✓

    Verified symbolically for arbitrary constants.

Watch for

Using y″ = du/dx here. You would get (y+1)du/dx = u2 — three variables (u, x, y) in one equation and nothing separates. The inability to separate is the diagnostic: back up and switch cases rather than pushing forward.

3Case I · y missing · partial fractionsgeneral solution

Solve xy″ = y′ + (y′)3 using the substitution u = y′.

What you're solving for

y(x). Scan for a bare y — there is none (only y′ and y″). So this is Case I: u = y′, y″ = du/dx, and everything stays in terms of x.

  1. Move 1Substitute (Case I)

    xdudx = u + u3

    Factor the right side before separating — it decides how hard the integral is:

    xdudx = u(1 + u2)

  2. Move 2Separate

    duu(1 + u2) = dxx

    The right side integrates to ln|x|. The left needs partial fractions.

  3. Move 3Partial fractions, in full

    1 + u2 is irreducible, so its numerator is linear:

    1u(1+u2) = Au + Bu + C1 + u2

    Clear denominators:

    1 = A(1 + u2) + (Bu + C)u

    Set u = 0: 1 = A. Expand and match the rest:

    1 = 1 + u2 + Bu2 + Cu  ⇒  0 = (1 + B)u2 + Cu

    A = 1,   B = −1,   C = 0

    1u(1+u2) = 1u − u1 + u2

  4. Move 4Integrate (first integration)

    Second piece: ∫u/(1+u2)du = ½ln(1+u2) (substitute w = 1+u2).

    ln|u| − ½ln(1 + u2) = ln|x| + k

    Collapse the left into one log — ½ln A = ln √A, and a difference of logs is a quotient:

    ln|u|√1 + u2 = ln|x| + k

    Exponentiate; the additive constant becomes multiplicative:

    u√1 + u2 = c1x

  5. Move 5Solve for u explicitly

    Square both sides and collect the u2 terms:

    u21 + u2 = c12x2  ⇒  u2 = c12x2 + c12x2u2

    u2(1 − c12x2) = c12x2

    u = y′ = ±c1x√1 − c12x2

  6. Move 6Integrate again (second integration)

    Substitute w = 1 − c12x2, so dw = −2c12x dx, i.e. c1x dx = −dw/(2c1):

    y = ±∫c1x(1 − c12x2)−1/2dx = ∓12c1∫w−1/2dw

    = ∓1c1w1/2 + c2

    y = c2 ∓ 1c1√1 − c12x2

  7. Move 7Recognise what this is

    Let a = 1/|c1|. Pull c12 out of the radical:

    1c1√1 − c12x2 = 1c1·|c1|√a2 − x2 = ±√a2 − x2

    y = c2 ± √a2 − x2

    Move c2 across and square:

    x2 + (y − c2)2 = a2

    Circles — centred on the y-axis at (0, c2), of arbitrary radius a. The two constants are the radius and the height of the centre. Leaving the answer in the explicit y = … form is perfectly correct; the implicit circle form is just easier to recognise and to check.

    Domain note: each solution only exists for |x| < a, and each sign gives a semicircle. A full circle can't be the graph of a function, so a nonlinear equation's solutions can be local in a way that nothing in §4.1–§4.8 ever was.

  8. Move 8Check

    Take y = c2 + √a2−x2, write r = (a2−x2):

    y′ = −x r−1/2,    y″ = −a2r−3/2

    left: xy″ = −a2xr−3/2

    right: y′ + (y′)3 = −xr−1/2 − x3r−3/2 = −x[r + x2]r−3/2 = −a2xr−3/2  ✓

    The bracket collapses because r + x2 = a2. Both signs verified symbolically.

4Case I · application · trig substitutionthe curves with curvature 1

The curvature of y = f(x) is κ = y″ / [1 + (y′)2]3/2. Find y = f(x) when κ = 1.

What you're solving for

Every curve whose curvature is exactly 1 everywhere. Step one is recognising this is a differential equation at all — set the formula equal to 1 and clear the denominator. After that it's Case I (no bare y), same machinery as Problem 3.

  1. Move 1Turn the statement into an ODE

    y″[1 + (y′)2]3/2 = 1  ⇒  y″ = [1 + (y′)2]3/2

    No bare y, no bare x — take Case I, which is simpler:

    dudx = (1 + u2)3/2

  2. Move 2Separate and integrate (first integration)

    du(1 + u2)3/2 = dx

    Trig substitution u = tan θ, so du = sec2θ dθ and 1 + u2 = sec2θ, hence (1+u2)3/2 = sec3θ:

    ∫sec2θsec3θdθ = ∫cos θ dθ = sin θ

    Convert back with a right triangle (opposite u, adjacent 1, hypotenuse √1+u2), so sin θ = u/√1+u2:

    u√1 + u2 = x + c1

    Same left-hand expression as Problem 3's Move 4 — worth filing away: u/√1+u2 is where both of these land.

  3. Move 3Solve for u

    Write s = x + c1 to keep it readable. Square and collect:

    u2 = s2(1 + u2)  ⇒  u2(1 − s2) = s2

    u = s√1 − s2

    Take the positive branch: κ = +1 means the curve bends upward (y″ > 0), and this is the branch that delivers it. The negative branch solves κ = −1 instead — checked below.

  4. Move 4Integrate again (second integration)

    Substitute w = 1 − s2, dw = −2s ds:

    y = ∫s(1 − s2)−1/2ds = −½∫w−1/2dw = −w1/2 + c2

    y = c2 − √1 − (x + c1)2

    Rearrange and square:

    (x + c1)2 + (y − c2)2 = 1

  5. Move 5Read the answer

    Circles of radius exactly 1, centred anywhere at (−c1, c2). Which is the answer geometry demanded all along: radius = 1/κ, and the only curve with constant curvature is a circle. The two constants are the two coordinates of the centre, because the radius was fixed by κ = 1.

    The minus sign in front of the radical picks the lower semicircle — the concave-up half, which is what κ = +1 means. The upper half has κ = −1. And each solution lives only on |x + c1| < 1, an interval of length 2.

    Compare Problem 3: circles of any radius but centres pinned to the y-axis. Here: radius pinned to 1, centres free. Two constants either way — they just buy different things.

  6. Move 6Check

    With s = x+c1 and y = c2 − (1−s2)1/2:

    y′ = s(1−s2)−1/2,    y″ = (1−s2)−3/2

    1 + (y′)2 = 1 + s21−s2 = 11−s2

    [1 + (y′)2]3/2 = (1−s2)−3/2

    κ = (1−s2)−3/2(1−s2)−3/2 = 1  ✓

    Numerator and denominator are literally the same expression. Verified symbolically for both branches: the minus branch gives κ = +1, the plus branch κ = −1.

Watch for

Reaching for ∫du/(1+u2) = arctan u. The exponent here is 3/2, not 1, and the answer is algebraic (u/√1+u2), not an arctangent. Different integral entirely — and if you end up with arctan, every step afterwards is wasted.

What to carry out of the §4.9 classwork

§4.9 · Homework set (three problems)

1Case II · x missinggeneral solution

Use reduction of order to solve yy″ + 2(y′)2 = 0. Use c1 and c2 for the constants.

Hint given: let v = y′ and write an ODE with v as the dependent variable and y the independent variable; assume the solution is real and positive.

What you're solving for

y(x) with two constants. The hint is telling you the case. “v dependent, y independent” means v = v(y), which is exactly Case II — and sure enough there is no bare x in the equation.

  1. Move 1Substitute (Case II)

    y′ = v,    y″ = vdvdy

    y·vdvdy + 2v2 = 0

    Divide by v (noting v = 0 gives y = constant, recovered later at c1 = 0):

    ydvdy = −2v

  2. Move 2First separation

    dvv = −2dyy

    ln|v| = −2 ln|y| + k = ln(y−2) + k

    Exponentiate — the additive constant becomes multiplicative:

    v = Cy−2 = Cy2

    −2 ln|y| = ln(y−2) by the power rule for logs — a coefficient in front of a log is an exponent inside it.

  3. Move 3Undo the substitution, separate again

    dydx = Cy2  ⇒  y2dy = C dx

    y33 = Cx + k2  ⇒  y3 = 3Cx + 3k2

    Rename the two lumped constants c1 = 3C and c2 = 3k2:

    y = (c1x + c2)1/3

    “Assume real and positive” is what lets you take the single real cube root and drop any ±.

  4. Move 4Check

    Write s = c1x + c2, so y = s1/3:

    y′ = c13s−2/3,    y″ = −2c129s−5/3

    yy″ = s1/3·(−2c129s−5/3) = −2c129s−4/3

    2(y′)2 = 2·c129s−4/3 = 2c129s−4/3

    sum = 0  ✓

    Exponents 1/3 − 5/3 = −4/3 and 2(−2/3) = −4/3 match, which is why the two terms can cancel at all. Verified symbolically.

2Case I → Bernoulliu′, then y(x)

For xy″ = y′ + 2x(y′)2, substitute u = y′. Part 1: express u′ in terms of x and u. Part 2: solve the Bernoulli equation for u(x) and integrate to find y(x).

What you're solving for

Two boxes. Part 1 wants the reduced equation solved for u′ — no solving, just rearranging. Part 2 wants the full y(x). No bare y in the original, so this is Case I and everything stays in x.

  1. Move 1Part 1: substitute and isolate u′

    xu′ = u + 2xu2

    Divide every term by x:

    u′ = ux + 2u2

    Entry: u/x+2u^2. The x cancels out of the second term entirely — 2xu2/x = 2u2.

  2. Move 2Recognise the Bernoulli form

    A Bernoulli equation is u′ + P(x)u = Q(x)un. Move the linear term left:

    u′ − 1xu = 2u2

    P(x) = −1x,   Q(x) = 2,   n = 2

    The Bernoulli substitution, and why it is what it is. Take w = u1−n. With n = 2 that's w = u−1 = 1/u, so w′ = −u−2u′. The exponent 1−n is chosen precisely so that dividing the equation by un makes w′ appear and the nonlinear term flatten to a constant.

  3. Move 3Divide by u² — this is the step that does the work

    u′u2 − 1x·1u = 2

    Now read off the w's: the first term is −w′ and the second contains w:

    −w′ − wx = 2

    Multiply by −1 to get standard linear form:

    w′ + 1xw = −2

    The nonlinearity is gone. Everything from here is Ch. 2 first-order linear.

  4. Move 4Integrating factor

    μ = e∫(1/x)dx = eln x = x

    Multiply through; the left side collapses to a single product derivative:

    (xw)′ = −2x

    xw = −x2 + c1  ⇒  w = −x + c1x

  5. Move 5Flip back to u

    w = 1/u, so u = 1/w. Put w over a common denominator first:

    w = −x2 + c1x  ⇒  u = xc1 − x2

    Don't forget to flip. Stopping at w and calling it u is the standard Bernoulli error — you solved for the reciprocal.

  6. Move 6Integrate to get y

    y = ∫xc1 − x2dx

    Substitute s = c1 − x2, so ds = −2x dx, i.e. x dx = −ds/2:

    = −12∫dss = −12ln|s| + c2

    y(x) = c2 − 12ln|c1 − x2|

    Entry: c_2-(1/2)ln(abs(c_1-x^2)). Verified symbolically in the original equation.

Watch for

Trying undetermined coefficients or an integrating factor on u′ − u/x = 2u2 directly. It is not linear — the u2 on the right blocks both. You must run the Bernoulli substitution first; only then is it linear in w.

3Taylor series · IVPsix nonzero terms, then the graph

Find the first six nonzero terms of a Taylor series solution centred at 0 for y″ + y2 = 1, y(0) = 2, y′(0) = 3. Then identify which graph shows the exact solution alongside P5(x).

What you're solving for

A polynomial approximation, not a closed-form solution — this equation has no elementary solution, which is exactly why series methods exist. You need six coefficients, which means derivatives up to y(5), each evaluated at 0.

  1. Move 1Isolate y″ first

    y″ = 1 − y2

    Always rearrange so the highest derivative is alone before differentiating. Every later derivative is obtained by differentiating this line repeatedly.

    y(0) = 2,    y′(0) = 3   (given)

  2. Move 2Build the derivatives, one at a time

    Differentiate implicitly — every y is a function of x, so every differentiation produces a chain-rule factor of y′, and every product needs the product rule.

    y″ = 1 − y2  ⇒  y″(0) = 1 − (2)2 = −3

    y′′′ = −2yy′  ⇒  y′′′(0) = −2(2)(3) = −12

    The next line is where points are lost. Differentiating −2yy′ is a product rule, not a single term:

    y(4) = −2(y′·y′ + y·y″) = −2(y′)2 − 2yy″

    Writing only −2yy″ and dropping the −2(y′)2 is the single most common error in Taylor-series problems, and it poisons every coefficient after it.

    y(4)(0) = −2(3)2 − 2(2)(−3) = −18 + 12 = −6

    Once more, product rule on both terms:

    y(5) = −4y′y″ − 2(y′y″ + yy′′′) = −6y′y″ − 2yy′′′

    y(5)(0) = −6(3)(−3) − 2(2)(−12) = 54 + 48 = 102

  3. Move 3Assemble, dividing by the factorials
    ny⁽ⁿ⁾(0)÷ n!term
    0212
    1313x
    2−32−(3/2)x2
    3−126−2x3
    4−624−(1/4)x4
    5102120(17/20)x5

    y(x) ≈ 2 + 3x − 32x2 − 2x3 − 14x4 + 1720x5

    102/120 reduces to 17/20 — divide both by 6. All six coefficients are nonzero, so “first six nonzero terms” means exactly degrees 0 through 5; no term gets skipped.

  4. Move 4Part 2: pick the graph without plotting

    Three independent facts, each of which eliminates options on its own.

    1. Both curves start at (0, 2) with slope 3. The Taylor polynomial matches the function's value and first several derivatives at the centre, so near x = 0 the two must be indistinguishable. Any graph where they separate immediately is wrong.
    2. The peak is just under 3. Setting y′ = 0: multiply y″ = 1 − y2 by y′ and integrate to get ½(y′)2 = y − y3/3 + C. At x=0, C = 31/6, and y′ = 0 gives 2y3 − 6y − 31 = 0, whose root is y ≈ 2.89. Any graph peaking near 3.8 or 3.9 is out.
    3. The leading coefficient is positive. The highest term of P5 is +1720x5, so for x > 0 the polynomial is dragged upward as it diverges. A graph showing the dashed curve plunging below the exact solution is impossible.

    That third test is the transferable one. A Taylor polynomial can only run away in the direction its leading term points. Check the sign of the highest coefficient and you can rule out half the options in a graph-matching question without evaluating anything.

    Numerical confirmation (integrated the IVP to high precision):

    xexactP₅gap
    0.522.8915 (peak)2.88720.004
    1.002.14012.1000−0.040
    1.201.51591.5807+0.065
    1.400.83741.3831+0.546

    Answer: the graph where the two curves lie on top of each other, peaking just below 3 and falling to about 1.5.

    Over the plotted range the largest gap is about 0.07 on a 5-unit axis — a few pixels. The divergence only becomes visible past x ≈ 1.3, and when it does, the dashed curve goes up.

Watch for

Reading “six nonzero terms” as “up to x6.” Count the terms, not the degree. Here all coefficients happen to be nonzero so you stop at x5 — but in a problem where some vanish (common when the initial conditions are 0), you keep going until you've collected six that actually survive.

What to carry out of the §4.9 homework