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

Exercise 9.5 · Q17: Curve through (0,2)(0, 2)⁠: x+yx + y exceeds the slope's magnitude by 5

Exercise 9.5Linear differential equations, a curve from its slope · Section 9.4.3
The question

17. Find the equation of a curve passing through the point (0,2)(0, 2) given that the sum of the coordinates of any point on the curve exceeds the magnitude of the slope of the tangent to the curve at that point by 5.

Exam answer

The slope of the tangent at (x,y)(x, y) is dydx\frac{dy}{dx}⁠. Taking the condition as x+y=dydx+5x + y = \frac{dy}{dx} + 5 (see the note),

dydx−y=x−5\frac{dy}{dx} - y = x - 5

This is of the form dydx+Py=Q\frac{dy}{dx} + Py = Q⁠, where P=−1P = -1 and Q=x−5Q = x - 5⁠.

I.F.=e∫−1 dx=e−x\text{I.F.} = e^{\int -1\,dx} = e^{-x}

So the solution is given by

y e−x=∫(x−5)e−x dx+C…(i)\begin{aligned} y\,e^{-x} &= \int(x - 5)e^{-x}\,dx \\ &\qquad + C\quad\ldots(\text{i}) \end{aligned}

Integrating by parts with x−5x - 5 as the first function,

∫(x−5)e−x dx=−(x−5)e−x−∫1⋅(−e−x) dx=−(x−5)e−x−e−x=(4−x)e−x\begin{aligned} &\int(x - 5)e^{-x}\,dx \\ &= -(x - 5)e^{-x} - \int 1\cdot(-e^{-x})\,dx \\ &= -(x - 5)e^{-x} - e^{-x} \\ &= (4 - x)e^{-x} \end{aligned}

Putting this in (i),

y e−x=(4−x)e−x+Cy=4−x+Cex…(ii)\begin{aligned} y\,e^{-x} &= (4 - x)e^{-x} + C \\ y &= 4 - x + Ce^x\quad\ldots(\text{ii}) \end{aligned}

Putting x=0x = 0⁠, y=2y = 2 in (ii),

2=4−0+C⋅e0C=−2\begin{aligned} 2 &= 4 - 0 + C\cdot e^0 \\ C &= -2 \end{aligned}

Putting C=−2C = -2 in (ii),

∴\therefore The equation of the curve is y=4−x−2exy = 4 - x - 2e^x⁠.

With "the magnitude of the slope" as printed, x+yx + y would be at least 5 at every point of the curve, which fails at (0,2)(0, 2)⁠, where x+y=2x + y = 2⁠. The NCERT answer y=4−x−2exy = 4 - x - 2e^x solves x+y−dydx=5x + y - \frac{dy}{dx} = 5⁠, the equation used here.

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

The one idea this problem is built on

Read the sentence as an equation. Taken word for word, "x+yx + y exceeds the magnitude of the slope by 5" means x+y=∣dydx∣+5x + y = \left|\frac{dy}{dx}\right| + 5⁠, and that cannot hold at the given point (0,2)(0, 2)⁠. The answer key's curve solves the same sentence with the slope itself in place of its magnitude: x+y=dydx+5x + y = \frac{dy}{dx} + 5⁠. That equation, dydx−y=x−5\frac{dy}{dx} - y = x - 5⁠, is linear with P=−1P = -1⁠, so the integrating factor is e−xe^{-x}⁠, and ∫(x−5)e−x dx\int(x - 5)e^{-x}\,dx is done by parts. Compare Q16, which has the same left side.

Given, to find, and the plan
Given
The curve passes through (0,2)(0, 2)⁠; at every point, x+yx + y exceeds "the magnitude of the slope" of the tangent by 5.
To find
The equation of the curve.
Plan
(1) Translate the condition as printed and test it at (0,2)(0, 2)⁠. (2) State the equation the answer key solves. (3) Put it in the form dydx+Py=Q\frac{dy}{dx} + Py = Q⁠. (4) I.F. (5) Multiply and integrate, with one constant. (6) Find the integral by parts. (7) Solve for yy⁠. (8) Use the point. (9) Check, and see the curve.

Basics you need

1Slope of a tangent

