Basic Mathematics for IT

Chapter 1
Mathematical Foundations and Quantitative Literacy

Bachelors Program in IT
Basic Mathematics for IT   •   Bachelor

Mathematical Foundations and Quantitative Literacy

Introduction

Information technology is built on quantitative representation. A file size, network speed, processor frequency, database record count, storage capacity, error rate, and project estimate are all expressed through numbers, units, and relationships. Mathematical literacy enables IT professionals to interpret these quantities correctly, select appropriate representations, detect implausible results, and communicate technical information precisely.

This chapter develops the mathematical foundations required for later study of programming, computer systems, databases, networking, data analysis, cybersecurity, and software engineering. The emphasis is not on calculation for its own sake, but on using mathematics as a language for describing and reasoning about information systems.

Learning Objectives

By the end of this chapter, you should be able to:

  1. Use mathematical notation and distinguish variables, constants, expressions, equations, and inequalities.
  2. Explain positional number systems, especially decimal, binary, hexadecimal, and their IT applications.
  3. Perform arithmetic operations while respecting order of operations and unit consistency.
  4. Apply ratios, proportions, percentages, rates, and percentage-point changes.
  5. Convert quantities between common SI and computing units.
  6. Use rounding, significant figures, scientific notation, and approximation responsibly.
  7. Calculate and interpret absolute error, relative error, and percentage error.
  8. Evaluate quantitative claims in practical IT situations.

1. Mathematical Language for IT

A quantity is something that can be measured or counted. A quantity is normally described by a numerical value and a unit. For example, 250 milliseconds consists of the numerical value 250 and the unit milliseconds.

A variable is a symbol representing a value that may change. In t = 250\ \text{ms}, t is a variable. A constant has a fixed value within a particular context. The number of bits in a byte, conventionally 8, is a constant under the standard definition of a byte.

An expression combines values, variables, and operations, such as 3n + 2. An equation asserts that two expressions are equal, such as 3n + 2 = 14. An inequality compares quantities using symbols such as <, >, ≤, or ≥.

The equals sign means equality, not “the answer follows.” For example, 2(x + 3) = 14 states that the two sides have the same value. Solving the equation gives x = 4.

Order of operations

Arithmetic is conventionally evaluated in this order:

  1. Parentheses or other grouping symbols.
  2. Exponents and roots.
  3. Multiplication and division from left to right.
  4. Addition and subtraction from left to right.

Thus, 8 + 3 × 4 = 20, not 44. Parentheses should be used in programs and spreadsheets when the intended grouping is important.

2. Number Systems and Representation

Decimal notation

Decimal notation uses ten symbols, 0 through 9. Its positional value is based on powers of 10. For example:

4,572 = 4×10³ + 5×10² + 7×10¹ + 2×10⁰

The decimal system is convenient for human communication, whereas digital computers fundamentally represent information using binary states.

Binary notation

Binary uses only 0 and 1. Each position represents a power of 2:

(101101)₂ = 1×2⁵ + 0×2⁴ + 1×2³ + 1×2² + 0×2¹ + 1×2⁰ = (45)₁₀

A binary digit is a bit. A group of eight bits is commonly called a byte. With n bits, the number of distinct bit patterns is:

2ⁿ

This assumes each bit has two independent states and that every pattern is allowed. Therefore, 8 bits provide 2⁸ = 256 possible patterns, representing values from 0 through 255 when unsigned.

For an unsigned integer represented with n bits, the range is:

0 ≤ x ≤ 2ⁿ − 1

Signed integer systems require a representation convention, such as two’s complement. In an n-bit two’s-complement system, the range is:

−2ⁿ⁻¹ ≤ x ≤ 2ⁿ⁻¹ − 1

This formula applies to standard two’s-complement representation and explains why an 8-bit signed integer ranges from −128 to 127.

Hexadecimal notation

