Q 57.

Question

Find a function of two variables with the given gradient. 

f(x,y)=-yx2+y2i+xx2+y2j

Step-by-Step Solution

Verified
Answer

f(x,y)=tan-1yx+C

1Step 1: Given information

f(x,y)=-yx2+y2i+xx2+y2j

2Step 2: Calculation

Consider the gradient

f(x,y)=-yx2+y2i+xx2+y2j

The goal is to deduce the function from the gradient.

Rewrite (1) as

f(x,y)=-yx2+y2i+xx2+y2jfx(x,y)i+fy(x,y)j=-yx2+y2i+xx2+y2j

Equate both sides

fx(x,y)=-yx2+y2 (2) 

And

fy(x,y)=xx2+y2 (3) 

First, check whether the function exists or not. Function exists if

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

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

fxy(x,y)=y-yx2+y2=-yyx2+y2=-x2+y2yy-yyx2+y2x2+y22=-x2+y2-yyx2+yy2x2+y22

=-x2+y2-y(0+2y)x2+y22=-x2+y2-2y2x2+y22=-x2-y2x2+y22

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

fyx(x,y)=xxx2+y2=xxx2+y2=x2+y2xx-xxx2+y2x2+y22



=x2+y2-xxx2+xy2x2+y22=x2+y2-x(2x+0)x2+y22=x2+y2-2x2x2+y22=-x2+y2x2+y22=-x2-y2x2+y22

Since

fxy(x,y)=x2-y2x2+y22=fyx(x,y) so the function exists.

3Step 3: Calculation

Integrate (3) with respect to y

f(x,y)=xx2+y2dy+q(x)=xx2+y2dy+q(x)=x·1xtan-1yx+q(x)=tan-1yx+q(x)(4)

where q(x) is an arbitrary function?

The following step is to locate q(x) differentiating (4) with respect to x but only in part

xf(x,y)=xtan-1yx+xq(x)fx(x,y)=11+yx2xyx+q'(x)=11+yx2·yx1x+q'(x)=11+y2x2-yx2+q'(x)=1x2+y2x2-yx2+q'(x)=1x2+y2x2-yx2+q'(x)x2+y2-yx2+q'(x)

=-yx2+y2+q'(x)-yx2+y2=-yx2+y2+q'(x) From (2);fx(x,y)=-yx2+y2-yx2+y2+yx2+y2=q'(x)0=q'(x)q'(x)=0

Integrate (5) with respect to y

q'(x)dx=0dx+Cq(x)=0+C=C

where C is the constant of integration?

Put q(x)=C in (4)

f(x,y)=tan-1yx+C

Therefore, the required function is

f(x,y)=tan-1yx+C