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

Miscellaneous · Q5: dydx+y2+y+1x2+x+1=0\frac{dy}{dx} + \frac{y^2 + y + 1}{x^2 + x + 1} = 0 gives x+y+1=A(1−x−y−2xy)x + y + 1 = A(1 - x - y - 2xy)

Miscellaneous ExerciseVariables separable · Section 9.4.1
The question

5. Show that the general solution of the differential equation dydx+y2+y+1x2+x+1=0\dfrac{dy}{dx} + \dfrac{y^2 + y + 1}{x^2 + x + 1} = 0 is given by (x+y+1)=A (1−x−y−2xy)(x + y + 1) = A\,(1 - x - y - 2xy)⁠, where A is parameter.

Exam answer

Since y2+y+1>0y^2 + y + 1 > 0 and x2+x+1>0x^2 + x + 1 > 0⁠, the variables are separable:

dyy2+y+1=−dxx2+x+1\frac{dy}{y^2 + y + 1} = -\frac{dx}{x^2 + x + 1}

Completing the squares and integrating both sides,

∫dy(y+12)2+(32)2=−∫dx(x+12)2+(32)2\begin{aligned} &\int\frac{dy}{\left(y + \frac12\right)^2 + \left(\frac{\sqrt3}{2}\right)^2} \\ &= -\int\frac{dx}{\left(x + \frac12\right)^2 + \left(\frac{\sqrt3}{2}\right)^2} \end{aligned}

Using ∫dxx2+a2=1atan⁡−1xa+C\int\frac{dx}{x^2 + a^2} = \frac{1}{a}\tan^{-1}\frac{x}{a} + C⁠,

23tan⁡−12y+13=−23tan⁡−12x+13+C\begin{aligned} &\frac{2}{\sqrt3}\tan^{-1}\frac{2y + 1}{\sqrt3} \\ &= -\frac{2}{\sqrt3}\tan^{-1}\frac{2x + 1}{\sqrt3} + C \end{aligned}

Let tan⁡−12y+13=α\tan^{-1}\frac{2y + 1}{\sqrt3} = \alpha and tan⁡−12x+13=β\tan^{-1}\frac{2x + 1}{\sqrt3} = \beta⁠. Then α+β=32C=k\alpha + \beta = \frac{\sqrt3}{2}C = k (say).

Taking tangents, tan⁡(α+β)=tan⁡k\tan(\alpha + \beta) = \tan k⁠:

tan⁡α+tan⁡β1−tan⁡αtan⁡β=tan⁡k…(i)\frac{\tan\alpha + \tan\beta}{1 - \tan\alpha\tan\beta} = \tan k\quad\ldots(\text{i})

Here

tan⁡α+tan⁡β=2(x+y+1)31−tan⁡αtan⁡β=1−(2y+1)(2x+1)3=2(1−x−y−2xy)3\begin{aligned} &\tan\alpha + \tan\beta \\ &= \frac{2(x + y + 1)}{\sqrt3} \\ &1 - \tan\alpha\tan\beta \\ &= 1 - \frac{(2y + 1)(2x + 1)}{3} \\ &= \frac{2(1 - x - y - 2xy)}{3} \end{aligned}

So (i) becomes

3 (x+y+1)1−x−y−2xy=tan⁡k\frac{\sqrt3\,(x + y + 1)}{1 - x - y - 2xy} = \tan k

Writing A=tan⁡k3A = \frac{\tan k}{\sqrt3}⁠, which can take any real value,

∴\therefore x+y+1=A(1−x−y−2xy)x + y + 1 = A(1 - x - y - 2xy)⁠, AA a parameter, is the general solution. Hence proved.

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

The one idea this problem is built on

The right side is a function of yy divided by a function of xx⁠, so the variables separate. Each side is ∫duu2+u+1\int\frac{du}{u^2 + u + 1}⁠, which completing the square turns into an inverse tangent. The answer then reads α+β=k\alpha + \beta = k for two inverse tangents; taking the tangent of both sides with tan⁡(α+β)=tan⁡α+tan⁡β1−tan⁡αtan⁡β\tan(\alpha + \beta) = \frac{\tan\alpha + \tan\beta}{1 - \tan\alpha\tan\beta} removes the inverse tangents and gives the algebraic form asked for.

