Math for IT
The mathematics that computing is built on, explained for people who work in IT: numbers and algebra, functions and a first look at calculus, binary and logic, counting, probability and statistics, graphs and matrices, and the math behind cryptography and error correction.
25 pages 153 glossary terms
How to use this topic
The first eight pages are the school mathematics that the rest builds on: numbers and number sets, primes and divisors, powers and logarithms, algebra, equations, functions and graphs, and geometry with trigonometry. The next eleven are the mathematics of computing itself: number bases, binary arithmetic, floating point, units, modular arithmetic, logic, sets, counting, probability, statistics and growth rates. Two pages introduce calculus, and the last four apply everything: graphs and trees, vectors and matrices, cryptography, and error detection and correction.
Every calculation is also shown as a short Python program with its exact output, so you can check the math by running it. Pages 2 to 8 and the two calculus pages, together with the sets and sequences pages, cover the topics of Basiskennis wiskunde voor informatica, the basic mathematics that the Dutch Open Universiteit expects from students starting its bachelor's degree in computer science.
Learning path
- 01Why Math Matters in ITWhere mathematics turns up in IT work, from subnets and storage to AI and cryptography, and how to read formulas and mathematical notation.
- 02Numbers and Number SetsNatural numbers, integers, rationals and reals, the order of operations, fractions, percentages, rounding and scientific notation.
- 03Divisibility, Primes, GCD and LCMDivisors and multiples, prime numbers and prime factorization, the greatest common divisor with Euclid's algorithm, and the least common multiple.
- 04Powers, Roots and LogarithmsExponents and their rules, square roots and other roots, logarithms and why base 2 is everywhere in computing, and thinking in orders of magnitude.
- 05Algebra: Expressions and FactoringWorking with variables: the rules of algebra, expanding and factoring, special products, and fractions, roots and logarithms that contain variables.
- 06Equations and InequalitiesSolving linear and quadratic equations, the quadratic formula, exponential and logarithmic equations, systems of two equations, and inequalities with intervals.
- 07Functions and GraphsWhat a function is, domain and range, linear, quadratic, exponential, logarithmic and other basic functions, composing, shifting and inverting functions, and reading their graphs.
- 08Geometry and TrigonometryPoints, lines and angles, the Pythagorean theorem, degrees and radians, sine, cosine and tangent, and distances in two and more dimensions.
- 09Number Bases and ConversionPositional number systems, converting between decimal, binary, octal and hexadecimal, and binary fractions.
- 10Binary Arithmetic and Bitwise OperationsAdding and subtracting in binary, two's complement for negative numbers, overflow, shifts, and AND, OR, XOR and masks as used in subnetting and permissions.
- 11Floating-Point NumbersHow computers store real numbers in IEEE 754 format, why 0.1 + 0.2 is not exactly 0.3, rounding errors, special values and when to use decimals instead.
- 12Units, Prefixes and Data SizesBits and bytes, decimal and binary prefixes such as kB and KiB, bandwidth and transfer times, and converting units without mistakes.
- 13Modular ArithmeticCalculating with remainders: the mod operation, congruence, clock arithmetic, and its uses in hashing, check digits such as IBAN and Luhn, and scheduling.
- 14Logic and Boolean AlgebraPropositions and connectives, truth tables, the laws of Boolean algebra including De Morgan's laws, implication, and simplifying conditions in code and networks.
- 15Sets and RelationsSets and their notation, union, intersection and difference, Venn diagrams and SQL joins, Cartesian products, and relations with their properties.
- 16Counting and CombinatoricsCounting possibilities: the product rule, permutations and combinations, factorials, password and key spaces, and the pigeonhole principle.
- 17ProbabilityProbability rules, independent and dependent events, conditional probability and Bayes' theorem, expected value, and the birthday paradox applied to IT.
- 18Statistics for ITDescribing data: mean, median and percentiles such as p95 latency, spread and standard deviation, distributions, outliers, and correlation versus causation.
- 19Sequences, Sums and Growth RatesArithmetic and geometric sequences, sigma notation and series, exponential growth and halving, and how growth rates lead to Big-O notation.
- 20Derivatives and Rates of ChangeAverage and instantaneous rates of change, the derivative as the slope of a tangent line, standard derivatives and differentiation rules, and gradient descent in machine learning.
- 21Integrals and AccumulationAntiderivatives and the definite integral as area under a curve, the basic integration rules, and adding up rates over time, such as energy from power.
- 22Graphs and TreesVertices and edges, paths and connectivity, shortest paths as in OSPF, trees and spanning trees as in Spanning Tree Protocol, and directed acyclic graphs for dependencies.
- 23Vectors and MatricesVectors, length and dot product, cosine similarity as used for AI embeddings, matrices and matrix multiplication, and transformations.
- 24The Math Behind CryptographyPrime numbers, modular exponentiation and inverses, and how RSA and Diffie-Hellman work, shown with small numbers, plus why hash functions and key sizes matter.
- 25Error Detection and CorrectionParity bits, checksums and CRCs, Hamming codes that correct errors, and XOR parity in RAID, with the math that makes them work.
Math for IT glossary
Short definitions of the terms used in this topic. The full glossary covers every topic.