Differential equation.

  • Thread starter Mutaja
  • Start date
  • #1
239
0

Homework Statement



1st problem - is this correctly done?

[itex]\frac{dy}{dx}[/itex] = (##x^2## - 1) ##y^2## , y(0) = 1

2nd problem - I really need help with this one.

xy' - y = ##3x^2## , y(1) = 1


The Attempt at a Solution



1st problem:

[itex]\frac{dy}{dx}[/itex] = (##x^2## - 1) ##y^2## , y(0) = 1

[itex]\frac{1}{y^2}[/itex] dy = (##x^2## - 1) dx

##y^{-2}## dy = (##x^2## -1) dx

∫##y^{-2}## dy = (##x^2## - 1) dx

##-y^{-1}## = ([itex]\frac{x^3}{3}[/itex] - x) +c

##-1^{-1}## = c

c = -1

##-y^{-1}## = ([itex]\frac{x^3}{3}[/itex] - x) - 1.

2nd problem:

xy' - y = ##3x^2## , y(1) = 1

-y + xy' = ##3x^2##

My = -1, Nx = 1

μ(x)(-y) + μ(x)(xy') = μ(x) ##3x^2##

Am I onto something here? Any help or guidelines is highly appreciated.
 

Answers and Replies

  • #2
3,816
92
Your attempt for 1st is correct.

For the second one, observe that the given differential equation can be converted to a linear D.E.
 
  • #3
phyzguy
Science Advisor
4,949
1,890
For the second one, try to write the left-hand side as the derivative of something.
 
  • #4
35,393
7,271
For the first one, you can always check that your solution is correct, which is a good habit to form. If your solution satisifies the initial condition and the differential equation, then you're golden.
 
  • #5
3,816
92
For the second one, try to write the left-hand side as the derivative of something.

Very clever! :)
 
  • #6
239
0
For the second one, try to write the left-hand side as the derivative of something.

Thanks for your input! From the beginning I assume, not from the 'end of my progress'?

Edit: Either way, I'm not sure what to write...
 
Last edited:
  • #7
35,393
7,271
Thanks for your input! From the beginning I assume, not from the 'end of my progress'?

Edit: Either way, I'm not sure what to write...
From the beginning. If you stare at xy' + y long enough, you might recognize it as the derivative (with respect to x) of something.

Edit: It should have been xy' - y, not xy' + y.

Then you can write d/dx(<something>) = 3x2. If you know that the derivative of something is 3x2, then that something is equal to what?
 
Last edited:
  • #8
239
0
From the beginning. If you stare at xy' + y long enough, you might recognize it as the derivative (with respect to x) of something.

Then you can write d/dx(<something>) = 3x2. If you know that the derivative of something is 3x2, then that something is equal to what?

I'm not sure what to do, but am I onto something here?

[itex]\frac{d}{dx}[/itex] x y' - y = ##3x^2##

y'-y = ##3x^2##

I'm slightly confused.

Thanks a lot for your help, even though I don't understand what to do yet, I appreciate it.
 
  • #9
phyzguy
Science Advisor
4,949
1,890
I'm not sure what to do, but am I onto something here?

[itex]\frac{d}{dx}[/itex] x y' - y = ##3x^2##

y'-y = ##3x^2##

I'm slightly confused.

Thanks a lot for your help, even though I don't understand what to do yet, I appreciate it.

This isn't right.

[tex] \frac{d}{dx} (x y') \neq y'[/tex]
[tex] \frac{d}{dx} (x y') = y' + x y''[/tex]

Remember: [tex] \frac{d}{dx} (f g) =\frac{df}{dx} g + f \frac{dg}{dx}[/tex]

Keep thinking along these lines.
 
  • #10
ehild
Homework Helper
15,543
1,914
You can rearrange the equation as


[itex] \frac{xy' - y}{x^2} = 3[/itex]

Do you recognize the left hand side as the derivative of a fraction?

ehild








(y/x)'
 
  • #11
239
0
You can rearrange the equation as


[itex] \frac{xy' - y}{x^2} = 3[/itex]

Do you recognize the left hand side as the derivative of a fraction?

ehild








(y/x)'

I can see and understand what you've done - just divided by ##x^2##. I do not, however, understand how I'm supposed to see that [itex] \frac{xy' - y}{x^2}[/itex] = (y/x)'.


Using [tex] \frac{d}{dx} (f g) =\frac{df}{dx} g + f \frac{dg}{dx}[/tex]

I get that [tex] \frac{d}{dx} (x y') =\frac{dx}{dx} y' + x \frac{dy'}{dx}[/tex]

[tex] \frac{d}{dx} (x y') = y' + x \frac{dy'}{dx}[/tex]

And I'm stuck and don't understand what I'm supposed to do. These are methods I haven't yet seen in our lectures thus I don't have them in my notes.

I'm sorry I don't understand what you're trying to tell/learn me, but I'm trying my best.

Thanks a lot for helping me, I really appreciate it.
 
  • #12
35,393
7,271
You're going the wrong way with it. We're not suggesting that you find the derivative of something, but rather guess what something should be to get a particular expression as its derivative.

For example, this is NOT what you're doing : d/dx(<given>) = <??>. Instead, it's figure out what <??> needs to be in this equation: d/dx(<??>) = <given>.

You can ignore my hint. I misread a sign in the problem. ehild's hint is more appropriate.
 
  • #13
ehild
Homework Helper
15,543
1,914
And I'm stuck and don't understand what I'm supposed to do. These are methods I haven't yet seen in our lectures thus I don't have them in my notes.

I'm sorry I don't understand what you're trying to tell/learn me, but I'm trying my best.

Thanks a lot for helping me, I really appreciate it.

You certainly have seen what is the derivative of f/g.

[itex](f/g) ' = \frac{f ' g - f g '}{g^2}[/itex]

f=y(x), g=x in this problem.

ehild
 
  • #14
239
0
You're going the wrong way with it. We're not suggesting that you find the derivative of something, but rather guess what something should be to get a particular expression as its derivative.

For example, this is NOT what you're doing : d/dx(<given>) = <??>. Instead, it's figure out what <??> needs to be in this equation: d/dx(<??>) = <given>.

You can ignore my hint. I misread a sign in the problem. ehild's hint is more appropriate.

So I'm not supposed to 'solve' the left hand side to get (y/x)' - I'm supposed to see it? Your example here confuses me even more.

Is there any chance you can tell me how to think when I see this problem, or show me with another example?

As it would appear that I'm completely stuck on this problem, would it be wise of me to go back to simpler equations and maybe that would refresh some basic knowledge about differential equations that could help me out? I really don't know what to do at this point to understand this.

Edit: I'll look at ehild's suggestion before I go all frustrated on this. And yes, I've obviously seen the formula for the derivative of a fraction. I don't know what I was thinking. I was probably overcomplicating it.
 
  • #15
phyzguy
Science Advisor
4,949
1,890
I can see and understand what you've done - just divided by ##x^2##. I do not, however, understand how I'm supposed to see that [itex] \frac{xy' - y}{x^2}[/itex] = (y/x)'.


Using [tex] \frac{d}{dx} (f g) =\frac{df}{dx} g + f \frac{dg}{dx}[/tex]

I get that [tex] \frac{d}{dx} (x y') =\frac{dx}{dx} y' + x \frac{dy'}{dx}[/tex]

[tex] \frac{d}{dx} (x y') = y' + x \frac{dy'}{dx}[/tex]

And I'm stuck and don't understand what I'm supposed to do. These are methods I haven't yet seen in our lectures thus I don't have them in my notes.

I'm sorry I don't understand what you're trying to tell/learn me, but I'm trying my best.

Thanks a lot for helping me, I really appreciate it.

Well, since you know that:

[tex] \frac{d}{dx} (f g) =\frac{df}{dx} g + f \frac{dg}{dx}[/tex]

Consider f = y and g = 1/x, and tell us what is:

[tex] \frac{d}{dx} (y \frac{1}{x}) [/tex]
 
  • #16
35,393
7,271
So I'm not supposed to 'solve' the left hand side to get (y/x)' - I'm supposed to see it? Your example here confuses me even more.

Is there any chance you can tell me how to think when I see this problem, or show me with another example?
Sure. I'll work the example that I meant when I misread a sign in your problem.
Solve xy' + y = 3x2, y(1) = 1

Notice that I have a '+' sign on the left side instead of the '-' sign as in your problem.

Looking only at the left side for a moment, I'm trying to work backwards to figure out what <??> should be so that d/dx(<??>) = xy' + y. I am NOT trying to find d/dx(xy' + y)!

Because xy' + y is a sum and the product rule results in a sum, my thinking is that maybe <??> is the product of two factors. Since I see y' maybe one of the things in the product is y.

I notice that d/dx(xy) = xy' + 1y, so xy is what I meant by <??>.

I can now rewrite the differential equation like so:
d/dx(xy) = 3x2

If the derivative of xy is 3x2, then it must be that xy = ∫3x2dx = x3 + C.

Restating this idea in symbols, I have
d/dx(xy) = 3x2
##\Rightarrow## d(xy) = 3x2dx
##\Rightarrow## ∫d(xy) = ∫3x2dx
##\Rightarrow## xy = x3 + C
##\Rightarrow## y = x2 + C/x

Since y(1) = 1, I have 1 = 12 + C/1, so C = 0
and my solution is y = x2

As mentioned before, it's always a good idea to check your answer. It's easiest to start with the initial condition. Is y(1) = 1? Yes

Does xy' + y = 3x2?
If y = x2, then y' = 2x,
so xy' + y = x(2x) + x2 = 3x2
So, yes, my solution satisfies the differential equation, and I'm done.

As it would appear that I'm completely stuck on this problem, would it be wise of me to go back to simpler equations and maybe that would refresh some basic knowledge about differential equations that could help me out? I really don't know what to do at this point to understand this.

Edit: I'll look at ehild's suggestion before I go all frustrated on this. And yes, I've obviously seen the formula for the derivative of a fraction. I don't know what I was thinking. I was probably overcomplicating it.
 

Related Threads on Differential equation.

Replies
5
Views
712
  • Last Post
Replies
1
Views
770
  • Last Post
Replies
4
Views
1K
  • Last Post
Replies
1
Views
732
  • Last Post
Replies
1
Views
1K
  • Last Post
Replies
1
Views
1K
  • Last Post
Replies
17
Views
2K
  • Last Post
Replies
4
Views
1K
  • Last Post
Replies
2
Views
711
  • Last Post
Replies
4
Views
1K
Top