Unseparable Differential Equations

tascja
Messages
85
Reaction score
0
I have a question about differential equations... The equation for a general differential equation that is not separable is:
dy/dx + P(x)y = Q(x)

So my question is can you have a Q(x) that has both x and y variables?

Example:

Homework Statement


xy' +y = y^2

The Attempt at a Solution


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

The integrating factor V(x) = e ^[int. P(x)]
= e ^[int. 1/x dx]
= x

Therefore y = [1/V(x)][int. Q(x)V(x)dx + C]
= [1/x] [int. ? + C]
 
Physics news on Phys.org
tascja said:
I have a question about differential equations... The equation for a general LINEAR first order [/color] differential equation (separable or not)[/color] is:
dy/dx + P(x)y = Q(x)

So my question is can you have a Q(x) that has both x and y variables?

Example:

Homework Statement


xy' +y = y^2
This is separable! (and non-linear, by the way) Proceed as you normally would in that case.
 
Last edited:


Yes, sorry as i was looking over i finally remembered its called a first order linear differential equation.. sorry :$... but i tried to solve by separating but don't seem to get the right answer.. here's what i got for a solution (with the initial condition being y(1)=-1)

-1/y - ln|y| = ln|x| + 1

but how would i isolate y??
 


tascja said:
Yes, sorry as i was looking over i finally remembered its called a first order linear differential equation.. sorry :$... but i tried to solve by separating but don't seem to get the right answer.. here's what i got for a solution (with the initial condition being y(1)=-1)

-1/y - ln|y| = ln|x| + 1

but how would i isolate y??
How did you get that?

We have \frac{1}{y(y-1)} y' = \frac{1}{x}

and the antiderivative of

\frac{1}{y(y-1)} = \frac{1}{y-1} - \frac{1}{y}

is ?
 
even still.. i don't see how you can isolate for y without y in the answer??
 
tascja said:
even still.. i don't see how you can isolate for y without y in the answer??

Why would you need to isolate y? If you were given y(1)=-1, that means that when x=1,y=-1. No need to isolate y.
 
tascja said:
even still.. i don't see how you can isolate for y without y in the answer??
You didn't answer my question. Without seeing your response I can't know why you can't isolate y.
 


oh sorry...
so since you said
Unco said:
How did you get that?

We have \frac{1}{y(y-1)} y' = \frac{1}{x}

and the antiderivative of

\frac{1}{y(y-1)} = \frac{1}{y-1} - \frac{1}{y}

is ?
therefore having taking the antiderivative of both sides,
the next line would be:
1/y-1 - 1/y = ln|x| + C
then subbing in y=-1 and x=1 to solve for C:
1/1 +1/1 = ln|1| + C
C = 2
so
1/y-1 - 1/y = ln|x| + 2 (sorry i think i might have put 1 before as C)
so now i need to enter an answer that is y=
and i don't know how to isolate for y??
 


tascja said:
oh sorry...
so since you said

therefore having taking the antiderivative of both sides,
the next line would be:
1/y-1 - 1/y = ln|x| + C
then subbing in y=-1 and x=1 to solve for C:
1/1 +1/1 = ln|1| + C
C = 2
so
1/y-1 - 1/y = ln|x| + 2 (sorry i think i might have put 1 before as C)
so now i need to enter an answer that is y=
and i don't know how to isolate for y??
You still didn't answer my question, tascja!

The antiderivative of 1/(y-1) - 1/y is ln(y-1) - ln(y) = ln((y-1)/y) ...
 
  • #10
omg i thought you were implying that 1/(y-1) - 1/y was the antiderivative of 1/y(y-1) that's why i was confused, sorry.. again... okay so
ln((y-1)/y)) = ln|x| +c
(y-1)/y = e^[ln|x| +c]
1- 1/y = e^[ln|x|]e^C *e^C is just arbitrary number
y = 1/(1-Cx) * where with the initial conditions C=2
y = 1/(1-2x)

THANK YOU FOR ALL YOUR HELP! :D
 
  • #11
tascja said:
omg i thought you were implying that 1/(y-1) - 1/y was the antiderivative of 1/y(y-1) that's why i was confused, sorry.. again... okay so
ln((y-1)/y)) = ln|x| +c
(y-1)/y = e^[ln|x| +c]
1- 1/y = e^[ln|x|]e^C *e^C is just arbitrary number
y = 1/(1-Cx) * where with the initial conditions C=2
y = 1/(1-2x)
If what I wrote was unclear it is I who should be apologising! Well done!
 
Back
Top