GATE GUIDE

GATE CSE Engineering Mathematics Formula Sheet: Counting to Calculus

By MD ANISH AHAMADUpdated 4 Oct 20267 min read
GATE CSE Engineering Mathematics Formula Sheet: Counting to Calculus

Engineering Mathematics in GATE CSE rewards a small set of exact formulas: counting rules, relation counts, graph bounds, eigenvalue properties, named distributions and a few calculus results. The official pattern gives the section about 13 of the 100 marks; check the current notification. This sheet goes deeper than the general GATE CSE formula sheet, with a one-line worked example and the trap for every formula.

In this guide
  1. Key takeaways
  2. The terms this sheet uses
  3. Counting functions and arrangements
  4. Counting relations on an n-element set
  5. Linear recurrences
  6. Graph theory bounds and counts
  7. Linear algebra: eigenvalues, determinants and rank
  8. Probability: conditioning, expectation and distributions
  9. Calculus: limits, extrema and integrals
  10. Quick revision

Key takeaways

The terms this sheet uses

Counting functions and arrangements

Most counting questions are one of these rules with a twist in the condition.

Formula One-line example Watch out for
All functions: nmn^{m} 3-set to 2-set: 23=82^{3} = 8 Base is the codomain size
Injective: n!(n−m)!\displaystyle \dfrac{n!}{(n - m)!} 3-set to 5-set: 5×4×3=605 \times 4 \times 3 = 60 Zero when m>nm > n
Onto: ∑k=0n(−1)k(nk)(n−k)m\sum_{k=0}^{n} (-1)^{k} \binom{n}{k} (n - k)^{m} 4-set to 2-set: 16−2=1416 - 2 = 14 6-set to 3-set is 540, not 363^{6}
Derangements: Dn=n!∑k=0n(−1)kk!\displaystyle D_n = n! \sum_{k=0}^{n} \dfrac{(-1)^{k}}{k!} D4=9D_4 = 9; sequence 1, 0, 1, 2, 9, 44, 265 Starts at n=0n = 0
Stars and bars: (n+k−1k−1)\binom{n + k - 1}{k - 1} x1+x2+x3=5x_1 + x_2 + x_3 = 5: (72)=21\binom{7}{2} = 21 Non-negative solutions only
Pigeonhole: some box holds ≥⌈n/k⌉\ge \lceil n/k \rceil 25 objects, 6 boxes: some box has 5 To force k+1k + 1 in one box you need k×boxes+1k \times \text{boxes} + 1
Non-adjacent kk-subsets of {1,…,n}\{1, \dots, n\}: (n−k+1k)\binom{n - k + 1}{k} n=6n = 6, k=2k = 2: (52)=10\binom{5}{2} = 10 Check against 15−515 - 5 adjacent pairs
Binary strings with no two adjacent 1s: Fn+2F_{n+2} Length 4: F6=8F_6 = 8 Fix the Fibonacci indexing first

Trap: In inclusion and exclusion, subtract every pairwise intersection once and add every triple back once. Double-subtracting an intersection is the usual slip.

Counting relations on an n-element set

There are n2n^{2} ordered pairs, and each condition fixes or ties some of them. With n=3n = 3 the counts are easy to check by hand.

Relations of this kind Formula Value for n=3n = 3
All 2n22^{n^{2}} 512
Reflexive 2n2−n2^{n^{2} - n} 64
Symmetric 2n(n+1)/22^{n(n+1)/2} 64
Reflexive and symmetric 2n(n−1)/22^{n(n-1)/2} 8
Antisymmetric 2n×3n(n−1)/22^{n} \times 3^{n(n-1)/2} 216
Asymmetric 3n(n−1)/23^{n(n-1)/2} 27
Equivalence Bell number: 1, 1, 2, 5, 15, 52, 203 5

For groups, Lagrange's theorem says the order of a subgroup divides the order of the group. The cyclic group Zn\mathbb{Z}_n has φ(n)\varphi(n) generators and τ(n)\tau(n) subgroups, so Z12\mathbb{Z}_{12} has 4 generators and 6 subgroups.