Hexadecimal, or base 16, uses digits 0–9 and letters A–F, where A represents 10 and F represents 15. One hexadecimal digit corresponds exactly to four binary bits. Thus, (2F)₁₆ = 2×16 + 15 = 47₁₀. Hexadecimal is widely used for memory addresses, machine instructions, color codes, and hashes because it is more compact than binary while preserving bit-level structure.

Converting decimal to binary

Repeated division by 2 provides a systematic method. To convert 45 to binary:

  • 45 ÷ 2 gives quotient 22, remainder 1.
  • 22 ÷ 2 gives quotient 11, remainder 0.
  • 11 ÷ 2 gives quotient 5, remainder 1.
  • 5 ÷ 2 gives quotient 2, remainder 1.
  • 2 ÷ 2 gives quotient 1, remainder 0.
  • 1 ÷ 2 gives quotient 0, remainder 1.

Reading the remainders upward gives (101101)₂.

3. Arithmetic, Ratios, and Rates

The four basic arithmetic operations are addition, subtraction, multiplication, and division. In IT, division often expresses a rate: throughput, latency per transaction, storage per user, or defects per thousand lines of code.

A ratio compares quantities through division. If a system processes 900 requests in 30 seconds, its average processing rate is:

r = N / t = 900 / 30 = 30\ \text{requests per second}

Here N is the number of requests, t is elapsed time, and r is the average rate. The result is an average; it does not imply that exactly 30 requests arrived during every second.

A proportion states that two ratios are equal. If 3 of every 5 sampled records are valid, then the expected number of valid records in a sample of 200, assuming the same proportion, is:

x / 200 = 3 / 5

Therefore, x = 200×3/5 = 120. This inference assumes the sample proportion is an appropriate model for the larger set.

Dimensional analysis

Units must be treated algebraically. If a file of 600 megabytes is transferred in 20 seconds, the average rate is:

600\ \text{MB} ÷ 20\ \text{s} = 30\ \text{MB/s}

Adding unlike units is invalid: 5 seconds cannot be added to 3 megabytes. Multiplication and division may create compound units, but the result must be interpreted carefully. A network advertised as 100 megabits per second does not transfer 100 megabytes per second because 1 byte = 8 bits. Ignoring protocol overhead, the corresponding rate is:

100\ \text{Mb/s} ÷ 8 = 12.5\ \text{MB/s}

4. Percentages and Percentage Change

A percentage is a ratio expressed per hundred. The general conversion is:

p\% = (p/100)

If 18 of 24 tests pass, the pass percentage is:

(18/24)×100\% = 75\%

The percentage change from an original value V₀ to a new value V₁ is:

\text{Percentage change} = ((V₁ − V₀)/V₀)×100\%

This formula requires V₀ ≠ 0 and uses the original value as the reference. If latency falls from 200 ms to 150 ms:

((150 − 200)/200)×100\% = −25\%

Latency decreased by 25%. The absolute decrease is 50 ms, while the relative decrease is 25%.

A percentage point difference is not the same as a percentage change. If a service’s availability rises from 92% to 96%, it increases by 4 percentage points. Its relative increase is:

((96 − 92)/92)×100\% ≈ 4.35\%

Confusing these measures can mislead stakeholders and distort performance reports.

5. Units and Scale in Computing

The International System of Units uses decimal prefixes: kilo means 10³, mega means 10⁶, giga means 10⁹, and tera means 10¹². Storage manufacturers commonly use these decimal meanings: 1 GB = 10⁹ bytes.

Computing also uses binary prefixes: kibi, mebi, gibi, and tebi. Their values are powers of 1024:

PrefixSymbolValue
kibibyteKiB2¹⁰ bytes = 1,024 bytes
mebibyteMiB2²⁰ bytes
gibibyteGiB2³⁰ bytes
tebibyteTiB2⁴⁰ bytes

The distinction matters in storage capacity, memory allocation, cloud pricing, and technical specifications. A vendor should state whether a quantity is decimal or binary. In informal usage, KB and MB are sometimes used ambiguously; professional documentation should avoid that ambiguity.

