Calculus · real student question

Solve the differential equation dy/dx = y.

Question

Solve the differential equation

dydx=y\frac{dy}{dx}=y

Step-by-step solution

  1. Recognise the equation and what it says. The rate of change equals the quantity itself — the defining property of exponential growth. It is separable, since the right side depends on yy alone. Note immediately that y=0y=0 is a constant solution, since then both sides are 00; we will need to recover it at the end.

  2. Separate the variables. Assuming y0y\neq0 for the moment, divide by yy and multiply by dxdx:

    1ydy=dx\frac{1}{y}\,dy=dx

  3. Integrate both sides.

    1ydy=1dxlny=x+C\int\frac{1}{y}\,dy=\int1\,dx\qquad\Longrightarrow\qquad \ln|y|=x+C

    The absolute value is required because ln\ln of a negative number is undefined — and it is what allows negative solutions to survive.

  4. Exponentiate to free y.

    y=ex+C=eCex|y|=e^{x+C}=e^{C}e^{x}

    Here eCe^C is an arbitrary positive constant.

  5. Absorb the sign into the constant. Removing the absolute value introduces a ±\pm: y=±eCexy=\pm e^{C}e^{x}. Since ±eC\pm e^{C} ranges over all nonzero reals, rename it CC:

    y=Cexy=Ce^{x}

    Allowing C=0C=0 now also restores the constant solution y=0y=0 that step 2 had excluded, so this single formula is the complete general solution.

  6. Verify by differentiation. If y=Cexy=Ce^x then dydx=Cex=y\dfrac{dy}{dx}=Ce^x=y ✓ — the equation is satisfied for every CC. Checking numerically with C=1.7C=1.7 at x=1,0.3,2.2x=-1,\,0.3,\,2.2, the symmetric difference quotient matches yy itself to seven digits ✓.

Answer

y=Cexy=Ce^{x}

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