Class 12 Maths, Worked in Full Past papersGet updates
Chapter 9 · Differential Equations

Exercise 9.5 · Q18 (MCQ): Integrating factor of xdydx−y=2x2x\frac{dy}{dx} - y = 2x^2

Exercise 9.5Linear differential equations, the integrating factor · Section 9.4.3
The question

18. The Integrating Factor of the differential equation xdydx−y=2x2x\dfrac{dy}{dx} - y = 2x^2 is

(A) e−xe^{-x}

(B) e−ye^{-y}

(C) 1x\dfrac{1}{x}

(D) xx

Exam answer

Dividing by xx⁠, dydx−1x y=2x\frac{dy}{dx} - \frac{1}{x}\,y = 2x⁠, which is linear with P=−1xP = -\frac{1}{x}⁠.

I.F.=e∫−1xdx=e−log⁡x=1x\text{I.F.} = e^{\int -\frac{1}{x}dx} = e^{-\log x} = \frac{1}{x}

Answer: (C) 1x\dfrac{1}{x}

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

The integrating factor is e∫P dxe^{\int P\,dx}⁠, but PP can only be read off once the coefficient of dydx\frac{dy}{dx} is 1. Dividing by xx gives P=−1xP = -\frac{1}{x}⁠, so ∫P dx=−log⁡∣x∣\int P\,dx = -\log|x| and the I.F. is 1∣x∣\frac{1}{|x|}⁠, for which 1x\frac{1}{x} serves. The usual wrong answers come from skipping the division or dropping the minus sign.

Given, to find, and the plan
Given
xdydx−y=2x2x\frac{dy}{dx} - y = 2x^2 and four candidate integrating factors.
To find
The integrating factor.
Plan
(1) Reach the standard form and read off PP⁠. (2) I.F. =e∫P dx= e^{\int P\,dx}⁠. (3) Confirm by solving the equation with it. (4) Examine every option. (5) Choose.

Basics you need

1The integrating factor

For dydx+Py=Q\frac{dy}{dx} + Py = Q⁠, with PP⁠, QQ functions of xx only, the I.F. is e∫P dxe^{\int P\,dx}⁠, and y (I.F.)=∫(Q×I.F.) dx+Cy\,(\text{I.F.}) = \int(Q\times\text{I.F.})\,dx + C (Section 9.4.3). Lesson: linear equations, the integrating factor

2Why it works

g=e∫P dxg = e^{\int P\,dx} has g′=Pgg' = Pg⁠, so g y′+Pg y=(yg)′g\,y' + Pg\,y = (yg)'⁠. Basics: (y · g)′ = g(y′ + Py)

3Logs

∫dxx=log⁡∣x∣\int\frac{dx}{x} = \log|x| (Section 7.2, formula (xii)) and e−log⁡∣x∣=1∣x∣e^{-\log|x|} = \frac{1}{|x|}⁠. Basics: exponentials

