I’m grateful to you for finding the flaw in my math, and am upvoting you on that basis. But I don’t think you should say, “I found an error, therefore I downvote your whole post” instead of “Here is a correction to your work on this interesting and important topic; your conclusion is now only valid under these conditions.”
A general comment to everybody: Most of you are in the habit of downvoting a post if you find a single flaw in it. This is stupid. You should upvote a post if it illuminates an important topic or makes you realize something important. Einstein didn’t say, “Newton’s law is inaccurate. Downvoted.” Voting that way discourages people from ever posting on difficult topics.
I downvoted not simply because there was a math error, but because of your aggressive comments about downvoting this topic without having arguments against your math, which was in fact faulty. When you spend a significant portion of the post chastising people about downvoting, you should take a little more time to make sure your arguments are as ironclad as you think they are.
The point is not to discourage people from posting on difficult topics; it’s to discourage unwarranted arrogance.
No; x is the density as a function of r, and it varies linearly from a maximum at r=0, to zero at r=50,000. The way I wrote it is the only possible function satisfying that.
You define x as having units of stars/ly^2. Because you’re approximating the galaxy in two dimensions, the general density function should also have units of stars/ly^2. You wrote this density function: x(50000-r), which has units of stars/ly. I wrote the density function ρ = x(1 - r/50000) which has the correct units and fits the boundary conditions you described: ρ(r=0) = x, and ρ(r=50000) = 0.
In your post, you end up redefining x when you solve for it from your density function, so it does not affect the final result. However, in a model that’s supposed to be physically motivated, this is sloppy.
I downvoted not simply because there was a math error, but because of your aggressive comments about downvoting this topic without having arguments against your math, which was in fact faulty. When you spend a significant portion of the post chastising people about downvoting, you should take a little more time to make sure your arguments are as ironclad as you think they are.
The point is not to discourage people from posting on difficult topics; it’s to discourage unwarranted arrogance.
You define x as having units of stars/ly^2. Because you’re approximating the galaxy in two dimensions, the general density function should also have units of stars/ly^2. You wrote this density function: x(50000-r), which has units of stars/ly. I wrote the density function ρ = x(1 - r/50000) which has the correct units and fits the boundary conditions you described: ρ(r=0) = x, and ρ(r=50000) = 0.
In your post, you end up redefining x when you solve for it from your density function, so it does not affect the final result. However, in a model that’s supposed to be physically motivated, this is sloppy.