Start here if maths has been a while. The first chapter is a phrasebook for the symbols every later page uses: kinds of numbers, intervals, subscripts and Greek letters. Then come the two ideas every other module quietly depends on. First, functions and their graphs: lines, parabolas, absolute values and the piecewise functions that GATE uses to describe probabilities. Second, exponentials and logarithms, which run through the exponential distribution, the sigmoid in machine learning and entropy in decision trees.
You need: arithmetic and the idea that a letter can stand for a number. That’s it.
Reading maths: numbers, symbols and notation
Maths is written in a compact shorthand, and once you can read each symbol aloud in plain words, a question that looked frightening becomes an ordinary sentence.
Every later chapter uses things like $\R$, $[1, 3]$, $x_1$, $\lambda$ and $5!$ without stopping to explain them. This chapter is the phrasebook: twenty minutes here saves a lot of confusion later.
It’s like learning to read a bowling figure: “4–0–28–2” looks cryptic until someone tells you it means overs, maidens, runs and wickets. After that you read it at a glance.
In every question. None of it is asked on its own, but you can’t start a question you can’t read.
Why bother? Read one real sentence
Here is how a 2024 exam question begins: "Let $X$ be a random variable uniformly distributed in the interval $[1, 3]$." Read slowly, it is only three ideas:
- "$X$“ is a name for a number we don’t know yet, like ”the score in tomorrow’s match".
- “uniformly distributed” means every value is equally likely (you’ll meet this properly in Probability).
- "$[1, 3]$“ means ”any number from 1 to 3, including 1 and 3 themselves".
So the sentence says: $X$ is a number somewhere between 1 and 3, and no part of that range is favoured. That’s the whole skill of this chapter: turning symbols back into words.
Kinds of numbers
Four families of numbers come up again and again. Each one contains the one before it.
- Natural numbers $\N$: the counting numbers $1, 2, 3, \ldots$ (some books include 0). “How many tickets?” is a natural number.
- Integers $\Z$: whole numbers, negatives included: $\ldots, -2, -1, 0, 1, 2, \ldots$ A team’s net run difference is an integer.
- Rational numbers $\Q$: fractions of integers, like $\tfrac34$, $-\tfrac52$ or $0.25 = \tfrac14$.
- Real numbers $\R$: every point on the number line, including numbers like $\sqrt2 \approx 1.414$ and $\pi \approx 3.1416$ that are not fractions. Heights, times and probabilities are real numbers.
When you read "$x \in \R$“, say ”$x$ is a real number". The symbol $\in$ means “is a member of” (it’s a stylised E for “element”), and $\notin$ means “is not a member of”: $-3 \in \Z$ but $-3 \notin \N$.
| Symbol | Read it as | Example |
|---|---|---|
| $=$, $\ne$ | equals, is not equal to | $2 + 2 = 4$, $\ 3 \ne 4$ |
| $\approx$ | is approximately | $\pi \approx 3.14$ |
| $\lt$, $\le$ | less than, less than or equal to | $2 \lt 3$, $\ 3 \le 3$ |
| $\gt$, $\ge$ | greater than, greater than or equal to | $x \ge 0$: “x is zero or more” |
| $\pm$ | plus or minus (two answers) | $\pm 3$ means $3$ or $-3$ |
| $|x|$ | the size of $x$, sign dropped | $|-5| = 5$ |
| $\Rightarrow$ | implies, so | $x = 2 \Rightarrow x^2 = 4$ |
| $\iff$ | if and only if (each implies the other) | $2x = 6 \iff x = 3$ |
| $\infty$ | infinity: larger than any number (not a number itself) | $[0, \infty)$: zero or more |
| $n!$ | $n$ factorial | $4! = 4\cdot3\cdot2\cdot1 = 24$ |
An interval is an unbroken stretch of the number line. A square bracket means the end is included; a round bracket means it is left out.
- $[a, b]$: $a \le x \le b$, both ends in.
- $(a, b)$: $a \lt x \lt b$, both ends out.
- $[a, b)$: $a \le x \lt b$, left end in, right end out.
- $[a, \infty)$: $x \ge a$, no upper limit. Infinity always gets a round bracket, because no number reaches it.
Choose a bracket style and move the ends. A filled dot means the end is included; a hollow dot means it’s left out. Drag the test point onto an end and watch it switch between “in” and “not in” as you change $[\,$ to $(\,$.
Subscripts, indices and Greek letters
A small number written low, as in $x_1$, is a subscript. It’s part of the name, not arithmetic: $x_1$ is “x one”, the first of several values $x_1, x_2, x_3, \ldots$ If a batter’s scores in five matches are 30, 12, 55, 0 and 41, then $x_3 = 55$. Two subscripts, as in $a_{23}$, give a row and a column in a table (row 2, column 3).
A small number written high, as in $x^2$, is a power (“x squared”, $x \cdot x$). You’ll revise powers in the next chapter but one.
Greek letters are simply more names. Each field has favourites, so seeing the letter tells you what kind of thing it probably is:
| Letter | Name | Usually means in this course |
|---|---|---|
| $\mu$ | mu (“mew”) | a mean (average) |
| $\sigma$, $\Sigma$ | sigma (small, capital) | $\sigma$: a standard deviation; $\Sigma$: “add these up” |
| $\lambda$ | lambda | a rate (events per hour) or an eigenvalue |
| $\theta$ | theta | an angle, or an unknown quantity we want to estimate |
| $\alpha$, $\beta$ | alpha, beta | constants; $\alpha$ is also a test’s significance level |
| $\eta$ | eta | the learning rate in machine learning |
| $\varepsilon$ | epsilon | a tiny amount, or random noise |
| $\rho$ | rho | a correlation |
| $\pi$ | pi | $3.14159\ldots$, the circle constant (not a variable) |
Factorials, fractions and percentages
The factorial $n!$ multiplies every whole number from $n$ down to 1: $5! = 5\cdot4\cdot3\cdot2\cdot1 = 120$. It counts the ways to put $n$ things in order (five batters can be arranged in 120 batting orders). By agreement $0! = 1$. Factorials grow fast, so cancel before multiplying: $\dfrac{6!}{4!} = \dfrac{6\cdot5\cdot\cancel{4!}}{\cancel{4!}} = 30$.
Probabilities are written three ways, and you should switch between them without thinking: $\tfrac14 = 0.25 = 25\%$. To turn a fraction into a decimal, divide: $\tfrac38 = 3 \div 8 = 0.375$. To turn a decimal into a percentage, multiply by 100.
Translate and solve: which integers $x$ satisfy $x \in (-2, 3]$? How many are there?
Read the symbols: "$x$ is in the interval from $-2$ to $3$, with $-2$ left out and $3$ included", that is, $-2 \lt x \le 3$.
Round bracket on the left means “not included”; square bracket on the right means “included”.
“Integers” means whole numbers only. Walk along the number line from just after $-2$: $-1, 0, 1, 2, 3$.
$-2$ itself is excluded by the round bracket; $3$ is included by the square one.
There are 5 such integers.
A quick check: $[-2, 3]$ would contain 6 integers ($-2$ to $3$); removing the left end leaves 5.
How many integers lie in the interval $[-2, 3)$?
The square bracket keeps $-2$; the round bracket drops $3$. List them.
$-2, -1, 0, 1, 2$: five integers. $3$ is left out by the round bracket.
Which inequality says the same thing as $x \in (0, 1]$?
Round bracket: that end is left out (strict $\lt$). Square bracket: that end is included ($\le$).
$(0$ means $0$ is excluded, so $0 \lt x$; $1]$ means $1$ is included, so $x \le 1$. Together: $0 \lt x \le 1$.
Compute $\dfrac{5!}{3!}$.
Write $5! = 5\cdot4\cdot3!$ and cancel the $3!$.
$\dfrac{5\cdot4\cdot3!}{3!} = 5\cdot4 = 20$. (Directly: $120/6 = 20$.)
Which of these are real numbers but not integers? (Select all that apply.)
(A) $-3$ (B) $2.5$ (C) $\sqrt2$ (D) $\tfrac{7}{7}$
Simplify each one first. An integer is a whole number, negative or not.
(A) $-3$ is an integer. (B) $2.5$ is real, not whole ✓. (C) $\sqrt2 \approx 1.414$ is real, not whole ✓. (D) $\tfrac77 = 1$ is an integer.
A bowler takes a wicket in 3 of every 8 overs. Write $\tfrac38$ as a decimal.
Divide 3 by 8.
$3 \div 8 = 0.375$, which is $37.5\%$.
How many integers $n$ in the interval $(-3.5,\ 10]$ satisfy $\dfrac{n!}{(n-2)!} \le 30$? (A factorial $m!$ is defined only for whole numbers $m = 0, 1, 2, \ldots$)
First decide which $n$ make both factorials meaningful. Then cancel the factorials to get a short product and test it against 30.
Read the interval: $-3.5 \lt n \le 10$, so the integers in it are $-3, -2, \ldots, 10$.
Both $n!$ and $(n-2)!$ must be defined, so $n - 2 \ge 0$, that is $n \ge 2$. That leaves $n = 2, 3, \ldots, 10$.
Cancel: $\dfrac{n!}{(n-2)!} = \dfrac{n(n-1)\,(n-2)!}{(n-2)!} = n(n-1)$.
Test: $2\cdot1 = 2$, $3\cdot2 = 6$, $4\cdot3 = 12$, $5\cdot4 = 20$, $6\cdot5 = 30$ are all at most 30, but $7\cdot6 = 42 \gt 30$, and the product only grows from there.
So $n = 2, 3, 4, 5, 6$: 5 integers. (Counting 7 means $n = 0$ and $n = 1$ slipped in, where $(n-2)!$ has no meaning.)
In 2025 the Nagpur Neural Nets won 40% of their 25 matches. In 2026 they played 20% more matches and won 50% of them. By what percentage did their number of wins rise from 2025 to 2026?
- 10%
- 25%
- 50%
- 45%
Turn each percentage into an actual number of matches and wins before comparing anything. A percentage rise is (new − old) ÷ old.
2025 wins: $0.40 \times 25 = 10$.
2026 matches: $25 \times 1.20 = 30$. 2026 wins: $0.50 \times 30 = 15$.
Rise: $\dfrac{15 - 10}{10} = 0.5 = 50\%$. Answer (C).
(A) subtracts the win rates, $50 - 40 = 10$ percentage points, which is not a rise in wins. (B) compares the win rates, $50/40 = 1.25$, and forgets that more matches were played. (D) adds the two growth rates, $20\% + 25\%$; growth factors multiply instead: $1.20 \times 1.25 = 1.50$.
Which of the following is/are true?
- $\dfrac{10!}{8!\,2!} + \dfrac{4!}{0!} = 69$.
- The interval $[2, 5)$ contains 4 integers.
- If $x_1 = 4$, $x_2 = -1$ and $x_3 = 7$, then $x_2^2 - x_1 x_3 = -27$.
- $x^2 = 9 \iff x = 3$.
Cancel factorials before multiplying, and remember the agreed value of $0!$. Read a subscript as part of a name and a superscript as a power. For a two-way arrow, check both directions.
(A) True. $\dfrac{10!}{8!\,2!} = \dfrac{10\cdot 9}{2} = 45$ and $\dfrac{4!}{0!} = \dfrac{24}{1} = 24$, so the total is $69$.
(B) False. $[2, 5)$ means $2 \le x \lt 5$, so the integers are $2, 3, 4$: three of them. The round bracket leaves 5 out.
(C) True. $x_2^2 = (-1)^2 = 1$ and $x_1x_3 = 4\cdot7 = 28$, so $1 - 28 = -27$.
(D) False. $x = 3 \Rightarrow x^2 = 9$ is true, but $x^2 = 9$ also allows $x = -3$, so the arrow fails in the other direction.
Correct: A, C.
- Read every symbol aloud in words before doing anything else.
- Check the brackets on an interval: square means the end counts, round means it doesn’t.
- Cancel factorials before multiplying them out.
- Reading $x_2$ as “x times 2” or “x squared”. A subscript is part of the name.
- Writing $[0, \infty]$. Infinity is never included, so it always gets a round bracket.
- Assuming $\Rightarrow$ works backwards. "$A \Rightarrow B$" says nothing about whether $B \Rightarrow A$.
- ℕ ⊂ ℤ ⊂ ℚ ⊂ ℝ: counting numbers, integers, fractions, and every point on the number line. “x ∈ ℝ” reads “x is a real number”.
- Intervals: square bracket = end included, round bracket = end left out; ∞ always gets a round bracket.
- Subscripts are names (x₁ is “the first x”), superscripts are powers, Greek letters are just more names, and n! = n·(n−1)·…·1 with 0! = 1.
Which number is in $[2, 5)$ but not in $(2, 5)$?
In a list of scores $x_1, x_2, \ldots, x_{10}$, what is $x_3$?
$0!$ equals
$|-7| + |2|$ equals
Functions: machines that turn one number into another
A function takes an input number and returns exactly one output number, and its graph is a picture of every input–output pair at once.
Probability distributions, loss functions, activation functions, eigenvalue equations: almost everything in GATE DA is a function. Reading one quickly is a skill you’ll use in every module.
It’s like a vending machine: press button B4 and you always get the same snack. Same input, same output, every time.
Rarely asked on its own, but used everywhere. Piecewise functions describe distributions and activations; you’ll need to read them fluently.
Suppose the Data Premier League charges ₹200 per ticket, plus a ₹50 booking fee per order. If you buy $x$ tickets, you pay $200x + 50$ rupees. That rule is a function. We give it a name, say $f$, and write
$$f(x) = 200x + 50.$$Read $f(x)$ as “f of x”: the output when the input is $x$. So $f(3) = 200\cdot 3 + 50 = 650$. The letter $x$ is just a placeholder; $f(t) = 200t + 50$ is the same function.
The graph of $f$ is the set of all points $(x, f(x))$ drawn on a grid. The horizontal axis holds inputs and the vertical axis holds outputs. A graph lets you see a function’s whole behaviour at once: where it rises, where it falls, where it crosses zero.
A function $f$ assigns to each allowed input $x$ exactly one output $f(x)$. The set of allowed inputs is the domain. "$f:\R\to\R$“ reads ”f takes a real number to a real number": inputs are real numbers, outputs are real numbers.
The five shapes you’ll meet constantly
- Line $f(x) = mx + c$. The slope $m$ says how much the output rises per unit step right; $c$ is where it crosses the vertical axis. Through two points $(x_1, y_1)$ and $(x_2, y_2)$ the slope is “rise over run”, $m = \dfrac{y_2 - y_1}{x_2 - x_1}$. The ticket function passes through $(1, 250)$ and $(3, 650)$, so $m = \dfrac{650 - 250}{3 - 1} = 200$: each extra ticket adds ₹200.
- Parabola $f(x) = ax^2 + bx + c$. A U shape if $a \gt 0$, an upside-down U if $a \lt 0$. Its turning point (the vertex) sits at $x = -\dfrac{b}{2a}$.
- Absolute value $|x|$: “drop the minus sign”. $|{-3}| = 3$, $|3| = 3$. Its graph is a V. Geometrically, $|a - b|$ is the distance between $a$ and $b$ on the number line.
- ReLU $\max(0, x)$: zero for negative inputs, the input itself otherwise. It’s the most common activation function in neural networks.
- Piecewise functions use different rules on different stretches of the input. ReLU is one; so is the ticket function above if bulk orders get a discount.
Pick a shape and move the sliders. Watch how each number changes the graph: for the parabola, see the vertex move as you change $b$; for the piecewise one, find where the graph reaches height ½ (you’ll need that in the GATE question below).
Solving equations and inequalities
"Solve $f(x) = k$" means: which inputs give output $k$? On the graph, draw a horizontal line at height $k$ and read off where it hits the curve.
- Linear: $200x + 50 = 1050$ ⇒ $200x = 1000$ ⇒ $x = 5$. Do the same thing to both sides until $x$ is alone.
- Quadratic: $ax^2 + bx + c = 0$ has solutions $x = \dfrac{-b \pm \sqrt{b^2 - 4ac}}{2a}$. The part under the root, $b^2 - 4ac$, is the discriminant: positive means two real roots, zero means one, negative means none (the parabola never touches the axis). You’ll meet this again with eigenvalues.
- Inequalities work like equations, with one twist: multiplying or dividing both sides by a negative number flips the sign. $-2x \gt 6$ ⇒ $x \lt -3$.
Let $X$ be a continuous random variable whose cumulative distribution function (CDF) $F_X(x)$, for some $t$, is given as follows:
$$F_X(x) = \begin{cases} 0 & x \le t \\ \dfrac{x-t}{4-t} & t \le x \le 4 \\ 1 & x \ge 4 \end{cases}$$If the median of $X$ is 3, then what is the value of $t$?
- 2
- 1
- −1
- 0
You don’t need to know what a CDF is yet (that’s Probability, Part 3). All you need: the median is the input where $F_X$ equals ½. Everything else is reading a piecewise function and solving an equation.
The median is 3, so $F_X(3) = \tfrac12$.
This is the one fact we’re given. It turns the question into an equation.
Which piece applies at $x = 3$? The middle one, as long as $t \le 3 \le 4$. So $\dfrac{3-t}{4-t} = \dfrac12$.
A piecewise function uses different formulas on different stretches. The outer pieces are flat at 0 and 1, and neither can equal ½, so it must be the middle piece.
Cross-multiply: $2(3 - t) = 4 - t$ ⇒ $6 - 2t = 4 - t$ ⇒ $t = 2$.
Safe for an equation. Collect the $t$ terms on one side: $6 - 4 = 2t - t$.
Check: $t = 2 \le 3 \le 4$ ✓, and $F_X(3) = \tfrac{1}{2}$ ✓. Answer (A) 2.
Always check that your answer is consistent with the assumption you made in step 2 (here, that 3 lies in the middle piece). On GATE, plugging your answer back in costs ten seconds and catches most slips. The official key agrees: (A).
Go deeper: why the vertex is at −b/(2a)
Complete the square: $ax^2 + bx + c = a\left(x + \frac{b}{2a}\right)^2 + c - \frac{b^2}{4a}$. A square is never negative, so if $a \gt 0$ the smallest value happens when the bracket is zero, at $x = -\frac{b}{2a}$. The same algebra, set equal to zero, gives the quadratic formula. In the calculus refresher you’ll get the same answer by setting the slope $2ax + b$ to zero.
Warm-up. With $f(x) = 200x + 50$ (the ticket cost above), how many tickets did someone buy if they paid ₹1450?
Solve $200x + 50 = 1450$: subtract 50, then divide by 200.
$200x = 1400$, so $x = 7$. Check: $200\cdot7 + 50 = 1450$ ✓.
Warm-up. A line passes through $(2, 5)$ and $(6, 13)$. What is its slope?
Rise over run: (change in $y$) ÷ (change in $x$).
$\dfrac{13 - 5}{6 - 2} = \dfrac{8}{4} = 2$. Each step right raises the line by 2.
For $f(x) = x^2 - 6x + 5$, where is the vertex, and what is the lowest value $f$ reaches?
Vertex at $x = -b/(2a)$ with $a = 1$, $b = -6$. Then plug that $x$ back into $f$.
$x = -(-6)/(2\cdot 1) = 3$. Then $f(3) = 9 - 18 + 5 = -4$. Since $a = 1 \gt 0$ the parabola opens upward, so $-4$ is its lowest value.
Solve $2x^2 - 3x - 2 = 0$. Enter the larger root.
Use $x = \frac{-b \pm \sqrt{b^2-4ac}}{2a}$ with $a=2$, $b=-3$, $c=-2$.
Discriminant $= 9 + 16 = 25$, so $x = \frac{3 \pm 5}{4}$: $x = 2$ or $x = -\tfrac12$. The larger root is $2$. Check: $2\cdot4 - 6 - 2 = 0$ ✓.
Which describes every $x$ with $-3x + 6 \gt 0$?
Move the 6 across, then divide by −3, and remember what dividing by a negative does to the inequality sign.
$-3x \gt -6$. Divide by $-3$ and flip the sign: $x \lt 2$. Check with $x = 0$: $6 \gt 0$ ✓; with $x = 3$: $-3 \gt 0$ ✗.
A piecewise function is $f(x) = x + 1$ for $x \lt 1$ and $f(x) = ax$ for $x \ge 1$. For which $a$ do the two pieces meet at $x = 1$ (so the graph has no jump)?
The left piece is heading towards $1 + 1$ as $x$ approaches 1. The right piece is $a \cdot 1$ at $x = 1$. Make them equal.
Left piece at $x=1$: $1 + 1 = 2$. Right piece: $a \cdot 1 = a$. No jump means $a = 2$. This “make the pieces agree at the boundary” idea is exactly how GATE 2024 Q37 starts, which you’ll solve in Calculus 1.2.
A function is defined in pieces: $f(x) = kx$ for $0 \le x \lt 2$, $f(x) = k(4 - x)$ for $2 \le x \le 4$, and $f(x) = 0$ everywhere else, where $k \gt 0$ is a constant. The total area between the graph of $f$ and the $x$-axis is 1. Find the area under the graph between $x = 0$ and $x = 3$.
Sketch it: the graph is a triangle. Use the total area to find $k$. Then the small area to the right of $x = 3$ is easier to find, and you can subtract it.
Both pieces give height $2k$ at $x = 2$, and the graph is at 0 at $x = 0$ and $x = 4$. So the graph is a triangle with base 4 and height $2k$.
Total area $= \tfrac12 \cdot 4 \cdot 2k = 4k = 1$, so $k = \tfrac14$.
To the right of $x = 3$ is a small triangle with base 1 (from 3 to 4) and height $f(3) = \tfrac14(4 - 3) = \tfrac14$. Its area is $\tfrac12 \cdot 1 \cdot \tfrac14 = \tfrac18$.
Area from 0 to 3: $1 - \tfrac18 = \tfrac78 =$ 0.875. This is exactly how a probability density works: you’ll meet this triangle again in Probability.
How many integers $x$ satisfy $x^2 - 5|x| + 4 \lt 0$?
Since $x^2 = |x|^2$, write $t = |x|$. The inequality becomes a quadratic in $t$. Factorise it and ask where a U-shaped parabola dips below zero.
Because $x^2 = |x|^2$, put $t = |x| \ge 0$: the inequality is $t^2 - 5t + 4 \lt 0$, that is $(t - 1)(t - 4) \lt 0$.
This parabola opens upward and crosses zero at $t = 1$ and $t = 4$, so it is negative strictly between them: $1 \lt t \lt 4$.
Whole-number values: $t = 2$ or $t = 3$. Each gives two values of $x$: $|x| = 2$ gives $x = \pm 2$ and $|x| = 3$ gives $x = \pm 3$.
Check: $x = 2$ gives $4 - 10 + 4 = -2 \lt 0$; $x = 1$ gives $1 - 5 + 4 = 0$, which is not below zero. Answer: 4 integers ($-3, -2, 2, 3$). Getting 2 means forgetting the negative solutions of $|x| = t$.
Let $f(x) = |x - 2| + |x + 1|$. Which of the following is/are true?
- The smallest value of $f$ is 3.
- The equation $f(x) = 5$ has exactly two solutions.
- $f$ reaches its smallest value at exactly one point.
- $f(x) = 2x - 1$ for every $x \ge 0$.
$|x - a|$ is the distance from $x$ to $a$, so $f(x)$ is the total distance from $x$ to 2 and to $-1$. Split the number line at $-1$ and $2$ and write $f$ without bars on each piece.
On each stretch, drop the bars with the right sign:
- $x \lt -1$: $f(x) = (2 - x) + (-1 - x) = 1 - 2x$.
- $-1 \le x \le 2$: $f(x) = (2 - x) + (x + 1) = 3$.
- $x \gt 2$: $f(x) = (x - 2) + (x + 1) = 2x - 1$.
(A) True. On the left piece $1 - 2x \gt 3$, on the right piece $2x - 1 \gt 3$, and the middle piece is exactly 3.
(B) True. The middle piece is never 5. Left: $1 - 2x = 5$ gives $x = -2$, which is below $-1$ ✓. Right: $2x - 1 = 5$ gives $x = 3$, which is above 2 ✓.
(C) False. Every $x$ in $[-1, 2]$ gives 3: a point between $-1$ and $2$ is always 3 away from the two ends in total.
(D) False. The formula $2x - 1$ holds only for $x \ge 2$. At $x = 1$, $f(1) = 1 + 2 = 3$, but $2(1) - 1 = 1$.
Correct: A, B.
- Sketch the graph, even roughly, before solving. A picture tells you how many answers to expect.
- For a piecewise function, first decide which piece applies, then use only that formula.
- Plug your answer back in. It’s the cheapest check there is.
- Forgetting to flip the inequality sign when multiplying or dividing by a negative number.
- Writing $\sqrt{b^2 - 4ac}$ as $b - 2\sqrt{ac}$. Square roots don’t split over a minus.
- Reading $f(x+1)$ as $f(x) + 1$. The first changes the input; the second changes the output.
- A function gives exactly one output per input; its graph shows all of them at once.
- Lines, parabolas, |x|, max(0, x) and piecewise rules cover most of what GATE uses. The parabola’s vertex is at x = −b/(2a).
- Solving f(x) = k means finding where a horizontal line at height k meets the graph. For piecewise functions, pick the right piece first.
If $f(x) = 3x - 4$, what is $f(2) + f(0)$?
The parabola $y = -2x^2 + 8x + 1$ has its vertex at
$\max(0, x)$ (ReLU) evaluated at $x = -3$ and at $x = 3$ gives
The equation $x^2 + 2x + 5 = 0$ has how many real solutions?
Exponentials and logarithms: growth, decay and undoing them
An exponential multiplies by the same factor at every step; a logarithm undoes that, answering “how many steps does it take?”
The exponential distribution has appeared in every GATE DA paper so far, and you can’t touch it without $e^{-\lambda x}$ and $\ln$. The sigmoid in logistic regression and the entropy in decision trees are built from the same pieces.
It’s like a rumour: each person tells two more, so the count doubles every round. The exponential tells you how many people know after 10 rounds; the logarithm tells you how many rounds until a million people know.
Every paper. Most often inside exponential-distribution questions, where you solve $e^{-\lambda x} = p$ for $\lambda$ or $x$.
Powers first
$2^5$ means five 2s multiplied together: $2\cdot2\cdot2\cdot2\cdot2 = 32$. The small raised number is the exponent. Five rules cover nearly everything:
| Rule | Example | Why |
|---|---|---|
| $a^m \cdot a^n = a^{m+n}$ | $2^3\cdot 2^2 = 2^5$ | 3 twos then 2 more twos |
| $(a^m)^n = a^{mn}$ | $(2^3)^2 = 2^6$ | two groups of three twos |
| $a^0 = 1$ | $7^0 = 1$ | $a^n / a^n = a^{n-n}$ |
| $a^{-n} = 1/a^n$ | $2^{-3} = 1/8$ | dividing undoes multiplying |
| $a^{1/2} = \sqrt a$ | $9^{1/2} = 3$ | $(a^{1/2})^2 = a^1$ |
More generally, $a^{1/n}$ is the $n$th root: $8^{1/3} = 2$ because $2^3 = 8$. And $a^{m/n} = (a^{1/n})^m$, so $8^{2/3} = 2^2 = 4$.
The special number e
Mathematicians favour one base above all others: $e \approx 2.71828$. It’s the base where the slope of $e^x$ at any point equals its height. That makes calculus with $e^x$ unusually clean (you’ll see why in the derivatives chapter). On GATE, almost every exponential is written with base $e$.
- Growth $e^{x}$: shoots up quickly as $x$ increases.
- Decay $e^{-\lambda x}$ with $\lambda \gt 0$: starts at 1 when $x = 0$ and slides towards 0, never reaching it. Bigger $\lambda$ means faster decay. In GATE, $e^{-\lambda x}$ is the probability that a waiting time is longer than $x$.
$\log_b y$ is the exponent you put on $b$ to get $y$: $$\log_b y = x \iff b^x = y.$$ The natural log $\ln$ is $\log_e$. So $\ln e^3 = 3$, $e^{\ln 5} = 5$, $\log_2 32 = 5$, $\log_{10} 1000 = 3$. Logs exist only for positive $y$.
- $\ln(ab) = \ln a + \ln b$ (multiplying adds exponents)
- $\ln(a/b) = \ln a - \ln b$
- $\ln(a^k) = k\ln a$, so $\ln(1/4) = -\ln 4$
- $\ln 1 = 0$, $\ln e = 1$
- Change of base: $\log_2 x = \dfrac{\ln x}{\ln 2}$
The curve shows $e^{-\lambda x}$. Drag the dot along the curve, or change $\lambda$. Notice the “half-life”: the $x$ where the curve hits 0.5 is always $\ln 2 / \lambda$. Switch to the second view to see that $e^x$ and $\ln x$ are mirror images: one undoes the other.
The Kalinga Kernels’ bowling machine fails at random; the chance it survives more than $x$ hours is $e^{-0.5x}$. Roughly how long until that chance drops to 25%?
Take $\ln$ of both sides: $-0.5x = \ln 0.25 = -\ln 4$, so $x = 2\ln 4 \approx 2.77$ hours. Notice the pattern: to free an exponent, take the log. The two half-lives ($\ln2/0.5 \approx 1.39$ each) multiply the survival chance by ½ twice: ½ · ½ = ¼.
It is given that $P(X \ge 2) = 0.25$ for an exponentially distributed random variable $X$ with $E[X] = \dfrac{1}{\lambda}$, where $E[X]$ denotes the expectation of $X$. What is the value of $\lambda$? ($\ln$ denotes natural logarithm)
- $\ln 2$
- $\ln 4$
- $\ln 3$
- $\ln 0.25$
One fact from Probability, Part 4: for an exponential random variable, $P(X \ge x) = e^{-\lambda x}$. With that, this is purely an exponentials-and-logs question.
Write the given fact as an equation: $e^{-2\lambda} = 0.25$.
Substitute $x = 2$ into $P(X \ge x) = e^{-\lambda x}$.
Take $\ln$ of both sides: $-2\lambda = \ln 0.25$.
$\ln$ undoes $e^{(\cdot)}$, which frees the exponent.
$\ln 0.25 = \ln(1/4) = -\ln 4$, so $-2\lambda = -\ln 4$, i.e. $\lambda = \tfrac12\ln 4$.
The rule $\ln(1/a) = -\ln a$.
$\tfrac12\ln 4 = \ln 4^{1/2} = \ln 2$. Answer (A).
$k\ln a = \ln a^k$ with $k = \tfrac12$. Option (D) is a trap: $\ln 0.25$ is negative, and a rate $\lambda$ must be positive. Official key: (A).
Go deeper: where e comes from
Invest ₹1 at 100% yearly interest, compounded $n$ times a year: you end with $(1 + 1/n)^n$. With $n = 1$ that’s 2; $n = 12$ gives 2.613; $n = 365$ gives 2.7146; and as $n \to \infty$ it approaches $e = 2.71828\ldots$ The same limit, $(1 + x/n)^n \to e^x$, is behind the Poisson distribution, which you’ll meet in Probability, Part 4.
Warm-up. Compute $8^{2/3}$.
Take the cube root first ($8^{1/3}$), then square it.
$8^{1/3} = 2$ and $2^2 = 4$. Doing it the other way round also works: $8^2 = 64$ and $\sqrt[3]{64} = 4$.
Warm-up. Write $10^{-2}$ as a decimal.
A negative exponent means “one over”: $10^{-2} = 1/10^2$.
$10^{-2} = \dfrac{1}{100} = 0.01$.
Simplify $\ln\!\left(e^3 \cdot e^{-1}\right)$.
Combine the powers of $e$ first: $e^a \cdot e^b = e^{a+b}$.
$e^3 \cdot e^{-1} = e^{2}$, and $\ln e^2 = 2$.
Solve $e^{-0.5x} = 0.25$ for $x$ (a decimal is fine).
Take $\ln$ of both sides and use $\ln 0.25 = -\ln 4$.
$-0.5x = -\ln 4$, so $x = 2\ln 4 = 4\ln 2 \approx 2.773$.
Compute $\log_2 32 + \log_2 \tfrac18$.
$32 = 2^5$ and $\tfrac18 = 2^{-3}$.
$5 + (-3) = 2$. Or combine first: $\log_2(32/8) = \log_2 4 = 2$.
Which of these equal $\ln 8$? (Select all that apply.)
(A) $3\ln 2$ (B) $\ln 2 + \ln 4$ (C) $\ln 4 \cdot \ln 2$ (D) $\ln 16 - \ln 2$
Logs turn products into sums and quotients into differences. Is there a rule that turns a product of logs into anything nice?
(A) $3\ln2 = \ln 2^3 = \ln 8$ ✓. (B) $\ln(2\cdot4) = \ln 8$ ✓. (C) There is no rule for multiplying two logs: $\ln 4\cdot\ln 2 \approx 0.961$, but $\ln 8 \approx 2.079$ ✗. (D) $\ln(16/2) = \ln 8$ ✓.
Solve $\log_2 x + \log_2(x - 2) = 3$.
Combine the two logs into one, then undo the log by raising 2 to the power of each side. You’ll get a quadratic: check each root against the inputs a log can accept.
Product rule: $\log_2\big(x(x - 2)\big) = 3$, so $x(x - 2) = 2^3 = 8$.
$x^2 - 2x - 8 = 0$ factorises as $(x - 4)(x + 2) = 0$, so $x = 4$ or $x = -2$.
A log only accepts positive inputs, so we need $x \gt 0$ and $x - 2 \gt 0$, that is $x \gt 2$. The root $x = -2$ is not allowed: $\log_2(-2)$ has no meaning.
Check $x = 4$: $\log_2 4 + \log_2 2 = 2 + 1 = 3$ ✓. Answer: 4.
A model’s validation error after $t$ training epochs is $E(t) = 80\,e^{-kt}$ for some constant $k \gt 0$. After 5 epochs the error is 20. After how many whole epochs does the error first drop to 1 or below?
Use $E(5) = 20$ to find $k$ (you’ll need $\ln$). Then solve $80e^{-kt} \le 1$ for $t$, watch the direction of the inequality, and round in the safe direction.
Find $k$: $80e^{-5k} = 20$ gives $e^{-5k} = \tfrac14$, so $-5k = -\ln 4$ and $k = \dfrac{\ln 4}{5} \approx 0.2773$.
Solve: $80e^{-kt} \le 1$ means $e^{-kt} \le \tfrac{1}{80}$. Taking $\ln$ (which keeps the direction, because $\ln$ is increasing): $-kt \le -\ln 80$, so $t \ge \dfrac{\ln 80}{k} = \dfrac{5\ln 80}{\ln 4} \approx \dfrac{5 \times 4.382}{1.386} \approx 15.80$.
The first whole epoch is 16. Check: the error quarters every 5 epochs, $80 \to 20 \to 5 \to 1.25$, so $E(15) = 1.25 \gt 1$, while $E(16) \approx 0.947 \le 1$. Answer: 16.
A leaf of a decision tree holds four classes in proportions $p_1 = \tfrac12$, $p_2 = \tfrac14$, $p_3 = \tfrac18$, $p_4 = \tfrac18$. Its entropy is $H = -\sum_{i=1}^{4} p_i \log_2 p_i$. What is $H$?
- 1.213
- −1.75
- 1.75
- 2
Write each $p_i$ as a power of 2, so that each $\log_2 p_i$ is a whole number. Then mind the minus sign in front of the sum.
$\log_2 \tfrac12 = -1$, $\log_2 \tfrac14 = -2$, $\log_2 \tfrac18 = -3$.
The terms $p_i \log_2 p_i$ are $-\tfrac12$, $-\tfrac12$, $-\tfrac38$, $-\tfrac38$, which add to $-1.75$.
$H = -(-1.75) = 1.75$. Answer (C).
(A) uses $\ln$ instead of $\log_2$: $1.75\ln 2 \approx 1.213$. (B) drops the leading minus sign. (D) is $\log_2 4$, the entropy if all four classes were equally common; uneven proportions give less.
- To solve for something in an exponent, take $\ln$ of both sides.
- Write probabilities like 0.25 as fractions (1/4) before taking logs; the answer often becomes a clean $\ln 2$ or $\ln 4$.
- Sanity-check signs: a decay rate $\lambda$ and a time $x$ are positive.
- $\ln(a + b) = \ln a + \ln b$. False: logs split products, not sums.
- $(\ln a)^2 = \ln(a^2)$. False: $\ln(a^2) = 2\ln a$.
- Taking the log of zero or a negative number. It isn’t defined.
- Exponent rules: multiplying adds exponents, powers multiply them, and negative exponents mean reciprocals.
- A logarithm undoes an exponential: ln(eˣ) = x. Log rules are the exponent rules in disguise.
- e^(−λx) starts at 1 and decays; solving e^(−λx) = p gives x = −ln(p)/λ. This is the core move in GATE’s exponential questions.
$\dfrac{2^{10}}{2^{7}}$ equals
If $e^{-\lambda \cdot 5} = 0.35$, then $e^{-\lambda \cdot 10}$ is
$\log_2 x = \dfrac{\ln x}{\ln 2}$. Using $\ln 2 \approx 0.693$, $\log_2 e$ is about
Which statement about $f(x) = e^{-2x}$ for $x \ge 0$ is true?
$f(x) = |x - 3|$. How many inputs $x$ give $f(x) = 2$?
Solve $e^{-3\lambda} = \tfrac18$ for $\lambda$.
$g(x) = \max(0, \ln x)$ for $x \gt 0$. What is $g(0.5) + g(e^2)$?
A CDF-style function is $F(x) = (x - 1)/3$ for $1 \le x \le 4$. Where does it equal 0.5?