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

Exercise 9.4 · Q11: Particular solution of (x+y) dy+(x−y) dx=0(x + y)\,dy + (x - y)\,dx = 0⁠, y(1)=1y(1) = 1

Exercise 9.4Homogeneous differential equations, particular solution · Section 9.4.2
The question

For each of the differential equations in Exercises from 11 to 15, find the particular solution satisfying the given condition:

11. (x+y) dy+(x−y) dx=0(x + y)\,dy + (x - y)\,dx = 0⁠; y=1y = 1 when x=1x = 1

Exam answer

The equation can be written as

dydx=y−xx+y=F(x,y)\frac{dy}{dx} = \frac{y - x}{x + y} = F(x, y)

Replacing xx by λx\lambda x and yy by λy\lambda y⁠,

F(λx,λy)=λ(y−x)λ(x+y)=λ0⋅F(x,y)\begin{aligned} F(\lambda x, \lambda y) &= \frac{\lambda(y - x)}{\lambda(x + y)} \\ &= \lambda^0\cdot F(x, y) \end{aligned}

So FF is homogeneous of degree zero, and the equation is homogeneous.

Put y=vxy = vx⁠. Then dydx=v+xdvdx\frac{dy}{dx} = v + x\frac{dv}{dx}⁠.

v+xdvdx=v−11+vxdvdx=v−11+v−v=−1+v21+v\begin{aligned} v + x\frac{dv}{dx} &= \frac{v - 1}{1 + v} \\ x\frac{dv}{dx} &= \frac{v - 1}{1 + v} - v \\ &= -\frac{1 + v^2}{1 + v} \end{aligned}

Separating the variables,

1+v1+v2 dv=−dxx\frac{1 + v}{1 + v^2}\,dv = -\frac{dx}{x}

Splitting the fraction and integrating both sides,

∫dv1+v2+∫v dv1+v2=−∫dxx\begin{aligned} &\int\frac{dv}{1 + v^2} + \int\frac{v\,dv}{1 + v^2} \\ &= -\int\frac{dx}{x} \end{aligned}

In the second integral put 1+v2=t1 + v^2 = t⁠, so 2v dv=dt2v\,dv = dt⁠.

tan⁡−1v+12log⁡(1+v2)=−log⁡∣x∣+C1\begin{aligned} &\tan^{-1}v + \frac{1}{2}\log(1 + v^2) \\ &= -\log|x| + C_1 \end{aligned}

Multiplying by 2, writing C=2C1C = 2C_1 and 2log⁡∣x∣=log⁡x22\log|x| = \log x^2⁠,

2tan⁡−1v+log⁡(1+v2)+log⁡x2=C\begin{aligned} &2\tan^{-1}v + \log(1 + v^2) \\ &\quad + \log x^2 = C \end{aligned}

Putting v=yxv = \frac{y}{x}⁠, since (1+v2)x2=x2+y2(1 + v^2)x^2 = x^2 + y^2⁠,

log⁡(x2+y2)+2tan⁡−1yx=C…(i)\begin{aligned} &\log(x^2 + y^2) \\ &\quad + 2\tan^{-1}\frac{y}{x} = C\quad\ldots(\text{i}) \end{aligned}

Putting x=1x = 1⁠, y=1y = 1 in (i),

C=log⁡2+2tan⁡−11=log⁡2+π2\begin{aligned} C &= \log 2 + 2\tan^{-1}1 \\ &= \log 2 + \frac{\pi}{2} \end{aligned}

∴\therefore The particular solution is log⁡(x2+y2)+2tan⁡−1yx\log(x^2 + y^2) + 2\tan^{-1}\dfrac{y}{x} =π2+log⁡2= \dfrac{\pi}{2} + \log 2⁠.

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

The one idea this problem is built on

Both brackets, x+yx + y and x−yx - y⁠, have degree 1, so the slope y−xx+y\frac{y - x}{x + y} depends only on the ratio yx\frac{y}{x}⁠: the equation is homogeneous and y=vxy = vx separates it. The vv-integral splits into a tan⁡−1\tan^{-1} part and a log part. Then the condition "y=1y = 1 when x=1x = 1" picks the one curve of the family through (1,1)(1, 1)⁠.