Linear recurrences

For an=p an−1+q an−2a_n = p\,a_{n-1} + q\,a_{n-2}, solve the characteristic equation r2−pr−q=0r^{2} - pr - q = 0. Distinct roots give an=Ar1n+Br2na_n = A r_1^{n} + B r_2^{n}, and a repeated root gives an=(A+Bn) rna_n = (A + Bn)\,r^{n}.

Worked example. For an=5an−1−6an−2a_n = 5a_{n-1} - 6a_{n-2}, the equation is r2−5r+6=0r^{2} - 5r + 6 = 0, so r=2,3r = 2, 3 and an=A⋅2n+B⋅3na_n = A \cdot 2^{n} + B \cdot 3^{n}.

Graph theory bounds and counts

Formula One-line example Watch out for
∑deg⁡(v)=2e\sum \deg(v) = 2e 10 vertices of degree 3: e=15e = 15 An odd degree sum is impossible
Connected planar: v−e+f=2v - e + f = 2 v=8v = 8, e=12e = 12: f=6f = 6 ff counts the outer face
Planar, v≥3v \ge 3: e≤3v−6e \le 3v - 6 v=10v = 10: e≤24e \le 24 Necessary, not sufficient
Bipartite planar: e≤2v−4e \le 2v - 4 K3,3K_{3,3}: 9>89 > 8, so non-planar Use this, not 3v−63v - 6, for triangle-free graphs
Spanning trees: KnK_n has nn−2n^{n-2}; Km,nK_{m,n} has mn−1nm−1m^{n-1} n^{m-1} K4K_4: 16; K2,3K_{2,3}: 12 CnC_n has nn
Disconnected simple graph: at most (n−12)\binom{n-1}{2} edges n=6n = 6: 10 edges One more edge forces connectivity
χ(Cn)=2\chi(C_n) = 2 or 3; χ(Kn)=n\chi(K_n) = n; planar χ≤4\chi \le 4 C5C_5: 3 Bipartite iff no odd cycle

Remember: "A graph with n−1n - 1 edges" is not enough to make a tree. It must also be connected or acyclic. The graph theory question guide shows how these bounds are asked.

The book's last-minute revision sheet gives the full mathematics table, including lattices, colouring bounds, perfect matchings and generating functions, each with when it applies and its trap. It is part of the GATE CSE 2027 book.

Linear algebra: eigenvalues, determinants and rank

Eigenvalue questions rarely need the characteristic polynomial. Two facts usually suffice: the eigenvalues sum to the trace and multiply to the determinant.

Worked example. A 2×22 \times 2 matrix with trace 7 and determinant 10 has eigenvalues 2 and 5, since λ2−7λ+10=0\lambda^{2} - 7\lambda + 10 = 0. Then A2A^{2} has 4 and 25, A−1A^{-1} has 12\displaystyle \tfrac{1}{2} and 15\displaystyle \tfrac{1}{5}, and A+3IA + 3I has 5 and 8.

Formula One-line example Watch out for
det⁡(kA)=kndet⁡A\det(kA) = k^{n} \det A 3×33 \times 3, det⁡A=4\det A = 4: det⁡(2A)=32\det(2A) = 32 Not 2×42 \times 4
det⁡(adj⁡A)=(det⁡A)n−1\det(\operatorname{adj} A) = (\det A)^{n-1} 3×33 \times 3, det⁡A=4\det A = 4: 16 Power is n−1n - 1
Nullity =n−rank⁡(A)= n - \operatorname{rank}(A) 4×44 \times 4 of rank 3: nullity 1 Homogeneous systems have n−rankn - \text{rank} independent solutions
Unique solution iff rank⁡(A)=rank⁡([A:b])=n\operatorname{rank}(A) = \operatorname{rank}([A : b]) = n Ranks 3, 3 and n=3n = 3: unique Compare the augmented rank, not just det⁡A=0\det A = 0

