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

Miscellaneous · Q14 (MCQ): General solution of dxdy+P1x=Q1\frac{dx}{dy} + P_1x = Q_1

Miscellaneous ExerciseLinear differential equations in x · Section 9.4.3
The question

14. The general solution of a differential equation of the type dxdy+P1x=Q1\dfrac{dx}{dy} + \text{P}_1x = \text{Q}_1 is

(A) y e∫P1 dy=∫(Q1e∫P1 dy)dy+Cy\,e^{\int\text{P}_1\,dy} = \displaystyle\int\left(\text{Q}_1e^{\int\text{P}_1\,dy}\right)dy + \text{C}

(B) y . e∫P1 dx=∫(Q1e∫P1 dx)dx+Cy\,.\,e^{\int\text{P}_1\,dx} = \displaystyle\int\left(\text{Q}_1e^{\int\text{P}_1\,dx}\right)dx + \text{C}

(C) x e∫P1 dy=∫(Q1e∫P1 dy)dy+Cx\,e^{\int\text{P}_1\,dy} = \displaystyle\int\left(\text{Q}_1e^{\int\text{P}_1\,dy}\right)dy + \text{C}

(D) x e∫P1 dx=∫(Q1e∫P1 dx)dx+Cx\,e^{\int\text{P}_1\,dx} = \displaystyle\int\left(\text{Q}_1e^{\int\text{P}_1\,dx}\right)dx + \text{C}

Exam answer

Here P1P_1⁠, Q1Q_1 are functions of yy only, so the equation is linear in xx and I.F.=e∫P1 dy\text{I.F.} = e^{\int P_1\,dy}⁠.

The solution is x⋅I.F.x\cdot\text{I.F.} =∫(Q1×I.F.) dy+C= \int(Q_1\times\text{I.F.})\,dy + C⁠.

Answer: (C) x e∫P1 dyx\,e^{\int P_1\,dy} =∫(Q1e∫P1 dy)dy+C= \int\left(Q_1e^{\int P_1\,dy}\right)dy + C

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

The one idea this problem is built on

In dxdy+P1x=Q1\frac{dx}{dy} + P_1x = Q_1 the unknown is xx and the variable is yy⁠: it is the linear equation of Section 9.4.3 with the roles of xx and yy swapped. So everything is done with respect to yy⁠: the integrating factor is e∫P1 dye^{\int P_1\,dy}⁠, it multiplies xx⁠, and the integral on the right is taken dydy⁠. Only option (C) does all three.

Given, to find, and the plan
Given
dxdy+P1x=Q1\frac{dx}{dy} + P_1x = Q_1⁠, where P1P_1⁠, Q1Q_1 are constants or functions of yy only.
To find
Its general solution, and which option gives it.
Plan
(1) See which variable is unknown. (2) Find the integrating factor with the product rule. (3) Integrate with respect to yy⁠. (4) Choose the option. (5) Examine every option, also on a test equation.

Basics you need

1Linear equations in xx

For dxdy+P1x=Q1\frac{dx}{dy} + P_1x = Q_1 with P1P_1⁠, Q1Q_1 functions of yy only: I.F. =e∫P1 dy= e^{\int P_1\,dy} and x⋅(I.F.)=∫(Q1×I.F.) dy+Cx\cdot(\text{I.F.}) = \int(Q_1\times\text{I.F.})\,dy + C (Section 9.4.3). Lesson: linear equations, the integrating factor

2The product rule, read backwards

If g′=P1gg' = P_1g⁠, then ddy(x g)=g(dxdy+P1x)\frac{d}{dy}(x\,g) = g\left(\frac{dx}{dy} + P_1x\right)⁠. Basics: (y · g)′ = g(y′ + Py)

3eue^{u} and its derivative

ddye∫P1 dy=P1 e∫P1 dy\frac{d}{dy}e^{\int P_1\,dy} = P_1\,e^{\int P_1\,dy}⁠, by the chain rule. Basics: exponentials