Time units also require care. A millisecond is 10⁻³ seconds, a microsecond is 10⁻⁶ seconds, and a nanosecond is 10⁻⁹ seconds. A processor frequency of 3 GHz means approximately 3×10⁹ cycles per second, but frequency alone does not determine application performance because instruction complexity, parallelism, memory access, and workload also matter.

6. Approximation, Rounding, and Significant Figures

Exact values arise from definitions or exact counts. Measured values are usually approximate because instruments, timing methods, sampling, and environmental conditions introduce uncertainty.

Rounding replaces a value with a nearby value at a specified precision. For example, 3.146 rounded to two decimal places is 3.15. Truncation would produce 3.14, but truncation and rounding are different operations.

Significant figures communicate measurement precision. The number 2.50 implies more precision than 2.5 because the trailing zero is significant. Calculations should not report more precision than the input data justify. A measured latency reported as 18.2 ms should not normally produce a final claim of 18.237941 ms without a specific reason.

Rounding can accumulate. If many intermediate values are rounded, the final result may differ materially from a calculation that retains full precision. A best practice is to retain guard digits during computation and round only the final reported result.

Approximation is useful in estimation. For example, if 1.2 million users each generate about 40 events per day, the approximate daily event count is:

1.2×10⁶ × 40 = 4.8×10⁷

This is 48 million events per day. It is an estimate, not an exact operational count.

7. Scientific Notation

Scientific notation expresses a number as:

a×10ⁿ

where 1 ≤ |a| < 10 and n is an integer. For example, 4,800,000 is 4.8×10⁶, while 0.0000032 is 3.2×10⁻⁶.

Scientific notation makes scale explicit and simplifies multiplication:

(3×10⁸)(2×10⁻⁶) = 6×10² = 600

It is especially useful for memory addresses, nanosecond timings, data volumes, and probabilities. When multiplying or dividing, coefficients and powers of ten should be handled separately, and the coefficient should be normalized afterward.

8. Error Measures and Reliability of Quantitative Claims

Let xt denote a trusted, accepted, or reference value and xa denote an approximate or measured value.

The absolute error is:

Ea = |xa − xt|

It has the same unit as the measured quantity. If the reference file size is 500 MB and a tool reports 497 MB, the absolute error is 3 MB.

The relative error is:

Er = |xa − xt| / |xt|

This assumes xt ≠ 0. Relative error has no unit. The percentage error is:

Ep = Er×100\%

For the file-size example:

Ep = (3/500)×100\% = 0.6\%

Absolute error is useful when a fixed tolerance matters, such as “within 5 ms.” Relative error is more useful when scale varies, such as comparing errors for files of different sizes.

Error should not automatically be interpreted as carelessness. It may arise from measurement limitations, rounding, clock synchronization, packet loss, sampling, or a mismatch between definitions. A reported network speed may differ from an advertised speed because of protocol overhead and changing traffic conditions.

9. Worked IT Applications

Example 1: Storage planning

A development team stores 75,000 log files. Each file averages 2.4 MB. Estimate the uncompressed storage requirement.

75,000 × 2.4\ \text{MB} = 180,000\ \text{MB}

Using decimal units:

180,000\ \text{MB} ÷ 1,000 = 180\ \text{GB}

If the organization requires 20% additional capacity for metadata, temporary files, and growth:

180\ \text{GB} × 1.20 = 216\ \text{GB}

The estimate is 216 GB. It assumes the average file size is representative and that the 20% allowance is adequate. Compression, replication, backups, and retention policies would need separate consideration.

Example 2: Availability and downtime

A service operates for a 30-day month. If its availability target is 99.9%, the permitted unavailable fraction is 0.1%:

30×24×60 = 43,200\ \text{minutes}
43,200×0.001 = 43.2\ \text{minutes}

Thus, 99.9% availability permits approximately 43.2 minutes of downtime in a 30-day month. This calculation assumes the stated month length and that all downtime is measured consistently. Availability percentages should specify the observation period, exclusions, and measurement method.

10. Illustrative Case: Evaluating a Cloud Migration Estimate

