Omri
- 34
- 0
Hi,
There is some issue about gradients that disturbs me, so I'd be glad if you could help me figure it out.
Say I have a scalar field \phi(\mathbf{r}), that is not yet known. What I know is a function that is the gradient of \phi, so that \mathbf{F}(\mathbf{r}) = \nabla\phi(\mathbf{r}). I want to find \phi from \mathbf{F}, ignoring the constants of course. What I thought of was:
d\phi = \sum_{i=1}^{3}\frac{\partial\phi}{\partial x_i} dx_i = \sum_{i=1}^{3} F_i dx_i
And therefore:
\phi = \int d\phi = \int\sum_{i=1}^{3} F_i dx_i
But if you try that with the two-dimensional example \phi = x^2 - xy, it doesn't work, and gives and gives x^2 - 2xy.
Can anyone please explain that to me?
Thanks!
There is some issue about gradients that disturbs me, so I'd be glad if you could help me figure it out.
Say I have a scalar field \phi(\mathbf{r}), that is not yet known. What I know is a function that is the gradient of \phi, so that \mathbf{F}(\mathbf{r}) = \nabla\phi(\mathbf{r}). I want to find \phi from \mathbf{F}, ignoring the constants of course. What I thought of was:
d\phi = \sum_{i=1}^{3}\frac{\partial\phi}{\partial x_i} dx_i = \sum_{i=1}^{3} F_i dx_i
And therefore:
\phi = \int d\phi = \int\sum_{i=1}^{3} F_i dx_i
But if you try that with the two-dimensional example \phi = x^2 - xy, it doesn't work, and gives and gives x^2 - 2xy.
Can anyone please explain that to me?
Thanks!
