Tool to calculate the monotonicity (or not) of a function, i.e. check its direction of variation, if a function is (strictly?) monotonic (increasing or decreasing)
Monotonic Function - dCode
Tag(s) : Functions
dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!
A monotonic function is a function $ f $ such that for any $ x_1, x_2 $ if $ x_1 < x_2 $ then either $ f(x_1) < f(x_2) $ (increasing function) or $ f(x_1) > f(x_2) $ (decreasing function) but not both.
In other words, a monotonic function is a function which preserves or reverses the order.
Several methods are used to calculate the direction of variation of a function in order to know if a function is monotonic:
— Calculation with its derivative: When the derivative of the function is always less than $ 0 $ or always greater than $ 0 $ then the function is monotonic.
Example: The derivative of the function $ f(x) = x^3+1 $ is $ f'(x) = 3x^2 $, the calculation of $ f'(x) >= 0 $ is always verified, whatever the value of $ x $ so the function $ f $ is monotonic (and increasing) on $ \mathbb{R} $
— Calculation with its equation: Certain functions are notoriously monotonic (either increasing or decreasing): the exponential function, etc.
Example: $ x+1 $ is increasing over $ \mathbb{R} $
— Calculation with the curve of the function: a monotonic function has its curve which goes either always downwards or always upwards
A monotonic sequence is a series of numbers either always increasing or always decreasing.
dCode retains ownership of the "Monotonic Function" source code. Any algorithm for the "Monotonic Function" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Monotonic Function" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "Monotonic Function" or any other element are not public (except explicit open source licence like Creative Commons). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.
The content of the page "Monotonic Function" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source.
Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).
To cite dCode.fr on another website, use the link:
In a scientific article or book, the recommended bibliographic citation is: Monotonic Function on dCode.fr [online website], retrieved on 2025-04-16,