Q 56.

Question

Find a function of two variables with the given gradient. 

f(x,y)=(2x+cosxcosy)i-sinxsinyj

Step-by-Step Solution

Verified
Answer

f(x,y)=sinxcosy+x2+C

1Part (a) Step 1: Given information

f(x,y)=(2x+cosxcosy)i-sinxsinyj

2Step 2: Calculation

Consider the gradient 

f(x,y)=(2x+cosxcosy)i-sinxsinyj. (1) 

The goal is to deduce the function from the gradient.

Rewrite ( 1) as

f(x,y)=(2x+cosxcosy)i-sinxsinyjfx(x,y)i+fy(x,y)j=(2x+cosxcosy)i-sinxsinyj

Equate both sides

fx(x,y)=2x+cosxcosy (2) 

And

fy(x,y)=-sinxsiny  .(3)

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

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

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

fxy(x,y)=2yx+y(cosxcosy)=2·0+cosxycosy=cosx(-siny)=-cosxsiny

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

fyx(x,y)=x(-sinxsiny)=-sinyxsinx=-sinycosx

Since fxy(x,y)=-sinycosx=fyx(x,y)so the function exists.

3Step 3: Calculation

Integrate (3) with respect to y

f(x,y)=(-sinxsiny)dy+q(x)=-sinxsinydy+q(x)=-sinx(-cosy)+q(x)=sinxcosy+q(x)

where q(x) is an arbitrary function.

Next, find q(x) to partially differentiate (4) with regard to x

xf(x,y)=xsinxcosy+xq(x) fx(x,y)=cosyxsinx+q'(x)=cosycosx+q'(x)2x+cosxcosy=cosycosx+q'(x) From (2);fx(x,y)=2x+cosxcosy ] 2x=q'(x) q'(x)=2x(5) Integrate (5) with respect to y.q'(x)dx=2xdx+Cq(x)=2xdx+C=2·x22+C  =x2+C

where C is the constant of integration.

Put q(x)=x2+C in ( 4)

f(x,y)=sinxcosy+x2+C

As a result, the necessary function is f(x,y)=sinxcosy+x2+C