Solve 1st Order ODE: xyy'=x^2+3y^2, y(1)=2

  • Thread starter Thread starter swtjuice
  • Start date Start date
  • Tags Tags
    First order Ode
swtjuice
Messages
2
Reaction score
0

Homework Statement



Find the following IVP Diff.Eq.
xyy'=x^2+3y^2
y(1)=2

Homework Equations


The Attempt at a Solution


I've been struggling with this problem for a while now. I believe I have figured out it is homogenous, thus y=ux substitution applies.
Through some work I have arrived at the answer of
ln x +C=ln(2u^2+1)/4, re-substituting u=y/x I get the answer of
y^2= C*x^3-x^2/2 where C=4.5 based on the IVP.
When I plot this against the ODE solution in MATLAB, the answers do not agree.
Am I wrong that this diff. eqn is homogenous, I believe I have checked my algebra several times. Any help or tips would be great.
 
Physics news on Phys.org
You are correct that the equation is homogeneous and that substitution should work. One thing you can try is substitute your solution back into the equation and boundary conditions. If it checks you are home free and if it doesn't, time to check for errors
 
Great, Hopefully my MATLAB code is the problem. I've been trying to find errors in this problem for a while now. Thanks again
 
swtjuice said:
Through some work I have arrived at the answer of
ln x +C=ln(2u^2+1)/4, re-substituting u=y/x I get the answer of
y^2= C*x^3-x^2/2 where C=4.5 based on the IVP.

the blue is correct, but the red is wrong. You made a mistake when removing the logarithm or substituting u=y/x back. Show work in detail.

ehild
 
swtjuice said:

Homework Statement



Find the following IVP Diff.Eq.
xyy'=x^2+3y^2
y(1)=2

Homework Equations





The Attempt at a Solution


I've been struggling with this problem for a while now. I believe I have figured out it is homogenous, thus y=ux substitution applies.
Through some work I have arrived at the answer of
ln x +C=ln(2u^2+1)/4, re-substituting u=y/x I get the answer of
y^2= C*x^3-x^2/2 where C=4.5 based on the IVP.
When I plot this against the ODE solution in MATLAB, the answers do not agree.
Am I wrong that this diff. eqn is homogenous, I believe I have checked my algebra several times. Any help or tips would be great.

What is the DE for z = y^2?

RGV
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top