Calculus · real student question

Solve the differential equation dy/dx = 3 - 4y.

Question

Solve the differential equation

dydx=34y\frac{dy}{dx}=3-4y

Step-by-step solution

  1. Recognise the type and spot the equilibrium. The right side depends on yy only, so the equation is separable (it is also first-order linear). Setting 34y=03-4y=0 gives the constant solution y=34y=\tfrac34 — the level at which the derivative vanishes. Every other solution will move toward or away from it, so this value should appear in the final answer.

  2. Separate the variables. Divide by 34y3-4y (valid while y34y\neq\tfrac34) and multiply by dxdx:

    dy34y=dx\frac{dy}{3-4y}=dx

  3. Integrate both sides using the substitution u=34yu = 3 - 4y. Then du=4dydu=-4\,dy, so dy=14dudy=-\tfrac14\,du:

    dy34y=14duu=14lnu+C\int\frac{dy}{3-4y}=-\frac14\int\frac{du}{u}=-\frac14\ln|u|+C

    The 14-\tfrac14 comes from the chain rule and is the step most often dropped:

    14ln34y=x+C-\frac14\ln|3-4y|=x+C

  4. Undo the logarithm. Multiply by 4-4 and exponentiate:

    ln34y=4x+C134y=eC1e4x\ln|3-4y|=-4x+C_1\qquad\Longrightarrow\qquad |3-4y|=e^{C_1}e^{-4x}

    Absorbing the sign of 34y3-4y into the constant lets the absolute value be dropped: 34y=Ae4x3-4y=Ae^{-4x} with AA any nonzero real.

  5. Solve for y and fold the constants together.

    y=3Ae4x4=34A4e4x=34+Ce4xy=\frac{3-Ae^{-4x}}{4}=\frac34-\frac{A}{4}e^{-4x}=\frac34+Ce^{-4x}

    Relabelling A4-\tfrac{A}{4} as CC is legitimate because AA was arbitrary, and allowing C=0C=0 now recovers the equilibrium solution y=34y=\tfrac34 that the division in step 2 excluded.

  6. Verify by substitution. Differentiating, y=4Ce4xy'=-4Ce^{-4x}. Meanwhile 34y=334Ce4x=4Ce4x3-4y=3-3-4Ce^{-4x}=-4Ce^{-4x} — identical ✓. Numerically with C=2.3C=2.3, at x=0.1x=0.1 both sides equal 6.16694-6.16694, and at x=0.4x=-0.4 both equal 45.5679-45.5679 ✓.

  7. Interpret the behaviour. Since e4x0e^{-4x}\to0 as xx\to\infty, every solution approaches y=34y=\tfrac34 from whichever side it starts on: the equilibrium is stable, which is exactly what the negative coefficient 4-4 on yy predicts.

Answer

y=34+Ce4xy=\frac34+Ce^{-4x}

Need to solve a different problem like this? Open the solver →