Solution

  1. The standard form: P=−1xP = -\frac{1}{x}

    dydx−1x y=2x.\frac{dy}{dx} - \frac{1}{x}\,y = 2x.

    So P=−1xP = -\frac{1}{x} and Q=2xQ = 2x⁠.

    Divide xdydx−y=2x2x\frac{dy}{dx} - y = 2x^2 by xx⁠, which needs x≠0x \ne 0 (where x=0x = 0 the coefficient of dydx\frac{dy}{dx} vanishes). The equation is first order and linear: yy and dydx\frac{dy}{dx} appear to the first power, and PP⁠, QQ depend on xx only.
    Section 9.4.3, step (i). Lesson: linear equations
  2. The integrating factor: 1x\frac{1}{x}

    I.F.=e∫−1x dx=e−log⁡∣x∣=1∣x∣.\text{I.F.} = e^{\int -\frac{1}{x}\,dx} = e^{-\log|x|} = \frac{1}{|x|}.

    We take I.F.=1x\text{I.F.} = \frac{1}{x}⁠, as the book does.

    For x>0x > 0⁠, 1∣x∣=1x\frac{1}{|x|} = \frac{1}{x}⁠. For x<0x < 0⁠, 1∣x∣=−1x\frac{1}{|x|} = -\frac{1}{x}⁠, a constant multiple of 1x\frac{1}{x}⁠, and a nonzero constant factor does not change an integrating factor (it cancels from both sides). So 1x\frac{1}{x} works on both sides of 0.
    Section 9.4.3, step (ii); Section 7.2, formula (xii). Basics: exponentials
  3. Confirm: 1x\frac{1}{x} turns the left side into one derivative

    1xdydx−yx2=2ddx(yx)=2.\begin{aligned} \frac{1}{x}\frac{dy}{dx} - \frac{y}{x^2} &= 2 \\ \frac{d}{dx}\left(\frac{y}{x}\right) &= 2. \end{aligned}

    So yx=2x+C\frac{y}{x} = 2x + C⁠, that is y=2x2+Cxy = 2x^2 + Cx⁠. Check: x(4x+C)−(2x2+Cx)=2x2x(4x + C) - (2x^2 + Cx) = 2x^2⁠.

    By the quotient (or product) rule, ddx(yx)=1xdydx−yx2\frac{d}{dx}\left(\frac{y}{x}\right) = \frac{1}{x}\frac{dy}{dx} - \frac{y}{x^2}⁠, exactly the left side. The equation then solves in one line, which confirms the I.F.
    Product rule (Chapter 5, Section 5.3); Section 9.4.3, step (iii). Basics: (y · g)′ = g(y′ + Py)
  4. Examine every option

    (A) e−xe^{-x}⁠. This is e∫P dxe^{\int P\,dx} for P=−1P = -1⁠, as if the equation were dydx−y=…\frac{dy}{dx} - y = \ldots without dividing by xx⁠. Here ddx(y e−x)=e−x(dydx−y)\frac{d}{dx}\left(y\,e^{-x}\right) = e^{-x}\left(\frac{dy}{dx} - y\right)⁠, not e−x(dydx−yx)e^{-x}\left(\frac{dy}{dx} - \frac{y}{x}\right)⁠.

    (B) e−ye^{-y}⁠. For dydx+Py=Q\frac{dy}{dx} + Py = Q the I.F. is a function of xx only; e−ye^{-y} involves the unknown yy and is not of the form e∫P dxe^{\int P\,dx}⁠.

    (C) 1x\frac{1}{x}⁠. Correct, by Steps 2 and 3.

    (D) xx⁠. This is elog⁡xe^{\log x}⁠, the I.F. for P=+1xP = +\frac{1}{x}⁠: the minus sign has been dropped. Here ddx(xy)=xdydx+y\frac{d}{dx}(xy) = x\frac{dy}{dx} + y⁠, while x(dydx−yx)=xdydx−yx\left(\frac{dy}{dx} - \frac{y}{x}\right) = x\frac{dy}{dx} - y⁠; they differ by 2y2y⁠.

    An integrating factor gg must satisfy g′=Pg=−gxg' = Pg = -\frac{g}{x}⁠. For 1x\frac{1}{x}⁠: g′=−1x2=−1x⋅1xg' = -\frac{1}{x^2} = -\frac{1}{x}\cdot\frac{1}{x}⁠. For xx⁠: g′=1g' = 1⁠, but −gx=−1-\frac{g}{x} = -1⁠. For e−xe^{-x}⁠: g′=−e−xg' = -e^{-x}⁠, but −gx=−e−xx-\frac{g}{x} = -\frac{e^{-x}}{x}⁠, which differs unless x=1x = 1⁠.
    Section 9.4.3: g′=Pgg' = Pg defines the I.F. Basics: (y · g)′ = g(y′ + Py)
  5. Choose the option

    OptionWhere it comes fromVerdict
    (A) e−xe^{-x}P=−1P = -1⁠: forgot to divide by xxWrong
    (B) e−ye^{-y}Not a function of xxWrong
    (C) 1x\frac{1}{x}e−log⁡∣x∣e^{-\log|x|}⁠, up to signCorrect
    (D) xxP=+1xP = +\frac{1}{x}⁠: sign droppedWrong

    The correct option is (C).

    Only 1x\frac{1}{x} satisfies g′=Pgg' = Pg with P=−1xP = -\frac{1}{x}⁠, and Step 3 shows it solves the equation.
    The multiple-choice questions of the chapter. Lesson: the multiple-choice questions
Result

The integrating factor is 1x\frac{1}{x}⁠: option (C). With it, the general solution is y=2x2+Cxy = 2x^2 + Cx⁠.

(Textbook answer: C.)

Check it with numbers

Take C=1C = 1⁠: y=2x2+xy = 2x^2 + x⁠. At x=2x = 2⁠: y=10y = 10 and dydx=4x+1=9\frac{dy}{dx} = 4x + 1 = 9⁠, so xdydx−y=18−10=8=2x2x\frac{dy}{dx} - y = 18 - 10 = 8 = 2x^2⁠.

With 1x\frac{1}{x}⁠: yx=2x+1\frac{y}{x} = 2x + 1 has slope 2, and 1x(dydx−yx)=12(9−5)=2\frac{1}{x}\left(\frac{dy}{dx} - \frac{y}{x}\right) = \frac{1}{2}(9 - 5) = 2⁠. They agree.

With xx⁠: ddx(xy)=y+xdydx=10+18=28\frac{d}{dx}(xy) = y + x\frac{dy}{dx} = 10 + 18 = 28⁠, but x(dydx−yx)=2(9−5)=8x\left(\frac{dy}{dx} - \frac{y}{x}\right) = 2(9 - 5) = 8⁠. They do not.

Common mistakes
  1. Reading P=−1P = -1 from xdydx−yx\frac{dy}{dx} - y without dividing by xx⁠: that leads to (A).
  2. Dropping the minus sign in P=−1xP = -\frac{1}{x}⁠: that leads to (D).
  3. Writing e−log⁡x=−xe^{-\log x} = -x⁠. e−log⁡x=elog⁡x−1=1xe^{-\log x} = e^{\log x^{-1}} = \frac{1}{x}⁠.
What to take away
  1. Make the coefficient of dydx\frac{dy}{dx} equal to 1 before reading off PP⁠.
  2. P=kxP = \frac{k}{x} gives I.F. xkx^k⁠; here k=−1k = -1⁠.
  3. Test an I.F. gg with g′=Pgg' = Pg⁠.

Every fact used, and where it comes from

FactUsed inSource
Linear equation; I.F. =e∫P dx= e^{\int P\,dx}⁠, so g′=Pgg' = PgSteps 1, 2, 4Section 9.4.3 (Lesson)
∫dxx=log⁡∣x∣\int\frac{dx}{x} = \log|x|⁠; elog⁡t=te^{\log t} = tStep 2Section 7.2, formula (xii); Chapter 5, Section 5.4 (Basics)
Product and quotient rulesSteps 3, 4Chapter 5, Section 5.3 (Basics)
y (I.F.)=∫(Q×I.F.) dx+Cy\,(\text{I.F.}) = \int(Q\times\text{I.F.})\,dx + CStep 3Section 9.4.3, step (iii) (Lesson)
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →