University of Florida/Egm6321/f09.Team2/HW2

From testwiki
Revision as of 17:22, 29 May 2018 by imported>MaintenanceBot (Special:LintErrors/obsolete-tag)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

THIS IS AN OLD PAGE DO NOT USE.

Go to User:Egm6321.f09.Team2/HW2 for latest information

Problem #1

Problem Statement: Find the Euler Integrating Factor h(y) for a non-linear 1st order ODE for the particular case where we assume hxN=0


Two conditions must be satisfied in order for a nonlinear 1st order ODE to be exact.

The first condition is that F(x,y,y)=0 must be in the form M(x,y)+N(x,y)y=0

The second condition is that My=Nx. This example will show how to satisfy the second condition.

Start with equation M(x,y)+N(x,y)y=0 which already satisfies the first condition.

If we assume the equation is not exact we can multiply it by an unkown factor h(x,y) (Euler Integrating Factor) to attempt to find a factor that will make the equation exact.

The equation becomes:

h(x,y)[M(x,y)dx+N(x,y)dy]=0


(hM)dx+(hN)dy=0,where hM=M,and hN=N


My=(hM)y=hyM+hMy


Nx=(hN)y=hxN+hNx


Set My=Nx and rearrange,


hxNhyM+h(NxMy)=0


To solve for hy we will let hxN=0 which implies that hx=0 since M0


hyM+h(NxMy)=0, rearrage terms


hyhdy=1M(NxMy) take the integral of both sides,


hyhdy=1M(NxMy)dy


If the right hand side of the integral is only a function of y then it can be written as g(y)

1M(NxMy)=g(y)


lnh=g(y)dy

h(y)=expyg(s)ds



You have lost a negative sign in your expression for g(y)--Egm6321.f09.TA 02:38, 28 September 2009 (UTC)

Problem 2

Problem Statement: Given the Non-homogeneous linear 1st order ODE with VC y+1xy=x2 show the steps to obtain y=x34+Cx where C=Const.



The first step is to check if the given equation is in the proper form:

P(x)y+Q(x)y=R(x) ; Yes [pg.(8-1) Eg.(1)]


If P(x)0 for all (x) then:


y+Q(x)P(x)y=R(x)P(x)

In this form we can use the Integration Factor Method to solve for y

N(x,y)dydx+M(x,y)=0

Multiply by h(x,y)


h(x,y)[N(x,y)dy+M(x,y)dx]


(hM)dx+(hN)dy=0 where (hM)=M; (hN)=N

Satisfy the exactness condition My=Nx where:

My=(hM)y=hyM+hMy

Nx=(hN)x=hxN+hNx


hxNhyM+h(NxMy)=0

To solve for h(x,y) we must make an assumption that h is a function of (x) only.

You do not have to make this assumption. You have chosen h(x,y)=h(x) instead of h(x,y)=h(y). --Egm6321.f09.TA 02:42, 28 September 2009 (UTC)

Assume hyM=0, so our equation becomes;

hxN+h(NxMy)=0


hxh=1N(x,y)(NxMy)

Let N(x,y)=1 and M(x,y)=Q(x)P(x)y=1xy

Nx=0 and My=1x

Substitute back into the right hand side of the equationto verify h is a function of (x) only,

11(01x)=1x=f(x)

Using that result we can now solve for h

hxhdx=1xdx


ln|h|=ln|x|


hx=x

Now that we have hx we can multiply through our original equation to obtain,

(x)y+(x)1xy=(x)x2 =xy+y=x3

Integrating yields:

xy=x44+C divide by x,

Show the steps - the terms must be grouped together as the derivative of a product before you can integrate this. It is not directly integrable in this form.--Egm6321.f09.TA 02:42, 28 September 2009 (UTC)


y=x34+Cx

Problem #3

Problem Statement: Show that 12x2y+[x4y+10]=0 is exact.


In this problem, we are asking if: (1) this equation is only a function of x, and (2) it is "exact", meaning exact or exactly integrable by the Integrating Factors Method.

