What's interested me in my studies thus far is that in a lot of beginner undergrad mathematics and physics courses we're often told to calculate trajectories, velocities, etc. by "ignoring air resistance". Obviously this doesn't accurately model real life.
How is calculating a problem without ignoring air resistance actually done? Is there some kind of "air resistance function" which varies based on altitude?