Solving Differential Equations: Examples and Step-by-Step Solutions

In summary: You certainly have seen what is the derivative of f/g. (f/g) ' = \frac{f ' g - f g '}{g^2}f=y(x), g=x in this problem....
  • #1
Mutaja
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.
 
Physics news on Phys.org
  • #2
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
For the second one, try to write the left-hand side as the derivative of something.
 
  • #4
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
phyzguy said:
For the second one, try to write the left-hand side as the derivative of something.

Very clever! :)
 
  • #6
phyzguy said:
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
Mutaja said:
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
Mark44 said:
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
Mutaja said:
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
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
ehild said:
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
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
Mutaja said:
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
Mark44 said:
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
Mutaja said:
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
Mutaja said:
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.

Mutaja said:
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.
 

FAQ: Solving Differential Equations: Examples and Step-by-Step Solutions

What is a differential equation?

A differential equation is a mathematical equation that relates an unknown function to its derivatives. It describes how a quantity changes over time or space based on the rate of change of other related quantities.

What are the applications of differential equations?

Differential equations are used to model a wide range of phenomena in fields such as physics, chemistry, engineering, economics, and biology. They are particularly useful in studying systems that undergo change and can help predict future behavior.

How are differential equations solved?

The methods for solving differential equations vary depending on the type of equation. Some common techniques include separation of variables, substitution, and using integrating factors. In some cases, numerical methods may also be used to approximate a solution.

What is the difference between an ordinary and a partial differential equation?

An ordinary differential equation involves a single independent variable, while a partial differential equation involves multiple independent variables. An ordinary differential equation represents the behavior of a single function, while a partial differential equation describes the behavior of a function in multiple dimensions.

How are differential equations used in real-world problems?

Differential equations are used to model and understand real-world problems such as population growth, heat transfer, fluid dynamics, and electrical circuits. They can help predict how a system will behave over time and inform decision making in various industries.

Back
Top