Membership functions and fuzzification
Membership functions define how crisp inputs map to degrees of membership in fuzzy sets; fuzzification is the process of computing those degrees using shapes like triangular, trapezoidal and Gaussian.
Drafted with Aria, reviewed by the AiCanCode.org team · Updated . How we write and check our notes. Spotted an error? Use Give Feedback at the bottom of the page.
Why it matters
Engineers use membership functions and fuzzification to convert crisp sensor readings or parameters (for example, temperature, speed, or error) into fuzzy degrees that fuzzy controllers or fuzzy inference systems can work with. This step is essential in fuzzy logic controllers, fuzzy inference and any soft-computing system that mixes human-like rules with numeric inputs.
Key ideas
Membership function: the function µ_A : X → [0,1] that assigns to each x its membership degree. It is the numerical representation of the fuzzy set.
Required property: For every fuzzy set A and every x ∈ X, 0 ≤ µ_A(x) ≤ 1. The membership degree is unitless.
Support of A: the set { x ∈ X | µ_A(x) > 0 }. (Draw: x-axis = X, shade the region where curve > 0; label endpoints.)
Core (or kernel) of A: the set { x ∈ X | µ_A(x) = 1 }.
Normal fuzzy set: a fuzzy set whose maximum membership degree is 1 (i.e., sup_x µ_A(x) = 1). The height of a fuzzy set A is height(A) = sup_x µ_A(x) ∈ (0,1]; A is normal iff height(A) = 1.
α-cut (alpha-cut): for 0 ≤ α ≤ 1, the crisp set A_α = { x ∈ X | µ_A(x) ≥ α }. Useful in interval analysis and some defuzzification proofs. The strong α-cut is A_α^+ = { x ∈ X | µ_A(x) > α }. For convex fuzzy sets on ℝ, every α-cut A_α is an interval.
Convex fuzzy set: A fuzzy set A is convex if for any x, y ∈ X and any λ ∈ [0,1], µ_A(λx + (1−λ)y) ≥ min(µ_A(x), µ_A(y)). (This is the usual definition used in exam answers.)
Fuzzification: the process of converting a crisp input value x0 ∈ X into one or more membership degrees µ_A(x0) by evaluating membership functions of relevant fuzzy sets. A fuzzifier is the mechanism (often just evaluation of predefined membership functions). A common practical fuzzifier is the singleton fuzzifier, which maps the single crisp value to its degrees for all fuzzy sets. In non-singleton fuzzification, input uncertainty is represented by a fuzzy set µ_in(x) (e.g., a narrow Gaussian around x0); exams may ask you to name this variant and note that antecedent matching then uses a chosen t-norm.
Common membership-function shapes (universally used in exams; draw and label parameters when asked):
Triangular membership function with parameters a ≤ b ≤ c. Draw: x-axis X, y-axis µ in [0,1], triangle peak at b with height 1, base from a to c. The function is piecewise-linear, rising from a to b, then falling to c.
Trapezoidal membership function with parameters a ≤ b ≤ c ≤ d. Draw: trapezoid with plateau at µ=1 between b and c, sloping sides from a to b and c to d.
Gaussian membership function with centre c and width (standard deviation) σ > 0. Draw: smooth bell curve centred at c.
Sigmoidal (logistic) membership function with slope a and centre c: an S-shaped curve asymptotically approaching 0 and 1; useful for open-ended terms like Low/High.
Shoulder functions (S-shaped / Z-shaped ramps) with parameters a ≤ b: smooth left-shoulder (Z) and right-shoulder (S) MFs used to model saturated low/high regions; often accepted sketches in exams.
Step-by-step derivation usually required in exams:
For the triangular MF, the rising slope between a and b is linear with slope 1/(b−a). The falling slope between b and c is −1/(c−b). From the two-point form of a line, construct the piecewise formula (shown in Formulas). Be sure to show piecewise reasoning: cases x ≤ a (value 0), a < x ≤ b (rising line), b < x < c (falling line), x ≥ c (0).
For the trapezoid, similarly write the four intervals and show the linear interpolation on the sides and constant 1 on [b,c].
When an exam asks for a diagram, draw x horizontally and µ vertically (0 to 1). Mark parameters a, b, c (and d for trapezoid) on the x-axis. Sketch the piecewise lines and label the core and support.
Formulas
0 ≤ µ_A(x) ≤ 1 — µ_A(x): membership degree of x in fuzzy set A; unitless; always applies.
support(A) = { x ∈ X | µ_A(x) > 0 } — support is a subset of X; same units as X.
core(A) = { x ∈ X | µ_A(x) = 1 } — core is where membership is full.
A_α = { x ∈ X | µ_A(x) ≥ α } — α-cut for 0 ≤ α ≤ 1; returns a crisp set.
A_α^+ = { x ∈ X | µ_A(x) > α } — strong α-cut (strict). For convex fuzzy sets on ℝ, α-cuts are intervals.
height(A) = sup_{x∈X} µ_A(x) — height of A; A is normal iff height(A) = 1.
Triangular MF (parameters a ≤ b ≤ c):
µ(x) = 0, if x ≤ a
µ(x) = (x − a) / (b − a), if a < x ≤ b
µ(x) = (c − x) / (c − b), if b < x < c
µ(x) = 0, if x ≥ c
Symbols: x in X (same units as variable, e.g., °C); a,b,c boundary parameters (same units); µ unitless. Applies when MF is triangular.
Trapezoidal MF (a ≤ b ≤ c ≤ d):
µ(x) = 0, if x ≤ a
µ(x) = (x − a) / (b − a), if a < x ≤ b
µ(x) = 1, if b < x ≤ c
µ(x) = (d − x) / (d − c), if c < x < d
µ(x) = 0, if x ≥ d
Symbols: a,b,c,d parameters; unitless µ.
Gaussian MF (centre c, standard deviation σ > 0):
µ(x) = exp( − (x − c)^2 / (2 · σ^2) )
Symbols: x, c same units (e.g., °C); σ same units; µ unitless; exp is the exponential function. Applies for smooth bell-shaped membership.
Generalized bell MF (optional exam shape):
µ(x) = 1 / (1 + | (x − c) / a |^(2b) ) — parameters a>0 (width), b>0 (slope), c (centre).
Note: membership values are unitless numbers between 0 and 1; a,b,c,d,σ are in the same units as x.
Worked examples
Example 1 — Triangular fuzzification (temperature, °C) Problem: Universe X = [0, 40] °C. Three triangular fuzzy sets represent Low: (a=0, b=10, c=20), Medium: (10, 20, 30), High: (20, 30, 40). Compute fuzzification degrees for crisp x0 = 18 °C. Steps:
- Low: parameters a=0, b=10, c=20. Since 10 < x0 = 18 < 20, use falling part:
µ_Low(18) = (c − x0) / (c − b) = (20 − 18) / (20 − 10) = 2 / 10 = 0.2. - Medium: a=10, b=20, c=30. Since 10 < 18 ≤ 20, use rising part:
µ_Med(18) = (x0 − a) / (b − a) = (18 − 10) / (20 − 10) = 8 / 10 = 0.8. - High: a=20, b=30, c=40. Since x0 = 18 ≤ a = 20,
µ_High(18) = 0. Answer: µ_Low(18 °C) = 0.20 (unitless), µ_Med(18 °C) = 0.80, µ_High(18 °C) = 0.00.
Example 2 — Trapezoidal membership (temperature plateau) Problem: Trapezoidal fuzzy set Warm with a=0 °C, b=10 °C, c=20 °C, d=30 °C. Compute µ_Warm(25 °C). Steps:
- Check interval: 20 < 25 < 30, so use falling side:
µ(25) = (d − x) / (d − c) = (30 − 25) / (30 − 20) = 5 / 10 = 0.5. Answer: µ_Warm(25 °C) = 0.50.
Example 3 — Gaussian membership Problem: Gaussian fuzzy set with centre c = 50 (units same as x), σ = 10. Compute µ(65). Steps:
- Compute exponent: (x − c)^2 = (65 − 50)^2 = 225. Denominator 2·σ^2 = 2·100 = 200. Exponent = −225 / 200 = −1.125.
- µ(65) = exp(−1.125) ≈ 0.324652... Rounded to 4 decimal places: 0.3247. Answer: µ(65) ≈ 0.3247 (unitless).
Common mistakes
- Applying the wrong side of triangular/trapezoidal formulas (using rising formula when x is on falling side).
- Not carrying units for parameters a,b,c,d (they must match x) — leads to unit errors in interpretation.
- Thinking support/core are numeric values rather than sets (write them as sets or intervals).
- Confusing convexity of a fuzzy set with convex shape of its membership graph — use the formal λ-definition in proofs.
For your exam
Types of questions you will see:
- Definition: define fuzzy set, membership function, support, core, α-cut.
- Short note: list and sketch common membership shapes and explain parameters.
- Derivation: derive the triangular MF piecewise formula from linear interpolation (show slopes).
- Numericals: given MF parameters and a crisp value, compute membership degrees (show steps and final numbers with units carried through).
- Diagram: draw triangular/trapezoidal MFs, label a,b,c,d and indicate support and core.
What a full-marks answer includes:
- Clear definitions with bold term names (support, core, fuzzification, α-cut).
- Correct piecewise formulas with clear interval endpoints and unit consistency.
- For numerical problems: write which piece of the piecewise function applies, substitute numbers, show arithmetic steps, give final rounded answer with units and state the value is unitless for µ.
- For diagrams: labelled axes (x: variable and units, y: µ from 0 to 1), mark parameters on x-axis, shade support and core if asked.
Quick check
- What is the range of a membership function value?
- Give the piecewise expression for a triangular membership function and name its three parameters.
- For a Gaussian MF with centre 0 and σ = 2, is µ(2) greater or less than µ(4)?
Answers: 1) 0 to 1 (unitless). 2) µ(x)=0 for x≤a; µ(x)=(x−a)/(b−a) for a<x≤b; µ(x)=(c−x)/(c−b) for b<x<c; µ(x)=0 for x≥c; parameters a,b,c. 3) µ(2) > µ(4) because 2 is closer to centre 0 than 4 (Gaussian decays with distance squared).
Finished this topic? Mark it so your progress, study plan and readiness keep up.
Stuck on something here?