Solving this differential equation

In summary: I will also check out his approach...thanks a lot guys...I get the same values.Above, you're missing dv from the right hand side.No, the negative affects only the numerator or only the denominator, but not both. If it were to effect both, that would be equivalent to multiplying by ##\frac {−1}{−1}##, which is different from having a factor of -1.In your last line, you should add the dv factor, and write the denominator like this:##\frac {dx}{x}=\frac {4-3v}{3v^2 -8v -3}dv##Now rewrite the right side using your partial fraction decomposition, like so:##\frac
  • #1
chwala
Gold Member
2,650
351
Homework Statement
##(3x+4y)dx + (4x-3y)dy=0##
Relevant Equations
##\frac{dy}{dx}##= ##v##+##x\frac {dv}{dx}##
##-\frac {dy}{dx}=\frac {3+4v}{4-3v}##
##\frac {3+4v}{4-3v}=-v-x\frac {dv}{dx}##
##-\frac {dx}{x}=\frac {4-3v}{8v-3v^2+3}##
##\frac {dx}{x}=\frac {4-3v}{3v^2-8v-3}##=[A/3v+1]+[B/v-3]##
 
Last edited:
Physics news on Phys.org
  • #2
chwala said:
Homework Statement:: ##(3x+4y)dx + (4x-3y)dy=0##
Relevant Equations:: ##\frac{dy}{dx}##= ##v##+##x\frac {dv}{dx}##

##-\frac {dy}{dx}=\frac {3+4v}{4-3v}##
##\frac {3+4v}{4-3v}=-v-x\frac {dv}{dx}##
##-\frac {dx}{x}=\frac {4-3v}{8v-3v^2+3}##
##\frac {dx}{x}=\frac {4-3v}{3v^2-8v-3}##=[A/3v+1]+[B/v-3]##

ok, are my steps correct? then i can proceed. Actually i have a solution that is different from textbook, that's why i need a second perspective from you...i have ##A=-1.5## and ##B=-0.5##
 
  • #3
You have
$$
\int \frac{\frac{4}{3}-v}{v^2-\frac{8}{3}v-1}dv
$$
what are the roots of ##v^2-\frac{8}{3}v-1##?
 
  • #4
chwala said:
Homework Statement:: ##(3x+4y)dx + (4x-3y)dy=0##
Relevant Equations:: ##\frac{dy}{dx}##= ##v##+##x\frac {dv}{dx}##

##-\frac {dy}{dx}=\frac {3+4v}{4-3v}##
##\frac {3+4v}{4-3v}=-v-x\frac {dv}{dx}##
How did you get the line above? I would guess that you are doing something related to your Relevant Equations.
If so, the assumption there is that y = vx, so dy = vdx + xdv, and hence ##\frac{dy}{dx} = v + x\frac{dv}{dx}##.
Please show what you are substituting for v, and include the work that leads to the line below.
chwala said:
##-\frac {dx}{x}=\frac {4-3v}{8v-3v^2+3}##
##\frac {dx}{x}=\frac {4-3v}{3v^2-8v-3}##=[A/3v+1]+[B/v-3]##
Also, in the line above, you need more parentheses.
A/3v + 1 should be written as A/(3v + 1), and B/v-3 should be written as B/(v-3). The brackets you included are doing nothing to fix the problem - they need to be around the denominators, not the whole fraction.
 
  • Like
Likes DaveE and berkeman
  • #5
Isn't your original relationship an exact differential: $$3xdx+4d(xy)-3ydy=0$$
 
  • Like
Likes chwala
  • #6
Thanks guys...let me respond later I finish with some errands, I will show my steps as asked...I didn't check to establish if the equation was exact, ...I will check that also. Regards
 
  • #7
Mark44 said:
How did you get the line above? I would guess that you are doing something related to your Relevant Equations.
If so, the assumption there is that y = vx, so dy = vdx + xdv, and hence ##\frac{dy}{dx} = v + x\frac{dv}{dx}##.
Please show what you are substituting for v, and include the work that leads to the line below.
Also, in the line above, you need more parentheses.
A/3v + 1 should be written as A/(3v + 1), and B/v-3 should be written as B/(v-3). The brackets you included are doing nothing to fix the problem - they need to be around the denominators, not the whole fraction.

I will fix that too, in my subsequent working...
 
  • #8
Mark44 said:
How did you get the line above? I would guess that you are doing something related to your Relevant Equations.
If so, the assumption there is that y = vx, so dy = vdx + xdv, and hence ##\frac{dy}{dx} = v + x\frac{dv}{dx}##.
Please show what you are substituting for v, and include the work that leads to the line below.
Also, in the line above, you need more parentheses.
A/3v + 1 should be written as A/(3v + 1), and B/v-3 should be written as B/(v-3). The brackets you included are doing nothing to fix the problem - they need to be around the denominators, not the whole fraction.