Given, to find, and the plan
Given
(x+y) dy+(x−y) dx=0(x + y)\,dy + (x - y)\,dx = 0⁠, and y=1y = 1 when x=1x = 1⁠.
To find
The particular solution: no arbitrary constant, passing through (1,1)(1, 1)⁠.
Plan
(1) Write it as dydx=F(x,y)\frac{dy}{dx} = F(x, y)⁠. (2) Show F(λx,λy)=F(x,y)F(\lambda x, \lambda y) = F(x, y)⁠. (3) Put y=vxy = vx⁠. (4) Simplify to xdvdx=…x\frac{dv}{dx} = \ldots⁠. (5) Separate. (6) Integrate. (7) Put v=yxv = \frac{y}{x} back: the general solution. (8) Use the condition. (9) Check, and see the curve.

Basics you need

1Homogeneous functions and equations

dydx=F(x,y)\frac{dy}{dx} = F(x, y) is homogeneous when F(λx,λy)=λ0F(x,y)F(\lambda x, \lambda y) = \lambda^0F(x, y) for every nonzero λ\lambda (Section 9.4.2). Basics: scale x and y together

2The substitution y=vxy = vx

dydx=v+xdvdx\frac{dy}{dx} = v + x\frac{dv}{dx} by the product rule; the equation becomes xdvdx=g(v)−vx\frac{dv}{dx} = g(v) - v⁠, which separates (Section 9.4.2, equations (2) to (6)). Lesson: homogeneous equations, put y = vx

3Three standard integrals

∫dv1+v2=tan⁡−1v+C\int\frac{dv}{1 + v^2} = \tan^{-1}v + C and ∫dxx=log⁡∣x∣+C\int\frac{dx}{x} = \log|x| + C (Section 7.2, formulas (x) and (xii)); ∫v dv1+v2=12log⁡(1+v2)+C\int\frac{v\,dv}{1 + v^2} = \frac12\log(1 + v^2) + C (substitution t=1+v2t = 1 + v^2⁠, Section 7.3.1). Basics: every method ends with an integral

4General and particular solutions

The general solution of a first order equation has one arbitrary constant (chapter Summary); the condition "y=1y = 1 when x=1x = 1" fixes it and gives the particular solution (Section 9.3). Lesson: general and particular solutions