Given, to find, and the plan
Given
dydx+y2+y+1x2+x+1=0\frac{dy}{dx} + \frac{y^2 + y + 1}{x^2 + x + 1} = 0⁠, a first order equation.
To show
That its general solution is x+y+1=A(1−x−y−2xy)x + y + 1 = A(1 - x - y - 2xy)⁠, with AA a parameter.
Plan
(1) Show both quadratics are positive. (2) Separate. (3) Complete the squares and integrate, with one constant. (4) Name the two angles. (5) Take tangents and simplify. (6) Read off AA and the range it covers. (7) Check by differentiating back.

Basics you need

1Variables separable

dydx=h(y) g(x)\frac{dy}{dx} = h(y)\,g(x) with h(y)≠0h(y) \ne 0 gives dyh(y)=g(x) dx\frac{dy}{h(y)} = g(x)\,dx⁠; integrate both sides (Section 9.4.1). Lesson: variables separable

2Completing the square and ∫dxx2+a2\int\frac{dx}{x^2 + a^2}

u2+u+1=(u+12)2+34u^2 + u + 1 = \left(u + \frac12\right)^2 + \frac34⁠, and ∫dxx2+a2=1atan⁡−1xa+C\int\frac{dx}{x^2 + a^2} = \frac{1}{a}\tan^{-1}\frac{x}{a} + C (Section 7.4, formula (3)). Basics: every method ends with an integral

3Tangent of a sum

tan⁡(α+β)=tan⁡α+tan⁡β1−tan⁡αtan⁡β\tan(\alpha + \beta) = \frac{\tan\alpha + \tan\beta}{1 - \tan\alpha\tan\beta}⁠, whenever both sides are defined (Class XI, trigonometric functions); and tan⁡(tan⁡−1u)=u\tan(\tan^{-1}u) = u (Chapter 2). Lesson: Miscellaneous exercise player

4One constant for a first order equation

The general solution of a first order equation has one arbitrary constant (chapter Summary). Basics: order n gives n constants