ok this was my approach,

##(3x +4y)dx +(4x-3y)dy=0##

##(3x +4y)dx =-(4x-3y)dy##

##\frac {3x+4y}{4x-3y}=-\frac {dy}{dx}##

Using, ##y=vx##

→##\frac {3x+4vx}{4x-3vx}=-\frac {dy}{dx}##

→##\frac {3+4v}{4-3v}=-\frac {dy}{dx}##

→##\frac {3+4v}{4-3v}=-v-x\frac {dv}{dx}##

→##-\frac {dx}{x}=\frac {4-3v}{8v-3v^2+3}##

→##\frac {dx}{x}=-\frac {4-3v}{8v-3v^2+3}##

→##\frac {dx}{x}=\frac {4-3v}{-8v+3v^2-3}##

does this negative also affect the numerator or is my working just fine?...
 
  • #9
Chestermiller said:
Isn't your original relationship an exact differential: $$3xdx+4d(xy)-3ydy=0$$
i will check it out, i have re posted my earlier approach though...
 
  • #10
chwala said:
i have A=−1.5 and B=−0.5
I get the same values.

chwala said:
ok this was my approach,
##(3x +4y)dx +(4x-3y)dy=0##
##(3x +4y)dx =-(4x-3y)dy##
##\frac {3x+4y}{4x-3y}=-\frac {dy}{dx}##
Using, ##y=vx##
→##\frac {3x+4vx}{4x-3vx}=-\frac {dy}{dx}##
→##\frac {3+4v}{4-3v}=-\frac {dy}{dx}##
→##\frac {3+4v}{4-3v}=-v-x\frac {dv}{dx}##
→##-\frac {dx}{x}=\frac {4-3v}{8v-3v^2+3}##
Above, you're missing dv from the right hand side.
chwala said:
→##\frac {dx}{x}=-\frac {4-3v}{8v-3v^2+3}##
→##\frac {dx}{x}=\frac {4-3v}{-8v+3v^2-3}##

does this negative also affect the numerator or is my working just fine?...
No, the negative affects only the numerator or only the denominator, but not both. If it were to effect both, that would be equivalent to multiplying by ##\frac {−1}{−1}##, which is different from having a factor of -1.
In your last line, you should add the dv factor, and write the denominator like this:
##\frac {dx}{x}=\frac {4-3v}{3v^2 -8v -3}dv##
Now rewrite the right side using your partial fraction decomposition, like so:
##\frac {dx}{x}=\frac {−3/2}{3v+1}dv+ \frac{−1/2}{v−3}dv##
Integrate both sides to get x in terms of v. Undo the substitution to get y back to end up with an equation that involves x and y.

@Chestermiller's suggestion was probably a lot simpler than what you're doing, but you've done most of the work already.
 
  • Like
Likes chwala
  • #11
Mark44 said:
I get the same values.

Above, you're missing dv from the right hand side.
No, the negative affects only the numerator or only the denominator, but not both. If it were to effect both, that would be equivalent to multiplying by ##\frac {−1}{−1}##, which is different from having a factor of -1.
In your last line, you should add the dv factor, and write the denominator like this:
##\frac {dx}{x}=\frac {4-3v}{3v^2 -8v -3}dv##
Now rewrite the right side using your partial fraction decomposition, like so:
##\frac {dx}{x}=\frac {−3/2}{3v+1}dv+ \frac{−1/2}{v−3}dv##
Integrate both sides to get x in terms of v. Undo the substitution to get y back to end up with an equation that involves x and y.

@Chestermiller's suggestion was probably a lot simpler than what you're doing, but you've done most of the work already.

aaaaaaaaaargh, i really hate making those kind of mistakes:frown:...of leaving out the ##dv##. bingo mark, let me check it out...i will also use Chestermiller's approach and see what comes out of it...
 
Last edited:
  • #12
which means my post ##2## was just correct after all.
 
  • #13
chwala said:
which means my post ##2## was just correct after all.
Yes, except for the missing dv. My first quote in the previous thread came from your post #2.
 
  • Like
Likes chwala
  • #14
ok just to finish on this...
on integration,i have
##ln x= -1.5 ln(3v+1)-0.5 ln (v-3)##

##lnx##= ln##\frac {(3v+1)^{-1.5}}{(v-3)^{-0.5}}##