Solution

  1. Write the equation as dydx=F(x,y)\frac{dy}{dx} = F(x, y)

    Move (x−y) dx(x - y)\,dx across and divide by (x+y) dx(x + y)\,dx⁠:

    dydx=−(x−y)x+y=y−xx+y=F(x,y).…(1)\begin{aligned} \frac{dy}{dx} &= \frac{-(x - y)}{x + y} = \frac{y - x}{x + y} \\ &= F(x, y).\quad\ldots(1) \end{aligned}
    We need x≠0x \ne 0 anyway, because v=yxv = \frac{y}{x} will be used. Dividing by x+yx + y loses no solution: at a point of the line y=−xy = -x (with x≠0x \ne 0⁠) the given equation reads 0⋅dy+2x dx=00\cdot dy + 2x\,dx = 0⁠, which forces dx=0dx = 0⁠, a vertical tangent. So no solution y(x)y(x) with a finite slope passes through such a point.
    Section 9.4.2: a homogeneous equation has the form dydx=F(x,y)\frac{dy}{dx} = F(x, y)⁠. Lesson: homogeneous equations
  2. Show that it is homogeneous: F(λx,λy)=F(x,y)F(\lambda x, \lambda y) = F(x, y)

    Replace xx by λx\lambda x and yy by λy\lambda y⁠, for any λ≠0\lambda \ne 0⁠:

    F(λx,λy)=λy−λxλx+λy=λ(y−x)λ(x+y)=λ0⋅F(x,y).\begin{aligned} F(\lambda x, \lambda y) &= \frac{\lambda y - \lambda x}{\lambda x + \lambda y} \\ &= \frac{\lambda(y - x)}{\lambda(x + y)} = \lambda^0\cdot F(x, y). \end{aligned}

    So FF is a homogeneous function of degree zero, and (1) is a homogeneous differential equation.

    Top and bottom both have degree 1, so one factor λ\lambda comes out of each and cancels.
    Section 9.4.2: homogeneous function of degree nn⁠. Basics: scale x and y together
  3. Substitute y=vxy = vx

    Put y=vxy = vx⁠; then dydx=v+xdvdx\frac{dy}{dx} = v + x\frac{dv}{dx}⁠, and (1) becomes

    v+xdvdx=vx−xx+vx=v−11+v.v + x\frac{dv}{dx} = \frac{vx - x}{x + vx} = \frac{v - 1}{1 + v}.
    Dividing top and bottom by x≠0x \ne 0 leaves a function of vv only, as homogeneity guarantees.
    Section 9.4.2, equations (2) and (3). Lesson: put y = vx
  4. Simplify to xdvdx=…x\frac{dv}{dx} = \ldots

    xdvdx=v−11+v−v=v−1−v−v21+v=−1+v21+v.\begin{aligned} x\frac{dv}{dx} &= \frac{v - 1}{1 + v} - v \\ &= \frac{v - 1 - v - v^2}{1 + v} \\ &= -\frac{1 + v^2}{1 + v}. \end{aligned}
    Write vv over the common denominator 1+v1 + v⁠: v=v+v21+vv = \frac{v + v^2}{1 + v}⁠. The vv terms cancel and −1−v2=−(1+v2)-1 - v^2 = -(1 + v^2)⁠.
    Section 9.4.2, equation (4): xdvdx=g(v)−vx\frac{dv}{dx} = g(v) - v⁠. Lesson: homogeneous equations
  5. Separate vv and xx

    1+v1+v2 dv=−dxx.\frac{1 + v}{1 + v^2}\,dv = -\frac{dx}{x}.
    Multiply by 1+v1+v2\frac{1 + v}{1 + v^2} and by dxx\frac{dx}{x}⁠. Dividing by 1+v21 + v^2 loses no solution, because 1+v2≥11 + v^2 \ge 1 is never 0 (and 1+v≠01 + v \ne 0 was settled in Step 1).
    Section 9.4.2, equation (5); separating as in Section 9.4.1. Basics: dy = y′ dx
  6. Integrate both sides

    Split the fraction: 1+v1+v2=11+v2+v1+v2\frac{1 + v}{1 + v^2} = \frac{1}{1 + v^2} + \frac{v}{1 + v^2}⁠. For the second piece put t=1+v2t = 1 + v^2⁠, dt=2v dvdt = 2v\,dv⁠, so ∫v dv1+v2=12∫dtt=12log⁡(1+v2)\int\frac{v\,dv}{1 + v^2} = \frac12\int\frac{dt}{t} = \frac12\log(1 + v^2)⁠. With one constant C1C_1⁠:

    tan⁡−1v+12log⁡(1+v2)=−log⁡∣x∣+C1.…(2)\begin{aligned} \tan^{-1}v &+ \tfrac{1}{2}\log(1 + v^2) \\ &= -\log|x| + C_1.\quad\ldots(2) \end{aligned}

    Check: differentiating the left side of (2) with respect to vv⁠,

    ddv(tan⁡−1v+12log⁡(1+v2))=11+v2+v1+v2,\begin{aligned} &\frac{d}{dv}\left(\tan^{-1}v + \tfrac12\log(1 + v^2)\right) \\ &= \frac{1}{1 + v^2} + \frac{v}{1 + v^2}, \end{aligned}

    the integrand.

    No modulus is needed in log⁡(1+v2)\log(1 + v^2)⁠, because 1+v2>01 + v^2 > 0⁠. The equation has order 1 (and degree 1, as a polynomial in dydx\frac{dy}{dx}⁠), so one arbitrary constant is enough.
    Section 7.2, formulas (x) and (xii); substitution, Section 7.3.1. Basics: every method ends with an integral
  7. Put v=yxv = \frac{y}{x} back: the general solution

    Multiply (2) by 2, move 2log⁡∣x∣=log⁡x22\log|x| = \log x^2 to the left, and write C=2C1C = 2C_1⁠:

    2tan⁡−1v+log⁡[(1+v2)x2]=C.2\tan^{-1}v + \log\left[(1 + v^2)x^2\right] = C.

    Since (1+v2)x2=x2+y2(1 + v^2)x^2 = x^2 + y^2⁠,

    log⁡(x2+y2)+2tan⁡−1yx=C.…(3)\log(x^2 + y^2) + 2\tan^{-1}\frac{y}{x} = C.\quad\ldots(3)
    log⁡(1+v2)+log⁡x2=log⁡[(1+v2)x2]\log(1 + v^2) + \log x^2 = \log\left[(1 + v^2)x^2\right]⁠, and x2(1+y2x2)=x2+y2x^2\left(1 + \frac{y^2}{x^2}\right) = x^2 + y^2⁠. C=2C1C = 2C_1 is again one arbitrary constant. This is the general solution, for x≠0x \ne 0 and x+y≠0x + y \ne 0⁠.
    Section 9.4.2: replace vv to get the general solution. Lesson: Examples 10 to 13
  8. Use the condition: y=1y = 1 when x=1x = 1

    Putting x=1x = 1⁠, y=1y = 1 in (3):

    C=log⁡2+2tan⁡−11=log⁡2+2⋅π4=π2+log⁡2.\begin{aligned} C &= \log 2 + 2\tan^{-1}1 \\ &= \log 2 + 2\cdot\frac{\pi}{4} = \frac{\pi}{2} + \log 2. \end{aligned}

    So the particular solution is

    log⁡(x2+y2)+2tan⁡−1yx=π2+log⁡2.\begin{aligned} &\log(x^2 + y^2) + 2\tan^{-1}\frac{y}{x} \\ &= \frac{\pi}{2} + \log 2. \end{aligned}
    12+12=21^2 + 1^2 = 2⁠, and tan⁡−11=π4\tan^{-1}1 = \frac{\pi}{4} (principal value, in (−π2,π2)\left(-\frac{\pi}{2}, \frac{\pi}{2}\right)⁠). Of all the curves (3), only this one passes through (1,1)(1, 1)⁠.
    Section 9.3: a particular solution from the general one. Lesson: general and particular solutions
  9. Check by substituting back, and see the curve

    Check: differentiate (3) with respect to xx⁠. Since ddxtan⁡−1yx=11+y2/x2⋅xy′−yx2=xy′−yx2+y2\frac{d}{dx}\tan^{-1}\frac{y}{x} = \frac{1}{1 + y^2/x^2}\cdot\frac{xy' - y}{x^2} = \frac{xy' - y}{x^2 + y^2}⁠,

    2x+2yy′x2+y2+2(xy′−y)x2+y2=0x+yy′+xy′−y=0(x+y)y′+(x−y)=0,\begin{aligned} \frac{2x + 2yy'}{x^2 + y^2} + \frac{2(xy' - y)}{x^2 + y^2} &= 0 \\ x + yy' + xy' - y &= 0 \\ (x + y)y' + (x - y) &= 0, \end{aligned}

    which is the given equation, for every CC⁠. The point: log⁡2+2⋅π4=π2+log⁡2\log 2 + 2\cdot\frac{\pi}{4} = \frac{\pi}{2} + \log 2⁠, so (1,1)(1, 1) lies on the particular solution.

    Where it lives. The method needs x≠0x \ne 0⁠, and the given point has x=1x = 1⁠, so we work on x>0x > 0⁠. There, with x=rcos⁡θx = r\cos\theta⁠, y=rsin⁡θy = r\sin\theta and θ=tan⁡−1yx\theta = \tan^{-1}\frac{y}{x}⁠, the answer reads log⁡r2+2θ=π2+log⁡2\log r^2 + 2\theta = \frac{\pi}{2} + \log 2⁠, that is

    r=2 eπ4−θ:r = \sqrt2\,e^{\frac{\pi}{4} - \theta}:

    a spiral. As θ\theta runs from π2\frac{\pi}{2} down to −π4-\frac{\pi}{4}⁠, xx runs from 0 up to eπ/2≈4.81e^{\pi/2} \approx 4.81⁠. At θ=−π4\theta = -\frac{\pi}{4} the curve meets the line y=−xy = -x at (eπ/2,−eπ/2)\left(e^{\pi/2}, -e^{\pi/2}\right) with a vertical tangent, as Step 1 predicts. So the particular solution is a function y(x)y(x) on 0<x<eπ/20 < x < e^{\pi/2}⁠.

    X Y Y′ (1, 1) (4.81, −4.81) y = −x (0, 0.645) O
    Slope field of dydx=y−xx+y\frac{dy}{dx} = \frac{y - x}{x + y} for x>0x > 0⁠, with equal scales, and the particular solution through (1,1)(1, 1)⁠. It starts near (0,2e−π/4)≈(0,0.645)\left(0, \sqrt2e^{-\pi/4}\right) \approx (0, 0.645) (hollow dot: x=0x = 0 is excluded) and ends at (eπ/2,−eπ/2)≈(4.81,−4.81)\left(e^{\pi/2}, -e^{\pi/2}\right) \approx (4.81, -4.81) on the dashed line y=−xy = -x⁠, where the tangent is vertical (hollow dot: the slope is not defined there).
    Getting the equation back proves the answer. The polar form shows what the implicit answer hides: the curve is part of a spiral around the origin, and as a function of xx it stops where it meets y=−xy = -x⁠.
    Implicit differentiation and the chain rule for tan⁡−1yx\tan^{-1}\frac{y}{x} (Chapter 5). Basics: a rule for slopes
