Solving Differential Equations with Initial Conditions

Click For Summary

Homework Help Overview

The discussion revolves around solving a differential equation given initial conditions. The specific equation is x dy/dx = 1/y + y, and the participants are tasked with finding the general solution and evaluating y when x = 3, given that y = 2 when x = 1.

Discussion Character

  • Exploratory, Assumption checking, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss the manipulation of the differential equation and the integration process. There are attempts to clarify the relationship between the derived solution and the original equation. Some participants express uncertainty about how to substitute the solution back into the original differential equation to verify correctness.

Discussion Status

The discussion is ongoing, with participants exploring different interpretations of the equation and the implications of their manipulations. Some guidance has been offered regarding the verification of solutions, but no consensus has been reached on the correct approach or solution.

Contextual Notes

Participants are navigating the complexities of differential equations and expressing concerns about their understanding of the substitution process and the validity of their solutions. There is a recognition of potential errors in earlier steps, but no definitive resolution has been established.

BOAS
Messages
546
Reaction score
19
Hello

Homework Statement



Find the general solution of the following diff erential equations. In each case if
y = 2 when x = 1, fi nd y when x = 3.

[itex]x \frac{dy}{dx} = \frac{1}{y} + y[/itex]

Homework Equations





The Attempt at a Solution



[itex]x \frac{dy}{dx} = \frac{1}{y} + y[/itex]

[itex]x . \frac{1}{dx} =( \frac{1}{y} + y) \frac{1}{dy}[/itex]

[itex]\frac{1}{x} dx = y + \frac{1}{y} dy[/itex]

[itex]\int \frac{1}{x} dx = \int y + \frac{1}{y} dy[/itex]

[itex]ln|x| + c_{1} = \frac{y^{2}}{2} + ln|y| + c_{2}[/itex]

[itex]ln|x| - \frac{y^{2}}{2} - ln|y| = c_{2} - c_{1}[/itex]

[itex]ln|x| - \frac{y^{2}}{2} - ln|y| = c[/itex]

If y = 2 and x = 1, c = -2

(assuming I have found the general solution correctly...)

But I don't see how I can find y, when x = 3 because there are two terms involving y.

I think the most likely explanation is that I've done something wrong, so i'd really appreciate some help!

thanks,

BOAS :)
 
Physics news on Phys.org
$$\left(y+\frac1y\right)^{-1} \ne \frac{1}{y} + y$$
 
BOAS said:
Hello

Homework Statement



Find the general solution of the following diff erential equations. In each case if
y = 2 when x = 1, fi nd y when x = 3.

[itex]x \frac{dy}{dx} = \frac{1}{y} + y[/itex]

Homework Equations





The Attempt at a Solution



[itex]x \frac{dy}{dx} = \frac{1}{y} + y[/itex]

[itex]x . \frac{1}{dx} =( \frac{1}{y} + y) \frac{1}{dy}[/itex]

[itex]\frac{1}{x} dx = y + \frac{1}{y} dy[/itex]

[itex]\int \frac{1}{x} dx = \int y + \frac{1}{y} dy[/itex]

[itex]ln|x| + c_{1} = \frac{y^{2}}{2} + ln|y| + c_{2}[/itex]

[itex]ln|x| - \frac{y^{2}}{2} - ln|y| = c_{2} - c_{1}[/itex]

[itex]ln|x| - \frac{y^{2}}{2} - ln|y| = c[/itex]

If y = 2 and x = 1, c = -2

(assuming I have found the general solution correctly...)

But I don't see how I can find y, when x = 3 because there are two terms involving y.

I think the most likely explanation is that I've done something wrong, so i'd really appreciate some help!

thanks,

BOAS :)

Always substitute your alleged 'solution' into the original DE, to see if it works. My guess is that you have not done that yet.
 
Ray Vickson said:
Always substitute your alleged 'solution' into the original DE, to see if it works. My guess is that you have not done that yet.

I've only just started learning DE's and this may sound silly, but how do I substitute it in?
 
vela said:
$$\left(y+\frac1y\right)^{-1} \ne \frac{1}{y} + y$$

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

I'll see if I can solve it now
 
No, it wouldn't. You can't distribute the exponent over the sum.

Just try it with y=1. On the lefthand side, you end up with 1/2; on the righthand side you end up with 2.
 
BOAS said:
I've only just started learning DE's and this may sound silly, but how do I substitute it in?

In the obvious way: try it and see. Your solution says that x and y are related by
[tex]ln|x| - \frac{y^{2}}{2} - ln|y| = c,[/tex]
while the DE says they are related by
[tex]x dy = \left( y + \frac{1}{y} \right) dx .[/tex]
Do these two statements agree? Can you take the first form and show that it satisfies the second?
 
vela said:
No, it wouldn't. You can't distribute the exponent over the sum.

Just try it with y=1. On the lefthand side, you end up with 1/2; on the righthand side you end up with 2.

I think I have identified and fixed the problem, or the second problem that was stopping me from making sense of your help :)

[itex]x \frac{dy}{dx} = \frac{1}{y} + y[/itex]

[itex]x . \frac{1}{dx} =( \frac{1}{y} + y) \frac{1}{dy}[/itex]

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

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

[itex]ln|x| + c_{1} = \frac{ln|y^{2} + 1|}{2} + c_{2}[/itex]

[itex]ln|x| - \frac{ln|y^{2} + 1|}{2} = c_{2} - c_{1}[/itex]

[itex]ln|x| - \frac{ln|y^{2} + 1|}{2}| = c[/itex]

(whilst trying to implement your help, I was trying to differentiate that section when I needed to be integrating it)
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
942
  • · Replies 21 ·
Replies
21
Views
2K
Replies
4
Views
3K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
3
Views
2K
Replies
4
Views
2K
Replies
3
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
Replies
6
Views
2K