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

Exercise 9.3 · Q7: General solution of ylog⁡y dx−x dy=0y\log y\,dx - x\,dy = 0

Exercise 9.3Variables separable · Section 9.4.1
The question

For each of the differential equations in Exercises 1 to 10, find the general solution:

7. ylog⁡y dx−x dy=0y\log y\,dx - x\,dy = 0

Exam answer

Here y>0y > 0⁠. Dividing by xylog⁡yxy\log y (x≠0x \ne 0⁠, y≠1y \ne 1⁠),

dyylog⁡y=dxx\frac{dy}{y\log y} = \frac{dx}{x}

Integrating both sides,

∫dyylog⁡y=∫dxx\int\frac{dy}{y\log y} = \int\frac{dx}{x}

Put log⁡y=t\log y = t⁠. Then 1y dy=dt\frac{1}{y}\,dy = dt⁠.

∫dtt=∫dxxlog⁡∣t∣=log⁡∣x∣+log⁡∣C∣log⁡∣log⁡y∣=log⁡∣Cx∣log⁡y=Cx\begin{aligned} \int\frac{dt}{t} &= \int\frac{dx}{x} \\ \log|t| &= \log|x| + \log|C| \\ \log|\log y| &= \log|Cx| \\ \log y &= Cx \end{aligned}

∴\therefore y=eCxy = e^{Cx} is the general solution.

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

The one idea this problem is built on

The two terms are products: ylog⁡yy\log y times dxdx⁠, and xx times dydy⁠. Dividing by xylog⁡yxy\log y puts yy with dydy and xx with dxdx⁠. The yy side, 1ylog⁡y\frac{1}{y\log y}⁠, is "derivative over function" for log⁡y\log y⁠, so both sides give logarithms, and a constant written as log⁡∣C∣\log|C| combines them into log⁡y=Cx\log y = Cx⁠.

Given, to find, and the plan
Given
ylog⁡y dx−x dy=0y\log y\,dx - x\,dy = 0⁠; log⁡y\log y needs y>0y > 0⁠.
To find
The general solution, with one arbitrary constant.
Plan
(1) Divide by xylog⁡yxy\log y⁠, saying where that is allowed. (2) Integrate, the yy side by t=log⁡yt = \log y⁠, one constant log⁡∣C∣\log|C|⁠. (3) Remove the logs to get yy⁠. (4) Bring back y=1y = 1⁠. (5) Check by substituting back.

Basics you need

1Variables separable

An equation f1(x) g1(y) dx+f2(x) g2(y) dy=0f_1(x)\,g_1(y)\,dx + f_2(x)\,g_2(y)\,dy = 0 separates on dividing by a nonzero product (Section 9.4.1). Lesson: separate, then integrate

2Derivative over function

ddylog⁡y=1y\frac{d}{dy}\log y = \frac{1}{y}⁠, so with t=log⁡yt = \log y⁠, ∫dyylog⁡y=∫dtt=log⁡∣log⁡y∣+C\int\frac{dy}{y\log y} = \int\frac{dt}{t} = \log|\log y| + C (Sections 7.2 and 7.3.1). Basics: every method ends with an integral

3Laws of logarithms

log⁡∣a∣+log⁡∣b∣=log⁡∣ab∣\log|a| + \log|b| = \log|ab|⁠; log⁡y=k\log y = k means y=eky = e^k⁠. Basics: the exponential function

4One arbitrary constant

Writing the constant as log⁡∣C∣\log|C| is still one arbitrary constant. Basics: order n gives n constants

