Question

Solve $y'' + e^y = 0$

Original question: Solve: y'' + e^y = 0

Thanks: integral Suggeste diff eqn

some notation: y ← depends on x. y' = \frac{dy}{dx}, y'' = \frac{d^2y}{dx^2}

If f depends on t

Expert Verified Solution

thumb_up100%(1 rated)

Key concept: This nonlinear differential equation can be reduced by using a standard substitution. Since yy depends on xx, we treat yy'' as the second derivative with respect to xx and integrate carefully.

Step by step

We solve

y+ey=0.y''+e^y=0.

A useful first step is to multiply both sides by yy':

yy+eyy=0.y'y''+e^y y'=0.

Now recognize each term as a derivative:

yy=ddx((y)22),eyy=ddx(ey).y'y''=\frac{d}{dx}\left(\frac{(y')^2}{2}\right), \qquad e^y y'=\frac{d}{dx}(e^y).

So the equation becomes

ddx((y)22+ey)=0.\frac{d}{dx}\left(\frac{(y')^2}{2}+e^y\right)=0.

Integrating once gives

(y)22+ey=C1.\frac{(y')^2}{2}+e^y=C_1.

Hence

(y)2=2(C1ey).(y')^2=2(C_1-e^y).

Taking square roots,

y=±2(C1ey).y'=\pm\sqrt{2(C_1-e^y)}.

Now separate variables:

dy2(C1ey)=±dx.\frac{dy}{\sqrt{2(C_1-e^y)}}=\pm dx.

This implicit integral gives the general solution in quadrature form:

dy2(C1ey)=±x+C2.\int \frac{dy}{\sqrt{2(C_1-e^y)}}=\pm x+C_2.

So the solution is generally expressed implicitly rather than by an elementary closed form.

Pitfall alert

A frequent mistake is to try to integrate y+ey=0y''+e^y=0 as if it were linear. It is nonlinear because of the eye^y term. Another common error is forgetting to multiply by yy' before integrating, which is what creates the conserved-energy form.

Try different conditions

If the equation were y+ex=0y''+e^x=0, then it would be linear and easy to integrate twice. If an initial condition such as y(0)y(0) and y(0)y'(0) were provided, you could determine the constants C1C_1 and C2C_2 and write a fully specified implicit solution.

Further reading

nonlinear differential equation, first integral, separation of variables

chat