Confused about notation for computing gradients

Click For Summary

Homework Help Overview

This discussion revolves around the computation of gradients for scalar functions in the context of undergraduate Fluid Mechanics. The original poster expresses confusion regarding the notation used for functions and gradients, particularly in relation to vector-valued functions.

Discussion Character

  • Conceptual clarification, Assumption checking

Approaches and Questions Raised

  • Participants explore the nature of the functions presented, questioning whether they are scalar or vector-valued. There is discussion about the notation used, particularly the implications of bolded variables indicating vectors. Some participants attempt to clarify the distinction between scalar functions and vector functions, while others suggest that the problem may be asking for the Jacobian matrix instead of gradients.

Discussion Status

The discussion is ongoing, with participants actively questioning their understanding of scalar versus vector functions. Some have provided insights into the nature of the functions and the appropriate terminology, while others are still grappling with the definitions and implications of the notation used.

Contextual Notes

There is a noted lack of examples or instruction from the instructor, which has contributed to the confusion regarding the notation and concepts involved. Participants are working from their prior knowledge and attempting to reconcile it with the current problem context.

timsea81
Messages
89
Reaction score
1

Homework Statement



Consider scalar functions u = u(x). Compute the gradients ∇u for:

u(x) = (x, y, z)
u(x) = (y, z, x)
u(x) = (x^2y, 10, z + x)

Homework Equations



This is a question on my homework for undergraduate Fluid Mechanics. The teacher has been assigning math problems in topics covered in prerequisite courses for homework at the beginning of the semester. He has not explained any of these concepts, and whenever anyone asks he says "Calculus is a prerequisite for this class, you should know this already". Sorry if it sounds like I'm just complaining about my instructor's teaching style, but the point I'm trying to make is that I don't have any examples to look at to help me understand this notation.

I took Calc III about 7 years ago, so I clearly don't remember everything. Through internet research I found out that a gradient is the set of partial derivatives of each variable in a multi-variable function. For example I think I understand (please correct me if I'm wrong) that if
F(x,y,z)=x+3y+z^2
the gradient of F(x,y,z) is (1, 3, 2z)

However, I do not understand this question. It may just be that I do not understand his notation. Is u(x)=(x,y,z) just another way of writing u(x) = x+y+z? Why isn't it u(x,y,z) = (x,y,z), since there are 3 variables? Has anyone seen this notation before?

The Attempt at a Solution

 
Last edited:
Physics news on Phys.org
I just realized that it is u(x), not u(x). The x is bold, which I guess indicates it is a vector? In that case, my previous guess that
u(x) = (x, y, z)
is another way of writing
u(x,y,z) = x+y+z
makes a little more sense.

So is it
u(x) = (x, y, z)
grad u(x) = (1,1,1)

u(x) = (y, z, x)
grad u(x) = (0,0,0)

u(x) = (x^2y, 10, z + x)
grad u(x) = (2xy, 0, 1)

?
 
timsea81 said:
I just realized that it is u(x), not u(x). The x is bold, which I guess indicates it is a vector? In that case, my previous guess that
u(x) = (x, y, z)
is another way of writing
u(x,y,z) = x+y+z
makes a little more sense.
Not to me it doesn't. What you seem to have here are vector-valued functions that map R3 to R3. IOW, the input values are vectors in 3-space, and the output values are also vectors in 3-space.

Another way to write this is
u(x) = xi + yj + zk, where the bolded letters on the right are unit vectors.
timsea81 said:
So is it
u(x) = (x, y, z)
grad u(x) = (1,1,1)

u(x) = (y, z, x)
grad u(x) = (0,0,0)

u(x) = (x^2y, 10, z + x)
grad u(x) = (2xy, 0, 1)

?
 
Mark44 said:
Another way to write this is
u(x) = xi + yj + zk, where the bolded letters on the right are unit vectors.

Yes, that makes more sense. I actually realized I should have used i,j and k after I typed that up. So I am on the right track then?
 
Yes, what you have in post #2 looks OK, if you add the unit vectors.
 
excellent, thanks for your help
 
timsea81 said:
Consider scalar functions u = u(x).
u(x) = (x, y, z)
u(x) = (y, z, x)
u(x) = (x^2y, 10, z + x)
After some thought, and realizing that I misunderstood what you were asking, I'm going to change my answer. What you were describing as scalar functions are in fact vector-valued functions, or vector fields. The problem is probably asking you to find the Jacobian matrix for u.

Here's a quote from the page I linked to:
In this way, the Jacobian generalizes the gradient of a scalar valued function of multiple variables which itself generalizes the derivative of a scalar-valued function of a scalar.
 
Last edited:
Mark44 said:
After some thought, and realizing that I misunderstood what you were asking, I'm going to change my answer. What you were describing as scalar functions are in fact vector-valued functions, or vector fields. The problem is probably asking you to find the Jacobian matrix for u.

Here's a quote from the page I linked to:

The link you posted also says the following:

"In a sense, both the gradient and Jacobian are "first derivatives" — the former the first derivative of a scalar function of several variables, the latter the first derivative of a vector function of several variables."

So the gradient is used for scalar functions and the Jacobian is used for vector functions.

I think I need to remind myself exactly what a "scalar function" is. At first I was confused about how it was stated in the question that u(x) is a "scalar function" because I thought that meant that the solution should be a scalar, as in a quantity of magnitude only without direction, as in a 1-dimensional result. For example f(x,y,z) = x^2+5y-z is a scalar function because it takes a three dimensional input and transforms it into a single dimension result. If it were to input (1,1,1), f(1,1,1) = 1+5-1 = 5, so input (1,1,1) output 5.

On the other hand, the functions given in the problem take a 3-dimensional vector input and return a 3-dimensional vector output (like you said, a map of R3 to R3) . For example f(x,y,z) = (x,5y,-z) would input (1,1,1) and output (1,5,-1)

I must be wrong about this, if the question is correct to describe these functions as scalar. Is it really that any function with 1-dimensional variables is called scalar? Where a vector function might look like

f(x, y) = (xXc, yXb)

where [x], [y], [a], and are all vectors??
 
Yes, a scalar function has an output that is a single number. This type of function can have multiple variables, so your example of f(x, y, z) = x^2 + 5y - z is an example of a scalar function.

On the other hand, if a function produces a vector result, such as the one you give -- f(x, y, z) = <x, 5y, -z> -- it's called a vector function.

The vector vs. scalar business doesn't have anything to do with the number of variables in an input. It concerns only whether the output is a number (scalar) or a vector.
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 13 ·
Replies
13
Views
4K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 24 ·
Replies
24
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 26 ·
Replies
26
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K