Travou nisso? Resolva com IA
Calculus · real student question

Solve the differential equation dy/dx = 6 - y/2.

Question

Solve the differential equation

dydx=6−y2\frac{dy}{dx}=6-\frac{y}{2}

Step-by-step solution

  1. Put it in standard linear form. Move the yy term left:

    dydx+12y=6\frac{dy}{dx}+\frac12 y=6

    This matches y′+p(x)y=q(x)y'+p(x)y=q(x) with the constants p=12p=\frac12 and q=6q=6, so the integrating-factor method applies directly.

  2. Find the equilibrium first — it predicts the answer. A constant solution needs dydx=0\frac{dy}{dx}=0, i.e. 6−y2=06-\frac{y}{2}=0, so y=12y=12. That constant function really is a solution, and since the coefficient of yy is negative in the original form, solutions should decay toward 1212. Expect the answer to look like 1212 plus a decaying term.

  3. Build the integrating factor.

    μ(x)=e∫12 dx=ex/2\mu(x)=e^{\int \frac12\,dx}=e^{x/2}

  4. Multiply through and recognise a product derivative.

    ex/2dydx+12ex/2y=6ex/2  ⟹  ddx(yex/2)=6ex/2e^{x/2}\frac{dy}{dx}+\frac12 e^{x/2}y=6e^{x/2}\;\Longrightarrow\;\frac{d}{dx}\left(ye^{x/2}\right)=6e^{x/2}

    Collapsing the left side into one derivative is the whole point of the factor ex/2e^{x/2}.

  5. Integrate and solve for yy. Since ∫6ex/2 dx=12ex/2+C\int 6e^{x/2}\,dx=12e^{x/2}+C,

    yex/2=12ex/2+C  ⟹  y=12+Ce−x/2ye^{x/2}=12e^{x/2}+C\;\Longrightarrow\;y=12+Ce^{-x/2}

    Separation of variables gives the same family, with CC absorbing the constant of integration.

  6. Verify and read off the behaviour. Differentiating, y′=−C2e−x/2y'=-\frac{C}{2}e^{-x/2}, while the right-hand side is

    6−y2=6−6−C2e−x/2=−C2e−x/26-\frac{y}{2}=6-6-\frac{C}{2}e^{-x/2}=-\frac{C}{2}e^{-x/2}

    The two match for every CC. As x→∞x\to\infty the exponential dies and y→12y\to 12 regardless of the initial value, so y=12y=12 (the case C=0C=0) is a stable equilibrium.

Answer

y=12+Ce−x/2y=12+Ce^{-x/2}

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