##lnx##= ln##\frac {(v-3)^{0.5}}{(3v+1)^{1.5}}##

→##x##= ##\frac {(v-3)^{0.5}}{(3v+1)^{1.5}}##

→##x.\frac {(3x+y)^{1.5}}{(y)^{1.5}}##=##\frac {(x-3y)^{0.5}}{(y)^{0.5}}##

→##x^2.\frac {(3x+y)^3}{(y)^{1.5}}##=##\frac {x-3y}{y}##

looks a bit complicated...
on cross multiplication, we have two scenarios, either,
##y^3(x-3y)=0##
or
##x^2y(3x+y)^3=0##
tell me am doing something wrong...
 
Last edited:
  • #15
using the exact approach,

##M=3x+4y## and ##N=4x-3y## where ##Mdx+Ndy=0##

##\frac{∂M}{∂y}=4## and ##\frac {∂N}{∂x}=4## hence exact, therefore,

##U(x,y)= ∫(3x+4y)dx +∫(4x-3y)dy##

##c=\frac {3x^2}{2}+4xy-\frac {3y^2}{2}## where ##c## is an arbitrary constant.
 
Last edited:
  • #16
chwala said:
ok just to finish on this...
on integration,i have
##ln x= -1.5 ln(3v+1)-0.5 ln (v-3)##
Plus the constant of integration...
chwala said:
##lnx##= ln##\frac {(3v+1)^{-1.5}}{(v-3)^{-0.5}}##

##lnx##= ln##\frac {(v-3)^{0.5}}{(3v+1)^{1.5}}##

→##x##= ##\frac {(v-3)^{0.5}}{(3v+1)^{1.5}}##

→##x.\frac {(3x+y)^{1.5}}{(y)^{1.5}}##=##\frac {(x-3y)^{0.5}}{(y)^{0.5}}##
I don't know about the step above. The substitution was y = vx, or v = y/x, so replace v with y/x. I can't tell if you did that.
chwala said:
→##x^2.\frac {(3x+y)^3}{(y)^{1.5}}##=##\frac {x-3y}{y}##

looks a bit complicated...
on cross multiplication, we have two scenarios, either,
##y^3(x-3y)=0##
or
##x^2y(3x+y)^3=0##
tell me am doing something wrong...
 
  • #17
chwala said:
##c=\frac {3x^2}{2}+4xy-\frac {3x^2}{2}## where ##c## is an arbitrary constant.
Exactly what I got.
Edit: That last term should be ##-\frac 3 2 y^2##.
 
Last edited:
  • #18
Mark44 said:
Plus the constant of integration...
I don't know about the step above. The substitution was y = vx, or v = y/x, so replace v with y/x. I can't tell if you did that.

aaaaargh stupid mistake on my part...i substituted ##x/y## instead of ##y/x## let me re do it...
 
  • #19
##ln x= -1.5 ln(3v+1)-0.5 ln (v-3)##

##lnx##= ln##\frac {(3v+1)^{-1.5}}{(v-3)^{-0.5}}##

##lnx##= ln##\frac {(v-3)^{0.5}}{(3v+1)^{1.5}}##

→##x##= ##\frac {(v-3)^{0.5}}{(3v+1)^{1.5}}##

→##x.\frac {(3y+x)^{1.5}}{x^{1.5}}##=##\frac {(y-3x)^{0.5}}{(x)^{0.5}}##

→##x^2.\frac {(3y+x)^3}{x^3}##=##\frac {y-3x}{x}##

→##x^2.\frac {(3y+x)^3}{x^3}##=##\frac {y-3x}{x}##

→##\frac {(3y+x)^3}{x}##=##\frac {y-3x}{x}##

→##(3y+x)^3=y-3x##
 
  • #20
Mark44 said:
Plus the constant of integration...
I don't know about the step above. The substitution was y = vx, or v = y/x, so replace v with y/x. I can't tell if you did that.
yeah i missed out on the constant as its an indefinite integral...noted...
 
  • #21
The first line in post #19 still omits the constant of integration. Also, the last line doesn't match your result in post #15. The solution you got in post #15, ##c=\frac {3x^2}{2}+4xy-\frac {3x^2}{2}##, satisfies the differential equation -- the one in post #19 does not.
I think you have a mistake in the work you did originally, but I can't put my finger on where you went wrong.
 
  • #22
wait... but even in the exact approach, the first and third terms cancel out, leaving us with
##c=4xy##
 
  • #23
My bad. I misread your post #15. What I got was ##4xy + \frac 3 2 x^2 - \frac 3 2 y^2 = C## I have edited my earlier post.
 
  • #24
