Gaus's law is easier to visualize for electric charge than for gravity, but it also works for gravity. If i have a collection of charged particles, protons, let's say, and there's no electron, so it's just protons, then what gaus's law tells me is that, if i look at the electric field on the boundary of that region. So we figure out a lot about the distribution of charges inside, just by thinking, just by measuring the electric fields on the boundary. We can't learn everything about the charge distribution inside because if you have a charge distribution that itself is perfectly spherical, then the size of that sphere is completely irrelevant.
Welcome to the April 2022 Ask Me Anything episode of Mindscape! These monthly excursions are funded by Patreon supporters (who are also the ones asking the questions). I take the large number of questions asked by Patreons, whittle them down to a more manageable size — based primarily on whether I have anything interesting to say about them, not whether the questions themselves are good — and sometimes group them together if they are about a similar topic. Enjoy!
See Privacy Policy at https://art19.com/privacy and California Privacy Notice at https://art19.com/privacy#do-not-sell-my-info.