To be exact, it must meet 2 conditions:

(1)it must meet the form M(x,y)+N(x,y)y=0
(2)My=Nx


If M(x,y)dy=a(x) , then M(x,y)=a(x)y+k where k is a constant.

Similarly:
N(x,y)dx=b(x) , then N(x,y)=xb(s)ds=c(x)=b(x). Replacing M and N in our initial form

M(x,y)dx+N(x,y)dy=[a(x)y+k]dx+c(x)dy=0


Dividing by dx and re-arranging:
[a(x)y+k]+b(x)y=0. Our initial problem meets condition 1, where
b(x)=12x2=N(x,y)
a(x)+k=x4y+10=M(x,y) where k=10


For condition 2, My=ddy[a(x)+k]=ddy(x4y+10)=x4 and Nx=ddx(12x2)=x

But these two are not equal. Therefore, using the Integrating Factors Method, we must find h(x,y) such that (hM)y=(hN)x and thereby satisfy condition 2.
Differentiating and rearranging terms gives us:
hxNhyM+h(NxMy)=0. If we assume hy=0 since My and Nx are both functions of x, and rearrange terms, we get:
hxh=1N(NxMy)dx. Integrating both sides creates log(h). Solving for h:
h=e^(2)(xNxMy, dx. We know Nx and My. Therefore h=e^(2)(12x215x5).
Multiplying M(x,y) and N(x,y) by h causes our function to meet the 2nd condition and therefore be exact.

(e^(25x512x2)(12x2y+[x4y+10]=0 is exact.

This equation is incomplete. There are parenthesis missing. Where are the differentials?--Egm6321.f09.TA 02:47, 28 September 2009 (UTC)


You need to show that you have arrived at the correct integrating factor. Specifically: My=Nx.--Egm6321.f09.TA 02:47, 28 September 2009 (UTC)

Problem #4

Problem Statement: Show that (13x3)(y4)y+(5x3+2)(15y5)=0 is an exact nonlinear, first order ODE.


To prove this equation is an exact, non-linear, 1st order ODE, it must meet 2 conditions:
(1) it must fit the form M(x,y)y+N(x,y)=0 and
(2) My=Nx

It is obvious from simple observation that our equation meets condition 1; however it fails to meet condition 2.
M(x,y)=13x3y4 and N(x,y)=(5x32)(15y5) then
My=43x3y3 and Nx=5x3y4. Clearly MyNx.

To meet condition 2, we must find h(x,y) such that (hM)y=(hN)x. As My and Nx only differ in y, let us assume that hx=0. Differentiating and rearranging terms gives us:
hyh=1M(NxMy)dx. Integrating both sides creates logh. Solving for h:
h=e^(1MyNxMy, dy). We know Nx and My. Substituting for Nx and My and simplifying:
h=e^(15y4(log(y)). This, multiplied by our original equation will cause it to be an exact, nonlinear, first order ODE.


The 1M should be inside the integral.--Egm6321.f09.TA 02:51, 28 September 2009 (UTC)


The simpliest method to prove this equation as an exact, nonlinear, first order ODE is to show that (1) it fits the form for a class of exact, non-linear 1st order ODE's. Specifically:

b(x)c(y)y+a(x)c(y)=0

where b(x)=xb(x)dx
and c(y)=yc(y)dy

If we assume:
a(x)=5x3+2
b(x)=x2 and
c(y)=y4 then
b(x)=xx2dx=13x3 and c(y)=yy4dy=15y5

Since our equation does fit the form for this class, it is an exact, nonlinear, first order ODE.

Need to verify that Nx=My--Egm6321.f09.TA 02:51, 28 September 2009 (UTC)

Problem #5

Problem Statement: Show that the second exactness condition for xyy+x(y)2+yy=0 is satisfied.


The 2nd exactness condition actually consists of 2 parts, and our equation must meet both:
(1) fxx + (2p) fxy + (p2) fyy = gxp + p(gyp) - gy

(2) fxp + p (fyp) + 2 (fy) = gpp

where p is y'


In our equation,
f(x,y,p) = xy and g(x,y,p) = x(y)2+yy

Looking at our equation, for the first half of the condition:
fxx = ddx[ddx(xy)] = ddx(y) = 0

fxy = ddy[ddx(xy)] = ddy(y) = 1

fyy = ddy[ddy(xy)] = ddy(x) = 0

gxp = ddp[ddx(x(p)2+yp)] = ddp(p2) = 2p

gyp = ddp[ddy(x(p)2+yp)] = ddp(p) = 1

gy = ddy(x(p)2+yp) = p

Plugging back into the first half of our condition,
0+2p(1)+p<sup>2</sup>(0)=2p+p(1)p
2p=2p and therefore the first half of the condition is satisfied.

What is sup? Check to verify that your code has rendered properly.--Egm6321.f09.TA 02:57, 28 September 2009 (UTC)


Looking at the 2nd half of the condition:
fxp = ddp[ddy(xy)] = ddp(y) = 0

fyp = ddp[ddx(xy)] = ddp(x) = 0

fy = ddy(xy)] = x

gpp = ddp[ddp(x(p)2+yp)] = ddp(2xp+y) = 2x(p)


Plugging back into the second half of our condition (remembering that p = y'),
0+p(0)+2(x)p=2x(p) thereby satisfying the second half of the condition.

What is p ? This would be y and this should not appear in this problem.--Egm6321.f09.TA 02:57, 28 September 2009 (UTC)

Problem #6

Problem Statement: Derive fxp+pfyp+2fy=gpp using the following relations:

(1) f(x,y,p):=ϕp(x,y,p)
(2) g(x,y,p):=ϕx+ϕyp
(3) ϕxp=ϕpx
(4) ϕyp=ϕpy


Start by taking the partial derivative of g with respect to p twice: gpp=2gp2

gp=ϕxp+ϕypp+ϕy
gpp=ϕxpp+ϕyppp+ϕyp+ϕyp
=>gpp=ϕxpp+ϕyppp+2ϕyp

Now use (1), (3), and (4) to substitute ϕxpp, ϕypp, and ϕyp

fx=ϕpx=ϕxp by (1) and (3)
fxp=ϕxpp
fy=ϕpy=ϕyp by (1) and (4)
fyp=ϕypp

Therefore,

gpp=fxp+fypp+2fy=fxp+pfyp+2fy


Clear and concise.--Egm6321.f09.TA 02:58, 28 September 2009 (UTC)

Problem #7

Problem Statement: Derive fxx+2pfxy+p2fyy=gxp+pgypgy using the following relations:
(1) f(x,y,p):=ϕp(x,y,p)
(2) g(x,y,p):=ϕx+ϕyp
(3) ϕpx=ϕxp
(4) ϕpy=ϕyp
(5) ϕxy=ϕyx


Solving (1) for ϕp and taking the partial with respect to x yields
ϕpx=fx
Then solving (2) for ϕx and taking the partial with respect to p yields
ϕxp=gpϕyppϕy
Equating these two by (3) and solving for ϕy yields
ϕy=fx+gpϕypp
Performing a similar task, take (1), solve for ϕp and take the partial with respect to y
ϕpy=fy
Then solving (2) for ϕy and taking the partial with respect to p yields
ϕyp=gppgp2ϕxpp+ϕxp2
Equating these two by (4) and solving for ϕx yields
ϕx=fyp2gpp+g+ϕxpp

Finally, fx=ϕpx=ϕxp and fy=ϕpy=ϕyp as previously shown and so the two equations are
(a) ϕy=fx+gpfyp
(b) ϕx=fyp2gpp+g+fxp
Taking the partial with respect to x for (a) and the partial with respect to y for (b) and equating based on (5) yields
fxx+gpxfyxp=fyyp2gpyp+gy+fxyp

Noting fyx=fxy, gpx=gxp, gpy=gyp, and moving the f terms to the left and the g terms to the right

fxx+2pfxy+p2fyy=gxp+pgypgy


You have performed much unnecessary rearranging of Φ terms to get here. You need to rearrange until the end. Equate Φxy=Φyx using the appropriate relations and your solution will be must more straight forward.--Egm6321.f09.TA 03:01, 28 September 2009 (UTC)

Problem #8

Problem Statement: Equations 4&5 on p.(10-2).



Given:


(8x5y')y'+2x2y'+20x4(y')2+4xy=0


Show that the Nonlinear 2nd-Order ODE is exact

Solution

Second Condition of Exactness: 10-2 Eq (4),(5)

 Fxx+2pFxy+p2Fyy=Gxp+pGypGy 


 Fxp+pFyp+2Fy=Gpp 


 F(x,y,p)y'+G(x,y,p)=0


 F(x,y,p)=8x5pG(x,y,p)=2x2p+20x4p2+4xy


The Following partial derivatives are then identified:


Fx=40x4pGx=4xp+80x3p2+4y


Fxx=160x3pGxp=4x+160x3p


Fxy=0Gy=4x


Fxp=40x4Gyp=0


Fy=0Gp=2x2+40x4p


Fyy=0Gpp=40x4


 160x3p+2p(0)+p2(0)=4x+160x3p+(0)4x 160x3p=160x3p


Page 10-2 Eq(4) is then satisfied.


Applying the results in Page 10-2 Eq(5):


 40x4+p(0)+2(0)=40x4


 40x4=40x4


Page 10-2 Eq(5) is also satisfied.

Because Eq(4) and Eq(5) are both satisfied, then the Secound Exactness Condition is satisfied.

Therefore,

 F(x,y,p)=8x5pG(x,y,p)=2x2p+20x4p2+4xy

is Exactness Second ODE Template:Font

Nice work. One caveat: For your final statement, express the equation in terms of x,y,y. The equation involves an unknown function y(x), where p was a dummy variable which helped us perform differentiations. --Egm6321.f09.TA 03:05, 28 September 2009 (UTC)

Problem #9

Problem Statement: Verify the exactness of the ODE xy+2xy+3y=0.


Given


xy'+2xy'+3y=0


Prove that the equation is not exact.


Solution

First Condition of Exactness Page10-1 Eq(1):

 F(x,y,p)y'+G(x,y,p)=0


 F(x,y,p)=xG(x,y,p)=2xp+3y

This satisfy Template:Font the First Condition of Exactness.

The Second Exactness Condition for a second order ODE is as follows:


 Fxx+2pFxy+p2Fyy=Gxp+pGypGyPage102Eq(4)


 Fxp+pFyp+2Fy=GppPage102Eq(5)


The following partial derivatives are found:


Fx=12x12Gx=2p


Fxx=14x32Gxp=2


Fxy=0Gy=3


Fxp=0Gyp=0


Fy=0Gp=2x


Fyy=0Gpp=0


Fyp=0


Using these values in Eq(4):


14x32+2p(0)+p2(0)=2+p(0)3


14x32=1


Page 10-2 Eq(4) is not satisfied therefore the ODE is not exact.

Add equation numbers to your solution here so that you can reference the equations in your solution, rather than a transparency that is located somewhere else on the web. This will make your solution self contained and complete in itself.--Egm6321.f09.TA 03:09, 28 September 2009 (UTC)


Page 10-2 Eq(5) can be populated to find:


 0=0+p(0)+2(0)


 0=0


Eq (5) is satisfied.


In order for the ODE to be exact it must satisfy both Eq(4)and Eq(5), since it fails to do this it is concluded that the ODE is not exact.

Contributing Team Members

Egm6321.f09.Team 2.walker 20:58, 20 September 2009 (UTC) (Walker, Matthew)

Joe Gaddone 14:04, 21 September 2009 (UTC)

Egm6321.f09.Team2.sungsik 19:20, 23 September 2009 (UTC)

Kumanchik 19:53, 23 September 2009 (UTC)