Solution

  1. Both quadratics are always positive

    y2+y+1=(y+12)2+34>0,x2+x+1=(x+12)2+34>0.\begin{aligned} y^2 + y + 1 &= \left(y + \tfrac12\right)^2 + \tfrac34 > 0, \\ x^2 + x + 1 &= \left(x + \tfrac12\right)^2 + \tfrac34 > 0. \end{aligned}
    So the equation is defined for every real xx and yy⁠, and in the next step we can divide by y2+y+1y^2 + y + 1 without losing any solution: there is no value of yy to set aside.
    Completing the square: a square is never negative. Section 9.4.1 separates only where h(y)≠0h(y) \ne 0⁠, which here holds for every yy⁠. Basics: dy = y′ dx
  2. Separate the variables

    The equation is dydx=−y2+y+1x2+x+1\frac{dy}{dx} = -\frac{y^2 + y + 1}{x^2 + x + 1}⁠. Divide by y2+y+1y^2 + y + 1 and multiply by dxdx⁠:

    dyy2+y+1=−dxx2+x+1.\frac{dy}{y^2 + y + 1} = -\frac{dx}{x^2 + x + 1}.
    This is the form dyh(y)=g(x) dx\frac{dy}{h(y)} = g(x)\,dx of Section 9.4.1 with h(y)=y2+y+1h(y) = y^2 + y + 1 and g(x)=−1x2+x+1g(x) = -\frac{1}{x^2 + x + 1}⁠.
    Section 9.4.1, equation (3). Lesson: variables separable
  3. Complete the squares and integrate, with one constant

    With a=32a = \frac{\sqrt3}{2} and uu standing for yy or xx⁠,

    ∫du(u+12)2+a2=1atan⁡−1u+12a=23tan⁡−12u+13.\begin{aligned} \int\frac{du}{\left(u + \frac12\right)^2 + a^2} &= \frac{1}{a}\tan^{-1}\frac{u + \frac12}{a} \\ &= \frac{2}{\sqrt3}\tan^{-1}\frac{2u + 1}{\sqrt3}. \end{aligned}

    So

    23tan⁡−12y+13=−23tan⁡−12x+13+C,\begin{aligned} &\frac{2}{\sqrt3}\tan^{-1}\frac{2y + 1}{\sqrt3} \\ &= -\frac{2}{\sqrt3}\tan^{-1}\frac{2x + 1}{\sqrt3} + C, \end{aligned}

    where CC is an arbitrary constant.

    u+123/2=2u+13\frac{u + \frac12}{\sqrt3/2} = \frac{2u + 1}{\sqrt3}⁠. Both sides are the same standard integral, one in yy and one in xx⁠. One constant is enough, because a first order equation has one.
    Section 7.4, formula (3); Section 9.4.1, equation (4). Basics: every method ends with an integral
  4. Name the two angles

    Multiply by 32\frac{\sqrt3}{2} and write

    α=tan⁡−12y+13,β=tan⁡−12x+13.\begin{aligned} \alpha &= \tan^{-1}\frac{2y + 1}{\sqrt3}, \\ \beta &= \tan^{-1}\frac{2x + 1}{\sqrt3}. \end{aligned}

    Then the solution reads α+β=k\alpha + \beta = k⁠, where k=32Ck = \frac{\sqrt3}{2}C is again one arbitrary constant. Both angles lie in (−π2,π2)\left(-\frac{\pi}{2}, \frac{\pi}{2}\right)⁠, so −π<k<π-\pi < k < \pi⁠.

    The target form has no inverse tangents, so we will take the tangent of both sides. Naming the angles makes the formula tan⁡(α+β)\tan(\alpha + \beta) easy to apply, and tan⁡α=2y+13\tan\alpha = \frac{2y + 1}{\sqrt3}⁠, tan⁡β=2x+13\tan\beta = \frac{2x + 1}{\sqrt3} by Chapter 2.
    Principal value branch of tan⁡−1\tan^{-1} is (−π2,π2)\left(-\frac{\pi}{2}, \frac{\pi}{2}\right) (Chapter 2, Section 2.2). Lesson: putting methods together
  5. Take tangents and simplify

    When cos⁡k≠0\cos k \ne 0⁠, tan⁡(α+β)=tan⁡k\tan(\alpha + \beta) = \tan k gives

    tan⁡α+tan⁡β1−tan⁡αtan⁡β=tan⁡k.\frac{\tan\alpha + \tan\beta}{1 - \tan\alpha\tan\beta} = \tan k.

    Now compute the top and the bottom:

    tan⁡α+tan⁡β=2y+1+2x+13=2(x+y+1)3,1−tan⁡αtan⁡β=1−(2y+1)(2x+1)3=3−4xy−2x−2y−13=2(1−x−y−2xy)3.\begin{aligned} &\tan\alpha + \tan\beta \\ &= \frac{2y + 1 + 2x + 1}{\sqrt3} = \frac{2(x + y + 1)}{\sqrt3}, \\ &1 - \tan\alpha\tan\beta \\ &= 1 - \frac{(2y + 1)(2x + 1)}{3} \\ &= \frac{3 - 4xy - 2x - 2y - 1}{3} \\ &= \frac{2(1 - x - y - 2xy)}{3}. \end{aligned}

    Dividing, the 2s cancel and 33=3\frac{3}{\sqrt3} = \sqrt3⁠:

    3 (x+y+1)1−x−y−2xy=tan⁡k.\frac{\sqrt3\,(x + y + 1)}{1 - x - y - 2xy} = \tan k.
    cos⁡k≠0\cos k \ne 0 means tan⁡k\tan k exists, and then 1−tan⁡αtan⁡β≠01 - \tan\alpha\tan\beta \ne 0 as well (it equals cos⁡(α+β)cos⁡αcos⁡β\frac{\cos(\alpha + \beta)}{\cos\alpha\cos\beta}⁠), so the division is allowed. The expansion (2y+1)(2x+1)=4xy+2x+2y+1(2y + 1)(2x + 1) = 4xy + 2x + 2y + 1 is where the term 2xy2xy of the answer comes from.
    tan⁡(α+β)\tan(\alpha + \beta) formula (Class XI). Lesson: Miscellaneous exercise player
  6. Read off AA

    Multiply across and put A=tan⁡k3A = \frac{\tan k}{\sqrt3}⁠:

    x+y+1=A(1−x−y−2xy).x + y + 1 = A(1 - x - y - 2xy).

    As kk runs over (−π2,π2)\left(-\frac{\pi}{2}, \frac{\pi}{2}\right)⁠, tan⁡k\tan k takes every real value, so AA can be any real number: AA is a parameter, the one arbitrary constant of the general solution.

    The two values k=±π2k = \pm\frac{\pi}{2}⁠, where tan⁡k\tan k does not exist, give cos⁡(α+β)=0\cos(\alpha + \beta) = 0⁠, that is 1−tan⁡αtan⁡β=01 - \tan\alpha\tan\beta = 0⁠: the curve 1−x−y−2xy=01 - x - y - 2xy = 0⁠. It also solves the equation (Step 7 checks it). No real value of AA gives it: it is only the limit of the family as AA grows without bound (divide both sides by AA⁠).

    Every step from α+β=k\alpha + \beta = k to the final form is reversible where it is defined, so the family is exactly the general solution. Different constants CC give different AA⁠, apart from kk and k±πk \pm \pi⁠, which give the same tan⁡k\tan k⁠; both pieces are solutions, so they belong to the same member.
    Chapter Summary: one arbitrary constant for a first order equation. Basics: one constant for order 1
  7. Check by substituting back

    Differentiate x+y+1=A(1−x−y−2xy)x + y + 1 = A(1 - x - y - 2xy) with respect to xx⁠:

    1+y′=A(−1−y′−2y−2xy′),1 + y' = A(-1 - y' - 2y - 2xy'),

    so y′(1+A+2Ax)=−(1+A+2Ay)y'(1 + A + 2Ax) = -(1 + A + 2Ay)⁠. Remove AA with A=x+y+1DA = \frac{x + y + 1}{D}⁠, where D=1−x−y−2xyD = 1 - x - y - 2xy⁠:

    1+A+2Ay=D+(x+y+1)(1+2y)D=2(y2+y+1)D,1+A+2Ax=D+(x+y+1)(1+2x)D=2(x2+x+1)D.\begin{aligned} &1 + A + 2Ay \\ &= \frac{D + (x + y + 1)(1 + 2y)}{D} \\ &= \frac{2(y^2 + y + 1)}{D}, \\ &1 + A + 2Ax \\ &= \frac{D + (x + y + 1)(1 + 2x)}{D} \\ &= \frac{2(x^2 + x + 1)}{D}. \end{aligned}

    Hence y′=−y2+y+1x2+x+1y' = -\frac{y^2 + y + 1}{x^2 + x + 1}⁠, the given equation, for every AA⁠. The curve D=0D = 0⁠, that is y=1−x1+2xy = \frac{1 - x}{1 + 2x}⁠, has y′=−3(1+2x)2y' = -\frac{3}{(1 + 2x)^2}⁠, and on it y2+y+1=3(x2+x+1)(1+2x)2y^2 + y + 1 = \frac{3(x^2 + x + 1)}{(1 + 2x)^2}⁠, so it satisfies the equation too.

    Getting the equation back proves that every member is a solution, independently of the tangent manipulation. The expansions are short: in the first, D+(x+y+1)(1+2y)D + (x + y + 1)(1 + 2y) collects to 2+2y+2y22 + 2y + 2y^2⁠.
    Implicit differentiation (Chapter 5, Section 5.3.2). Basics: a rule for slopes
