Help with Separable Differential Equations

In summary, you were working on two homework problems from calculus and you are stuck. The first equation is dy/dx=e^x+y and the second equation is dy/dx=x/(1+2y). Your calculator came up with e^-y=e^x when you tried to solve for y. For the second equation, you need to find y(y+1)=(x^2/x+C) and you are stuck.
  • #1
wanamaa
11
0
Hi there, I was working on two of my homework problems for calculus and I'm stuck.

First equation is: dy/dx=e^(x+y), solving for y
So far here is what I have:
dy/dx=(e^x)(e^y)
therefore dy/dx=(e^x)/(1/e^y)
INT(1/e^y)dy=INT(e^x)dx
from the integration, my calculator comes up with -e^-y=e^x, and now I'm stuck

second equation is: dy/dx=x/(1+2y)
So far here is what I have:
INT(1+2y)dy=INT(x)dx
from that, I get y^2+y=(x^2)/x + C
which leads to y(y+1)=(x^2)/x + C
now I'm stuck here too.

Please help, I feel bad posting a question as my first post, but any help would be awesome. This assignment isn't due for a week so I'm kinda in a hurry but not. Thanks guys!
 
Physics news on Phys.org
  • #2
Your first bit of work should read

[tex]
-e^{-y} = e^x + C
[/tex]

where [tex] C [/tex] is a constant. You need to isolate [tex] y [/tex]
How would you solve this equation:

[tex]
-e^{-y} = 8
[/tex]

The same type of steps will work for you in current setting.

For the second question, you get to

[tex]
\int (1+2y) \, dy = \int x \, dx
[/tex]

Regarding the integral on the right, why do you write

[tex]
\int x \, dx = \frac{x^2}{x}
[/tex]

For the integral on the left: rather than integrating the two terms alone, treat [tex] 1 + 2y [/tex] as a single expression and find an indefinite integral for it (use a [tex] u [tex]-substitution if it helps you see the result)
 
  • #3
Regarding the integral on the right, why do you write

LaTeX Code: <BR>\\int x \\, dx = \\frac{x^2}{x}<BR>

I wrote that because that's what the integral for x dx is. Unless my TI-89 is lying to me...

Your first bit of work should read

LaTeX Code: <BR>-e^{-y} = e^x + C<BR>

where LaTeX Code: C is a constant. You need to isolate LaTeX Code: y
How would you solve this equation:

LaTeX Code: <BR>-e^{-y} = 8<BR>

I understand where I forgot the C, but with what you wrote, where did the 8 come from? Is it just some arbitrary number to help solve for y or does it have any significance?

Maybe I completely missed something here.
 
  • #4
whoops, looks like it wouldn't let me copy the equations you wrote up above. Weird.
 
  • #5
First:
if your calculator is really telling you that

[tex]
\int x \, dx = \frac{x^2}{x}
[/tex]

it does have a problem with integrity :rolleyes:

Hint:

[tex]
\frac{d}{dx}\left(\frac{x^2}{2}\right) = \frac{2x}{2} = x
[/tex]

Second, my equation

[tex]
-e^{-y} = 8
[/tex]

doesn't come from your problem - I merely asked how you would go about solving it for [tex] y [/tex]. If you can solve the problem I posed (and posed here again), then the
same steps will solve the one you need to solve.
 
  • #6
oh snap! I screwed up writing the notation for x^2/x. I meant x^2/2. Sorry, now I feel stupid :redface:.

To solve the second equation, I am given an initial value of y(-1)=0. Forgot to mention that in the very beginning :blushing: oops. I just don't know if I need to refine the equation I found near the end or if I need to restart that problem and work it through another method.
 
  • #7
"Sorry, now I feel stupid ."

Don't - proofreading one's own work when you are writing it is difficult enough; proofreading when you are typing on a computer is more difficult.

If you've done the integrations correctly, and included the constant [tex] C [/tex] in your indefinite integrals, then you can incorporate the initial condition from those equations. (you have a formula for the function [tex] y [/tex], just evaluate each side at [tex] x = -1 [/tex] to determine the appropriate value for the constant of [tex] C [/tex].
 
  • #8
wanamaa said:
Hi there, I was working on two of my homework problems for calculus and I'm stuck.

First equation is: dy/dx=e^(x+y), solving for y
So far here is what I have:
dy/dx=(e^x)(e^y)
therefore dy/dx=(e^x)/(1/e^y)
INT(1/e^y)dy=INT(e^x)dx
from the integration, my calculator comes up with -e^-y=e^x, and now I'm stuck
Do you find it at all embarrasing that you used a calculator to integrate e-y dy and exdx?

