How to solve 2nd order d.e ? Is this the right start?

  • Thread starter laura_a
  • Start date
  • Tags
    2nd order
In summary, the problem asks for the general solution of a differential equation. The first attempt was to multiply the given equation by x + x^2 and expand, but this resulted in a y' term on both sides which is not possible. The next attempt was to factor out the x + x^2 term on the left side and the y + y^2 term on the right side, resulting in a separable equation. Integrating both sides and using the initial condition y(2) = 1, the solution is found to be y = (x + 1)/(kx + 1).
  • #1
laura_a
66
0

Homework Statement


find the general solution of
y' = (y + y^2)/(x + x^2)




The Attempt at a Solution



I've tried a number of ways the first most obvious way I figured was to multiply the x+x^2 over so I did that but then when I expand I end up with a y' in both of the terms and I can't find any form of expression who's d/dx has two y' in it, because I believe it's impossible? Anyway, what I really want help with is, is there a trick to these, because this is my first look at them for many years and I just can't pick up what to do with them in order to put them in a position where you can intergrate and then solve...

My other idea for a solution was

y'(1+x) = [y(1+y)]/x

But then when I expand I still get y' on both of the LHS terms ... Is this a separable equation? I am studying this via correspondance so I've only learned as far as I've read tonight and I'm totally lost... any help will be greatly appreciated



***Extra

I've just tried one method from my textbook but it seems totally different to the first method I used of direct integration

ANyways I've got

(x+x^2)y' - (y + y^2) = 0
[(x^2)/2 + (x^3)/3]y' - [(y^2)/2 + (y^3)/3]y' = 0
y'(x^2/2 + x^3/3 - y^2/2 - y^3/3) = 0 (not sure if I can just do this or not, but it's worth a try)
so I ended up with a nicer looking eqn which was

1/6(3x^2 + 2x^3 - 3y^2 - 2y^3) = c

Clearly I have no idea what I'm doing, but I thought that was worth a shot... I still don't understand how it seems in the textbook you can just use that method instead of the other method where you have to set it up in terms of something that looks like the differential of something else and then integrate it...?
 
Last edited:
Physics news on Phys.org
  • #2
y' = (y + y^2)/(x + x^2)

dy/(y + y^2)=dx/(x + x^2)
dy/y(y+1)=dx/x(x+1)

lets first see the right hand side
dy*(1/y-1/y+1)
dy/y-dy/(y+1)
integrating,
ln(y)-ln(y+1)+c1
ln(y/y+1)+c1

similarly on right hand side
ln(x/x+1)+c2
equating we get
ln(y(x+1)/x(y+1))=c
y(x+1)/x(y+1)=e^c

e^c as constant k
y(x+1)/x(y+1)=k
 
  • #3
Hints are best!

vipulsilwal said:
y' = (y + y^2)/(x + x^2)

dy/(y + y^2)=dx/(x + x^2)
dy/y(y+1)=dx/x(x+1)

Hi vipulsilwal! :smile:

Very nice. :smile:

But the OP asked for "the right start", and you've given the whole answer.

Hint: If you'd stopped where I've quoted to, it would just have been a hint. :wink:
 
  • #4
And that is NOT a "second order" differential equation.
 
  • #5
I've been working on this question for ages now

And I have to find the solution for which y(2)=1
This is the last line of working out
[tex] \frac{y(x+1)}{x(y+1)} =k [/tex]

The problem is, I've got an expression with x's and y's in it. In all of the examples in my textbook you always end up with y= something with x's and k's in it. But I can't solve that for y, I've tried and end up with a big mess. I assumed I need to use that fact that y(2)=1 and perhaps get simulataneous equations going? One of the problems I really have is that I don't know what y is so I can't find y(2)=1

Should I go back to

[tex] ln \frac{y}{y+1} + C_1 = ln \frac{x}{x+1} + C_2 [/tex]

I was thinking maybe I should split them up before taking the e of both sides

Can/SHould I do

[tex] ln(y) - ln(y+1) + C_1 = ln(x) - ln(x+1) +C_2 [/tex]

?

Thanks
 
Last edited:
  • #6
laura_a said:
I've been working on this question for ages now

And I have to find the solution for which y(2)=1
This is the last line of working out
[tex] \frac{y(x+1)}{x(y+1)} =k [/tex]

The problem is, I've got an expression with x's and y's in it. In all of the examples in my textbook you always end up with y= something with x's and k's in it. But I can't solve that for y, I've tried and end up with a big mess. I assumed I need to use that fact that y(2)=1 and perhaps get simulataneous equations going? One of the problems I really have is that I don't know what y is so I can't find y(2)=1

Hi laura! :smile:

Trick: just simplify the y bit, to get one y on its own:

(y+1)/y = 1 + 1/y.

So 1 + 1/y = (x + 1)/kx,

so k = … ? and y = … ? :smile:
 
  • #7
ahh... thanks! Got it now
 

1. How do I identify a 2nd order differential equation?

A 2nd order differential equation is a mathematical equation that involves a function, its derivatives, and independent variables. It is called a 2nd order equation because it involves the second derivative of the function.

2. What is the general form of a 2nd order differential equation?

The general form of a 2nd order differential equation is: y'' + p(x)y' + q(x)y = g(x), where y'' represents the second derivative of the function, p(x) and q(x) are functions of the independent variable x, and g(x) is a function of x only.

3. How do I solve a 2nd order differential equation using the method of undetermined coefficients?

The method of undetermined coefficients is used to solve non-homogeneous 2nd order differential equations. It involves finding a particular solution by assuming the form of the solution and then substituting it into the equation to solve for the coefficients. The general solution is then found by combining the particular solution with the solution to the corresponding homogeneous equation.

4. What is the difference between a homogeneous and non-homogeneous 2nd order differential equation?

A homogeneous 2nd order differential equation has a right-hand side of 0, meaning it does not involve any external forces or inputs. A non-homogeneous 2nd order differential equation has a non-zero right-hand side, meaning it includes external forces or inputs that affect the behavior of the system.

5. Is it necessary to have initial conditions to solve a 2nd order differential equation?

Yes, initial conditions are required to find the particular solution to a 2nd order differential equation. These initial conditions provide the starting point for the solution and are used to determine the values of the arbitrary constants in the general solution.

Similar threads

  • Calculus and Beyond Homework Help
Replies
19
Views
774
  • Calculus and Beyond Homework Help
Replies
2
Views
275
  • Calculus and Beyond Homework Help
Replies
7
Views
687
  • Calculus and Beyond Homework Help
Replies
2
Views
543
  • Calculus and Beyond Homework Help
Replies
2
Views
462
  • Calculus and Beyond Homework Help
Replies
8
Views
761
  • Calculus and Beyond Homework Help
Replies
25
Views
344
  • Calculus and Beyond Homework Help
Replies
21
Views
839
  • Calculus and Beyond Homework Help
Replies
4
Views
814
  • Calculus and Beyond Homework Help
Replies
4
Views
113
Back
Top