Differential-Equations Β· Unit 3 Β· Video 4 Β· Interactive Practice
Integrating Factors: Two Mistakes and a Trick Question
IKey Formulas
Formula
Name
What it demands
yβ²+p(x)y=q(x)
Standard linear form
The coefficient of yβ² divided out to 1 first
u=eβ«pdx
Integrating factor
The p read off after that division, minus sign included
(uy)β²=uq
Multiply both sides
The right-hand side carries u too
β«ffβ²βdx=lnβ£fβ£
Log integral
Numerator = derivative of denominator
Key Insight: For (1+cosx)yβ²β(sinx)y=2x the method returns u=1+cosx β the coefficient already standing in front of 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+cosx)y]β² all along.
IIWhat Makes u an Integrating Factor
A factor works exactly when uβ²=up β and a p read off without standard form fails that test.
Any constant multiple works too: u=5(1+cosx) satisfies the same test uβ²=up and cancels out of the final answer β which is why eβ«pdx never needs a +C.
IIIThe Round Trip
Four steps on (1+cosx)yβ²β(sinx)y=2x return the equation itself; two more finish it.
Divide by the coefficient of yβ². The βsinx standing in the given equation is notp, and the division needs 1+cosxξ =0 β true on (βΟ,Ο), the interval carrying x=0.
Step 2 β Integrating factor
β«pdx=β«1+cosxβsinxβdx=ln(1+cosx)
u=eln(1+cosx)=1+cosx
The numerator is the derivative of the denominator, so the integral is a logarithm: dxdβln(1+cosx)=1+cosxβsinxβΒ β
Step 3 β Multiply both sides
(1+cosx)yβ²β(sinx)y=2x
The given equation, letter for letter β because uq=(1+cosx)β 1+cosx2xβ=2x. Its left side is now certified to be a derivative:
[(1+cosx)y]β²=(1+cosx)yβ²+(βsinx)y=2xΒ β
Step 4 β Integrate
(1+cosx)y=x2+CβΉy=1+cosxx2+Cβ
One parabola x2+C for each constant, every one of them divided by the same 1+cosx.
Step 5 β The initial condition y(0)=1
1=1+cos002+Cβ=2CββΉC=2
y=1+cosxx2+2β
π‘ One product-rule check on the original equation already shows its left side to be [(1+cosx)y]β² β the clever route writes that line at once and skips steps 1 to 3 entirely.
IVForgetting the Right Side
Both curves satisfy y(0)=1; only one of them satisfies the equation that was asked.
Substituting the dashed curve into the given equation returns 1+cosx2xβ where 2x was required β a leftover of β1+cosx2xcosxβ, which vanishes only at x=0 and x=Β±2Οβ.
VQuiz Questions
Problem 1 Β· Read Off p
Given:(1+cosx)yβ²β(sinx)y=2x β find the p that belongs in u=eβ«pdx.
β Correct! Standard form first: dividing by 1+cosx gives yβ²β1+cosxsinxβy=1+cosx2xβ, and p is that whole coefficient of y, minus sign included. It leads to u=1+cosx.
β That is mistake 1.βsinx is the coefficient of ybefore the equation is in standard form. Reading it as p gives u=eβ«βsinxdx=ecosx, and everything downstream is wrong.
β The sign belongs to p. The standard form has β1+cosxsinxβy on the left, so p is negative here; dropping the minus gives u=1+cosx1β instead of 1+cosx.
β That is q. After dividing, 1+cosx2xβ is the right-hand side. p is what multiplies y on the left.
β Not quite. Divide every term by the coefficient of yβ² first, then read the coefficient of y together with its sign.
Show solution
The formula u=eβ«pdx is stated for the standard form yβ²+p(x)y=q(x), in which the coefficient of yβ² is 1. The given equation is not there yet, so divide through by 1+cosx:
yβ²β1+cosxsinxβy=1+cosx2xβ
Matching against yβ²+py=q:
p=β1+cosxsinxβ,q=1+cosx2xβ
The payoff is immediate: the numerator of βp is the derivative of its denominator, so
β«pdx=ln(1+cosx),u=eln(1+cosx)=1+cosx
Skipping the division and taking p=βsinx would have produced u=ecosx β a function that fails the test uβ²=up and collapses nothing.
Problem 2 Β· What Step 3 Produces
Given: the standard form yβ²β1+cosxsinxβy=1+cosx2xβ and its integrating factor u=1+cosx β which line does multiplying through by u produce?
β Correct!uq=(1+cosx)β 1+cosx2xβ=2x, and the left side collapses to [(1+cosx)y]β² β which is the original equation, now written as a single derivative.
β That is mistake 2. The right side was left unmultiplied. Every term gets u: (1+cosx)β 1+cosx2xβ=2x. Integrating your version solves a different equation.
β u was applied twice on the right. The standard form already carries 1+cosx2xβ; multiplying that by u gives 2x, not 2x(1+cosx).
β The y term cannot be dropped. Multiplying gives (1+cosx)yβ²β(sinx)y, and it is precisely that pair β not (1+cosx)yβ² alone β that is the derivative of (1+cosx)y.
β Not quite. Multiply every term of the standard form by u=1+cosx and watch the denominators cancel.
Show solution
Multiply each of the three terms by u=1+cosx:
the yβ² term becomes (1+cosx)yβ²;
the y term becomes (1+cosx)β (β1+cosxsinxβ)y=β(sinx)y;
the right side becomes (1+cosx)β 1+cosx2xβ=2x.
(1+cosx)yβ²β(sinx)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,
so the equation is [(1+cosx)y]β²=2x, ready to integrate.
Leaving 1+cosx2xβ on the right instead would integrate to 2xtan2xβ+4lncos2xβ rather than to x2 β a valid solution of an equation nobody asked about.
Problem 3 Β· The Same Trick, New Equation
Given:(x2+1)yβ²+2xy=4x with y(0)=3 β find the integrating factor and the solution.
What is the integrating factor?
What is the solution?
β Correct! Standard form gives p=x2+12xβ, whose integral is ln(x2+1), so u=x2+1 β the coefficient that was already there. Then [(x2+1)y]β²=4x, (x2+1)y=2x2+C, and y(0)=C=3.
β That is the skipped-standard-form factor.ex2 comes from reading p=2x off the given equation; the true p is x2+12xβ, giving u=eln(x2+1)=x2+1.
β Check the exponent. Divide by x2+1 first, then integrate p=x2+12xβ β numerator = derivative of denominator, so the integral is a logarithm.
β One division short. Integration gives (x2+1)y=2x2+C; you still have to divide by u=x2+1 to isolate y.
β Right family, wrong constant.x2+12x2+1β does solve the equation, but it starts at y(0)=1; the condition y(0)=3 forces C=3.
β Check the integration.β«4xdx=2x2, not x2. This candidate hits y(0)=3 but leaves a remainder of β2x in the equation.
β Not quite. Integrate [(x2+1)y]β²=4x, divide by x2+1, then use y(0)=3 to pin the constant.
Show solution
Step 1 β standard form. Divide by the coefficient of yβ²:
yβ²+x2+12xβy=x2+14xβ,p=x2+12xβ
Step 2 β integrating factor. The numerator is the derivative of the denominator:
β«pdx=ln(x2+1),u=eln(x2+1)=x2+1
Step 3 β multiply both sides. Both denominators cancel and the original equation comes back:
(x2+1)yβ²+2xy=4xβΉ[(x2+1)y]β²=4x
Step 4 β integrate, then apply the initial condition.
Check:(x2+1)y=2x2+3, and differentiating that product gives (x2+1)yβ²+2xy=4xΒ β
Problem 4 Β· Spot the Derivative
Given:a(x)yβ²+b(x)y is already [a(x)y]β² exactly when b=aβ² β which equation can therefore be integrated at once, with no integrating factor at all?
β Correct![x3y]β²=x3yβ²+3x2y, so the equation reads [x3y]β²=ex and one integration finishes it: x3y=ex+C.
β Short by a factor of 3.[x3y]β²=x3yβ²+3x2y, not x3yβ²+x2y. This equation still yields to the method β standard form gives p=x1β and u=x β but not for free.
β Watch the sign.[(cosx)y]β²=(cosx)yβ²β(sinx)y. With +sinx the left side is that derivative's near miss, not the derivative.
β Check aβ².[e2xy]β²=e2xyβ²+2e2xy, and 2e2xξ =ex.
β Not quite. Differentiate the coefficient of yβ² and compare it with the coefficient of y; 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, so the test is simply whether the coefficient of y equals the derivative of the coefficient of yβ²:
a=x3: aβ²=3x2, and the coefficient of y is 3x2Β β
a=x3 with b=x2: aβ²=3x2ξ =x2
a=cosx: aβ²=βsinxξ =+sinx
a=e2x: aβ²=2e2xξ =ex
Only the first passes, so it collapses immediately:
[x3y]β²=exβΉx3y=ex+Cy=x3ex+Cβ
The three failures are not unsolvable β each one still has an integrating factor. Running the four steps on the second, for instance, gives p=x1β, then u=x, then [xy]β²=x2exβ. The method never needs you to spot anything; spotting only saves work.