Result

Separating and integrating gives tan⁡−12y+13+tan⁡−12x+13=k\tan^{-1}\frac{2y + 1}{\sqrt3} + \tan^{-1}\frac{2x + 1}{\sqrt3} = k⁠; taking tangents gives

x+y+1=A(1−x−y−2xy),x + y + 1 = A(1 - x - y - 2xy),

with A=tan⁡k3A = \frac{\tan k}{\sqrt3} an arbitrary real parameter. So this is the general solution. Hence proved. (Textbook answer: the answer key prints nothing for this question; it is a proof.)

Check it with numbers

Take A=1A = 1⁠: x+y+1=1−x−y−2xyx + y + 1 = 1 - x - y - 2xy⁠, that is x+y+xy=0x + y + xy = 0⁠, or y=−x1+xy = -\frac{x}{1 + x}⁠. At x=1x = 1⁠, y=−12y = -\frac12⁠. There α=tan⁡−10=0\alpha = \tan^{-1}0 = 0 and β=tan⁡−13=π3\beta = \tan^{-1}\sqrt3 = \frac{\pi}{3}⁠, so k=π3k = \frac{\pi}{3} and tan⁡k3=1=A\frac{\tan k}{\sqrt3} = 1 = A⁠, as it should be.

The equation gives the slope −14−12+11+1+1=−0.753=−0.25-\frac{\frac14 - \frac12 + 1}{1 + 1 + 1} = -\frac{0.75}{3} = -0.25⁠. The curve itself: y(1.001)≈−0.5002498751y(1.001) \approx -0.5002498751 and y(0.999)≈−0.4997498749y(0.999) \approx -0.4997498749⁠. Their difference is

