What Function Makes a Narrow, Bell-Shaped Peak?
At a glance
- 1. Choose the peak
Set the center a to the x-value where the curve should reach its maximum.
- 2. Set the width
Use a small positive σ for a narrow peak and a larger σ for a broader one.
- 3. Set height and baseline
Choose A for the peak's height above the baseline C.
- 4. Check the shape
Compare the function with your data; use different left and right widths if the peak is asymmetric.
If by “peaks quickly” you mean a narrow, symmetric peak, a Gaussian function is a convenient starting point. Its center sets where the maximum occurs, and its width parameter controls how quickly the curve falls away on either side.
A bell curve is only one possible model: real data may have a sloping baseline, unequal sides, or a peak that does not look Gaussian. The sections below show how to adjust the basic model and when to consider an alternative.
The Gaussian peak
Use
where is the peak’s horizontal location, is its height above the baseline, is the baseline, and controls its width. The maximum occurs at , where .
The parameter is a scale, not the full width of the peak. At one width from the center,
So reducing makes the peak narrower; at corresponding scaled positions, such as one from the center, the sides are steeper in absolute -units. The curve is smooth, and its slope at the exact maximum is zero; “peaks quickly” usually means it is narrow, not that the slope at the maximum is large.
Choose the width from a desired half-height
A useful measure is the full width at half maximum (FWHM): the distance between the two points where the curve is halfway from the baseline to its maximum. Setting gives
If you know the desired FWHM, solve this relation for :
This is often easier than guessing from a graph. The half-height is measured relative to , not relative to zero, when the curve has a nonzero baseline.
Worked example
Suppose a peak should be centered at , reach a maximum of , and sit on a baseline of . Its height above baseline is . If you want a relatively narrow peak with , use
At the center, . One width from the center, at or ,
The half-height above baseline is . The full width at that level is approximately
For a sharper peak with the same center and height, reduce ; for a broader peak, increase it. Changing adjusts the height without changing the width, while changing shifts the whole curve vertically.
If one side is steeper
A symmetric Gaussian has the same shape on both sides of its center. To make the curve rise sharply and then trail off more gradually, give the two sides different widths:
Choose a smaller for a narrower left side and a larger for a broader right side. The two pieces meet at the same peak, and their first derivatives are both zero there. However, their second derivatives need not match, so the curve may not have a perfectly smooth change in curvature at the center. If that matters, use a smooth asymmetric model, such as a skew-normal curve, or fit a model chosen for the process that generated the data.
Common mistakes
- Using as the full width. The Gaussian FWHM is about , not .
- Forgetting the baseline. If the curve sits above zero, measure the peak height and half-height relative to .
- Making the peak arbitrarily narrow. A narrow curve may match a few points but miss the data between them. Fit the width to measurements or a stated requirement.
- Assuming every bell-like curve is Gaussian. A Gaussian is a useful symmetric model, not a universal law. Skewed, flat-topped, or heavy-tailed data may need another function.
If you only need a graph with a quick, symmetric peak, start with the Gaussian and tune , , , and . If the left and right sides behave differently, use an asymmetric model rather than trying to fix the mismatch by changing the height or center.
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.