Differential-Equations Β· Unit 3 Β· Video 4 Β· Interactive Practice

Integrating Factors: Two Mistakes and a Trick Question

IKey Formulas

FormulaNameWhat it demands
yβ€²+p(x) y=q(x)y' + p(x)\,y = q(x)Standard linear formThe coefficient of yβ€²y' divided out to 11 first
u=e∫p dxu = e^{\int p\,dx}Integrating factorThe pp read off after that division, minus sign included
(u y)β€²=u q(u\,y)' = u\,qMultiply both sidesThe right-hand side carries uu too
∫fβ€²f dx=ln⁑∣f∣\int \dfrac{f'}{f}\,dx = \ln\lvert f\rvertLog integralNumerator = derivative of denominator

Key Insight: For (1+cos⁑x) yβ€²βˆ’(sin⁑x) y=2x(1 + \cos x)\,y' - (\sin x)\,y = 2x the method returns u=1+cos⁑xu = 1 + \cos x β€” the coefficient already standing in front of yβ€²y' β€” so multiplying through hands back the equation you started with. The round trip is the method working: it certifies that the left side was [(1+cos⁑x) y]β€²\big[(1 + \cos x)\,y\big]' all along.

IIWhat Makes uu an Integrating Factor

A factor works exactly when uβ€²=u pu' = u\,p β€” and a pp read off without standard form fails that test.

Any constant multiple works too: u=5(1+cos⁑x)u = 5(1 + \cos x) satisfies the same test uβ€²=u pu' = u\,p and cancels out of the final answer β€” which is why e∫p dxe^{\int p\,dx} never needs a +C+C.

IIIThe Round Trip

Four steps on (1+cos⁑x) yβ€²βˆ’(sin⁑x) y=2x(1 + \cos x)\,y' - (\sin x)\,y = 2x return the equation itself; two more finish it.

Step 1 β€” Standard form
yβ€²βˆ’sin⁑x1+cos⁑x y=2x1+cos⁑x,p=βˆ’sin⁑x1+cos⁑xy' - \frac{\sin x}{1 + \cos x}\,y = \frac{2x}{1 + \cos x}, \qquad p = -\frac{\sin x}{1 + \cos x}
Divide by the coefficient of yβ€²y'. The βˆ’sin⁑x-\sin x standing in the given equation is not pp, and the division needs 1+cos⁑xβ‰ 01 + \cos x \neq 0 β€” true on (βˆ’Ο€,Ο€)(-\pi, \pi), the interval carrying x=0x = 0.

πŸ’‘ One product-rule check on the original equation already shows its left side to be [(1+cos⁑x) y]β€²\big[(1 + \cos x)\,y\big]' β€” the clever route writes that line at once and skips steps 1 to 3 entirely.

IVForgetting the Right Side

Both curves satisfy y(0)=1y(0) = 1; only one of them satisfies the equation that was asked.

Substituting the dashed curve into the given equation returns 2x1+cos⁑x\dfrac{2x}{1 + \cos x} where 2x2x was required β€” a leftover of βˆ’2xcos⁑x1+cos⁑x-\dfrac{2x\cos x}{1 + \cos x}, which vanishes only at x=0x = 0 and x=Β±Ο€2x = \pm\tfrac{\pi}{2}.

VQuiz Questions

Problem 1 Β· Read Off pp

Given: (1+cos⁑x) yβ€²βˆ’(sin⁑x) y=2x(1 + \cos x)\,y' - (\sin x)\,y = 2x β€” find the pp that belongs in u=e∫p dxu = e^{\int p\,dx}.

βœ… Correct! Standard form first: dividing by 1+cos⁑x1 + \cos x gives yβ€²βˆ’sin⁑x1+cos⁑x y=2x1+cos⁑xy' - \frac{\sin x}{1+\cos x}\,y = \frac{2x}{1+\cos x}, and pp is that whole coefficient of yy, minus sign included. It leads to u=1+cos⁑xu = 1 + \cos x.
❌ That is mistake 1. βˆ’sin⁑x-\sin x is the coefficient of yy before the equation is in standard form. Reading it as pp gives u=eβˆ«βˆ’sin⁑x dx=ecos⁑xu = e^{\int -\sin x\,dx} = e^{\cos x}, and everything downstream is wrong.
❌ The sign belongs to pp. The standard form has βˆ’sin⁑x1+cos⁑x y-\frac{\sin x}{1+\cos x}\,y on the left, so pp is negative here; dropping the minus gives u=11+cos⁑xu = \frac{1}{1+\cos x} instead of 1+cos⁑x1 + \cos x.
❌ That is qq. After dividing, 2x1+cos⁑x\frac{2x}{1+\cos x} is the right-hand side. pp is what multiplies yy on the left.
❌ Not quite. Divide every term by the coefficient of yβ€²y' first, then read the coefficient of yy together with its sign.
Show solution

The formula u=e∫p dxu = e^{\int p\,dx} is stated for the standard form yβ€²+p(x) y=q(x)y' + p(x)\,y = q(x), in which the coefficient of yβ€²y' is 11. The given equation is not there yet, so divide through by 1+cos⁑x1 + \cos x:

yβ€²βˆ’sin⁑x1+cos⁑x y=2x1+cos⁑xy' - \frac{\sin x}{1 + \cos x}\,y = \frac{2x}{1 + \cos x}

Matching against yβ€²+p y=qy' + p\,y = q:

p=βˆ’sin⁑x1+cos⁑x,q=2x1+cos⁑xp = -\frac{\sin x}{1 + \cos x}, \qquad q = \frac{2x}{1 + \cos x}

The payoff is immediate: the numerator of βˆ’p-p is the derivative of its denominator, so

∫p dx=ln⁑(1+cos⁑x),u=eln⁑(1+cos⁑x)=1+cos⁑x\int p\,dx = \ln(1 + \cos x), \qquad u = e^{\ln(1 + \cos x)} = 1 + \cos x

Skipping the division and taking p=βˆ’sin⁑xp = -\sin x would have produced u=ecos⁑xu = e^{\cos x} β€” a function that fails the test uβ€²=u pu' = u\,p and collapses nothing.

Problem 2 Β· What Step 3 Produces

Given: the standard form yβ€²βˆ’sin⁑x1+cos⁑x y=2x1+cos⁑xy' - \frac{\sin x}{1+\cos x}\,y = \frac{2x}{1+\cos x} and its integrating factor u=1+cos⁑xu = 1 + \cos x β€” which line does multiplying through by uu produce?

βœ… Correct! u q=(1+cos⁑x)β‹…2x1+cos⁑x=2xu\,q = (1+\cos x)\cdot\frac{2x}{1+\cos x} = 2x, and the left side collapses to [(1+cos⁑x) y]β€²\big[(1+\cos x)\,y\big]' β€” which is the original equation, now written as a single derivative.
❌ That is mistake 2. The right side was left unmultiplied. Every term gets uu: (1+cos⁑x)β‹…2x1+cos⁑x=2x(1+\cos x)\cdot\frac{2x}{1+\cos x} = 2x. Integrating your version solves a different equation.
❌ uu was applied twice on the right. The standard form already carries 2x1+cos⁑x\frac{2x}{1+\cos x}; multiplying that by uu gives 2x2x, not 2x(1+cos⁑x)2x(1+\cos x).
❌ The yy term cannot be dropped. Multiplying gives (1+cos⁑x) yβ€²βˆ’(sin⁑x) y(1+\cos x)\,y' - (\sin x)\,y, and it is precisely that pair β€” not (1+cos⁑x) yβ€²(1+\cos x)\,y' alone β€” that is the derivative of (1+cos⁑x) y(1+\cos x)\,y.
❌ Not quite. Multiply every term of the standard form by u=1+cos⁑xu = 1 + \cos x and watch the denominators cancel.
Show solution

Multiply each of the three terms by u=1+cos⁑xu = 1 + \cos x:

  • the yβ€²y' term becomes (1+cos⁑x) yβ€²(1+\cos x)\,y';
  • the yy term becomes (1+cos⁑x)β‹…(βˆ’sin⁑x1+cos⁑x)y=βˆ’(sin⁑x) y(1+\cos x)\cdot\left(-\dfrac{\sin x}{1+\cos x}\right)y = -(\sin x)\,y;
  • the right side becomes (1+cos⁑x)β‹…2x1+cos⁑x=2x(1+\cos x)\cdot\dfrac{2x}{1+\cos x} = 2x.
(1+cos⁑x) yβ€²βˆ’(sin⁑x) y=2x(1 + \cos x)\,y' - (\sin x)\,y = 2x

That is the equation the problem started from β€” the round trip. Its value is the guarantee that comes with it: the left side is now known to be a derivative, and the product rule confirms which one,

[(1+cos⁑x) y]β€²=(1+cos⁑x) yβ€²+(1+cos⁑x)′ y=(1+cos⁑x) yβ€²βˆ’(sin⁑x) y\big[(1+\cos x)\,y\big]' = (1+\cos x)\,y' + (1+\cos x)'\,y = (1+\cos x)\,y' - (\sin x)\,y

so the equation is [(1+cos⁑x) y]β€²=2x\big[(1+\cos x)\,y\big]' = 2x, ready to integrate.

Leaving 2x1+cos⁑x\frac{2x}{1+\cos x} on the right instead would integrate to 2xtan⁑x2+4ln⁑cos⁑x22x\tan\frac{x}{2} + 4\ln\cos\frac{x}{2} rather than to x2x^2 β€” a valid solution of an equation nobody asked about.

Problem 3 Β· The Same Trick, New Equation

Given: (x2+1) yβ€²+2x y=4x(x^2 + 1)\,y' + 2x\,y = 4x with y(0)=3y(0) = 3 β€” find the integrating factor and the solution.

What is the integrating factor?

What is the solution?

βœ… Correct! Standard form gives p=2xx2+1p = \frac{2x}{x^2+1}, whose integral is ln⁑(x2+1)\ln(x^2+1), so u=x2+1u = x^2 + 1 β€” the coefficient that was already there. Then [(x2+1)y]β€²=4x\big[(x^2+1)y\big]' = 4x, (x2+1)y=2x2+C(x^2+1)y = 2x^2 + C, and y(0)=C=3y(0) = C = 3.
❌ That is the skipped-standard-form factor. ex2e^{x^2} comes from reading p=2xp = 2x off the given equation; the true pp is 2xx2+1\frac{2x}{x^2+1}, giving u=eln⁑(x2+1)=x2+1u = e^{\ln(x^2+1)} = x^2 + 1.
❌ Check the exponent. Divide by x2+1x^2 + 1 first, then integrate p=2xx2+1p = \frac{2x}{x^2+1} β€” numerator = derivative of denominator, so the integral is a logarithm.
❌ One division short. Integration gives (x2+1) y=2x2+C(x^2+1)\,y = 2x^2 + C; you still have to divide by u=x2+1u = x^2+1 to isolate yy.
❌ Right family, wrong constant. 2x2+1x2+1\frac{2x^2+1}{x^2+1} does solve the equation, but it starts at y(0)=1y(0) = 1; the condition y(0)=3y(0) = 3 forces C=3C = 3.
❌ Check the integration. ∫4x dx=2x2\int 4x\,dx = 2x^2, not x2x^2. This candidate hits y(0)=3y(0) = 3 but leaves a remainder of βˆ’2x-2x in the equation.
❌ Not quite. Integrate [(x2+1) y]β€²=4x\big[(x^2+1)\,y\big]' = 4x, divide by x2+1x^2+1, then use y(0)=3y(0) = 3 to pin the constant.
Show solution

Step 1 β€” standard form. Divide by the coefficient of yβ€²y':

yβ€²+2xx2+1 y=4xx2+1,p=2xx2+1y' + \frac{2x}{x^2+1}\,y = \frac{4x}{x^2+1}, \qquad p = \frac{2x}{x^2+1}

Step 2 β€” integrating factor. The numerator is the derivative of the denominator:

∫p dx=ln⁑(x2+1),u=eln⁑(x2+1)=x2+1\int p\,dx = \ln(x^2+1), \qquad u = e^{\ln(x^2+1)} = x^2 + 1

Step 3 β€” multiply both sides. Both denominators cancel and the original equation comes back:

(x2+1) yβ€²+2x y=4x⟹[(x2+1) y]β€²=4x(x^2+1)\,y' + 2x\,y = 4x \qquad \Longrightarrow \qquad \big[(x^2+1)\,y\big]' = 4x

Step 4 β€” integrate, then apply the initial condition.

(x2+1) y=2x2+C,y=2x2+Cx2+1(x^2+1)\,y = 2x^2 + C, \qquad y = \frac{2x^2 + C}{x^2+1} y(0)=C1=3⟹C=3,y=2x2+3x2+1y(0) = \frac{C}{1} = 3 \qquad \Longrightarrow \qquad C = 3, \qquad y = \frac{2x^2 + 3}{x^2 + 1}

Check: (x2+1) y=2x2+3(x^2+1)\,y = 2x^2 + 3, and differentiating that product gives (x2+1) yβ€²+2x y=4xΒ βœ“(x^2+1)\,y' + 2x\,y = 4x\ \checkmark

Problem 4 Β· Spot the Derivative

Given: a(x) yβ€²+b(x) ya(x)\,y' + b(x)\,y is already [a(x) y]β€²\big[a(x)\,y\big]' exactly when b=aβ€²b = a' β€” which equation can therefore be integrated at once, with no integrating factor at all?

βœ… Correct! [x3y]β€²=x3yβ€²+3x2y\big[x^3 y\big]' = x^3 y' + 3x^2 y, so the equation reads [x3y]β€²=ex\big[x^3 y\big]' = e^x and one integration finishes it: x3y=ex+Cx^3 y = e^x + C.
❌ Short by a factor of 33. [x3y]β€²=x3yβ€²+3x2y\big[x^3y\big]' = x^3y' + 3x^2y, not x3yβ€²+x2yx^3y' + x^2y. This equation still yields to the method β€” standard form gives p=1xp = \frac{1}{x} and u=xu = x β€” but not for free.
❌ Watch the sign. [(cos⁑x) y]β€²=(cos⁑x) yβ€²βˆ’(sin⁑x) y\big[(\cos x)\,y\big]' = (\cos x)\,y' - (\sin x)\,y. With +sin⁑x+\sin x the left side is that derivative's near miss, not the derivative.
❌ Check aβ€²a'. [e2xy]β€²=e2xyβ€²+2e2xy\big[e^{2x}y\big]' = e^{2x}y' + 2e^{2x}y, and 2e2xβ‰ ex2e^{2x} \neq e^{x}.
❌ Not quite. Differentiate the coefficient of yβ€²y' and compare it with the coefficient of yy; only when they agree is the left side a completed product rule.
Show solution

The product rule gives [a(x) y]β€²=a(x) yβ€²+aβ€²(x) y\big[a(x)\,y\big]' = a(x)\,y' + a'(x)\,y, so the test is simply whether the coefficient of yy equals the derivative of the coefficient of yβ€²y':

  • a=x3a = x^3: aβ€²=3x2a' = 3x^2, and the coefficient of yy is 3x2Β βœ“3x^2\ \checkmark
  • a=x3a = x^3 with b=x2b = x^2: aβ€²=3x2β‰ x2a' = 3x^2 \neq x^2
  • a=cos⁑xa = \cos x: aβ€²=βˆ’sin⁑xβ‰ +sin⁑xa' = -\sin x \neq +\sin x
  • a=e2xa = e^{2x}: aβ€²=2e2xβ‰ exa' = 2e^{2x} \neq e^{x}

Only the first passes, so it collapses immediately:

[x3y]β€²=ex⟹x3y=ex+C\big[x^3 y\big]' = e^x \qquad \Longrightarrow \qquad x^3 y = e^x + C y=ex+Cx3y = \frac{e^x + C}{x^3}

The three failures are not unsolvable β€” each one still has an integrating factor. Running the four steps on the second, for instance, gives p=1xp = \frac{1}{x}, then u=xu = x, then [x y]β€²=exx2\big[x\,y\big]' = \frac{e^x}{x^2}. The method never needs you to spot anything; spotting only saves work.

Solved: 0 / 4