When lies spread like wildfire, money, power, and pleasure are worshipped as God in the midst of a post-modern identity crisis where “the self” has become the center of the universe and decides what is right or wrong, so moral is subjective, societies fall apart and violence reigns, Anawim, #justtothepoint.
Definition. A function f is a rule, relationship, or correspondence that assigns to each element x in a set D, x ∈ D (called the domain) exactly one element y in a set E, y ∈ E (called the codomain or range).
The pair (x, y) is denoted as y = f(x) where: x is the independent variable (input) and y is the dependent variable (output). Often, both the domain D and codomain E are the set of real numbers ℝ or subsets of ℝ. A mathematical function can be thought of as a black box (or machine) that takes an input from its domain and produces exactly one output in its codomain. Inside the machine lives a specific rule (formula, procedure, or mapping) that dictates or tells you which output corresponds to each input, and a key property is uniqueness —each input maps to a single, deterministic output. No input can ever produce two different results (Figure E). The function f(x) = x2 accepts any real number x (domain: ℝ) and returns exactly one non-negative value x2 (output in codomain: [0,∞)). The input 3 always yields 9, never any other value.
D is the domain, the set of all possible inputs. E is the codomain or range, the set of all possible outputs.
Key property💡: Each input has exactly one output. (No input is assigned two different outputs — this is the vertical line test!)
Examples: constant, f(x) = c, horizontal line, slope = 0; linear, f(x) = mx + b, straight line, constant slope m and y-intercept b; quadratic $f(x) = ax^2 + bx + c$, u-shaped or inverted U, opens up (a > 0) or down (a < 0), vertex at x = $\frac{-b}{2a}$, symmetry about vertical axis through vertex; polynomial, $f(x) = a_n x^n + \dots + a_0$, a smooth and continuous curve, n roots (counting multiplicity), end behaviour determined by its leading term $a_n x^n$; exponential function, $f(x) = a \cdot b^x, a \ne 0, b \gt 0$, rapid growth (b > 1) or decay (0 < b < 1); trigonometric functions, $\sin(x), \cos(x), \tan (z)$ oscillatory, periodic behavior (period 2π for sin/cos, π for tan), sin and cos are bounded between -1 and 1, but tan is unbounded; step function $f(x) = \lfloor x \rfloor$, greatest integer ≤ x, constant on intervals [n, n+1), jumps at integers, its graph is a staircase shape; absolute value f(x) = |x|, V-shaped graph, slope changes at 0.
Functions can be expressed in multiple forms, each useful in different contexts: verbal description, table of values (list of pairs), algebraic formula, graph, piecewise definition, recursive definition, parametric or integral form, and series representation.
Evaluating a function means finding or computing the output value f(x) for a given input value x. f(x) = $x^2-2x +4, f(2) = 2^2 -2\cdot 2 + 4 = 4 - 4 + 4 = 4, f(0) = 0^2 -2\cdot 0 + 4 = 4, f(1) = 1^2 -2\cdot 1 + 4 = 1 -2 +4 = 3$
The x-intercept is any point on the graph that intersects or crosses the x-axis. In other words, it is the value of x when the function (y-coordinate or y-value) is zero. The y-intercept is the point where the graph intersects or crosses the y-axis. y-coordinate of the point whose x-coordinate is 0, e.g., 2x - 3y = 6. x-intercept: set y = 0 → 2x = 6 ⇒ x=3, so (3, 0). y-intercept: set x = 0 → −3y = 6 ⇒ y = −2, so (0, −2).
f is said to have a local or relative maximum at c if there exists an interval (a, b) containing c ($c \in (a, b)$) such that f(c) ≥ f(x) $∀ x \in (a, b) ∩ D$. f is said to have a local or relative minimum at c if there exists an interval (a, b) containing c ($c \in (a, b)$) such that f(c) ≤ f(x) $∀ x \in (a, b) ∩ D$.💡Local extrema can only occur where the function stops rising or falling —either because the derivative is zero, the derivative doesn't exist, or you're at the edge of the domain.
First Derivative Test. Let f be differentiable on an open interval containing c, except possibly at c itself, and let c be a critical point (so f′(c) = 0 or f′ is undefined). Then:
Concavity and inflection points are essential concepts in calculus that describe the curvature of functions. Understanding concavity and identifying inflection points provides valuable insights into the behavior of functions.
The concavity of a function is the direction in which the function opens. If it opens upwards, it is called concave up. Otherwise, it is called concave down.
Definition. A function is concave up or convex if it curves or bends upwards, the line segment or chord between any two points A1, A2, on the graph of the function, lies above the graph between the two points (the midpoint B lies above the corresponding point A0 of the graph of the function). It means that the function's graph is shaped like a 'U', a bowl, or a smiley face 😃 and lies above its tangent lines on that interval.
Definition. A function is concave down or just concave if it curves or bends downwards. It means that the function's graph is shaped like an upside-down 'U', i.e., '∩', an umbrella, or a frowny face 😞 and lies below its tangent lines on that interval.
Formally, f is concave up or convex on an interval [a, b] if ∀ x1, x2 ∈ [a, b], ∀θ such that 0 < θ <1, the following inequality holds: f(θa + (1-θ)b) ≤ θf(a) + (1-θ)f(b) where θa + (1-θ)b ∈ (a, b). f is concave down on an interval [a, b] if ∀ x1, x2 ∈ [a, b], ∀θ such that 0 < θ <1, the following inequality holds: f(θa + (1-θ)b) ≥ θf(a) + (1-θ)f(b) where θa + (1-θ)b ∈ (a, b).

