
Logistic Function Formula Graph Properties and Solved Examples
Logistic Function Explained
The logistic function is a special kind of exponential function which typically models the exponential growth of a population. The logistic function also takes into account certain factors like the carrying capacity of land keeping in consideration that a definite area simply won't reinforce unlimited growth since when one population grows, its resources reduce. So a logistic function basically puts a limit on growth. In other words, a logistic function is exponential for olden days, but the growth declines as it reaches some limit.
Interpretation of Logistic Function
Mathematically, the logistic function can be written in a number of ways that are all only moderately distinctive of each other. In this interpretation below,
S (t) = the population ("number") as a function of time,
t. t0 = the starting time, and the term (t - to) is just an adjustable horizontal translation of the logistic function.
B = criterion that influences the rate of exponential growth
K= the asymptote in horizontal or the limit on the population size
S(t) = \[\frac{K}{(1+e^{-b(t-t_{0})})}\]
Meaning of Logistic Growth
Logistic growth can be easily delineated with a logistic equation. The logistic equation is of the mathematical form where the letters in the equation are constants that can also be adjusted/altered to match the condition being modeled. For the image below, you will have to solve for L, A, and E with the detail that is assigned to you in each problem. The constant L is specifically important since it is the limit to growth which is also frequently known as the carrying capacity.
(Image to be added soon)
The below given logistic function graph bears a carrying capacity of 10 which can be clearly seen from its graph.
(Image to be added soon)
Why Sigmoid Function For Logistic Regression
So, one of the outstanding properties of logistic regression function is that the outputs of sigmoid function results in the conditional probabilities of the anticipation, the class probabilities. So, let’s understand how it works? Let’s begin with the supposedly “odds ratio” p / (1 - p), which puts in detail the ratio between –the probability that a definite, positive, event happens and the probability that it doesn’t happen – where positive refers to the “event that we would want to anticipate”, which is., p(y=1 | x).
Difference Between Logistic Function & Sigmoid Function
To have a better understanding of sigmoid in logistic function let’s get to learn
Logistic function vs. sigmoid function.
So,
What Is Sigmoid?
A Sigmoid is a standard category of curves that “are S-shaped”. That’s the best way you can understand the sigmoid. In maths, we frequently use the term sigmoid to make reference to the logistic function, but that's actually only one example of a sigmoid. You should know that the “tanh function” also describes a sigmoid curve.
Tanh:
Equation:
F (x) = {ex} − e− {xex} + {e−x}
Range:
Break down the values in (−1,1) ,
0 at x = 0
Reason For Use in Machine Learning:
It gained eminence as an activation function in neural networks as a significant substitute to the logistic function. It was also empirically discovered to steer to quicker convergence, debatably because of being anti-symmetric & zero-centralized and about the origin. It too suffers from disappearing gradients.
Let’s get going to use it for 1 billion ordinary random numbers in MATLAB
Gives off:-
7.80 seconds
What is Logistic?
Logistic is a way of Getting a Solution to a differential equation by attempting to model population growth in a module with finite capacity. This is to say, it models the size of a population when the biosphere in which the population lives in has finite (defined/limited) resources and can only support population up to a definite size.
Equation
F (x) =11+ e−x
Range:
Break down the values in (0, 1)
Reason For Use in Machine Learning
Conceptually optimal “activation” functions for “logistic regression” and Probability.
It also took immense recognition as an activation function because of its easy-to-calculate derivative: f′(x) = f (x) × (1−f(x)} and its range of (0,1) . It does suffer from disappearing gradients too.
Let’s get going to use it for 1 billion ordinary random numbers in MATLAB (multi-paradigm Computer programming language)
Gives off:-
5.09 seconds
Solved Example
Problem1:
Find out the logistic model mentioned hereunder c=7 and the points (0, 2) and (3, 5).
The 2 points provide 2 equations, and the logistic model has in possession two variables. Use the given points to solve for M and N.
Solution1:
2= 7/1+M
1+M = 7/2
Thus, M = 2.5
5 = 7/ 1+ (2.5) . N3
1+ (2.5) . N3 =7/5
N3= 0.16
N ~ 0.54329
Hence, the estimated model is
f (x) = 7/ 1+ (2.5) . (0.54329) x
Fun Facts
logistic regression is basically a unique kind of sigmoid function
The logistic sigmoid as well as other sigmoid functions exists, for example, the hyperbolic tangent).
FAQs on Logistic Function Explained with Formula and Graphical Representation
1. What is a logistic function in mathematics?
A logistic function is a mathematical function that models growth which starts exponentially and then slows down as it approaches a maximum limit called the carrying capacity. It is commonly written as f(x) = \frac{L}{1 + Ae^{-kx}}, where:
- L = carrying capacity (maximum value)
- A = constant determined by initial value
- k = growth rate
2. What is the formula for a logistic growth function?
The standard logistic growth formula is f(x) = \frac{L}{1 + Ae^{-kx}}. In this formula:
- L is the carrying capacity
- k is the growth rate
- A depends on the initial condition
3. What does the carrying capacity mean in a logistic function?
The carrying capacity (L) is the maximum value that the logistic function approaches but never exceeds. It represents the upper horizontal asymptote of the curve. For example, if L = 500 in a population model, the population will grow toward 500 but will not surpass it.
4. How do you find the inflection point of a logistic function?
The inflection point of a logistic function occurs when the function reaches half of its carrying capacity. For f(x) = \frac{L}{1 + Ae^{-kx}}, the inflection point occurs when f(x) = \frac{L}{2}. At this point:
- The growth rate is maximum
- The curve changes from concave up to concave down
5. How is a logistic function different from an exponential function?
The main difference is that an exponential function grows without bound, while a logistic function levels off at a carrying capacity. Key differences include:
- Exponential: f(x) = ae^{kx}, unlimited growth
- Logistic: f(x) = \frac{L}{1 + Ae^{-kx}}, growth slows near L
- Logistic growth models real-world limits like resources
6. How do you solve a logistic function step by step?
To evaluate a logistic function, substitute the value of x into the formula and simplify. Example: Given f(x) = \frac{100}{1 + 9e^{-0.5x}}, find f(0).
- Substitute x = 0
- f(0) = \frac{100}{1 + 9e^{0}}
- Since e⁰ = 1, denominator = 1 + 9 = 10
- f(0) = \frac{100}{10} = 10
7. Why does a logistic curve have an S-shape?
A logistic curve is S-shaped because growth starts exponentially, increases rapidly, and then slows as it approaches the carrying capacity. The stages are:
- Slow initial growth
- Rapid growth near the inflection point
- Slowing growth as it nears L
8. What is the derivative of a logistic function?
The derivative of a logistic function shows its growth rate and is given by f'(x) = k f(x) \left(1 - \frac{f(x)}{L}\right). This form highlights that:
- Growth depends on the current value f(x)
- Growth slows as f(x) approaches L
9. What are the real-life applications of logistic functions?
A logistic function is used to model growth with limits in real-life situations. Common applications include:
- Population growth with limited resources
- Spread of diseases (epidemiology models)
- Product adoption in economics
- Logistic regression in machine learning
10. How do you find the horizontal asymptotes of a logistic function?
The horizontal asymptotes of a logistic function are y = 0 and y = L. For f(x) = \frac{L}{1 + Ae^{-kx}}:
- As x → −∞, f(x) → 0
- As x → +∞, f(x) → L





















