Help with Differential Equations (First order)

In summary: You might want to use the fact that F= xy+ g(y) is a constant along solutions. Then use that to find the solution to the original equation. For the second, (y^2+ 1)dx+ (2xy+ 1)dy= 0, we want to find a function, F(x, y), such thatdF= F_x dx+ F_y dy= (y^2+ 1)dx+ (2xy+ 1)dy. From F_x= y^2+ 1, we have F= xy^2+ x+ h(y). From F_y= 2xy+ 1, we have F= xy^
  • #1
genap
2
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
  • #2
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]
 
  • #3
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.
 
  • #4
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.
 
  • #5
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]
 
  • #6
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.
 

FAQ: Help with Differential Equations (First order)

What is the definition of a differential equation?

A differential equation is a mathematical equation that relates an unknown function to its derivatives. It describes how a function changes over time or in relation to other variables.

What is the difference between a first order and a second order differential equation?

A first order differential equation involves the first derivative of the unknown function, while a second order differential equation involves the second derivative. In other words, a first order differential equation describes the rate of change of a function, while a second order differential equation describes the acceleration of the function.

How do I solve a first order differential equation?

To solve a first order differential equation, you can use techniques such as separation of variables, integrating factors, or the method of undetermined coefficients. It is also helpful to have a good understanding of basic calculus concepts.

What is the importance of differential equations in science?

Differential equations are essential in many scientific fields, including physics, engineering, and biology. They help us model and understand how systems change over time, making them a powerful tool for predicting future behavior and making informed decisions.

What are some real-life applications of first order differential equations?

First order differential equations are used to model a wide range of natural phenomena, such as population growth, chemical reactions, and fluid flow. They are also commonly used in engineering to describe the behavior of electrical circuits, mechanical systems, and control systems.

Back
Top