Result

The equation is homogeneous, since F(λx,λy)=λ0F(x,y)F(\lambda x, \lambda y) = \lambda^0F(x, y)⁠. Its general solution is log⁡(x2+y2)+2tan⁡−1yx=C\log(x^2 + y^2) + 2\tan^{-1}\frac{y}{x} = C⁠, and the particular solution with y=1y = 1 when x=1x = 1 is

log⁡(x2+y2)+2tan⁡−1yx=π2+log⁡2,\begin{aligned} &\log(x^2 + y^2) + 2\tan^{-1}\frac{y}{x} \\ &= \frac{\pi}{2} + \log 2, \end{aligned}

a function y(x)y(x) on 0<x<eπ/20 < x < e^{\pi/2}⁠. (Textbook answer: log⁡(x2+y2)+2tan⁡−1yx=π2+log⁡2\log(x^2 + y^2) + 2\tan^{-1}\frac{y}{x} = \frac{\pi}{2} + \log 2⁠.)

Check it with numbers

Take x=2x = 2⁠. Solving the particular solution numerically gives y≈0.7736594y \approx 0.7736594⁠. Then log⁡(4+y2)≈1.5257408\log(4 + y^2) \approx 1.5257408 and 2tan⁡−1y2≈0.73820272\tan^{-1}\frac{y}{2} \approx 0.7382027⁠, whose sum is 2.26394352.2639435⁠; and π2+log⁡2≈2.2639435\frac{\pi}{2} + \log 2 \approx 2.2639435⁠.