The linear algebra question guide works through these cases.

Probability: conditioning, expectation and distributions

Bayes' rule turns a forward probability into a backward one. The denominator is the total probability of the evidence:

P(Ai∣B)=P(B∣Ai) P(Ai)∑jP(B∣Aj) P(Aj)P(A_i \mid B) = \frac{P(B \mid A_i)\,P(A_i)}{\sum_j P(B \mid A_j)\,P(A_j)}

Worked example. Machine A makes 60% of items with 2% defective, and machine B makes 40% with 5% defective. For a defective item, P(A∣D)=0.0120.012+0.020=0.375\displaystyle P(A \mid D) = \dfrac{0.012}{0.012 + 0.020} = 0.375.

Variance is Var(X)=E[X2]−(E[X])2\text{Var}(X) = E[X^{2}] - (E[X])^{2}. If E[X]=2E[X] = 2 and E[X2]=7E[X^{2}] = 7, then Var(X)=3\text{Var}(X) = 3 and Var(2X+5)=4×3=12\text{Var}(2X + 5) = 4 \times 3 = 12.

Distribution Mean and variance One-line example
Uniform(a,b)\text{Uniform}(a, b) a+b2\displaystyle \dfrac{a + b}{2}, (b−a)212\displaystyle \dfrac{(b - a)^{2}}{12} (0,6)(0, 6): mean 3, variance 3
Exponential(λ)\text{Exponential}(\lambda) 1λ\displaystyle \dfrac{1}{\lambda}, 1λ2\displaystyle \dfrac{1}{\lambda^{2}} λ=0.5\lambda = 0.5: mean 2, variance 4
Poisson(λt)\text{Poisson}(\lambda t): P(k)=e−λt(λt)kk!\displaystyle P(k) = \dfrac{e^{-\lambda t} (\lambda t)^{k}}{k!} λt\lambda t, λt\lambda t 3 per hour, 20 minutes: P(0)=e−1≈0.368P(0) = e^{-1} \approx 0.368
Binomial(n,p)\text{Binomial}(n, p) npnp, np(1−p)np(1 - p) n=10n = 10, p=0.3p = 0.3: 3 and 2.1
Geometric(p)\text{Geometric}(p) 1p\displaystyle \dfrac{1}{p}, 1−pp2\displaystyle \dfrac{1 - p}{p^{2}} p=0.25p = 0.25: 4 and 12
Normal About 68, 95 and 99.7% within 1, 2 and 3 σ\sigma P(X>μ)=0.5P(X > \mu) = 0.5

Trap: "At least one six in two throws" is 1136\displaystyle \tfrac{11}{36}, while "exactly one six" is 1036\displaystyle \tfrac{10}{36}. More questions on this are in the probability question guide.

Calculus: limits, extrema and integrals

Formula One-line example Watch out for
(1+an)bn→eab\displaystyle \left(1 + \dfrac{a}{n}\right)^{bn} \to e^{ab} (1+2n)3n→e6\displaystyle \left(1 + \dfrac{2}{n}\right)^{3n} \to e^{6} Multiply aa and bb
sin⁡xx→1\displaystyle \dfrac{\sin x}{x} \to 1 as x→0x \to 0 sin⁡3xx→3\displaystyle \dfrac{\sin 3x}{x} \to 3 L'Hôpital only for 00\displaystyle \tfrac{0}{0} or ∞∞\displaystyle \tfrac{\infty}{\infty}
Absolute extrema on [a,b][a, b]: compare critical points and both endpoints x3−12xx^{3} - 12x on [−3,5][-3, 5]: max 65 at x=5x = 5, min −16-16 at x=2x = 2 The interior maximum 16 at x=−2x = -2 is only local
∫0∞xne−x dx=n!\int_0^{\infty} x^{n} e^{-x}\,dx = n! n=3n = 3: 6 Integer n≥0n \ge 0
Odd ff: ∫−aaf(x) dx=0\int_{-a}^{a} f(x)\,dx = 0 ∫−22x3cos⁡x dx=0\int_{-2}^{2} x^{3} \cos x\,dx = 0 Check the symmetry of the limits