i amended mine too, ...saw the error ...lol
 
  • #25
now, i have re done the work for my post ##19## as follows,
##ln x= -1.5[ ln (3v+1)+0.5 ln (v-3)]##

##ln x + 1.5 ln (3v+1) +0.5 ln (v-3)=0##

##ln x + 1.5 ln (3v+1) +0.5 ln (v-3)= ln 1##

##\frac {(3y+x)^3} {x^3}####\frac {y-3x} {x}.x^2=0## on multiplying both sides by ##x^2##

##x(3y+x)(y-3x)=0##

##(3y^2-9xy+xy-3x^2)=0##

##(3y^2-8xy-3x^2)=0##

on dividing each term by ##2## and multiplying by ##-1##, we get,

##\frac {3x^2}{2}+4xy-\frac {3y^2}{2}##

does this make sense compared to the solution found by exact method?...i see an error in my working, i will look at this again...any insights will be appreciated.
 
Last edited:
  • #26
my other attempt on this...

##ln x= -1.5[ ln (3v+1)+0.5 ln (v-3)]+ln c##

##ln x + 1.5 ln (3v+1) +0.5 ln (v-3)=ln c##

##ln x + 1.5 ln (3v+1) +0.5 ln (v-3)= ln c##

##\frac{x(3y+x)^{1.5}(-3x+y)^{0.5}}{x^2}=c##

##\frac{(3y+x) (3y+x)^{0.5}(-3x+y)^{0.5}}{x}=c##
##\frac{(3y+x) (-9xy+3y^2-3x^2+xy)^{0.5}}{x}=c##
##\frac{(3y+x) (3y^2-8xy-3x^2)^{0.5}}{x}=c##
 
Last edited:
  • #27
chwala said:
now, i have re done the work for my post ##19## as follows,
##ln x= -1.5[ ln (3v+1)+0.5 ln (v-3)]##
You can't omit the constant of integration! And you have a pair of brackets that shouldn't be there.
This should be ##\ln x= -1.5 \ln (3v+1)+0.5 \ln (v-3) + C##
chwala said:
##ln x + 1.5 ln (3v+1) +0.5 ln (v-3)=0##
Sign error in second term above.
Corrected the sign error and added in the constant.
##\ln x +1.5 \ln (3v+1) - 0.5 \ln (v-3) = C##
chwala said:
##ln x + 1.5 ln (3v+1) +0.5 ln (v-3)= ln 1##
Continue from my work above to
##\ln[\frac{x(3v + 1)^{3/2}}{(v - 3)^{1/2}} ] = C##
The next step will be
##\frac{x(3v + 1)^{3/2}}{(v - 3)^{1/2}} = e^C##
##e^C## is just another constant, call it A.
So you have ##\frac{x(3v + 1)^{3/2}}{(v - 3)^{1/2}} = A##
Replace v by y/x. Do not square both sides -- the factors in x will cancel, and things turn out as they should.
chwala said:
##\frac {(3y+x)^3} {x^3}####\frac {y-3x} {x}.x^2=0## on multiplying both sides by ##x^2##

##x(3y+x)(y-3x)=0##

##(3y^2-9xy+xy-3x^2)=0##

##(3y^2-8xy-3x^2)=0##

on dividing each term by ##2## and multiplying by ##-1##, we get,

##\frac {3x^2}{2}+4xy-\frac {3y^2}{2}##

does this make sense compared to the solution found by exact method?...i see an error in my working, i will look at this again...any insights will be appreciated.
No, there are a number of errors, as noted above. Also, you should end up with an equation; namely,
##\frac {3x^2}{2}+4xy-\frac {3y^2}{2} = C##
 
  • #28
Mark after integration, aren't we supposed to have
##ln x= -1.5 ln (3v+1)-0.5 ln (v-3)+ln C##?..I spent time pondering over that.
giving me,
##ln x+1.5 ln (3v+1)+0.5 ln (v-3)=ln C##
and are we not supposed to consider the constant of integration as an ##ln## function i.e ## ln C##and not just a constant as you have indicated? or it does not matter?
 
Last edited:
  • #29
