Solveeit Logo

Question

Question: What is the reverse gradient operation ?...

What is the reverse gradient operation ?

Explanation

Solution

The gradient of a scalar function ff is a vector field, denoted by f\nabla f where \nabla (nabla) denotes the vector differential operator which collects all the partial derivatives of the function ff in the form of vector. The reverse gradient operator when operated on a vector field gives scalar quantity.

Complete step by step answer:
Gradient operation converts a scalar function into a vector field whereas the reverse gradient operation converts a vector field into a scalar field. The reverse operation of differentiation is integration. In the same way the gradient is obtained by differentiating the function in all directions then the reverse gradient operation is the integration of the vector to get back the scalar function. For example consider the scalar function f(x,y)=x33xy2+x2+y2+logxf(x,y) = {x^3} - 3x{y^2} + {x^2} + {y^2} + \log x , on applying gradient function we get ,
f=fxi+fyj\nabla f = \dfrac{{\partial f}}{{\partial x}}\mathop i\limits^ \wedge+\dfrac{{\partial f}}{{\partial y}}\mathop j\limits^ \wedge
f=(3x23y2+2x+1x)i+(2y6xy)j\Rightarrow \nabla f = \left( {3{x^2} - 3{y^2} + 2x + \dfrac{1}{x}} \right)\mathop i\limits^ \wedge + (2y - 6xy)\mathop j\limits^ \wedge
To reverse this, we take the integration on f\nabla f,
f(x,y)=fxdxf(x,y) = \int {\dfrac{{\partial f}}{{\partial x}}dx}
f(x,y)=(3x23y2+2x+1x)dx\Rightarrow f(x,y) = \int {(3{x^2} - 3{y^2} + 2x + \dfrac{1}{x})dx}
f(x,y)=x33xy2+x2+logx+u(y) \Rightarrow f(x,y) = {x^3} - 3x{y^2} + {x^2} + \log x + u(y) \\\
Where u(y)u(y) is the constant of integration and it is the function of yy, because when we differentiate f(x,y)f(x,y) with respect to xx partially the terms of f(x,y)f(x,y) not containing xx is constant this includes the terms containing only yy.

Now to determine u(y)u(y), we integrate fy\dfrac{{\partial f}}{{\partial y}} with respect to yy. Then some of the terms after integration will become common, the terms which are not common are those which contain only yy terms. Here fy=2y6xy\dfrac{{\partial f}}{{\partial y}} = 2y - 6xy, and the only term not containing xx is 2y2y therefore:
u(y)=2ydy=y2+cu(y) = \int {2y} dy = {y^2} + c
Thus, f(x,y)=x33xy2+x2+logx+y2+c f(x,y) = {x^3} - 3x{y^2} + {x^2} + \log x + {y^2} + c \\\
In general the reverse gradient is given by,
f(x,y)=fxdx+[terms of fy that do not contain x]dyf(x,y) = \int {\dfrac{{\partial f}}{{\partial x}}dx} + \int [ {\text{terms of }}\dfrac{{\partial f}}{{\partial y}}{\text{ that do not contain }}x]dy

Note: Gradient operation converts a scalar function into a vector field whereas the reverse gradient operation converts a vector field into a scalar field. The gradient operator is of greater importance as it essentially tells how much a surface or some quantity changes from one point in space or time to another.