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

The Integrating Factor and the Four-Step Method

IKey Formulas

FormulaNameWhat it is for
y+p(x)y=q(x)y' + p(x)\,y = q(x)Standard linear formpp is read off this form and no other
(uy)=uy+uy(u\,y)' = u\,y' + u'\,yProduct ruleThe identity the whole method rests on
u=pu    u=ep(x)dxu' = p\,u \;\Longrightarrow\; u = e^{\int p(x)\,dx}Integrating factorNo arbitrary constant — one uu is enough
(uy)=qu(u\,y)' = q\,uThe line to always writeIntegrate both sides, then solve for yy

Key Insight: After multiplying by uu the left side is uy+puyu\,y' + p\,u\,y, and the product rule already supplies the first term of (uy)(u\,y)' for free — so the entire method costs exactly one condition, u=puu' = p\,u.

IIWhich Multiplier Collapses the Left Side?

Multiplying y1xy=x2y' - \tfrac{1}{x}y = x^2 by uu folds the left side into (uy)(u y)' only where u=puu' = p\,u.

Both 1/x1/x and 5/x5/x pass, because adding a constant to pdx\int p\,dx only multiplies uu by eCe^{C} — which is why the formula carries no +C+C.

IIIThe Four Steps on xyy=x3x\,y' - y = x^3

One well-chosen factor turns an equation whose variables do not separate into a single integration.

Step 1 — Standard linear form
xyy=x3y1xy=x2x\,y' - y = x^3 \quad\Longrightarrow\quad y' - \frac{1}{x}\,y = x^2
The coefficient of yy' must be 11, so divide by xx; only now can pp be read off: p=1xp = -\dfrac{1}{x},  q=x2\ q = x^2.

IVThe Constant and the Initial Condition

Every curve here solves xyy=x3x\,y' - y = x^3; a single initial value selects one of them.

The cxc\,x term is the general solution of the homogeneous equation xyy=0x\,y' - y = 0, which is why it survives untouched while x3/2x^3/2 carries the right-hand side.

VQuiz Questions

Problem 1 · Build the Factor

Given: y+2xy=xy' + \dfrac{2}{x}\,y = x for x>0x > 0find the integrating factor uu.

✅ Correct! e2lnx=elnx2=x2e^{2\ln x} = e^{\ln x^2} = x^2, and the condition holds: (x2)=2x=2xx2(x^2)' = 2x = \dfrac{2}{x}\cdot x^2.
❌ Check the integral. The exponent is pdx\int p\,dx, and 2xdx=2lnx\int \dfrac{2}{x}\,dx = 2\ln x, not 2x2x.
❌ One step short. 2lnx2\ln x is pdx\int p\,dx; the integrating factor is ee raised to that.
❌ That is the reciprocal. x2=epdxx^{-2} = e^{-\int p\,dx}, and multiplying by it gives (x2y)=x2y2xx2y(x^{-2}y)' = x^{-2}y' - \dfrac{2}{x}x^{-2}y — a minus sign where the equation has a plus.
Show solution

The equation is already in standard form, so p=2xp = \dfrac{2}{x} can be read off directly.

pdx=2xdx=2lnx\int p\,dx = \int \frac{2}{x}\,dx = 2\ln x u=e2lnx=elnx2=x2u = e^{2\ln x} = e^{\ln x^{2}} = x^{2}

Verify the defining condition u=puu' = p\,u:

(x2)=2x,2xx2=2x (x^{2})' = 2x, \qquad \frac{2}{x}\cdot x^{2} = 2x \ \checkmark

Multiplying through: (x2y)=x3\left(x^{2}y\right)' = x^{3}, so x2y=x44+Cx^{2}y = \dfrac{x^{4}}{4} + C and y=x24+Cx2y = \dfrac{x^{2}}{4} + \dfrac{C}{x^{2}}.

Problem 2 · Standard Form First

Given: xy+3y=x5x\,y' + 3y = x^{5} for x>0x > 0find the integrating factor uu.

✅ Correct! Dividing by xx first gives p=3xp = \dfrac{3}{x}, so u=e3lnx=x3u = e^{3\ln x} = x^{3}, and (x3)=3x2=3xx3(x^3)' = 3x^2 = \dfrac{3}{x}\cdot x^3.
❌ Close, but the equation was not in standard form. The coefficient of yy' must be 11: dividing by xx turns the 33 into p=3/xp = 3/x, so the exponent is 3lnx3\ln x, not 3x3x.
❌ Careful with the exponential. e3lnx=elnx3=x3e^{3\ln x} = e^{\ln x^{3}} = x^{3}; the 33 multiplies the logarithm inside the exponent, so it becomes a power, not a factor.
❌ Sign of pp. x3=e3lnxx^{-3} = e^{-3\ln x} comes from p=3/xp = -3/x; here the 3y3y term is positive.
Show solution

