Q 58.

Question

Find a function of two variables with the given gradient. 

f(x,y)=y2ex2,2xyexy2

Step-by-Step Solution

Verified
Answer

f(x,y)=ex2+C

1Step 1: Given information

f(x,y)=y2exy2,2xyexy2

2Step 2: Calculation

Consider the gradient

f(x,y)=y2exy2,2xyexy2.(1)

The goal is to deduce the function from the gradient.

Rewrite ( 1 ) as 

f(x,y)=y2exy2i+2xyexy2jfx(x,y)i+fy(x,y)j=y2exy2i+2xyexy2j

Equate both sides

fx(x,y)=y2exy2(2)

And

fy(x,y)=2xyexy2.(3)

First, see if the function is available. If there is a function, it exists.

fxy(x,y)=fyx(x,y)

Now, find fxy(x,y) by differentiating fx(x,y) partially with respect to $y$.

fxy(x,y)=yy2exy2=y2yexy2+exy2yy2=y2exy2yxy2+exy22y=y2exy2xyy2+exy22y=y2exy22xy+2yexy2=2xy3exy2+2yexy2

Also, find fyx(x,y) by differentiating fy(x,y) partially with respect to x

fyx(x,y)=x2xyexy2

=2xy3exy2+2yexy2

Since fxy(x,y)=2xy3exy2+2yexy2=fyx(x,y) so the function exists.

Integrate ( 2 ) with respect to x

f(x,y)=y2exy2dx+q(y)=y2ex2dx+q(y)=y2·exy2y2+q(y)=exy2+q(y)

where q(y) is an arbitrary function?

3Step 3: Calculation

Next, identify q(y) to partially differentiate (4) with regard to y

yf(x,y)=yexy2+yq(y) fy(x,y)=ex2yxy2+q'(y) =exy2·2xy+q'(y)=2xyexy2+q'(y) 2xyexy2=2xyexy2+q'(y) From (3);fy(x,y)=2xyexy2 2xyexy2-2xyexy2=q'(y) 0=q'(y) q'(y)=0(5) Integrate (5) with respect to

 y q'(y)dy=0dy+C

q(y)=0+C

where C is the constant of integration.

Put q(y)=C in (4)

f(x,y)=exy2+C

Therefore, the required function is

f(x,y)=ex2+C