How can I solve this differential equation?

(ex)ydydx=ey+e2xey

1 Answer
Feb 18, 2018

y=1exey13eye3x+Cey+1

Explanation:

This is a separable differential equation , which simply means that it's possible to group the x terms & y terms on opposite sides of the equation. So, this is what we'll be doing first:

(ex)ydydx=ey+e2xey

(ex)dydx=eyy(1+e2x)

ex1+e2xdydx=eyy

Now, we want to get dy on the side with the y's, and dx on the side with the x's. We'll need to do a bit of re-arranging:

1+e2xexdx=yeydy

Now, we integrate both sides:

(1+e2xex)dx=yeydy

Let's do each integral in in turn:


  1. (1+e2xex)dx

First, let's split this into 2 separate integrals by the addition/subtraction rule:

(1ex)dx+e2xexdx

These look kind of annoying. However, we can give them a bit of a makeover to make them look nicer (and much easier to solve):

(ex)dx+(e3x)dx

Both of these are now simple u-substitution integrals. If you set u=x and 3x respectively, you'll get the answer as:

exe3x3+C


  1. yeydy

#If we make the negative exponent positive, we get:

(yey)dy

We'll need to use integration by parts for this. The formula is:

(uv)dy=uv(vdu)

We're going to set u=y, and dv=eydy. The reason is that we want an easy du for that final integration, and also because ey is very easy to integrate.

So:
u=y
du=dy

dv=eydy
v=ey

Now, we just plug and chug:

(yey)dy=yey(ey)dy

=yeyey

Putting everything back in:

yeyey=exe3x3+C

Getting rid of negative exponents:

yeyey=1ex13e3x+C

And that's a pretty decent final answer. If you wanted to solve for y, you could, and you'd end up with

y=1exey13eye3x+Cey+1

Notice that we don't have a +C on the LHS of this equation. The reason for this is that even if we did put it, we would ultimately subtract it from the RHS, and an arbitrary constant minus an arbitrary constant is still (wait for it) an arbitrary constant. Hence, for these problems as long as you have your +C on any one side of the equation, you'll be fine.

Hope that helped :)