The equation gives the slope y−xx+y≈−0.44214\frac{y - x}{x + y} \approx -0.44214 there. The curve itself: y(2.001)≈0.7732170327y(2.001) \approx 0.7732170327 and y(1.999)≈0.7741013091y(1.999) \approx 0.7741013091⁠, a difference of −0.0008842764-0.0008842764⁠, so

−0.00088427640.002≈−0.44214.\frac{-0.0008842764}{0.002} \approx -0.44214.
Common mistakes
  1. Sign slip in dydx\frac{dy}{dx}⁠. Moving (x−y) dx(x - y)\,dx across gives −(x−y)=y−x-(x - y) = y - x on top.
  2. Integrating 1+v1+v2\frac{1 + v}{1 + v^2} as one log. Split it: 11+v2\frac{1}{1 + v^2} gives tan⁡−1v\tan^{-1}v⁠, and only v1+v2\frac{v}{1 + v^2} gives a log.
  3. Forgetting to double the tan⁡−1\tan^{-1}⁠. Multiplying by 2 gives 2tan⁡−1yx2\tan^{-1}\frac{y}{x} and log⁡(x2+y2)\log(x^2 + y^2)⁠.
  4. Using tan⁡−11=45\tan^{-1}1 = 45⁠. In the answer it is π4\frac{\pi}{4}⁠, so C=π2+log⁡2C = \frac{\pi}{2} + \log 2⁠.
What to take away
  1. Degree 1 over degree 1 is homogeneous: put y=vxy = vx⁠.
  2. A fraction a+bv1+v2\frac{a + bv}{1 + v^2} splits into a tan⁡−1\tan^{-1} part and a log part.
  3. For a particular solution, find the general one, then put the given values in on their own line to find CC⁠.

Every fact used, and where it comes from

FactUsed inSource
Homogeneous function of degree zero; homogeneous equationSteps 1, 2Section 9.4.2 (Basics)
y=vxy = vx⁠, dydx=v+xdvdx\frac{dy}{dx} = v + x\frac{dv}{dx}⁠; xdvdx=g(v)−vx\frac{dv}{dx} = g(v) - vSteps 3, 4Section 9.4.2, equations (2) to (4) (Lesson)
Separating the variablesStep 5Section 9.4.1 (Basics)
∫dv1+v2=tan⁡−1v+C\int\frac{dv}{1 + v^2} = \tan^{-1}v + C⁠; ∫dxx=log⁡∣x∣+C\int\frac{dx}{x} = \log|x| + CStep 6Section 7.2, formulas (x) and (xii) (Basics)
Integration by substitution, t=1+v2t = 1 + v^2Step 6Section 7.3.1
Particular solution from a given point; tan⁡−11=π4\tan^{-1}1 = \frac{\pi}{4}Step 8Section 9.3 (Lesson); Chapter 2
Implicit differentiation; chain rule; ddutan⁡−1u=11+u2\frac{d}{du}\tan^{-1}u = \frac{1}{1 + u^2}Step 9Chapter 5, Sections 5.3.1 to 5.3.3 (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 →