f[x_,y_,z_] := x Log[y] - z Log[x]
{ D[x Log[y] - z Log[x],x], D[x Log[y] - z Log[x],y], D[x Log[y] - z Log[x],z]}
The set on which this is defined is the set of all {x,y,z} such that neither x
nor y is 0. This is an open set (the set get arbitrarily close to where x = 0
or
y = 0, but does not include these boundary points. It is not connected,
because you can't get from x>0 to x<0 without passing out of the set,
i.e.,
you would have to pass through x=0.
c) Calculate the integral of grad f dotted with dx along the straight line
from (1,1,1) to (2,1,1).
Solution. The easy way to do this is to know that the integral equals f(2,1,1)
- f(1,1,1):
f[2,1,1] - f[1,1,1]
Alternatively, we could set up a line integral. The straight line can be
parametrized as
Clear[x,y,z]
x[t_] := 1 + t y[t_] := 1 z[t_] := 1
The time t will go from 0 to 1. We take the dot product of F with the
velocity:
{ D[x Log[y] - z Log[x],x], D[x Log[y] - z Log[x],y], D[x Log[y] - z Log[x],z]}.{x'[t],y'[t],z'[t]} \ /. {x -> 1+t,y -> 1, z -> 1}
Integrate[%, {t,0,1}]
What a coincidence, the same number!
Up to Test 3 solutions