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

Example 20: log⁡dydx=3x+4y\log\frac{dy}{dx} = 3x + 4y⁠, y=0y = 0 when x=0x = 0

ExamplesMiscellaneous Examples: variables separable, particular solution · Section 9.4.1
The question

Find the particular solution of the differential equation log⁡(dydx)=3x+4y\log\left(\dfrac{dy}{dx}\right) = 3x + 4y given that y=0y = 0 when x=0x = 0⁠.

Exam answer

The equation can be written as

dydx=e3x+4y=e3x⋅e4y\frac{dy}{dx} = e^{3x + 4y} = e^{3x}\cdot e^{4y}

Separating the variables,

e−4y dy=e3x dxe^{-4y}\,dy = e^{3x}\,dx

Integrating both sides,

∫e−4y dy=∫e3x dxe−4y−4=e3x3+C\begin{aligned} \int e^{-4y}\,dy &= \int e^{3x}\,dx \\ \frac{e^{-4y}}{-4} &= \frac{e^{3x}}{3} + C \end{aligned}

Multiplying by −12-12⁠,

4e3x+3e−4y+12C=0…(i)4e^{3x} + 3e^{-4y} + 12C = 0\quad\ldots(\text{i})

Putting x=0x = 0⁠, y=0y = 0 in (i): 4+3+12C=04 + 3 + 12C = 0⁠, so C=−712C = -\frac{7}{12}⁠.

∴\therefore The particular solution is 4e3x+3e−4y−7=04e^{3x} + 3e^{-4y} - 7 = 0⁠.

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

The one idea this problem is built on

The log hides a simple equation. Since log⁡a=b\log a = b means a=eba = e^b⁠, the equation says dydx=e3x+4y\frac{dy}{dx} = e^{3x + 4y}⁠, and e3x+4y=e3x⋅e4ye^{3x + 4y} = e^{3x}\cdot e^{4y} is a function of xx times a function of yy⁠. So the variables separate. After integrating, the point (0,0)(0, 0) fixes the constant.

Given, to find, and the plan
Given
log⁡(dydx)=3x+4y\log\left(\frac{dy}{dx}\right) = 3x + 4y⁠, and y=0y = 0 when x=0x = 0⁠.
To find
The particular solution through (0,0)(0, 0)⁠.
Plan
(1) Remove the log. (2) Split the exponential. (3) Separate. (4) Integrate, with one constant. (5) Clear the fractions. (6) Use the condition. (7) See where the solution lives. (8) Check, and see the curve.

Basics you need

1Log and exponential undo each other

log⁡a=b\log a = b exactly when a=eba = e^b (with a>0a > 0⁠); and ep+q=ep⋅eqe^{p + q} = e^p\cdot e^q⁠. Basics: exponentials

2Variables separable

dydx=g(x) h(y)\frac{dy}{dx} = g(x)\,h(y) with h(y)≠0h(y) \ne 0 gives ∫dyh(y)=∫g(x) dx\int\frac{dy}{h(y)} = \int g(x)\,dx (Section 9.4.1). Lesson: separate, then integrate

3∫ekx dx=ekxk\int e^{kx}\,dx = \frac{e^{kx}}{k}

For a constant k≠0k \ne 0 (substitution t=kxt = kx⁠, Section 7.3.1, with formula (xi) of Section 7.2). Basics: every method ends with an integral

4Particular solutions

Put the given values into the general solution to find the constant (Section 9.3). Lesson: general and particular solutions