If you had done it by hand, you might have recognized that the correct answer would be
-e-y= ex+ C where C is the "constant of integration. Now, why are you stuck? That is, what are you trying to do? Solve for y? My first suggestion would be to multiply the entire equation by -1 so e-y= -ex+ C and the "get rid of" the exponential by using its inverse function, ln: take the logarithm of both sides of the equation.

second equation is: dy/dx=x/(1+2y)
So far here is what I have:
INT(1+2y)dy=INT(x)dx
from that, I get y^2+y=(x^2)/x + C
which leads to y(y+1)=(x^2)/x + C
now I'm stuck here too.
Again, what is it you are trying to do? (But congratulations on remembering the C!) Solve for y? Are you actually required to do that?
What you have is a quadratic equation for y isn't it- y2+ y- (x2/2+ C)= 0. If you must, use the quadratic formula with a= 1, b= 1, c= -(x2/2+ C).

Please help, I feel bad posting a question as my first post, but any help would be awesome. This assignment isn't due for a week so I'm kinda in a hurry but not. Thanks guys!
 
  • #9
what is it you are trying to do?

Basically I am trying to solve for the separable differential equation for y, and I also was given an initial y value (which I forgot in my first post but posted it I think in my 3 or 4th post on this thread), which is y(-1)=0 for both equations. I know how to input initial values, I just got to those two points on each problem and am stuck algebraically where to go, because I can't take the log of -e^-y, it's a non-real answer.

And yes, I do feel stupid checking on my calculator for the integrals, I'm always unsure of myself when it comes to math
 
  • #10
My first suggestion would be to multiply the entire equation by -1 so e^-y= -e^x+ C and the "get rid of" the exponential by using its inverse function, ln: take the logarithm of both sides of the equation.

Yay, I was close on that one! Ok, that is what I was trying to do in the beginning and kept running into the "can't take a log of a negative number" problem. But won't I run into the same problem with the newly made "-e^x - C" or would I just rearrange the variables, like "-C-e^x"? Sorry for th stupid questions
 
Last edited:

Related to Help with Separable Differential Equations

1. What are separable differential equations?

Separable differential equations are a type of differential equation where the variables can be separated into two functions, one containing only the independent variable and the other containing only the dependent variable. This allows us to solve for the dependent variable by integrating both sides of the equation.

2. How do I know if an equation is separable?

A differential equation is separable if it can be written in the form f(x)dx = g(y)dy, where f(x) and g(y) are functions of x and y respectively. This means that the variables can be separated on opposite sides of the equation.

3. What is the general process for solving separable differential equations?

The general process for solving separable differential equations is as follows:

  1. Separate the variables on opposite sides of the equation.
  2. Integrate both sides of the equation.
  3. Isolate the dependent variable on one side of the equation.
  4. Apply any initial conditions given to find the constant of integration.

4. Can you provide an example of solving a separable differential equation?

Sure! Let's say we have the equation dy/dx = 2xy. We can separate the variables to get dy/y = 2xdx. Integrating both sides gives us ln|y| = x^2 + C. Isolating y gives us y = Ce^x^2. If we have an initial condition, such as y(0) = 3, we can plug in the values and solve for C to get the specific solution y = 3e^x^2.

5. Are there any tips for solving separable differential equations?

Yes, there are a few tips that can make solving separable differential equations easier:

  • Always check if the equation is separable before attempting to solve it.
  • Be careful when integrating and don't forget the constant of integration.
  • If the equation involves logarithms, remember to use the absolute value.
  • Check your answer by differentiating it to make sure it satisfies the original equation.

Similar threads

  • Calculus and Beyond Homework Help
Replies
8
Views
918
  • Calculus and Beyond Homework Help
Replies
3
Views
451
  • Calculus and Beyond Homework Help
Replies
6
Views
963
  • Calculus and Beyond Homework Help
Replies
14
Views
687
  • Calculus and Beyond Homework Help
Replies
18
Views
2K
  • Calculus and Beyond Homework Help
Replies
25
Views
723
  • Calculus and Beyond Homework Help
Replies
15
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
917
  • Calculus and Beyond Homework Help
Replies
12
Views
2K
  • Calculus and Beyond Homework Help
Replies
3
Views
1K
Back
Top