The engineering mathematics important topics guide ranks which of these areas past papers have tested most.

More formula sheets: all of GATE CSE · Computer Networks · COA · Operating Systems

Quick revision

  1. Onto from mm to nn: ∑k(−1)k(nk)(n−k)m\sum_{k} (-1)^{k} \binom{n}{k} (n - k)^{m}; derangements 1, 0, 1, 2, 9, 44, 265.
  2. Stars and bars: (n+k−1k−1)\binom{n + k - 1}{k - 1}.
  3. Reflexive and symmetric relations: 2n(n−1)/22^{n(n-1)/2}; antisymmetric: 2n3n(n−1)/22^{n} 3^{n(n-1)/2}.
  4. v−e+f=2v - e + f = 2; e≤3v−6e \le 3v - 6; bipartite e≤2v−4e \le 2v - 4; KnK_n has nn−2n^{n-2} spanning trees.
  5. Eigenvalues: sum == trace, product =det⁡= \det; det⁡(kA)=kndet⁡A\det(kA) = k^{n} \det A.
  6. Bayes needs the total-probability denominator; Var(X−Y)=Var X+Var Y\text{Var}(X - Y) = \text{Var}\,X + \text{Var}\,Y for independent variables.
  7. Exponential mean 1/λ1/\lambda; Poisson mean and variance λt\lambda t, rescaled to the interval.
  8. Absolute extrema on [a,b][a, b]: check both endpoints.

Frequently asked questions

How many onto functions are there from an m-set to an n-set?

Use inclusion and exclusion: the count is ∑k=0n(−1)k(nk)(n−k)m\sum_{k=0}^{n} (-1)^k \binom{n}{k} (n-k)^m. Start with all nmn^m functions, remove those that miss at least one element of the codomain, and add back the double removals. From a 4-set to a 2-set this gives 16−2=1416 - 2 = 14. From a 6-set to a 3-set it gives 540, not 363^6.

How many reflexive and symmetric relations are there on a set of n elements?

There are 2n(n−1)/22^{n(n-1)/2}. Reflexivity fixes all n diagonal pairs, so only the off-diagonal pairs are free. Symmetry ties each pair (a, b) to (b, a), which leaves n(n−1)/2n(n-1)/2 independent choices. Writing 2n(n+1)/22^{n(n+1)/2} is the classic mistake, because that is the count of symmetric relations without the reflexive condition.

What are the main eigenvalue properties asked in GATE CSE?

The sum of the eigenvalues equals the trace and their product equals the determinant. If A has eigenvalue lambda, then AkA^k has λk\lambda^k, the inverse has 1/λ1/\lambda and A plus cI has lambda plus c. A triangular matrix has its diagonal entries as eigenvalues. A matrix is invertible exactly when no eigenvalue is zero. Eigenvalues of A plus B are not sums.

What are the mean and variance of the exponential and Poisson distributions?

An exponential distribution with rate lambda has mean 1/λ1/\lambda and variance 1/λ21/\lambda^2, and it is memoryless. A Poisson count over an interval of length t has mean and variance both equal to lambda times t. Always rescale the rate to the interval the question asks about, for example a per-hour rate for a 20-minute window.

How many marks does Engineering Mathematics carry in GATE CSE?

The official pattern gives Engineering Mathematics about 13 of the 100 marks, alongside 15 marks of General Aptitude and about 72 marks of core subjects. Discrete mathematics, probability, linear algebra and calculus are all in the section. Confirm the current pattern and syllabus at gate2027.iitm.ac.in before you plan your revision.

Sources

Dates, fees and the syllabus are set by the GATE 2027 organising institute and can change. Always confirm at gate2027.iitm.ac.in.

Keep reading

GATE CSE 2027 book1,020 pages · ₹250 ₹300
Buy now — ₹250