Solution

  1. Remove the log

    dydx=e3x+4y.\frac{dy}{dx} = e^{3x + 4y}.
    log⁡a=b\log a = b means a=eba = e^b⁠. The log in the question needs dydx>0\frac{dy}{dx} > 0⁠, and e3x+4ye^{3x + 4y} is always positive, so nothing is lost or gained.
    log⁡\log and ee are inverse functions (Chapter 5, Section 5.4). Basics: exponentials
  2. Split the exponential

    dydx=e3x⋅e4y.…(1)\frac{dy}{dx} = e^{3x}\cdot e^{4y}.\quad\ldots(1)
    ep+q=ep⋅eqe^{p + q} = e^p\cdot e^q⁠. Now the right side is a function of xx times a function of yy⁠: the equation is separable.
    Section 9.4.1: dydx=h(y)⋅g(x)\frac{dy}{dx} = h(y)\cdot g(x)⁠. Lesson: separate, then integrate
  3. Separate the variables

    dye4y=e3x dx,that ise−4y dy=e3x dx.\begin{aligned} \frac{dy}{e^{4y}} &= e^{3x}\,dx, \quad\text{that is} \\ e^{-4y}\,dy &= e^{3x}\,dx. \end{aligned}
    Divide by e4ye^{4y}⁠, which is never 0, so no solution is lost. 1e4y=e−4y\frac{1}{e^{4y}} = e^{-4y}⁠.
    Separating, Section 9.4.1. Basics: dy = y′ dx
  4. Integrate, with one constant

    ∫e−4y dy=∫e3x dxe−4y−4=e3x3+C.\begin{aligned} \int e^{-4y}\,dy &= \int e^{3x}\,dx \\ \frac{e^{-4y}}{-4} &= \frac{e^{3x}}{3} + C. \end{aligned}
    ∫eky dy=ekyk\int e^{ky}\,dy = \frac{e^{ky}}{k}⁠, here with k=−4k = -4 and k=3k = 3⁠. The two constants of integration combine into one arbitrary CC⁠.
    Section 7.3.1 and Section 7.2, formula (xi). Basics: every method ends with an integral
  5. Clear the fractions

    Multiply by −12-12⁠:

    3e−4y=−4e3x−12C4e3x+3e−4y+12C=0.…(2)\begin{aligned} 3e^{-4y} &= -4e^{3x} - 12C \\ 4e^{3x} + 3e^{-4y} + 12C &= 0.\quad\ldots(2) \end{aligned}
    1212 is the least common multiple of 44 and 33⁠, and the minus sign makes the e−4ye^{-4y} term positive. This is the book's form of the general solution; 12C12C is still one arbitrary constant.
    The general solution (Section 9.3). Basics: one constant for order 1
  6. Use the condition: y=0y = 0 when x=0x = 0

    4e0+3e0+12C=0⇒ 4+3+12C=0⇒ C=−712.\begin{aligned} 4e^0 + 3e^0 + 12C &= 0 \\ \Rightarrow\ 4 + 3 + 12C &= 0 \\ \Rightarrow\ C &= -\frac{7}{12}. \end{aligned}

    Putting 12C=−712C = -7 in (2):

    4e3x+3e−4y−7=0.4e^{3x} + 3e^{-4y} - 7 = 0.
    e0=1e^0 = 1⁠. The point (0,0)(0, 0) picks out the one member of the family (2) with C=−712C = -\frac{7}{12}⁠.
    Section 9.3: a particular solution. Lesson: general and particular solutions
  7. Where the solution lives

    Solving for yy⁠: e−4y=7−4e3x3e^{-4y} = \frac{7 - 4e^{3x}}{3}⁠, which must be positive. So 4e3x<74e^{3x} < 7⁠, that is x<13log⁡74≈0.18654x < \frac13\log\frac74 \approx 0.18654⁠, and there

    y=−14log⁡(7−4e3x3).y = -\frac14\log\left(\frac{7 - 4e^{3x}}{3}\right).
    An exponential is always positive, so the right side must be too. As xx rises to 13log⁡74\frac13\log\frac74⁠, the bracket falls to 0 and y→+∞y \to +\infty⁠; as x→−∞x \to -\infty⁠, e3x→0e^{3x} \to 0 and y→−14log⁡73≈−0.21182y \to -\frac14\log\frac73 \approx -0.21182⁠.
    log⁡\log is increasing and defined for positive numbers (Chapter 5, Section 5.4). Basics: exponentials
  8. Check by substituting back, and see the curve

    Differentiate 4e3x+3e−4y−7=04e^{3x} + 3e^{-4y} - 7 = 0 with respect to xx⁠:

    12e3x−12e−4y dydx=0dydx=e3xe−4y=e3x+4y,\begin{aligned} 12e^{3x} - 12e^{-4y}\,\frac{dy}{dx} &= 0 \\ \frac{dy}{dx} = \frac{e^{3x}}{e^{-4y}} &= e^{3x + 4y}, \end{aligned}

    so log⁡dydx=3x+4y\log\frac{dy}{dx} = 3x + 4y⁠. At (0,0)(0, 0)⁠: 4+3−7=04 + 3 - 7 = 0⁠.

    X Y X′ Y′ (0, 0) x ≈ 0.187 y ≈ −0.212
    Slope field of dydx=e3x+4y\frac{dy}{dx} = e^{3x + 4y}⁠, with equal scales, and the particular solution through (0,0)(0, 0)⁠. It rises from the dashed level y=−14log⁡73y = -\frac14\log\frac73 (approached as x→−∞x \to -\infty⁠) and shoots up at the dashed line x=13log⁡74x = \frac13\log\frac74⁠.
    Getting the equation back proves the answer. Every slope e3x+4ye^{3x + 4y} is positive, so every solution rises; this one rises so fast that it reaches +∞+\infty at a finite xx⁠.
    Implicit differentiation and the chain rule (Chapter 5, Sections 5.3.1 and 5.3.2). Basics: a rule for slopes
