Difference between Scalar Function and Vector Function?

Click For Summary

Discussion Overview

The discussion centers around the differences between scalar functions and vector functions, exploring definitions, dimensionality, and the implications of these concepts in mathematics and physics. Participants examine the nature of functions in relation to their domains and codomains, as well as the interpretation of one-dimensional and multi-dimensional spaces.

Discussion Character

  • Exploratory
  • Technical explanation
  • Conceptual clarification
  • Debate/contested

Main Points Raised

  • Some participants reference a definition from Wolfram.com that describes scalar functions as having a one-dimensional range, while vector functions have a three-dimensional or n-dimensional range.
  • One participant questions whether a vector function can be considered a scalar function when n=1, suggesting that this may lead to confusion.
  • Another participant critiques Wolfram's definitions, suggesting that Wikipedia may provide clearer explanations and elaborates on the concept of functions as mappings from domains to codomains.
  • Examples are provided, such as energy potential as a scalar function and force fields as vector functions, illustrating the distinction based on the output type of the functions.
  • Discussion includes the idea that R^1 and R are isomorphic, leading to a debate about the interpretation of one-dimensional spaces.
  • One participant defines R^1 in terms of functions from a set to the reals, distinguishing it from R while acknowledging their isomorphic nature.
  • Another participant humorously refers to the concept of R^0 as a trivial space, contributing to the technical discussion.

Areas of Agreement / Disagreement

Participants express varying interpretations of the definitions and relationships between scalar and vector functions, with no consensus reached on the implications of these definitions, particularly regarding the case when n=1.

Contextual Notes

Limitations include potential ambiguities in definitions and interpretations of dimensional spaces, as well as the reliance on different sources for mathematical definitions.

Saladsamurai
Messages
3,009
Reaction score
7
Okay I know the definition of a Vector and of a scalar... but I am getting a little confused for some reason.

Wolfram.com gives this definition of a scalar function:

A function f(x_1,x_2,...,x_n) of one or more variables whose range is one-dimensional, as compared to a vector function, whose range is three-dimensional (or, in general, n-dimensional).

So if what if n=1 then is the vector function really a scalar function?

I know this is a stupid question, but if I can answer it, I may or may not have to ask a series of even more stupid questions. :smile:
 
Physics news on Phys.org
Saladsamurai said:
Wolfram.com gives this definition of a scalar function:

A function f(x_1,x_2,...,x_n) of one or more variables whose range is one-dimensional, as compared to a vector function, whose range is three-dimensional (or, in general, n-dimensional).

So if what if n=1 then is the vector function really a scalar function?

Hi Saladsamurai! :smile:

Short answer … yes! :biggrin:

(that's assuming you're referring to the second n :wink:)
 
Saladsamurai said:
Okay I know the definition of a Vector and of a scalar... but I am getting a little confused for some reason.

Wolfram.com gives this definition of a scalar function:

A function f(x_1,x_2,...,x_n) of one or more variables whose range is one-dimensional, as compared to a vector function, whose range is three-dimensional (or, in general, n-dimensional).

So if what if n=1 then is the vector function really a scalar function?

I know this is a stupid question, but if I can answer it, I may or may not have to ask a series of even more stupid questions. :smile:

Wolfram is usually not very good when it comes to general mathematics definitions, in my experience. Usually, Wikipedia has a leg up on, so you might want to check their page.

In general, each function is associated with two sets called the domain and codomain. A function is a way to take elements from the domain and associate them with elements of the codomain. A function f with domain A and codomain B is notated f : A -> B (read f is a function from set A to set B).

So, standard real-valued functions you study in algebra are would be notated R -> R. You can also use your knowledge of the function to be more specific. The exponential function exp(x) = e^x can take any real number as input, but always outputs a *positive* number, so we can say exp: R -> R+ (exp is a function from the reals to the positive reals). Similarly, sin(x) takes any number and maps it to a number between -1 and 1, so we can say sin: R->[-1,1] (sine is a function from the reals to the closed interval between -1 and 1).

When you get to about your third year of calculus, you start dealing with functions other than R->R. We start working with R^2, R^3, or in general, R^n. These are all just sets, of course.

A function like f(x, y) = x^2 + y^2 is a function of two real variables. But we often blur the distinction and pretend like it's a function of a single vector variable instead. The output, though, is a real number (because x and y are real, their squares are real, and their sums are real). So we would say f: R^2 -> R. This is often called a scalar function in physics.

A function f(x, y) = (x^2, y^2) is also a function of two real variables. But the output this time is a vector. So f: R^2 -> R^2. Because the output is a vector, physicists often call this a vector field or a vector function.

So summary: scalar-function and vector-function refer to the *codomain* of a function, and general, the domain is assumed to be R^2 or R^3.

A few concrete examples. Energy potential as a function of space is a scalar function. At each point in space (represented by a vector), there is a single energy potential (a scalar).

A force field is a vector function. At each point in space (represented by a vector), there is a force that applies to objects at that location (another vector).

Lastly, about your question where n=1. Consider this. R^3 is a 3-dimensional space. R^2 is a plane. What does R^1 look like? It looks like a line. But interestingly, it looks EXACTLY like R. The two are called "isomorphic" because for every point on R^1 there is exactly corresponding real number and vise-versa. Here, again, we blur the distinction, and many authors would just go ahead and say R = R^1, but it's all a matter of interpretation.
 
Hi Tac-Tics! :smile:
Tac-Tics said:
… many authors would just go ahead and say R = R^1, but it's all a matter of interpretation.

i'm not an author, but i'd say it also …

how are you defining R^1? :confused:
 
tiny-tim said:
how are you defining R^1? :confused:

In a very straightforward manner.

You take an n-tuple to be a function from the set 0, 1, 2, ..., n to some other set.

For example, R^n represents the set of functions from {1, 2, ..., n} to R. This leads to the same familiar R^n for n>= 2. But additionally, it produces two more sets R^1 and R^0.

R^1 is a set of functions and is distinct from R, but it is isomorphic to R. All elements in R^1 have the form f(0) = x (for some real x).

R^0 is a silly trivial space, consisting of a single function: the function which maps the empty set to the reals. (It's a vacuous existence, but an existence none the less!) The single function in R^0 is the zero vector in that space.

Of course, this is all technical nonsense ;-)
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
Replies
2
Views
2K