Step 1 — standard form. Divide through by xx (the coefficient of yy' must be 11):

y+3xy=x4,p=3x,q=x4y' + \frac{3}{x}\,y = x^{4}, \qquad p = \frac{3}{x}, \quad q = x^{4}

Step 2 — integrating factor.

u=e3xdx=e3lnx=elnx3=x3u = e^{\int \frac{3}{x}dx} = e^{3\ln x} = e^{\ln x^{3}} = x^{3}

Steps 3 and 4 — multiply both sides and integrate:

(x3y)=x3x4=x7x3y=x88+C\left(x^{3}y\right)' = x^{3}\cdot x^{4} = x^{7} \quad\Longrightarrow\quad x^{3}y = \frac{x^{8}}{8} + C y=x58+Cx3y = \frac{x^{5}}{8} + \frac{C}{x^{3}}

Reading p=3p = 3 off the original equation would give e3xe^{3x}, and (e3xy)=e3xy+3e3xy\left(e^{3x}y\right)' = e^{3x}y' + 3e^{3x}y never matches the 3y/x3y/x that the equation actually has.

Problem 3 · Carry It Through

Given: y+1xy=4xy' + \dfrac{1}{x}\,y = 4x for x>0x > 0, whose integrating factor is u=xu = xfind the derivative line and the general solution.

After multiplying both sides by u=xu = x:

General solution:

✅ Correct! xy=43x3+Cxy = \dfrac{4}{3}x^{3} + C, and dividing by xx carries the constant with it: y=43x2+Cxy = \dfrac{4}{3}x^{2} + \dfrac{C}{x}.
❌ The right-hand side gets the factor too. qu=4xx=4x2q\,u = 4x\cdot x = 4x^{2} — multiplying only the left side is the most common slip in this method.
❌ Check the collapse. With u=xu = x the left side is xy+yx\,y' + y, which is exactly (xy)(x\,y)', and the right side is 4xx4x\cdot x.
❌ Divide the whole line by uu. From xy=43x3+Cxy = \frac{4}{3}x^{3} + C, the constant becomes C/xC/x, not CC — check it: 43x2+C\frac{4}{3}x^{2} + C gives y+y/x=4x+C/xy' + y/x = 4x + C/x.
❌ Not quite. Solve xy=43x3+Cxy = \frac{4}{3}x^{3} + C for yy by dividing every term by xx.
Show solution

Step 3 — multiply both sides by u=xu = x:

xy+y=4x2x\,y' + y = 4x^{2}

Step 4 — the left side is one derivative:

(xy)=4x2(check: (xy)=xy+y)(x\,y)' = 4x^{2} \qquad \text{(check: } (xy)' = x y' + y \text{)}

Integrate:

xy=4x33+Cy=43x2+Cxx\,y = \frac{4x^{3}}{3} + C \quad\Longrightarrow\quad y = \frac{4}{3}x^{2} + \frac{C}{x}

Verify: y=83xCx2y' = \dfrac{8}{3}x - \dfrac{C}{x^{2}}, so

y+yx=83xCx2+43x+Cx2=4x y' + \frac{y}{x} = \frac{8}{3}x - \frac{C}{x^{2}} + \frac{4}{3}x + \frac{C}{x^{2}} = 4x \ \checkmark

Problem 4 · Negative pp, With an Initial Condition

Given: y2xy=x2y' - \dfrac{2}{x}\,y = x^{2} for x>0x > 0 with y(1)=3y(1) = 3find y(x)y(x). Every option below satisfies y(1)=3y(1) = 3; only one satisfies the equation.

✅ Correct! u=x2u = x^{-2} makes qu=1q\,u = 1, so x2y=x+Cx^{-2}y = x + C and y=x3+Cx2y = x^{3} + Cx^{2}; the condition y(1)=3y(1) = 3 gives C=2C = 2.
❌ That is the u=x2u = x^{2} path. Here p=2/xp = -2/x, so pdx=2lnx\int p\,dx = -2\ln x and u=e2lnx=x2u = e^{-2\ln x} = x^{-2}; using x2x^{2} is using epdxe^{-\int p\,dx}, the reciprocal factor.
❌ Substitute and check. Compute y2xyy' - \dfrac{2}{x}y for your choice — it must come out to exactly x2x^{2}, and the homogeneous part must be a multiple of x2x^{2}.
Show solution

Step 1. Already standard: p=2xp = -\dfrac{2}{x}, q=x2q = x^{2}.

Step 2. pdx=2lnx\displaystyle \int p\,dx = -2\ln x, so

u=e2lnx=eln(x2)=1x2u = e^{-2\ln x} = e^{\ln (x^{-2})} = \frac{1}{x^{2}}

Step 3. Multiply both sides — including the right-hand side:

1x2y2x3y=x21x2=1\frac{1}{x^{2}}y' - \frac{2}{x^{3}}y = x^{2}\cdot\frac{1}{x^{2}} = 1

Step 4. Write the derivative line and integrate:

(yx2)=1yx2=x+Cy=x3+Cx2\left(\frac{y}{x^{2}}\right)' = 1 \quad\Longrightarrow\quad \frac{y}{x^{2}} = x + C \quad\Longrightarrow\quad y = x^{3} + Cx^{2}

Initial condition: y(1)=1+C=3y(1) = 1 + C = 3, so C=2C = 2 and y=x3+2x2y = x^{3} + 2x^{2}.

Verify: y=3x2+4xy' = 3x^{2} + 4x and 2xy=2x2+4x\dfrac{2}{x}y = 2x^{2} + 4x, so y2xy=x2 y' - \dfrac{2}{x}y = x^{2} \ \checkmark

Solved: 0 / 4