Background. A small online retailer plans to migrate its application to a cloud platform. The provider advertises a network connection of 200 Mb/s. The retailer must upload 1.5 TB of data and estimates that the migration will take two hours.

Problem. Is the two-hour estimate plausible under ideal conditions?

Analysis. Convert the data volume to megabits. Using decimal units, 1.5 TB = 1.5×10¹² bytes. Since one byte contains eight bits:

1.5×10¹²×8 = 12×10¹²\ \text{bits}

At 200×10⁶ bits per second, the ideal transfer time is:

t = (12×10¹²)/(200×10⁶) = 60,000\ \text{s}

Converting to hours:

60,000 ÷ 3,600 ≈ 16.67\ \text{hours}

Approach and solution. The two-hour estimate is not plausible at the advertised rate. To transfer the data in two hours, the required average rate would be:

r = (12×10¹²)/(2×3,600) ≈ 1.667×10⁹\ \text{bits/s}

That is approximately 1.67 Gb/s, before accounting for protocol overhead, encryption, retransmission, contention, and performance limits in storage systems.

Outcome. The team should revise the schedule, reduce the data set, use physical data transfer, increase bandwidth, or perform staged migration. The estimate illustrates why units and dimensional analysis are essential: confusing megabits with megabytes would produce an eightfold error.

Learning points. Technical claims must identify units, assumptions, and whether a value is theoretical or observed. An advertised maximum is not necessarily an achievable sustained throughput. Quantitative review should occur before contractual commitments are made.

11. Professional Practice, Governance, and Contemporary Relevance

Quantitative errors can create financial, operational, and safety consequences. Incorrect capacity estimates may cause outages; misleading performance percentages may influence procurement; and poorly specified units can create incompatible system designs. IT professionals should document definitions, assumptions, data sources, time periods, and rounding rules.

In dashboards and AI-supported analytics, numerical fluency remains essential. Automated systems may summarize measurements but can preserve unit mismatches, confuse percentages with percentage points, or generate precise-looking values from uncertain data. Human reviewers should validate input definitions, transformations, and output plausibility. Reproducible calculations, versioned data, and transparent formulas support auditability.

Best practices include:

  • State units beside quantities and use consistent prefixes.
  • Distinguish bits from bytes and decimal from binary prefixes.
  • Define the reference value when reporting percentage change.
  • Retain precision during calculation and round final results appropriately.
  • Report assumptions and uncertainty rather than presenting estimates as facts.
  • Perform dimensional checks and order-of-magnitude checks.
  • Use independent recalculation for important capacity, cost, and risk decisions.
  • Avoid false precision in dashboards and technical reports.

Chapter Summary

Mathematical notation provides a precise language for variables, expressions, equations, and inequalities. Decimal, binary, and hexadecimal systems represent numbers at different levels of human and machine interaction; binary is fundamental to digital systems, while hexadecimal provides compact bit-oriented notation. Arithmetic in IT depends on order of operations, dimensional consistency, and correct interpretation of rates.

Ratios and percentages describe relationships, but percentage change must be distinguished from percentage-point change. Computing quantities require careful treatment of decimal and binary prefixes, bits and bytes, and time scales. Scientific notation communicates very large and very small quantities efficiently. Approximation and rounding are useful but must reflect the precision of the underlying data. Absolute, relative, and percentage error provide complementary ways to evaluate measurement and estimation quality.

The central professional principle is quantitative accountability: define terms, show assumptions, check units, test plausibility, and communicate uncertainty. These habits support reliable decisions in every area of IT.

Key Terms

Variable: A symbol representing a value that may change.

Constant: A value fixed within a stated context.

Expression: A combination of values, variables, and operations.

A statement that two expressions are equal.

Inequality: A comparison using symbols such as <, >, ≤, or ≥.

Bit: A binary digit with two possible states.

Byte: A group of eight bits.

Binary: A base-2 number system.

Hexadecimal: A base-16 number system using 0–9 and A–F.

Ratio: A comparison of quantities through division.

