Calculus · real student question

Solve the differential equation (e to the y, plus 6x) dx plus x e to the y dy equals 0.

Question

Solve the differential equation

(ey+6x)dx+xeydy=0\left(e^y+6x\right)dx+xe^y\,dy=0

Step-by-step solution

  1. Name the two coefficient functions and test for exactness. With

    M(x,y)=ey+6x,N(x,y)=xeyM(x,y)=e^y+6x,\qquad N(x,y)=xe^y

    the equation is exact if My=Nx\dfrac{\partial M}{\partial y}=\dfrac{\partial N}{\partial x}. Here

    My=ey,Nx=ey\frac{\partial M}{\partial y}=e^y,\qquad \frac{\partial N}{\partial x}=e^y

    They agree, so a potential function F(x,y)F(x,y) with Fx=MF_x=M and Fy=NF_y=N exists — and no integrating factor is needed.

  2. Integrate MM with respect to xx to start building FF. Treating yy as a constant,

    F(x,y)=(ey+6x)dx=xey+3x2+g(y)F(x,y)=\int\left(e^y+6x\right)dx=xe^y+3x^2+g(y)

    The "constant" of integration is an unknown function of yy, since anything depending only on yy vanishes under /x\partial/\partial x.

  3. Differentiate the candidate with respect to yy and match NN.

    Fy=xey+g(y)=!N=xey\frac{\partial F}{\partial y}=xe^y+g'(y)\stackrel{!}{=}N=xe^y

  4. Solve for the unknown function. Cancelling xeyxe^y from both sides leaves

    g(y)=0g(y)=constantg'(y)=0\quad\Rightarrow\quad g(y)=\text{constant}

    That the yy-dependence cancels completely is the exactness condition paying off; if a leftover yy-only term had appeared, it would simply be integrated here.

  5. Write the general solution implicitly. Exact equations have solutions of the form F(x,y)=CF(x,y)=C:

    xey+3x2=Cxe^y+3x^2=C

    The arbitrary constant absorbs gg's constant.

  6. Verify by differentiating the answer. Taking dd of both sides of xey+3x2=Cxe^y+3x^2=C:

    (ey+6x)dx+xeydy=0\left(e^y+6x\right)dx+xe^y\,dy=0

    which is exactly the original equation ✓. (Solving explicitly gives y=lnC3x2xy=\ln\frac{C-3x^2}{x} where that argument is positive.)

Answer

xey+3x2=Cxe^y+3x^2=C

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