Extremely Basic Differential Equations

Char. Limit
Gold Member
Messages
1,222
Reaction score
23
My AP Calculus class touched on differential equations recently, only for a moment. I immediately noticed that most differential equations that involved only multiplication were easy. However, I was soon stumped by some addition differential equations. How do you solve these undoubtedly bonehead simple equations?

(Note: As the work is being done independently, it isn't homework, and as such I'm not sure if I need to show what I've done so far. Besides, I don't know much at all about differential equations. I'd have nothing to show.)

\frac{dy}{dx}=x+y

\frac{dy}{dx}=x-y

\frac{dy}{dx}=y-x

And generalizations...

\frac{dy}{dx}=ax+by

\frac{dy}{dx}=ax-by

\frac{dy}{dx}=ay-bx

for constant real a and b.
 
Physics news on Phys.org
\frac{dy}{dx}+P(x)y=Q(x)


a DE in this form can be solved by multiplying by an integrating factor u

u=e^{\int P(x) dx}


the left side can then be written as d/dx(yu)


EDIT: Yep, Dick is right...it'd be overkill with the method above.
 
Last edited:
These look like problems where you are better off doing substitution. Try u=x+y for the first one. Solve for dy/dx in terms of du/dx.
 
So, for the first one, I did this...

u=x+y

\frac{du}{dx}=1+\frac{dy}{dx}

\frac{dy}{dx}=\frac{du}{dx}-1

\frac{du}{dx}-1=u

\frac{du}{dx}=u+1

\frac{du}{u+1}=dx

ln(u+1)=x+C

u+1=C e^x

x+y+1=C e^x

y= C e^x - x - 1

But is that right? It seems like a ridiculously complicated answer for such a simple equation...

I'm working on the second one now.
 
Last edited:
Differential equations can sometimes be difficult to solve, but they are much easier to check. Take the derivative of your solution to the first problem to see if you get dy/dx = x + y.
 
Char. Limit said:
ln(u+1)=x+C

u+1=C e^x

x+y+1=C e^x

y= C e^x - x - 1

But is that right? It seems like a ridiculously complicated answer for such a simple equation...

I'm working on the second one now.

Surely the first two equations are wrong?

If you take ln(u+1)=x+C

then using exponents would transform these to e^{ln(u+1)}=e^{x+C}

which then cancels to

u+1=e^{x} \cdot e^{C}

Usually in differential equations you take e^{C} to be a constant A

So we end with the final equation

y=Ae^{x}-(x+1)
 
Well, I consider the constant to be any arbitrary real number, given no initial conditions.

So, a real number raised to the power of an arbitrary real number is another real number...

So C and e^C are both arbitrary real numbers, and can be expressed by a constant. The letter still stands for something, and if you solved for C_1 or C_2 you'd get the same equation, so why worry?
 
I think you solved it correctly, you just didn't really put any separation with the lines so it would be difficult to read.
 
Char. Limit said:
Well, I consider the constant to be any arbitrary real number, given no initial conditions.

So, a real number raised to the power of an arbitrary real number is another real number...

So C and e^C are both arbitrary real numbers, and can be expressed by a constant. The letter still stands for something, and if you solved for C_1 or C_2 you'd get the same equation, so why worry?

My point was that you may not always get away with just 'skipping' steps/information.

Even if you did do the steps mentally, you should really change your intercept value to d or just something other than C
 
  • #10
I suppose you're right...

I'll remember that from now on.
 
  • #11
DEQs revisited...

On my first AP Calculus test, one of the problems involved the differential equation \frac{dy}{dx}=2x-y with initial condition y(0)=1. Needless to say, using the substitution method you guys taught me, I got the answer (y=3e^{-x}+2x-2). So, the next one really threw me for a loop...

The second practice AP test had the first-order nonlinear ODE...

\frac{dy}{dx}=5x^2-\frac{6}{y-2}

I don't even know where to start on this. It's not even an exact equation... and I tried to turn it into one using a mathematical dictionary, but it didn't quite work, or maybe I'm not understanding how to turn an inexact FONODE into an exact FONODE. Is this unsolvable?
 
  • #12
There might be an integrating factor you can find that will turn this into an exact DE. If you're studying differential equations, this technique should be in your book.
 
  • #13
Mark44 said:
There might be an integrating factor you can find that will turn this into an exact DE. If you're studying differential equations, this technique should be in your book.

Well, that's the problem. I'm not in a DE class. Everything I'm learning about DEs I'm learning from a Concise Dictionary of Mathematics, and I thought it would be enough, but I can't figure out how to get the integrating factor.
 
  • #15
Mark44 said:
No, that dictionary is not likely to be a substitute for a differential equations text. Here's a link to a topic on integrating factors - http://en.wikipedia.org/wiki/Integrating_factor

OK, so let's try to apply that to the above equation...

Start with...

\frac{dy}{dx}=5x^2-\frac{6}{y-2}

OK, so let's add 6/(y-2) to both sides, I think...

\frac{dy}{dx} + \frac{6}{y-2} = 5x^2

So I have a Q(x) on the right, but I need a P(x)y on the left. I guess multiply top and bottom of 6/(y-2) by y.

\frac{dy}{dx} + \frac{6}{y^2-2y} y = 5x^2

Now, that looks more like a P(y)y, but I'm going to try not to let that stop me...

Or, maybe I will...

How do I change the \frac{6}{y^2-2y} into something I can integrate wrt x?
 
  • #16
On closer look, I don't see my suggestion of using an integrating factor as being helpful with this DE. I don't have any ideas on this one.

I've posted this problem in the Homework Helpers section, so maybe someone will have a good idea.
 
Last edited:
  • #17
Try the substitution u=1/(y-2). It looks promising.

Edit: Well, maybe not...
 
Last edited:
  • #18
Char. Limit said:
The second practice AP test had the first-order nonlinear ODE...

\frac{dy}{dx}=5x^2-\frac{6}{y-2}

I don't even know where to start on this. It's not even an exact equation... and I tried to turn it into one using a mathematical dictionary, but it didn't quite work, or maybe I'm not understanding how to turn an inexact FONODE into an exact FONODE. Is this unsolvable?


Are you sure you were supposed to solve that DE to find the answer to whatever the question asked? That seems like a pretty complicated DE to solve for a class not about DE...
 
  • #19
vela said:
Try the substitution u=1/(y-2). It looks promising.

Edit: Well, maybe not...

No, it could be... I tried it anyway, and I did this:

Start with...

u=\frac{1}{y-2}

Differentiate both sides...

\frac{du}{dx}=-\frac{1}{(y-2)^2}\frac{dy}{dx}

Substitute u for 1/(y-2)...

\frac{du}{dx}=-u^2\frac{dy}{dx}

And solve for dy/dx...

-\frac{1}{u^2}\frac{du}{dx}=\frac{dy}{dx}

And we can now put in the u values into our original equation...

\frac{dy}{dx}=5x^2-\frac{6}{y-2}

-\frac{1}{u^2}\frac{du}{dx}=5x^2-6u

Which can be rewritten as...

\frac{du}{dx}=6u^3-5x^2u^2

Don't know what to do with that though.
 
  • #20
xcvxcvvc said:
Are you sure you were supposed to solve that DE to find the answer to whatever the question asked? That seems like a pretty complicated DE to solve for a class not about DE...

The main problem doesn't ask to solve it, only to approximate it. However, the challenge problem of this week and next week (he issues challenges sometimes) is to solve it.
 
  • #21
\frac{du}{dx}=6u^3-5x^2u^2
I don't either.
 
Back
Top