Calculate the gradient of the function

  • #1
672
0

Homework Statement


Calculate the gradient of:
(a) V1=6xy-2xz+z
(b) V2=10ρcos(phi)-ρz
(c) V3=(2/r)cos(phi)


Homework Equations





The Attempt at a Solution


Upload
 

Attachments

  • EPSON013.jpg
    EPSON013.jpg
    6.8 KB · Views: 400

Answers and Replies

  • #2
rude man
Homework Helper
Insights Author
Gold Member
8,021
857
You have the notation wrong for gradient. You wrote div instead. You can't take the div of a scalar. V1, V2 and V3 are all scalars.

You also have the wrong expressions for del F in cartesian, cylindrical and spherical coordinates. Look them up.
 
  • #3
672
0
so what you are saying is that instead of just del I should have used del f for notation?
(∂f/∂x)x+(∂f/∂y)y+(∂f/∂z)z (where x, y, and z should be x(hat), y(hat), and z(hat))
 
  • #4
672
0
so if I am right which I probably am not then (a) 6yUx+(-0)+zUz the reason I put 0 is the the partial derivative of -2xz with respect to y is 0 correct since there is no y term.
 
  • #5
rude man
Homework Helper
Insights Author
Gold Member
8,021
857
so what you are saying is that instead of just del I should have used del f for notation?
(∂f/∂x)x+(∂f/∂y)y+(∂f/∂z)z (where x, y, and z should be x(hat), y(hat), and z(hat))

You did not write "just del". You wrote del-dot. The dot was wrong. You can write del f or you can write grad f. Same thing. (But del-dot-F is OK whereas del F or grad F are not.)

Your expression for grad f is correct for Cartesian coordinates x,y,z. I use i, j , and k for the unit vectors. I also use bold type for all vectors.

When you get to V2 and V3 the expressions for grad V are very different from Cartesian. V2 is using cylindrical and V3 is using spherical.
 
  • #6
rude man
Homework Helper
Insights Author
Gold Member
8,021
857
so if I am right which I probably am not then (a) 6yUx+(-0)+zUz the reason I put 0 is the the partial derivative of -2xz with respect to y is 0 correct since there is no y term.

Yes, ∂(-2xz)/∂y = 0.
No, you are not following your formula in post 3 for V1.
Don't keep changing your notation for the unit vectors. Use i j k why not.
 
  • #7
672
0
dang I felt it might have actually been right. was it simply this 6yi+k
 
  • #10
rude man
Homework Helper
Insights Author
Gold Member
8,021
857
I'm getting dizzy. Correct for what?

Tell you what, start over with your expression for grad V1 from your post 3, use i j k unit vectors, and let's see if we can't figure this one out. Remember to use V1, not f.
 
  • #11
672
0
∇V1=(∂f/∂x)i+(∂f/∂y)j+(∂f/∂z)k= 6y i + k
 
  • #14
672
0
∂(V1)/∂x = 6y i sorry I forgot the "i" in the previous post.
 
  • #19
672
0
for V2 (10cos(phi))-z)i-(10sin(phi))j-(ρ)k
 
  • #20
672
0
for V3 ((-2/r^2)cos(phi))i-((2sin(phi))/(r^2sin(theta)))k
 
  • #22
rude man
Homework Helper
Insights Author
Gold Member
8,021
857
for V2 (10cos(phi))-z)i-(10sin(phi))j-(ρ)k

Right, except you can't use i and j for the ρ and phi unit vectors. Since I don't know how to put hats over letters I would use 1ρ and 1Φ which is still standard.
 
  • #23
rude man
Homework Helper
Insights Author
Gold Member
8,021
857
for V3 ((-2/r^2)cos(phi))i-((2sin(phi))/(r^2sin(theta)))k

Problem here.
With V2 I noticed the angle phi was used; I believe for cylindrical coordinates that angle is usually denoted by theta.

So I have to assume phi is the same angle for V3 as it was for V2, i.e. the angle between the x-y plane and the z axis, in which case grad V3 looks wrong. Do you know which angle is the one made with the z axis and which is in the x-y plane? Then I could check grad V3 also.

Anyway, you seem to be with the program here and have done quite well.
 
  • #24
672
0
Theta is with the z and phi is with the xy
 
  • #25
rude man
Homework Helper
Insights Author
Gold Member
8,021
857
for V3 ((-2/r^2)cos(phi))i-((2sin(phi))/(r^2sin(theta)))k

Correct, except again you don't use i j k as unit vectors for spherical coordinates. Use 1r, 1φ and 1θ.

V2 shoud have used θ instead of φ. It's not good for φ to be the z-axis angle in one coordinate system and the x-y angle in another. I would explain that to your instructor.
 

Related Threads on Calculate the gradient of the function

Replies
10
Views
11K
Replies
10
Views
4K
Replies
4
Views
1K
Replies
1
Views
5K
  • Last Post
Replies
3
Views
2K
  • Last Post
Replies
2
Views
2K
Replies
2
Views
1K
Replies
9
Views
3K
Replies
6
Views
2K
  • Last Post
Replies
6
Views
3K
Top