Scalar vs Vector: Explaining the Difference

In summary, the difference between a scalar function and a vector function lies in the way the quantities are regarded. A scalar function maps something to a scalar, while a vector function maps something to a vector. This distinction can be determined by asking what the function returns. In physics, a vector function is often used for surface integrals, while a scalar function is used for volume integrals. This is because in surface integrals, the dot product of the vector function and the normal vector results in a scalar, while in volume integrals, the scalar function itself is integrated. An example of a vector function is r(t)=ti+tj+(t^2)k, while an example of a scalar function is f(t)=t^2
  • #1
quasar_4
290
0
This is a very basic question, but one I keep getting confused on nonetheless. Can someone explain to me the difference between a scalar function and a vector function? I've been told that the only difference is in the way the quantities are regarded (one as scalars, the other as elements of a vector space) but I'm still quite confused... the terms keep popping up in relativity and I'm not sure what distinction I'm supposed to be making.
 
Physics news on Phys.org
  • #2
A scalar is a function that it's value is independent from the change of coordinates, while a vector has compontents that do dependent from the coordinate system.
 
  • #3
A scalar function maps something to a scalar; a vector function maps something to a vector. So, to distinguish the two you simply ask what does the function return, a scalar or a vector.
Example: Let x and y be vectors. An example of a vector function of x would be
f(x) = 5x. (f(x) returns a vector.)
An example of a scalar function of x would be g(x) = x dot y (the dot product of x
and y), a scalar.
 
  • #4
The difference between a vector and a scalar is very obvious... but I have to admit, I thought it was peculiar that in my electromagnetism book, a great distinction is made between the use of a vector function for surface integrals versus a scalar function for volume integrals. I wondered what would require one to have an output in a vector space, the other to not... physically, if I'm calculating an electric field or something, why should the electric field be a vector field in one dimension and a scalar field in the other?

But I like the response about coordinate change. That does make a lot of sense.
 
  • #5
quasar_4 said:
... in my electromagnetism book, a great distinction is made between the use of a vector function for surface integrals versus a scalar function for volume integrals. I wondered what would require one to have an output in a vector space, the other to not... physically, if I'm calculating an electric field or something, why should the electric field be a vector field in one dimension and a scalar field in the other?

Could you be more specific? What exactly is the "electric field or something" that you are trying to calculate? Are you talking about Gauss's law relating the surface integral (of the electric field component normal to a surface) to the total charge within the volume enclosed by the surface? If so, both the volume integral over the charge density (a scalar function of the position vector x) and the surface integral of E dot n (a scalar function = the dot product of the electric field vector E(x) with the vector n normal to the surface) produce a scalar result; otherwise, they could not be equal! In the surface integral, you are making use of a vector function, E(x) (the electric field at position x) but it is dotted with vector n to give a scalar. In the volume integral you are making use of the charge density at position x, a scalar function. Have I understood you, or do you mean something else?
 
  • #6
pkleinod said:
Could you be more specific? What exactly is the "electric field or something" that you are trying to calculate? Are you talking about Gauss's law relating the surface integral (of the electric field component normal to a surface) to the total charge within the volume enclosed by the surface? If so, both the volume integral over the charge density (a scalar function of the position vector x) and the surface integral of E dot n (a scalar function = the dot product of the electric field vector E(x) with the vector n normal to the surface) produce a scalar result; otherwise, they could not be equal! In the surface integral, you are making use of a vector function, E(x) (the electric field at position x) but it is dotted with vector n to give a scalar. In the volume integral you are making use of the charge density at position x, a scalar function. Have I understood you, or do you mean something else?

Basically a vector function would be as an example r(t)=ti+tj+(t^2)k which in this case is a parabola in R3. The position, direction and magnitude of r(t) changes as t increases. For a scalar function, only its magnitude changes as the independent variable t changes, i.e. f(t) is contained in R meaning that a scalar function has no direction.
 

1. What is the difference between scalar and vector quantities?

Scalar quantities refer to physical quantities that have only magnitude, while vector quantities have both magnitude and direction.

2. Can you give an example of a scalar quantity?

Examples of scalar quantities include temperature, mass, speed, and energy.

3. What are some examples of vector quantities?

Examples of vector quantities include displacement, velocity, acceleration, and force.

4. How are scalar and vector quantities represented?

Scalar quantities are represented by a single numerical value, while vector quantities are represented by both magnitude and direction, usually with an arrow above the symbol.

5. What is the importance of understanding the difference between scalar and vector quantities?

Understanding the difference between scalar and vector quantities is crucial in physics and other sciences, as it helps us accurately describe and analyze the physical world. It also allows us to make precise calculations and predictions about the behavior of objects and systems.

Similar threads

  • Differential Geometry
Replies
2
Views
580
  • Calculus
Replies
4
Views
485
  • Introductory Physics Homework Help
2
Replies
44
Views
2K
Replies
4
Views
660
  • Differential Geometry
Replies
6
Views
1K
  • Differential Geometry
Replies
6
Views
2K
  • Electromagnetism
Replies
25
Views
996
  • Special and General Relativity
2
Replies
35
Views
4K
Replies
14
Views
1K
Replies
5
Views
1K
Back
Top