Help with Differential Equations (First order)

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
5 replies · 2K views
genap
Messages
2
Reaction score
0

Homework Statement


Solve the given the two equations:

[tex]xdy + ydx = ydy[/tex]

and

[tex](y^2 + 1)dx +(2xy + 1)dy = 0[/tex]

Homework Equations



N/A.

The Attempt at a Solution



For the first, I can see that solving this with respect to [tex]dy/dx[/tex]might be a bit tricky.

However, if I solve it for [tex]dx/dy[/tex], things seem to be a bit easier.

[tex]xdy + ydx = ydy[/tex]

[tex]ydx = ydy - xdy[/tex]

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

Now, that looks a bit familiar. Did someone say "product rule"?

[tex]\int{yx\frac{dx}{dy}} = \int{ydy}[/tex]

[tex]yx = \frac{y^2}{2}[/tex]

[tex]x = \frac{y}{2}[/tex]

[tex]y = 2x + C[/tex]

Now, this seems a bit too easy to me. Is that really it?

As to the second...

[tex](y^2 + 1)dx + (2xy+1) dy = 0[/tex]

[tex]y^2 dx + 2xy dy = -dy - dx[/tex]

[tex]y^2 + 2xy\frac{dy}{dx} = -\frac{dy}{dx} - 1[/tex]

Once again, it seems like that product rule comes up quite a bit...

[tex]\int{y^2 x\frac{dy}{dx}} = -\int{\frac{dy}{dx} - 1}[/tex]

At this point, I got a sinking feeling that something was horribly wrong with my work. I checked my answers on wolfram alpha, got a bunch of gibberish that made no sense, as well as answers that in no way resembled my own work. Could anyone verify if I'm taking the correct steps?

Thanks!
 
Last edited:
Physics news on Phys.org
genap said:

Homework Statement


Solve the given the two equations:

[tex]xdy + ydx = ydy[/tex]

and

[tex](y^2 + 1)dx +(2xy + 1)dy = 0[/tex]

Homework Equations



N/A.

The Attempt at a Solution



For the first, I can see that solving this with respect to [tex]dy/dx[/tex]might be a bit tricky.

However, if I solve it for [tex]dx/dy[/tex], things seem to be a bit easier.

[tex]xdy + ydx = ydy[/tex]

[tex]ydx = ydy - xdy[/tex]

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

Getting to the last equation was an error. That should be:
[itex]y \frac{dx}{dy} + x = y[/itex]
 
stevendaryl said:
Getting to the last equation was an error. That should be:
[itex]y \frac{dx}{dy} + x = y[/itex]

Doh! Fixed that, sorry.
 
genap said:
However, if I solve it for [tex]dx/dy[/tex], things seem to be a bit easier.

[tex]xdy + ydx = ydy[/tex]

[tex]ydx = ydy - xdy[/tex]

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

Now, that looks a bit familiar. Did someone say "product rule"?

[tex]\int{yx\frac{dx}{dy}} = \int{ydy}[/tex]

[tex]yx = \frac{y^2}{2}[/tex]
You miss an integration constant here.
 
genap said:
[tex]y^2 + 2xy\frac{dy}{dx} = -\frac{dy}{dx} - 1[/tex]

Once again, it seems like that product rule comes up quite a bit...

[tex]\int{y^2 x\frac{dy}{dx}} = -\int{\frac{dy}{dx} - 1}[/tex]

At this point, I got a sinking feeling that something was horribly wrong with my work. I checked my answers on wolfram alpha, got a bunch of gibberish that made no sense, as well as answers that in no way resembled my own work. Could anyone verify if I'm taking the correct steps?

Thanks!
The last line is wrong. As ## y^2 + 2xy\frac{dy}{dx}=\frac{d(y^2x)}{dx}##, it should be
[tex]\int{\frac{d(y^2 x)}{dx}dx} = -\int{(\frac{dy}{dx} + 1)dx}[/tex]
 
Personally, I dislike that particular method. It works- you can simply integrate- because these are exact equations.

The first, xdy+ ydx= ydy, is the same as ydx+ (x- y)dy= 0. Saying it is exact means there exist a function, F(x, y), such that
[tex]dF= F_x dx+ F_y dy= ydx+ (x- y)dy[/tex].
From [tex]F_x= y[/tex] we have, immediately, that F= xy+ g(y). From that, [tex]F_y= x+ g'(y)= x- y[/tex] so that [tex]g'(y)= -y[/tex]. Integrate that to find g.