How do I calculate the mass density, given the mass?

  • Context: Undergrad 
  • Thread starter Thread starter silmaril89
  • Start date Start date
  • Tags Tags
    Density Mass
Click For Summary
SUMMARY

This discussion focuses on calculating mass density and probability density from a given mass function. The mass function provided is M(x,y) = (4/π)xy, and the challenge is to derive the mass density for a ring of radius 1. The participants clarify that mass cannot be treated as a function of position in a continuous distribution, and they emphasize the importance of defining probability density functions (PDFs) correctly. The final suggestion is to rewrite the PDF as a function of a single variable, θ, leading to the formulation P(θ) = (1/2)|sin(θ)cos(θ)|, which is valid and normalized.

PREREQUISITES
  • Understanding of mass density and probability density functions (PDFs).
  • Familiarity with calculus, particularly integration techniques.
  • Knowledge of polar coordinates and their application in probability distributions.
  • Experience with normalization of functions in probability theory.
NEXT STEPS
  • Study the derivation of mass density from a mass function using calculus.
  • Learn about probability density functions and their properties.
  • Explore the conversion between Cartesian and polar coordinates in mathematical contexts.
  • Investigate normalization techniques for probability density functions.
USEFUL FOR

Mathematicians, physicists, statisticians, and anyone involved in fields requiring the calculation of mass and probability densities in continuous distributions.

silmaril89
Messages
85
Reaction score
0
Let's say you have the mass of an object as a function of position, how would I go about finding the mass density as a function of position? I want a general answer, one that doesn't assume the mass has uniform density (that would be trivial).

As an example, can you solve this?

Say you have a ring of radius 1 with its center at the origin of a cartesian coordinate system. You are given that the mass M(x,y) = \frac{4}{\pi} x y. Find the mass density of the ring.

The reason I want to do this, is to find the total mass of some object given the mass as a function of position, but in order to do the necessary integral it seems I need the mass density.

Any help would be greatly appreciated
 
Physics news on Phys.org
Mass as a function of position doesn't make much sense. (At least not for a continuous distribution.) Given the mass density as a function of position, you can integrate to find the total mass. Are you sure that's not what you are thinking of?
 
I'm sure. I understand how it doesn't make much sense to think of mass as a function of position. I have another question that led me to this one. The real question is about probability density. I have that the probability of some thing occurring to be P(x,y) = \frac{4}{\pi} x y, but I want the total probability of this thing occurring if I don't know x or y. I figured I need the probability density, how would I get this?
 
Your analogy is correct- it would only make sense if P is the probability density. In the same way that a point can't have a (finite) mass, one single event out of an infinite number of possibilities cannot have a (finite) probability. You can, however, specify the amount of mass in an infinitesimal volume, dm = density*dV, and you can specify the probability of an event occurring in the infinitesimal range of a continuous space of possible outcomes.

eg. if P is the actual probability then the outcome (1,1) has a probability of 4/pi of happening, which is greater than 1 and completely nonsensical.
 
Last edited:
MikeyW said:
eg. if P is the actual probability then the outcome (1,1) has a probability of 4/pi of happening, which is greater than 1 and completely nonsensical.

Yes, but the specification is that P(x,y) is only valid on a ring of radius 1 (i.e. (1,1) is not a valid point).

Basically, I have the probability of an event occurring being equal to P(x,y) = \frac{4}{\pi} x y, but the issue is that I don't know what the probability for the event to occur if the position (x,y) is random and only on a ring of radius 1. What can I do?
 
Last edited:
That's a fair point, but here's another reason P cannot be a probability- consider two arbitrarily close points in this space- (x,y) and (x+dx, dy). The probabilities of each of these two events occurring are P(x,y) and P(x+dx,dy), and so the probability of either occurring is P(x,y) + P(x+dx,y). Now let's add a third probability- P(x+2*dx, dy). The probability of any of these three occurring is the sum of each of the probabilities.

This becomes problematic very quickly because we are adding together finite (nonzero) quantities, but we haven't specified how small dx is- it can be so arbitrarily small that this sum contains infinitely many nonzero terms - leading to an infinite probability - within a finite space, or region of possible outcomes. To deal with this you need to multiply P by the area element dxdy to keep the probability within an infinitely small possibility space infinitely small.

One more reason might help explain this- the units don't make sense. If x spans some range of possibilities, then it could have a dimension, but the probability must be dimensionless. For example, if x and y are lengths, say, distance from the bullseye of an archery board, then P has units of m^2. But expressing a probability in units of area doesn't make sense.
 
silmaril89 said:
Yes, but the specification is that P(x,y) is only valid on a ring of radius 1 (i.e. (1,1) is not a valid point).

Basically, I have the probability of an event occurring being equal to P(x,y) = \frac{4}{\pi} x y, but the issue is that I don't know what the probability for the event to occur if the position (x,y) is random and only on a ring of radius 1. What can I do?
The easiest thing to do will be to re-write the PDF as a function of one variable, e.g. P(θ). Btw, your function cannot be a valid PDF over the whole unit circle because it has negative values.
 
DaleSpam said:
The easiest thing to do will be to re-write the PDF as a function of one variable, e.g. P(θ). Btw, your function cannot be a valid PDF over the whole unit circle because it has negative values.

P(\theta) = \frac{4}{\pi} \mid \sin \theta \cos \theta \mid
 
In this case the probability that the event will occur in the range (θ1,θ2) is

∫P(θ)dθ from θ1 to θ2

P(θ) is the PDF, not the probability.

There is one more issue, P(θ) is not normalised.
 
  • #10
MikeyW said:
In this case the probability that the event will occur in the range (θ1,θ2) is

∫P(θ)dθ from θ1 to θ2

P(θ) is the PDF, not the probability.

There is one more issue, P(θ) is not normalised.

Normalization is tough, but I just divided by (\theta_2 - \theta_1), but something tells me that isn't right.
 
  • #11
Wolfram alpha is a great tool for this stuff

http://www3.wolframalpha.com/Calculate/MSP/MSP10821a2c28b265g1d9a800005305h834i2614295?MSPStoreType=image/gif&s=26&w=167&h=35

P(θ) = (1/2)*|sin(θ)cos(θ)| should be correct
 
Last edited by a moderator:
  • #12
MikeyW said:
P(θ) = (1/2)*|sin(θ)cos(θ)| should be correct
Yes, that is non-negative everywhere and integrates to 1 over -π < θ < π.
 

Similar threads

Replies
25
Views
2K
  • · Replies 20 ·
Replies
20
Views
1K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 17 ·
Replies
17
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K