−0.5002498751+0.4997498749=−0.0005000002,\begin{aligned} &-0.5002498751 + 0.4997498749 \\ &= -0.0005000002, \end{aligned}

and −0.0005000002÷0.002≈−0.25000-0.0005000002 \div 0.002 \approx -0.25000⁠, the slope the equation gives.

Common mistakes
  1. Wrong constant in the inverse tangent. With a=32a = \frac{\sqrt3}{2}⁠, the factor is 1a=23\frac{1}{a} = \frac{2}{\sqrt3} and the argument is 2u+13\frac{2u + 1}{\sqrt3}⁠.
  2. Expanding (2y+1)(2x+1)(2y + 1)(2x + 1) carelessly. It is 4xy+2x+2y+14xy + 2x + 2y + 1⁠; then 3−(…)=2−2x−2y−4xy3 - (\ldots) = 2 - 2x - 2y - 4xy⁠.
  3. Treating tan⁡k\tan k as the parameter itself. It is tan⁡k3\frac{\tan k}{\sqrt3} that equals AA⁠; any real AA is reached, so it does not matter, but write it correctly.
  4. Ending without the target line. A "show that" answer ends with the given form and "Hence proved".
What to take away
  1. dydx=function of yfunction of x\frac{dy}{dx} = \frac{\text{function of } y}{\text{function of } x} separates at once.
  2. ∫duu2+u+1\int\frac{du}{u^2 + u + 1}⁠: complete the square, then use 1atan⁡−1xa\frac{1}{a}\tan^{-1}\frac{x}{a}⁠.
  3. To remove a sum of inverse tangents, take the tangent of both sides with tan⁡(α+β)\tan(\alpha + \beta)⁠.

Every fact used, and where it comes from

FactUsed inSource
Completing the square; a square is ≥0\ge 0Steps 1, 3Algebra (Basics)
Separating the variables; integrate both sidesSteps 2, 3Section 9.4.1, equations (3) and (4) (Lesson)
∫dxx2+a2=1atan⁡−1xa+C\int\frac{dx}{x^2 + a^2} = \frac{1}{a}\tan^{-1}\frac{x}{a} + CStep 3Section 7.4, formula (3) (Basics)
Range of tan⁡−1\tan^{-1} is (−π2,π2)\left(-\frac{\pi}{2}, \frac{\pi}{2}\right)⁠; tan⁡(tan⁡−1u)=u\tan(\tan^{-1}u) = uSteps 4, 6Chapter 2, Section 2.2
tan⁡(α+β)=tan⁡α+tan⁡β1−tan⁡αtan⁡β\tan(\alpha + \beta) = \frac{\tan\alpha + \tan\beta}{1 - \tan\alpha\tan\beta}Step 5Class XI, trigonometric functions
One arbitrary constant for a first order equationSteps 3, 6Chapter Summary (Basics)
Implicit differentiationStep 7Chapter 5, Section 5.3.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 →