BESSELK function
Returns the modified Bessel function of the second kind, Kn(x), a curve that decays towards zero as x grows. x must be greater than 0.
Available in Excel 2007 and later (Excel 2003 needed the Analysis ToolPak add-in), Microsoft 365, Excel for the web, Excel for Mac
Excel 2007 and laterNot in Google Sheets
Syntax
BESSELK(x, n)| Argument | What it means | |
|---|---|---|
x | Required | The value at which to evaluate the function. Must be greater than 0. |
n | Required | The order of the function. Decimals are truncated; it must be 0 or more. |
Returns: A number: the modified Bessel function of the second kind of order n at x.
How BESSELK works
BESSELK returns Kn(x), the decaying partner of BESSELI. It is very large near zero and falls off roughly like e^-x as x increases, which makes it the right shape for anything that fades with distance from a line or a cylinder: groundwater drawdown around a well in a leaky aquifer, heat spreading from a buried pipe, or electrostatic fields around a thin wire.
Because the function blows up at the origin, x must be strictly positive; 0 or a negative value returns #NUM!. The order is truncated to a whole number, so BESSELK(1, 2.7) is evaluated as order 2.
Examples
1Value of K1 at x = 1.5
| A | B | C | |
|---|---|---|---|
| 1 | x | Order n | |
| 2 | 1.5 | 1 | 0.277388 |
Result: 0.277388
K1(1.5) is about 0.277387800, shown formatted to 6 decimal places.
2Decay with distance
| A | B | C | |
|---|---|---|---|
| 1 | Scaled distance r/B | Order n | |
| 2 | 3 | 0 | 0.034740 |
Result: 0.034740
In the Hantush–Jacob leaky-aquifer model the steady drawdown is proportional to K0(r/B). At three times the leakage factor the shape term has dropped to 0.034740 (formatted to 6 decimals), compared with about 0.42 at r/B = 1.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#NUM! | x is 0 or negative, or n is negative. | Use x > 0 and an order of 0 or more. |
#VALUE! | x or n is text that cannot be read as a number. | Check the source cells with ISNUMBER; numbers stored as text from an import are the usual culprit. |
Tips
- Because Kn(x) falls so quickly, charts look better with a logarithmic y axis.
- For large x a quick check is Kn(x) ≈ sqrt(π/(2x))·e^-x.
Google Sheets
No Bessel functions; write an Apps Script custom function or use a numerical library outside Sheets.
BESSELK in other languages
In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.