A density function is a function that gives amount per unit, such as mass per length or probability per unit x. In Calculus II, you use its integral to find total mass, probability, or other accumulated quantity.
In Calculus II, a density function tells you how a quantity is spread out continuously instead of being packed into equal chunks. If the quantity is mass, the function might be linear density, (x), measured in mass per unit length. If the quantity is probability, the function is a probability density function, or PDF, which describes how likely values are across an interval.
The main idea is that the function itself is not the total amount. It is the rate or concentration at each point. To get the total, you integrate. For a thin rod on [a,b], the total mass is \int_a^b \lambda(x),dx. For a PDF, the probability that X lands between a and b is \int_a^b f(x),dx.
A density function must stay nonnegative, because negative mass or negative probability does not make sense. In the probability setting, the total area under the curve over all allowed values equals 1. That area acts like the full supply of probability, and each interval gets a slice of that area.
One thing that trips people up is thinking the height of the graph gives the answer directly. It does not. A taller graph means more density at that point, but the actual total comes from area under the curve, which depends on both height and width.
You will usually see density functions in physical applications of integration. For example, if a wire gets heavier toward one end, a variable density function lets you model that change instead of pretending the wire is uniform. The same logic shows up whenever Calculus II asks you to add up a continuously changing quantity with an integral.
Density functions are one of the cleanest examples of what integration actually does in Calculus II: it adds up tiny pieces that are not all the same size. Instead of multiplying one constant by a length or interval, you let the density change from point to point and use an integral to capture the whole amount.
That shows up in mass problems, where a rod or wire has density \lambda(x) and you need total mass, or in work problems, where force changes with position. It also shows up in probability, where a density function lets you find probabilities for ranges rather than single points. Since a continuous variable has infinitely many possible values, you work with intervals and areas, not single counts.
This term also trains a useful habit: always ask what the function measures per unit. If you know the unit, the setup usually becomes much clearer. A graph of density is not the final answer, it is the input to an integral. That mindset carries into other Calc II topics like variable forces, hydrostatic force, and expected value.
Keep studying Calculus II Unit 2
Visual cheatsheet
view galleryProbability Density Function (PDF)
A PDF is the probability version of a density function. The curve itself does not give a probability at one exact point, because single points have zero area in a continuous model. You use area over an interval to get the probability that the variable falls in that range.
Expected Value
Expected value uses a density function to find the long-run average of a continuous random variable. Instead of averaging a list of data values, you weight each possible value by its density and integrate across the whole domain. That makes expected value feel like a density-weighted mean.
Variable Forces
Variable force problems work the same way as density problems: the quantity changes with position, so you do not use one constant formula. You slice the motion into tiny pieces and integrate the changing force over distance to get total work.
Work Computation
Work computation is the broader process that often uses a density-style setup. Whether the force comes from a spring, a rope, or a fluid, the common move is to model the rate at each point and add the contributions with an integral.
A quiz or problem-set question usually gives you a density function and asks for total mass, total probability, or average value over an interval. Your job is to set up the integral with the correct bounds and units, then evaluate it carefully. If the function describes a rod, the answer should come out in mass units, not just a number. If it describes probability, the answer must be between 0 and 1. A common mistake is plugging in a point instead of integrating across the interval, which skips the whole idea of density. Another is forgetting that the total area for a PDF must be 1, so a constant or piecewise density may need to be checked or normalized first.
A density function gives the rate or concentration at each point, while a cumulative distribution function gives the total accumulated probability up to a value. If you graph a CDF, it increases from 0 to 1. If you graph a density function, you look at area under the curve to get probabilities.
A density function tells you how much of something is packed into each tiny slice of the domain.
In Calculus II, you find the total amount by integrating the density over an interval.
For physical applications, density might mean mass per length, area, or volume depending on the object.
For probability, the density function gives area-based probabilities, not the probability of a single exact value.
The graph height shows how concentrated the quantity is, but the integral gives the actual total.
It is a function that describes how a continuous quantity is spread out, such as mass per unit length or probability per unit interval. You do not treat the function value as the total amount. Instead, you integrate it over an interval to get the total mass, probability, or other accumulated quantity.
If \lambda(x) is the linear density of a rod on [a,b], the total mass is \int_a^b \lambda(x),dx. The setup matters more than the arithmetic, because the limits of integration must match the part of the rod you are measuring. This is the standard Calculus II move for a variable density problem.
A PDF is one specific kind of density function used in probability. In Calculus II physical applications, density function more often means a mass density or another amount-per-unit model. The shared idea is the same, though: density describes concentration, and integration turns that concentration into a total.
The area represents the total amount accumulated over an interval. For a probability density, the total area under the whole curve is 1, and the area over a sub-interval is the probability of landing there. For a physical density, the area under the curve gives the total mass or other quantity after you integrate.