At (x,y)(x, y) the slope of the tangent is dydx\frac{dy}{dx}⁠; its magnitude is ∣dydx∣≥0\left|\frac{dy}{dx}\right| \ge 0⁠. Basics: a rule for slopes

2First order linear equations

dydx+Py=Q\frac{dy}{dx} + Py = Q⁠; I.F. =e∫P dx= e^{\int P\,dx}⁠; 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

3Integration by parts

∫f g dx=f∫g dx−∫(f′∫g dx)dx\int f\,g\,dx = f\int g\,dx - \int\left(f'\int g\,dx\right)dx⁠, with ff the first function (Section 7.6); here ∫e−x dx=−e−x\int e^{-x}\,dx = -e^{-x}⁠. Basics: every method ends with an integral

4Exponentials

e0=1e^0 = 1⁠, ex⋅e−x=1e^{x}\cdot e^{-x} = 1⁠, and ex>0e^x > 0 for every xx⁠. Basics: exponentials

Solution

  1. The condition as printed cannot hold at (0,2)(0, 2)

    Word for word, the condition is

    x+y=∣dydx∣+5.x + y = \left|\frac{dy}{dx}\right| + 5.

    Since ∣dydx∣≥0\left|\frac{dy}{dx}\right| \ge 0⁠, every point of such a curve would have x+y≥5x + y \ge 5⁠. But at the given point (0,2)(0, 2)⁠, x+y=0+2=2<5x + y = 0 + 2 = 2 < 5⁠. So no curve through (0,2)(0, 2) satisfies the condition as printed.

    "The slope of the tangent at (x,y)(x, y)" is dydx\frac{dy}{dx}⁠, and "AA exceeds BB by 5" means A=B+5A = B + 5⁠. A magnitude is never negative, which is what makes the printed version impossible here.
    The slope of the tangent is dydx\frac{dy}{dx}⁠, as used in Section 9.4.1, Example 8. Basics: a rule for slopes
  2. The equation the answer key solves

    The key's answer, y=4−x−2exy = 4 - x - 2e^x⁠, satisfies the condition with the slope itself in place of its magnitude:

    x+y=dydx+5,that isdydx=x+y−5.\begin{aligned} &x + y = \frac{dy}{dx} + 5, \\ &\text{that is}\quad \frac{dy}{dx} = x + y - 5. \end{aligned}

    We solve this equation, as the key does, and check in Step 9 that the key's curve satisfies it.

    At (0,2)(0, 2) this gives the slope 0+2−5=−30 + 2 - 5 = -3⁠: a negative slope, whose magnitude is 3. So on this reading x+y=2x + y = 2 exceeds the slope −3-3 by 5, but falls short of the magnitude 3 by 1.
    Reading a slope condition as a differential equation. Basics: a rule for slopes
  3. The linear form: P=−1P = -1⁠, Q=x−5Q = x - 5

    dydx−y=x−5.…(1)\frac{dy}{dx} - y = x - 5.\quad\ldots(1)
    Move yy to the left. Compared with dydx+Py=Q\frac{dy}{dx} + Py = Q⁠: P=−1P = -1 and Q=x−5Q = x - 5⁠, a constant and a function of xx⁠. The equation has order 1 and degree 1.
    Section 9.4.3, step (i). Lesson: linear equations
  4. The integrating factor: e−xe^{-x}

    I.F.=e∫−1 dx=e−x.\text{I.F.} = e^{\int -1\,dx} = e^{-x}.
    ∫−1 dx=−x\int -1\,dx = -x⁠. This is the same I.F. as in Q16, because PP is the same.
    Section 9.4.3, step (ii). Basics: exponentials
  5. Multiply by e−xe^{-x} and integrate, with one constant

    ddx(y e−x)=(x−5)e−xy e−x=∫(x−5)e−x dx+C.…(2)\begin{aligned} \frac{d}{dx}\left(y\,e^{-x}\right) &= (x - 5)e^{-x} \\ y\,e^{-x} &= \int(x - 5)e^{-x}\,dx \\ &\qquad + C.\quad\ldots(2) \end{aligned}
    By the product rule, ddx(y e−x)=e−xdydx−e−xy\frac{d}{dx}\left(y\,e^{-x}\right) = e^{-x}\frac{dy}{dx} - e^{-x}y⁠, which is e−xe^{-x} times the left side of (1). Integrating gives y (I.F.)=∫(Q×I.F.) dx+Cy\,(\text{I.F.}) = \int(Q\times\text{I.F.})\,dx + C⁠, with one arbitrary constant.
    Section 9.4.3, step (iii); product rule (Chapter 5, Section 5.3). Basics: (y · g)′ = g(y′ + Py)
  6. The integral, by parts

    Take x−5x - 5 as the first function and e−xe^{-x} as the second:

    ∫(x−5)e−x dx=(x−5)(−e−x)−∫1⋅(−e−x) dx=−(x−5)e−x−e−x=(−x+5−1)e−x=(4−x)e−x.\begin{aligned} &\int(x - 5)e^{-x}\,dx \\ &= (x - 5)(-e^{-x}) - \int 1\cdot(-e^{-x})\,dx \\ &= -(x - 5)e^{-x} - e^{-x} \\ &= (-x + 5 - 1)e^{-x} \\ &= (4 - x)e^{-x}. \end{aligned}
    ddx(x−5)=1\frac{d}{dx}(x - 5) = 1 and ∫e−x dx=−e−x\int e^{-x}\,dx = -e^{-x}⁠, so ∫1⋅(−e−x) dx=e−x\int 1\cdot(-e^{-x})\,dx = e^{-x}⁠, which is subtracted. Check: ddx[(4−x)e−x]\frac{d}{dx}\left[(4 - x)e^{-x}\right] is −e−x−(4−x)e−x-e^{-x} - (4 - x)e^{-x}⁠, which equals (x−5)e−x(x - 5)e^{-x}⁠.
    Section 7.6, integration by parts. Basics: every method ends with an integral
  7. Solve for yy⁠: the general solution

    y e−x=(4−x)e−x+Cy=4−x+Cex.…(3)\begin{aligned} y\,e^{-x} &= (4 - x)e^{-x} + C \\ y &= 4 - x + Ce^x.\quad\ldots(3) \end{aligned}
    Put the integral into (2), then multiply by exe^x⁠; CC becomes CexCe^x⁠.
    Section 9.4.3: the general solution. Lesson: Exercise 9.5 player
  8. Use the point (0,2)(0, 2)⁠: C=−2C = -2

    Putting x=0x = 0⁠, y=2y = 2 in (3): 2=4−0+C⋅e0=4+C2 = 4 - 0 + C\cdot e^0 = 4 + C⁠, so C=−2C = -2⁠. The curve is

    y=4−x−2ex.y = 4 - x - 2e^x.
    e0=1e^0 = 1⁠. The point picks one member of the family (3).
    Section 9.3: a particular solution. Lesson: general and particular solutions
  9. Check by substituting back, and see the curve

    From y=4−x−2exy = 4 - x - 2e^x⁠: dydx=−1−2ex\frac{dy}{dx} = -1 - 2e^x⁠, and x+y−5=4−2ex−5=−1−2exx + y - 5 = 4 - 2e^x - 5 = -1 - 2e^x⁠. So dydx=x+y−5\frac{dy}{dx} = x + y - 5 at every point, and at x=0x = 0⁠, y=4−0−2=2y = 4 - 0 - 2 = 2⁠.

    With the magnitude, as printed: ∣dydx∣=1+2ex\left|\frac{dy}{dx}\right| = 1 + 2e^x⁠, so x+y−∣dydx∣=3−4exx + y - \left|\frac{dy}{dx}\right| = 3 - 4e^x⁠, which is less than 3 and never equals 5.

    X Y X′ Y′ (0, 2) x + y = 5 O
    Slope field of dydx=x+y−5\frac{dy}{dx} = x + y - 5⁠, with equal scales, and the curve y=4−x−2exy = 4 - x - 2e^x through (0,2)(0, 2)⁠. The condition as printed could only hold on or above the dashed line x+y=5x + y = 5⁠; the given point and the whole curve lie below it.
    Both sides equal −1−2ex-1 - 2e^x⁠, so the key's curve solves x+y−dydx=5x + y - \frac{dy}{dx} = 5 and passes through (0,2)(0, 2)⁠. On it x+y=4−2ex<4x + y = 4 - 2e^x < 4⁠, so the version with the magnitude fails at every point, not only at (0,2)(0, 2)⁠.
    A solution makes L.H.S. = R.H.S. (Section 9.3). Basics: a rule for slopes
Result

Solving x+y−dydx=5x + y - \frac{dy}{dx} = 5⁠, the equation the answer key solves, the general solution is y=4−x+Cexy = 4 - x + Ce^x⁠, and the curve through (0,2)(0, 2) is y=4−x−2exy = 4 - x - 2e^x⁠. (Textbook answer: y=4−x−2exy = 4 - x - 2e^x⁠.)

With "the magnitude of the slope" as printed, the condition forces x+y≥5x + y \ge 5 on the curve, which is false at (0,2)(0, 2)⁠; read that way, no such curve exists.

Check it with numbers

At (0,2)(0, 2)⁠: the slope of the curve is −1−2=−3-1 - 2 = -3⁠, and x+y−dydx=2+3=5x + y - \frac{dy}{dx} = 2 + 3 = 5⁠. With the magnitude, 2−3=−12 - 3 = -1⁠, not 5.

Take x=1x = 1⁠: y=3−2e≈−2.4365637y = 3 - 2e \approx -2.4365637⁠, dydx=−1−2e≈−6.4365637\frac{dy}{dx} = -1 - 2e \approx -6.4365637 and x+y≈−1.4365637x + y \approx -1.4365637⁠. Then x+y−dydx=5x + y - \frac{dy}{dx} = 5⁠, but x+y−∣dydx∣≈−7.8731273x + y - \left|\frac{dy}{dx}\right| \approx -7.8731273⁠.

The curve itself: y(1.001)≈−2.4430029398y(1.001) \approx -2.4430029398 and y(0.999)≈−2.4301298106y(0.999) \approx -2.4301298106⁠. They differ by −0.0128731292-0.0128731292⁠, so

−0.01287312920.002≈−6.43656.\frac{-0.0128731292}{0.002} \approx -6.43656.
Common mistakes
  1. Writing dydx=x+y+5\frac{dy}{dx} = x + y + 5⁠. "x+yx + y exceeds the slope by 5" means x+y=dydx+5x + y = \frac{dy}{dx} + 5⁠, so dydx=x+y−5\frac{dy}{dx} = x + y - 5⁠.
  2. Not testing the given point. With the magnitude, the condition forces x+y≥5x + y \ge 5⁠; at (0,2)(0, 2) it fails, which shows the printed wording cannot be meant literally.
  3. Sign slips in the by-parts step: ∫(x−5)e−x dx=(4−x)e−x\int(x - 5)e^{-x}\,dx = (4 - x)e^{-x}⁠, not (6−x)e−x(6 - x)e^{-x}⁠.
  4. Writing CC instead of CexCe^x after multiplying by exe^x⁠.
What to take away
  1. "AA exceeds BB by kk" means A=B+kA = B + k⁠.
  2. Test a word condition at the given point: here it shows that the magnitude version is impossible and the key uses the signed slope.
  3. ∫(x+a)e−x dx=−(x+a+1)e−x+C\int(x + a)e^{-x}\,dx = -(x + a + 1)e^{-x} + C⁠: by parts with the linear factor first.

Every fact used, and where it comes from

FactUsed inSource
Slope of the tangent =dydx= \frac{dy}{dx}Steps 1, 2Section 9.4.1, Example 8 (Basics)
Linear equation; I.F. =e∫P dx= e^{\int P\,dx}⁠; y (I.F.)=∫(Q×I.F.) dx+Cy\,(\text{I.F.}) = \int(Q\times\text{I.F.})\,dx + CSteps 3, 4, 5Section 9.4.3, steps (i) to (iii) (Lesson)
Order and degreeStep 3Sections 9.2.1 and 9.2.2 (Lesson)
Product rule; ddxe−x=−e−x\frac{d}{dx}e^{-x} = -e^{-x}Step 5Chapter 5, Sections 5.3, 5.3.1 and 5.4 (Basics)
Integration by parts; ∫e−x dx=−e−x\int e^{-x}\,dx = -e^{-x}Step 6Section 7.6; Section 7.2, formula (xi) with Section 7.3.1 (Basics)
Particular solution from a given point; e0=1e^0 = 1Step 8Section 9.3 (Lesson)
Substituting back into the equationStep 9Section 9.3 (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 →