Result

The general solution is 4e3x+3e−4y+12C=04e^{3x} + 3e^{-4y} + 12C = 0⁠; with y=0y = 0 when x=0x = 0⁠, C=−712C = -\frac{7}{12}⁠, and the particular solution is 4e3x+3e−4y−7=04e^{3x} + 3e^{-4y} - 7 = 0⁠, that is y=−14log⁡7−4e3x3y = -\frac14\log\frac{7 - 4e^{3x}}{3} for x<13log⁡74x < \frac13\log\frac74⁠. (Textbook answer: 4e3x+3e−4y−7=04e^{3x} + 3e^{-4y} - 7 = 0⁠.)

Check it with numbers

Take x=−1x = -1⁠: e−3≈0.04978707e^{-3} \approx 0.04978707⁠, so 7−4e−33≈6.80085173≈2.2669506\frac{7 - 4e^{-3}}{3} \approx \frac{6.8008517}{3} \approx 2.2669506 and y=−14log⁡(2.2669506)≈−0.2046089y = -\frac14\log(2.2669506) \approx -0.2046089⁠. Then 3x+4y≈−3.81843563x + 4y \approx -3.8184356⁠, and the equation gives dydx=e3x+4y≈0.0219621\frac{dy}{dx} = e^{3x + 4y} \approx 0.0219621⁠.

The curve itself: y(−0.999)≈−0.2045868963y(-0.999) \approx -0.2045868963 and y(−1.001)≈−0.2046308207y(-1.001) \approx -0.2046308207⁠, so

−0.2045868963+0.20463082070.002≈0.02196.\begin{aligned} &\frac{-0.2045868963 + 0.2046308207}{0.002} \\ &\approx 0.02196. \end{aligned}
Common mistakes
  1. Writing dydx=3x+4y\frac{dy}{dx} = 3x + 4y or e3x+e4ye^{3x} + e^{4y}⁠. Removing the log gives e3x+4y=e3x⋅e4ye^{3x + 4y} = e^{3x}\cdot e^{4y}⁠, a product.
  2. Integrating e−4ye^{-4y} as −4e−4y-4e^{-4y}; it is e−4y−4\frac{e^{-4y}}{-4}⁠.
  3. Mixing up the signs when clearing fractions; multiply every term, including CC⁠, by −12-12⁠.
  4. Using CC instead of 12C12C when putting in the condition: 12C=−712C = -7⁠, so C=−712C = -\frac{7}{12}⁠.
What to take away
  1. A log of the derivative: exponentiate first, dydx=e…\frac{dy}{dx} = e^{\ldots}⁠.
  2. esume^{\text{sum}} is a product, so eax+bye^{ax + by} always separates.
  3. Solve for yy when you can: it shows where the particular solution exists.

Every fact used, and where it comes from

FactUsed inSource
log⁡a=b  ⟺  a=eb\log a = b \iff a = e^b⁠; ep+q=epeqe^{p + q} = e^pe^qSteps 1, 2Chapter 5, Section 5.4 (Basics)
Variables separableSteps 2, 3Section 9.4.1 (Lesson)
∫ekx dx=ekxk+C\int e^{kx}\,dx = \frac{e^{kx}}{k} + CStep 4Section 7.3.1; Section 7.2, formula (xi) (Basics)
General and particular solutionsSteps 5, 6Section 9.3 (Lesson)
log⁡\log is increasing, defined for positive numbersStep 7Chapter 5, Section 5.4 (Basics)
Implicit differentiation; chain ruleStep 8Chapter 5, Sections 5.3.1 and 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 →