The function f (Figure 1) is increasing on (-6, -5) ∪ (-3, 0) and decreasing on (-5, -3) ∪ (4, 7). It is constant on [0, 4]. Futhermore, f is concave up on (-4, -2) ∪ (4, 7) and concave down on (-6, -4) ∪ (-2, 0).
The equation of a parabola is y = ax2 + bx + c, where a, b, and c are constants. The parabola is a classic example of a concave up curve or convex when a is positive. It is a symmetrical curve that has a U-shape. If a is negative, the curve will be concave down or just concave.

Concavity relates to the rate of change of a function’s derivative. A function is concave up or convex if its derivative f' is increasing, that is, its second derivate f'' is positive. Similarly, f is concave down or concave where its derivative f' is decreasing or equivalently, its second derivate f'' is negative.
Since the second derivative of any quadratic function is just 2a, the sign of a directly correlates with the concavity of the function. If a is positive, 2a is positive so the function is concave up, e.g., x2 -Figure ii-, 3x2 - 4x + 4. If a is negative, 2a is negative so the function is concave down, e.g., -x2 -Figure ii-, -3x2 + 4x + 4.
An inflection point is a point at which the curvature changes sign, i.e., where the function changes from being concave up to concave down or viceversa.The graph of a differentiable function has an inflection point at (x, f(x)) if and only if its first derivative f’ has an isolated extremum (a local minimum or maximum) at x. In other words, if a function second derivative f″(x) exists at x0 and x0 is an inflection point for f, then f″(x0) = 0.
However, it’s important to emphasize that not all points where the second derivative is zero or undefined are inflection points. The concavity must change at these points for them to be considered inflection points.
x > 0 ⇒ f’’(x) > 0, f is concave up.
x < 0 ⇒ f’’(x) < 0, f is concave down.
0 is an inflection point.
f(x) = $\frac{1}{x}, f'(x)=\frac{-1}{x^2}, f''(x)=\frac{2}{x^3}$ has the same behaviour, but 0 is not an inflection point due to the fact that f is undefined at x = 0.
f’(x) = 3 -3x2, f’’(x) = -6x.
The plot is shown in Figure 1.a.
More examples because you can never have enough of what you don’t really need 😄.
The plot is shown in Figure 1.d.
Dom(f) = ℝ+ - {0, 1}.
f’(x) = $\frac{lnx-x(\frac{1}{x})}{(lnx)^{2}}=~ \frac{lnx -1}{(lnx)^{2}}$
f’(x) = 0 ↭ lnx = 1 ↭ x = e, and f(e) = e.
Futhermore: If 0 < x < 1, f’(x) < 0 ⇒ f is decreasing ↘. 1 < x < e, f’(x) < 0 ⇒ f is decreasing ↘. x > e, f’(x) > 0 ⇒ f is increasing ↗. Hence, f has a local minimum at x = e.
Let’s calculate f’’(x) = $\frac{\frac{1}{x}(lnx)^{2}-\frac{(lnx-1)2lnx}{x}}{(lnx)^{4}}=~ \frac{\frac{lnx-2(lnx-1)}{x}}{(lnx)^{3}}=~ \frac{2-lnx}{x(lnx)^{3}}$
Therefore, 0 < x < 1, f’’(x) < 0 ⇒ concave down. 1 < x < e2, f’(x) > 0 ⇒ concave up. x > e2, f’(x) < 0 ⇒ concave down. e2 is an inflection point, a point where concavity changes. The plot is shown in Figure 1.b.