Solution

  1. Divide by xylog⁡yxy\log y⁠: the variables separate

    The equation contains log⁡y\log y⁠, so y>0y > 0⁠. Move the dydy term across: ylog⁡y dx=x dyy\log y\,dx = x\,dy⁠. For x≠0x \ne 0 and y≠1y \ne 1 (so log⁡y≠0\log y \ne 0⁠), divide by xylog⁡yxy\log y⁠:

    dxx=dyylog⁡y.\frac{dx}{x} = \frac{dy}{y\log y}.
    Dividing needs x≠0x \ne 0⁠, y≠0y \ne 0 and log⁡y≠0\log y \ne 0⁠; the first two are clear and log⁡y=0\log y = 0 only at y=1y = 1⁠. The constant function y=1y = 1 does satisfy the equation (1⋅log⁡1=01\cdot\log 1 = 0 and dy=0dy = 0⁠), so we must remember it; it returns in Step 4.
    Section 9.4.1: separate by dividing by a nonzero factor. Lesson: separate, then integrate
  2. Integrate both sides, with one constant log⁡∣C∣\log|C|

    On the left put t=log⁡yt = \log y⁠, so dt=1y dydt = \frac{1}{y}\,dy⁠:

    ∫dyylog⁡y=∫dtt=log⁡∣t∣=log⁡∣log⁡y∣.\begin{aligned} \int\frac{dy}{y\log y} &= \int\frac{dt}{t} = \log|t| \\ &= \log|\log y|. \end{aligned}

    So, with the constant written as log⁡∣C∣\log|C| (C≠0C \ne 0⁠),

    log⁡∣log⁡y∣=log⁡∣x∣+log⁡∣C∣.\log|\log y| = \log|x| + \log|C|.

    Check each integral by differentiating: ddylog⁡∣log⁡y∣=1log⁡y⋅1y\frac{d}{dy}\log|\log y| = \frac{1}{\log y}\cdot\frac{1}{y}⁠, and ddxlog⁡∣x∣=1x\frac{d}{dx}\log|x| = \frac{1}{x}⁠.

    1y\frac{1}{y} is the derivative of log⁡y\log y⁠, so the left side is "derivative over function". Both sides being logs, the constant is written log⁡∣C∣\log|C|⁠; as CC runs over the nonzero reals, log⁡∣C∣\log|C| takes every real value, so it is one arbitrary constant.
    Section 7.2, formula (xii), with a substitution (Section 7.3.1). Basics: every method ends with an integral
  3. Remove the logs: solve for yy

    log⁡∣log⁡y∣=log⁡∣Cx∣⇒ ∣log⁡y∣=∣Cx∣⇒ log⁡y=Cx,\begin{aligned} \log|\log y| &= \log|Cx| \\ \Rightarrow\ |\log y| &= |Cx| \\ \Rightarrow\ \log y &= Cx, \end{aligned}

    writing CC again for ±C\pm C⁠. Taking the exponential,

    y=eCx.y = e^{Cx}.
    log⁡\log is one-one, so equal logs mean equal arguments. Along a solution log⁡yx\frac{\log y}{x} is continuous and never 0 here, so its sign does not change and ±\pm is one fixed sign, absorbed into the arbitrary CC⁠.
    log⁡∣a∣+log⁡∣b∣=log⁡∣ab∣\log|a| + \log|b| = \log|ab|⁠; elog⁡y=ye^{\log y} = y⁠. Basics: the exponential function
  4. Bring back y=1y = 1⁠: the case C=0C = 0

    Putting C=0C = 0 in y=eCxy = e^{Cx} gives y=e0=1y = e^0 = 1⁠, the solution set aside in Step 1. So y=eCxy = e^{Cx} with CC any real number covers it.

    The derivation needed C≠0C \ne 0 (to write log⁡∣C∣\log|C|⁠), but the final formula makes sense for C=0C = 0 too, and that value gives exactly the lost solution. So the one formula is the complete general solution, as the textbook states it.
    Section 9.3: general solution with one arbitrary constant. Basics: one arbitrary constant
  5. Check: substitute back

    For y=eCxy = e^{Cx}⁠: log⁡y=Cx\log y = Cx and dydx=CeCx\frac{dy}{dx} = Ce^{Cx}⁠, so dy=CeCx dxdy = Ce^{Cx}\,dx and

    ylog⁡y dx−x dy=eCx⋅Cx dx−x⋅CeCx dx=0.\begin{aligned} &y\log y\,dx - x\,dy \\ &= e^{Cx}\cdot Cx\,dx - x\cdot Ce^{Cx}\,dx = 0. \end{aligned}
    L.H.S. = R.H.S. for every CC and every xx⁠, including C=0C = 0⁠. So every member of the family is a solution (Section 9.3), and y=eCx>0y = e^{Cx} > 0⁠, as log⁡y\log y needs.
    A solution makes L.H.S. = R.H.S. Lesson: general and particular solutions
Result

The general solution is y=eCxy = e^{Cx}⁠, where CC is an arbitrary constant (C=0C = 0 gives the solution y=1y = 1⁠). (Textbook answer: y=ecxy = e^{cx}⁠.)

Check it with numbers

Take C=0.5C = 0.5⁠, the curve y=e0.5xy = e^{0.5x}⁠. At x=2x = 2⁠, y=e≈2.7182818285y = e \approx 2.7182818285⁠, and the equation dydx=ylog⁡yx\frac{dy}{dx} = \frac{y\log y}{x} gives the slope e⋅12≈1.35914091\frac{e\cdot 1}{2} \approx 1.35914091⁠.

The curve itself: y(2.001)≈2.7196413092y(2.001) \approx 2.7196413092 and y(1.999)≈2.7169230273y(1.999) \approx 2.7169230273⁠, so

2.7196413092−2.71692302730.002≈1.35914.\begin{aligned} &\frac{2.7196413092 - 2.7169230273}{0.002} \\ &\approx 1.35914. \end{aligned}
Common mistakes
  1. ∫dyylog⁡y=log⁡y⋅log⁡y\int\frac{dy}{y\log y} = \log y\cdot\log y or similar. Substitute t=log⁡yt = \log y⁠: the integral is log⁡∣log⁡y∣\log|\log y|⁠.
  2. Adding a plain CC and then writing log⁡y=x+C\log y = x + C⁠. With log⁡∣C∣\log|C| the logs combine into log⁡y=Cx\log y = Cx⁠.
  3. Losing y=1y = 1⁠. It is a solution; C=0C = 0 brings it back.
What to take away
  1. Divide by the product that separates the terms, and list what must be nonzero.
  2. ∫dyylog⁡y=log⁡∣log⁡y∣\int\frac{dy}{y\log y} = \log|\log y| by the substitution t=log⁡yt = \log y⁠.
  3. Check whether a solution set aside by the division is recovered by a special value of the constant.

Every fact used, and where it comes from

FactUsed inSource
Variables separable: divide by a nonzero factor and integrateStep 1Section 9.4.1 (Lesson)
∫dtt=log⁡∣t∣+C\int\frac{dt}{t} = \log|t| + C⁠; substitution t=log⁡yt = \log yStep 2Section 7.2, formula (xii); Section 7.3.1 (Basics)
One arbitrary constant, here written log⁡∣C∣\log|C|Steps 2, 4Section 9.3 (Basics)
Laws of logarithms; elog⁡y=ye^{\log y} = yStep 3Exponential and logarithm (Basics)
A solution makes L.H.S. = R.H.S.Step 5Section 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 →