Solution

  1. Which variable is the unknown?

    The equation gives dxdy\frac{dx}{dy}⁠, so xx is the unknown function of yy⁠. It has the form dxdy+P1x=Q1\frac{dx}{dy} + P_1x = Q_1 with P1P_1⁠, Q1Q_1 depending on yy only: linear in xx⁠.

    xx and dxdy\frac{dx}{dy} appear only to the first power and are not multiplied together. This is the "another form" of a first order linear equation in Section 9.4.3: the form dydx+Py=Q\frac{dy}{dx} + Py = Q with xx and yy swapped. Order 1, degree 1.
    Section 9.4.3: the form dxdy+P1x=Q1\frac{dx}{dy} + P_1x = Q_1⁠. Lesson: linear equations
  2. The integrating factor: g(y)=e∫P1 dyg(y) = e^{\int P_1\,dy}

    Multiply the equation by g(y)=e∫P1 dyg(y) = e^{\int P_1\,dy}⁠. Since g′(y)=P1 g(y)g'(y) = P_1\,g(y)⁠,

    gdxdy+P1g x=gdxdy+g′x=ddy(x g),g\frac{dx}{dy} + P_1g\,x = g\frac{dx}{dy} + g'x = \frac{d}{dy}(x\,g),

    so the equation becomes ddy(x e∫P1 dy)=Q1e∫P1 dy\frac{d}{dy}\left(x\,e^{\int P_1\,dy}\right) = Q_1e^{\int P_1\,dy}⁠.

    By the chain rule, ddye∫P1 dy=e∫P1 dy⋅P1\frac{d}{dy}e^{\int P_1\,dy} = e^{\int P_1\,dy}\cdot P_1⁠. The product rule with respect to yy then turns the left side into one derivative. This is the book's derivation in Section 9.4.3, with xx and yy swapped.
    Section 9.4.3, the integrating factor. Basics: (y · g)′ = g(y′ + Py)
  3. Integrate with respect to yy

    x e∫P1 dy=∫(Q1e∫P1 dy)dy+C.x\,e^{\int P_1\,dy} = \int\left(Q_1e^{\int P_1\,dy}\right)dy + C.
    Both sides are functions of yy⁠, so we integrate with respect to yy⁠, adding one arbitrary constant CC⁠. This is x⋅(I.F.)=∫(Q1×I.F.) dy+Cx\cdot(\text{I.F.}) = \int(Q_1\times\text{I.F.})\,dy + C⁠, the solution the book states for this form.
  4. Choose the option

    The general solution is x e∫P1 dy=∫(Q1e∫P1 dy)dy+Cx\,e^{\int P_1\,dy} = \int\left(Q_1e^{\int P_1\,dy}\right)dy + C⁠. The correct option is (C).

    It multiplies the unknown xx by the I.F. e∫P1 dye^{\int P_1\,dy} and integrates dydy⁠, exactly as derived.
    The multiple-choice questions of the chapter. Lesson: the multiple-choice questions
  5. Examine every option

    OptionWhat it doesVerdict
    (A)Right I.F. and dydy⁠, but multiplies yy⁠, not the unknown xxWrong
    (B)The rule for dydx+Py=Q\frac{dy}{dx} + Py = Q⁠: multiplies yy⁠, integrates dxdxWrong form
    (C)Multiplies xx by e∫P1 dye^{\int P_1\,dy}⁠, integrates dydyCorrect
    (D)Multiplies xx⁠, but integrates P1P_1⁠, Q1Q_1 (functions of yy⁠) with respect to xxWrong

    Test them on dxdy+x=1\frac{dx}{dy} + x = 1 (P1=Q1=1P_1 = Q_1 = 1⁠), whose solutions are x=1+Ce−yx = 1 + Ce^{-y}⁠:

    (C): x ey=∫ey dy+C=ey+Cx\,e^{y} = \int e^{y}\,dy + C = e^{y} + C⁠, so x=1+Ce−yx = 1 + Ce^{-y}⁠. Correct.

    (A): y ey=ey+Cy\,e^{y} = e^{y} + C makes yy a constant: horizontal lines, along which dxdy\frac{dx}{dy} does not exist.

    (B): y ex=ex+Cy\,e^{x} = e^{x} + C⁠, so y=1+Ce−xy = 1 + Ce^{-x}⁠. With C=1C = 1⁠, at (0,2)(0, 2)⁠: dydx=−1\frac{dy}{dx} = -1⁠, so dxdy+x=−1+0=−1≠1\frac{dx}{dy} + x = -1 + 0 = -1 \ne 1⁠.

    (D): x ex=ex+Cx\,e^{x} = e^{x} + C makes xx a constant kk⁠: then dxdy=0\frac{dx}{dy} = 0 and the equation needs k=1k = 1⁠, a single line, not a family with an arbitrary constant.

    The test equation shows each failure concretely: only (C) produces the whole family x=1+Ce−yx = 1 + Ce^{-y}⁠. In general, P1P_1 and Q1Q_1 are functions of yy⁠, so integrals dxdx of them, as in (B) and (D), are the wrong integrals, and the I.F. must multiply the unknown xx⁠, not yy⁠.
    Section 9.4.3 and its examples in xx⁠. Compare Example 16. Lesson: Examples 14 to 18
