1. Nov 1, 2011

### dimpledur

1. The problem statement, all variables and given/known data
Hello all,
I encountered this practice problem for my midterm tomorrow involving the gradient operation.
Let (r, θ) denote the polar coordinates and (x, y) denote the cartesian coordinates of a point P in the plane. A function is defined via f(P)=xsinθ away from the origin, and let f(O)=0 at the origin O.
Find f(x, y)
Also, is the inequality $$|\nabla f|\leq \sqrt{2}$$ true( at all points where the gradient is defined)?

Not sure at all how to go about starting this one.

2. Nov 1, 2011

### murmillo

Well we have f(P) = xsin(theta). So we have the x in the equation, which is good. But we have a sin(theta) and we have to write that in terms of x and y. Basically we want xsin(theta) to be written in terms of x and y. So how do you do that? I think to answer the gradient question you first have to write the equation for f in terms of x and y, find the gradient, and then work from there.

3. Nov 1, 2011

### dimpledur

Okay.
$$sin\theta=\frac{y}{\sqrt{y^2+x^2}}$$
Thus, $$f(x, y)=\frac{xy}{\sqrt{y^2+x^2}}$$

Moreoever, $$\nabla =[\frac{y}{\sqrt{x^2+y^2}}-\frac{x^2y}{(x^2+y^2)^{3/2}}]i+[\frac{x}{\sqrt{x^2+y^2}}-\frac{y^2x}{(x^2+y^2)^{3/2}}]j$$.

I understand that the inequality is merely the length of the gradient vector. Do I actually have to compute this in order to determine if that inequality is true, or is there an easier way?

4. Nov 2, 2011

### dimpledur

I'm going to bed. I changed my post like 3 times, so obviously I am tired. After computing the length of the gradient vector, how does one determine if it is indeed less than or equal to a particular number for the domain?

5. Nov 2, 2011

### murmillo

The short answer to your question is no, there's no faster way. I'm tired too, so I'm assuming that you calculated the gradient correctly. You can make the denominators the same and get that the gradient is y^3 i + x^3 j. Find x and y so that the length of the gradient vector is more than sqrt 2.

6. Nov 2, 2011

### dimpledur

Hello again, I tried manipulating the equation but I cannot seem to eliminate x as you have...

7. Nov 2, 2011

### dimpledur

Actually, I'm pretty sure that it simplifies to
$$\frac{y^3}{(x^2+y^2)^{3/2}}$$