chwala said:
Mark after integration, aren't we supposed to have
##ln x= -1.5 ln (3v+1)-0.5 ln (v-3)+ln C##?..I spent time pondering over that.
giving me,
##ln x+1.5 ln (3v+1)+0.5 ln (v-3)=ln C##
Yes, this looks fine, and is nearly the same as what you have in post #14.
However, the 2nd line in post #14 has an error.
##lnx##= ln##\frac {(3v+1)^{-1.5}}{(v-3)^{-0.5}}##
It should be ##\ln x = \ln[(3v + 1)^{-1.5}(v - 3)^{-0.5}] + \ln C##
##\Rightarrow \ln x = \ln \left( \frac{(3v + 1)^{-1.5}}{(v-3)^{0.5}}\right) + \ln C##
I have 3 pages of work, both sides, on this problem, and worked two different ways, so there are lots of opportunities to get a sign wrong, plus if you have a sign error in your work somewhere, and I continue from what you showed, that fouls things up as well.
chwala said:
and are we not supposed to consider the constant of integration as an ##ln## function i.e ## ln C##and not just a constant as you have indicated? or it does not matter?
 
  • Like
Likes chwala
  • #30
let me check this again tomorrow, this problem has really mixed me up:rolleyes:...
 
  • #31
From post #14:
chwala said:
on integration,i have ##ln x= -1.5 ln(3v+1)-0.5 ln (v-3)##
It took me a while to find it, but you have a mistake in the line above. Check your work for this integral, which produces the first term on the right side, above.
$$\int \frac{-3/2}{3v + 1}dv$$
To do this, use the substitution u = 3v + 1, so du = 3dv.
I think you'll find that you don't get ##-1.5 \ln(3v + 1)##.
 
  • Like
Likes chwala
  • #32
so integrating that yields,
##-0.5 ln (3v+1)##
therefore, we now have
##ln x + 0.5 ln (3v+1)+0.5 ln (v-3)=ln C##
substituting ##y=vx## and simplifying leads to,
##(3y+x)(y-3x)=c##
##3y^2-9xy+xy-3x^2=c##
##3y^2-8xy-3x^2=c##
on multiplying both sides by ##-1## and dividing by ##2## yields,

##-\frac {3y^2}{2}##+##4xy##+ ##\frac {3x^2}{2}##

##\frac {3x^2}{2}##+##4xy## ##-\frac {3y^2}{2}## the desired result.
 
Last edited:
  • #33
chwala said:
##3y^2-8xy-3x^2=c##
on multiplying both sides by ##-1## and dividing by ##2## yields,

##-\frac {3y^2}{2}##+##4xy##+ ##\frac {3x^2}{2}##

##\frac {3x^2}{2}##+##4xy## ##-\frac {3y^2}{2}## the desired result.
No, not quite. The "desired result" should be an equation,, as I wrote in post #27. ##\frac {3x^2}{2}##+##4xy## ##-\frac {3y^2}{2} = C##
The constant C that I wrote is equal to the constant that you wrote, c, multiplied by -1/2.
 
  • Like
Likes chwala
  • #34
aaaaargh left out the constant again...nice day mark
 

1. What is a differential equation?

A differential equation is a mathematical equation that describes the relationship between a function and its derivatives. It involves variables, constants, and the derivatives of the function. It is used to model various physical phenomena and is an important tool in many scientific fields.

2. Why is solving a differential equation important?

Solving a differential equation allows us to understand and predict the behavior of a system. It is used in many scientific and engineering applications, such as modeling the motion of objects, predicting population growth, and analyzing electrical circuits.

3. How do you solve a differential equation?

The method for solving a differential equation depends on the type of equation. Some common techniques include separation of variables, using integrating factors, and using series solutions. In some cases, it may be necessary to use numerical methods to approximate a solution.

4. What are the different types of differential equations?

There are several types of differential equations, including ordinary differential equations (ODEs), partial differential equations (PDEs), and stochastic differential equations (SDEs). ODEs involve one independent variable, while PDEs involve multiple independent variables. SDEs involve a random element, such as noise, in the equation.

5. How can I check if my solution to a differential equation is correct?

One way to check the correctness of a solution is to substitute it back into the original equation and see if it satisfies the equation. Another method is to use initial or boundary conditions to verify the solution. In some cases, it may also be helpful to graph the solution to visually check its accuracy.

Similar threads

  • Calculus and Beyond Homework Help
Replies
19
Views
780
  • Calculus and Beyond Homework Help
Replies
6
Views
857
  • Calculus and Beyond Homework Help
Replies
21
Views
846
  • Calculus and Beyond Homework Help
Replies
5
Views
1K
  • Calculus and Beyond Homework Help
Replies
4
Views
697
  • Calculus and Beyond Homework Help
Replies
2
Views
546
  • Calculus and Beyond Homework Help
Replies
3
Views
589
  • Calculus and Beyond Homework Help
Replies
1
Views
831
  • Calculus and Beyond Homework Help
Replies
3
Views
349
  • Calculus and Beyond Homework Help
Replies
7
Views
290
Back
Top