Result

For dxdy+P1x=Q1\frac{dx}{dy} + P_1x = Q_1⁠: x e∫P1 dy=∫(Q1e∫P1 dy)dy+Cx\,e^{\int P_1\,dy} = \int\left(Q_1e^{\int P_1\,dy}\right)dy + C⁠, option (C).

(Textbook answer: C.)

Check it with numbers

On the solution x=1+e−yx = 1 + e^{-y} of dxdy+x=1\frac{dx}{dy} + x = 1 (option (C) with C=1C = 1⁠), take y=1y = 1⁠: x≈1.3678794x \approx 1.3678794 and dxdy=−e−1≈−0.3678794\frac{dx}{dy} = -e^{-1} \approx -0.3678794⁠. Then dxdy+x\frac{dx}{dy} + x ≈−0.3678794+1.3678794=1\approx -0.3678794 + 1.3678794 = 1⁠, as the equation requires.

Common mistakes
  1. Choosing (B) out of habit. (B) is the rule for dydx+Py=Q\frac{dy}{dx} + Py = Q⁠, not for this form.
  2. Multiplying the wrong variable. The I.F. multiplies the unknown function, here xx⁠.
  3. Integrating with respect to xx⁠. P1P_1 and Q1Q_1 are functions of yy⁠, so every integral is dydy⁠.
What to take away
  1. In dxdy+P1x=Q1\frac{dx}{dy} + P_1x = Q_1⁠, swap the roles: I.F. =e∫P1 dy= e^{\int P_1\,dy}⁠, and x⋅I.F.=∫Q1⋅I.F. dy+Cx\cdot\text{I.F.} = \int Q_1\cdot\text{I.F.}\,dy + C⁠.
  2. Check an option by testing it on a simple equation whose solution you know.

Every fact used, and where it comes from

FactUsed inSource
The form dxdy+P1x=Q1\frac{dx}{dy} + P_1x = Q_1⁠; I.F. =e∫P1 dy= e^{\int P_1\,dy}⁠; x⋅(I.F.)=∫(Q1×I.F.) dy+Cx\cdot(\text{I.F.}) = \int(Q_1\times\text{I.F.})\,dy + CSteps 1 to 4Section 9.4.3 (Lesson)
Order and degreeStep 1Sections 9.2.1 and 9.2.2 (Lesson)
Product rule and chain ruleStep 2Chapter 5, Sections 5.3 and 5.3.1 (Basics)
∫ey dy=ey+C\int e^y\,dy = e^y + CStep 5Section 7.2 (Basics)
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 →