Rate: A quantity expressed per unit of another quantity.

Percentage: A ratio expressed per hundred.

Percentage point: The arithmetic difference between two percentages.

Dimensional analysis: Checking calculations through their units.

Approximation: A value close to, but not necessarily equal to, an exact value.

Significant figures: Digits conveying the precision of a measurement.

Scientific notation: Representation in the form a×10ⁿ.

Absolute error: The magnitude of the difference between approximate and reference values.

Relative error: Absolute error divided by the magnitude of the reference value.

Percentage error: Relative error expressed as a percentage.

Review Questions

Short Answer Questions

  1. What is the difference between a variable and a constant?
  2. Why is hexadecimal useful in computing?
  3. Distinguish a percentage change from a percentage-point change.
  4. Why must units be included in an IT calculation?
  5. Define absolute error and relative error.

Long Answer Questions

  1. Explain positional notation in decimal, binary, and hexadecimal systems, including one conversion example.
  2. Discuss the importance of decimal and binary prefixes in storage and memory specifications.
  3. Explain how order of operations and dimensional analysis prevent errors in spreadsheets and programs.
  4. Describe appropriate uses and limitations of approximation, rounding, and significant figures.
  5. Explain how a technical manager should evaluate an advertised network throughput.

Analytical / Application Questions

  1. A service processes 2,400 requests in 80 seconds. Calculate its average rate. If a later test processes 2,700 requests in 90 seconds, compare the rates and explain whether performance has changed.
  2. A backup system stores 4,000 files averaging 18 MB each and adds 15% overhead. Estimate the required decimal storage in GB. State your assumptions.
  3. A monitoring tool reports 985 ms for a reference latency of 1,000 ms. Calculate absolute error, relative error, and percentage error, and explain which measure would be more useful for comparing systems with different latency scales.

Multiple Choice Questions with Answers

Question 1

How many distinct patterns can be represented by 8 independent bits?

A. 8

B. 16

C. 128

D. 256

Correct Answer: D. 256

Question 2

What is (101101)₂ in decimal notation?

A. forty-five

B. forty-seven

C. fifty-one

D. fifty-three

Correct Answer: A. forty-five

Question 3

A system processes 900 requests in 30 seconds. What is its average rate?

A. 3 requests/s

B. 30 requests/s

C. 270 requests/s

D. 930 requests/s

Correct Answer: B. 30 requests/s

Question 4

A latency falls from 200 ms to 150 ms. What is the percentage change?

A. −25%

B. −50%

C. +25%

D. +50%

Correct Answer: A. −25%

Question 5

Ignoring overhead, 100 Mb/s is equivalent to what in MB/s?

A. 0. oito MB/s

B. 8 MB/s

C. 12.5 MB/s

D. 800 MB/s

Correct Answer: C. 12.5 MB/s

Question 6

Which value is equal to 3.2×10⁻⁶?

A. 0.0000032

B. 0.000032

C. 3,200,000

D. 32,000,000

Correct Answer: A. 0.0000032

Question 7

A reference value is 500 MB and a tool reports 497 MB. What is the percentage error?

A. 0.06%

B. 0.6%

C. 3%

D. 6%

Correct Answer: B. 0.6%

Question 8

Which statement correctly describes 99.9% availability over a 30-day month?

A. It permits approximately 4.32 minutes of downtime.

B. It permits approximately 43.2 minutes of downtime.

C. It permits approximately 432 minutes of downtime.

D. It guarantees exactly zero downtime.

Correct Answer: B. It permits approximately 43.2 minutes of downtime.

Question 9

Which unit represents 2²⁰ bytes?

A. KiB

B. MiB

C. GiB

D. TiB

Correct Answer: B. MiB

Question 10

Why should intermediate values generally retain extra precision during a calculation?

A. To guarantee every measurement is exact

B. To prevent accumulated rounding error

C. To convert bytes into bits automatically

D. To eliminate the need for units

Correct Answer: B. To prevent accumulated rounding error

Basic Mathematics for IT
Chapter 1 of 15