Skip to content
GATEiit

GATE CSE Engineering Mathematics formula sheet

Key results for GATE CSE Engineering Mathematics: discrete mathematics (logic, sets, groups, graphs, combinatorics), linear algebra, calculus and probability. Conditions matter, so read each note.

60 formulas · updated 2026-11-14 · reviewed 2026-11-14 · Spotted an error? Tell us

Propositional and first-order logic

  • Implication equivalences

    p→q≡¬p∨q≡¬q→¬p,p↔q≡(p→q)∧(q→p)

    The contrapositive is equivalent; the converse q→p and inverse ¬p→¬q are not. p→q is false only when p is true and q is false.

  • Negating quantifiers

    ¬∀x P(x)≡∃x ¬P(x),¬∃x P(x)≡∀x ¬P(x)

    Push the negation inward and flip each quantifier it passes.

  • Distributing quantifiers

    The last two hold in one direction only: a favourite GATE trap.

  • Swapping quantifiers

    ∃y ∀x P(x,y)⇒∀x ∃y P(x,y)

    The converse is not valid. Quantifiers of the same kind can be swapped freely.

  • Rules of inference

    p, p→qq (MP)¬q, p→q¬p (MT)p∨q, ¬p∨rq∨r (resolution)

    Affirming the consequent (from q and p→q conclude p) is a fallacy.

Sets, relations, functions, posets and lattices

  • Inclusion–exclusion (3 sets)

    ∣A∪B∪C∣=∣A∣+∣B∣+∣C∣−∣A∩B∣−∣B∩C∣−∣A∩C∣+∣A∩B∩C∣

    Generalises with alternating signs over all k-wise intersections.

  • Counting relations on an n-set

    Count independent choices for diagonal pairs (n) and off-diagonal unordered pairs (n(n−1)/2).

  • Counting functions A → B

    ∣A∣=m, ∣B∣=n:nm total,n!(n−m)! one-one (m≤n),∑k=0n(−1)k(nk)(n−k)m onto

    Onto count equals n! S(m,n); bijections exist only when m = n and number n!.

  • Equivalence relations and partitions

    #equiv. relations on an n-set=Bn=∑k=1nS(n,k),B1..B5=1,2,5,15,52

    S(n,k) (Stirling, second kind) counts partitions into exactly k non-empty blocks; S(n,2)=2n−1−1.

  • Partial order and lattice

    poset: reflexive, antisymmetric, transitive;lattice: every pair has a∨b=lub, a∧b=glb

    A total order is a lattice. Every finite lattice is bounded (has 0 and 1).

  • Distributive and complemented lattices

    Boolean algebra=complemented+distributive lattice

    In a distributive lattice each element has at most one complement. Divisor lattice Dn is Boolean iff n is square-free.

Monoids and groups

  • Algebraic structures

    semigroup (closure, assoc.)⊂monoid (+identity)⊂group (+inverses)⊂ abelian (+commutative)

    Identity and each inverse are unique; (ab)−1=b−1a−1.

  • Lagrange's theorem

    H≤G (finite)⇒∣H∣ divides ∣G∣,o(a)∣∣G∣,a∣G∣=e

    The converse is false in general: a divisor of |G| need not be the order of a subgroup.

  • Prime order and cyclic groups

    ∣G∣=p prime⇒G cyclic, abelian;∣G∣=n cyclic⇒#generators=φ(n)

    In a cyclic group of order n there is exactly one subgroup of each order d | n, with φ(d) elements of order d. Every subgroup of a cyclic group is cyclic.

  • Subgroup test

    ∅≠H⊆G and a,b∈H⇒ab−1∈H⟹H≤G

    For finite non-empty H, closure alone is enough.

  • Abelian shortcuts

    a2=e ∀a∈G⇒G abelian;∣G∣≤5⇒G abelian

    Smallest non-abelian group is S3 of order 6. Cyclic ⇒ abelian, not conversely.

  • Binary operations on an n-set

    nn2 total,nn(n+1)/2 commutative

    Each of the n2 (or n(n+1)/2 unordered) argument pairs gets any of n values.

Graph theory

  • Handshaking lemma

    ∑v∈Vdeg⁡(v)=2∣E∣

    The number of odd-degree vertices is even. In a directed graph, sum of in-degrees = sum of out-degrees = |E|.

  • Edge counts

    simple: ∣E∣≤(n2);tree: ∣E∣=n−1;forest with k trees: ∣E∣=n−k

    A simple graph with more than (n−12) edges is connected. Labelled simple graphs on n vertices: 2(n2).

  • Cayley's formula

    #labelled trees on n vertices=#spanning trees of Kn=n n−2

    For n = 4 this gives 16.

  • Euler's formula (planar)

    v−e+f=2 (connected),v−e+f=k+1 (k components)

    Simple planar with v ≥ 3: e ≤ 3v − 6; if no triangles: e ≤ 2v − 4. Hence K5 and K3,3 are non-planar.

  • Euler circuit and path

    circuit  ⟺  all degrees even;path (not circuit)  ⟺  exactly 2 odd vertices

    Assumes the graph is connected apart from isolated vertices. Hamiltonian cycle has no such simple test.

  • Chromatic number facts

    Bipartite ⇔ no odd cycle (and at least one edge for χ = 2). Planar graphs: χ ≤ 4. Also χ ≥ ω (clique size) and χ ≥ n/α.

  • Chromatic polynomials

    P(Kn,k)=k(k−1)⋯(k−n+1),P(Tn,k)=k(k−1)n−1,P(Cn,k)=(k−1)n+(−1)n(k−1)

    Tn is any tree on n vertices. P(G,k) counts proper colourings with at most k colours.

  • Matching and covering

    α+β=n,ν+ρ=n (no isolated vertices),ν=β (bipartite, Ko¨nig)

    α independence number, β min vertex cover, ν max matching, ρ min edge cover. In any graph ν ≤ β.

  • Hall's marriage theorem

    Bipartite (X,Y) has a matching saturating X  ⟺  ∣N(S)∣≥∣S∣  ∀S⊆X

    Perfect matchings: Kn,n has n!, K2n has (2n)!/(2nn!).

Combinatorics

  • Selections with repetition

    #{x1+⋯+xn=r, xi≥0}=(n+r−1r)

    Stars and bars; for xi≥1 use (r−1n−1). Also counts multisets of size r from n types.

  • Pigeonhole principle

    n objects in k boxes⇒some box has ≥⌈n/k⌉

    To force a box with at least m objects you need k(m−1)+1 objects.

  • Derangements

    Dn=n!∑k=0n(−1)kk!,Dn=(n−1)(Dn−1+Dn−2)

    D1..D5 = 0, 1, 2, 9, 44; Dn≈n!/e.

  • Catalan numbers

    Cn=1n+1(2nn),C0..C5=1,1,2,5,14,42

    Counts BSTs on n distinct keys, unlabelled binary trees with n nodes, balanced strings of n bracket pairs.

  • Linear homogeneous recurrences

    Root of multiplicity m contributes a polynomial of degree m−1 times rn. Fit constants from initial terms.

  • Generating functions

    11−ax=∑n≥0anxn,1(1−x)k=∑n≥0(n+k−1n)xn,(1+x)n=∑k=0n(nk)xk

    Coefficient of xr in a product = convolution of coefficients.

Linear algebra

  • Determinant properties

    ∣AB∣=∣A∣∣B∣,  ∣AT∣=∣A∣,  ∣kA∣=kn∣A∣,  ∣A−1∣=1∣A∣,  ∣adj⁡A∣=∣A∣n−1

    A is n×n. Swapping two rows flips the sign; adding a multiple of one row to another leaves it unchanged. Triangular: product of diagonal.

  • Inverse

    Exists iff |A| ≠ 0. (AB)−1=B−1A−1, (AT)−1=(A−1)T.

  • Rank–nullity

    rank⁡(A)+nullity⁡(A)=n(A is m×n)

    n = number of columns (unknowns). rank(A) = rank(AT) ≤ min(m, n).

  • Consistency of Ax = b

    n unknowns. Homogeneous Ax = 0 is always consistent; non-trivial solution iff rank < n (for square A, iff |A| = 0).

  • Eigenvalue sum and product

    det⁡(A−λI)=0,∑λi=tr⁡A,∏λi=det⁡A

    2×2: λ2−(tr⁡A)λ+det⁡A=0. A singular ⇔ 0 is an eigenvalue.

  • Eigenvalues of related matrices

    Ak:λk,A−1:1λ,A+cI:λ+c,kA:kλ,AT:λ

    Same eigenvectors except for AT. Triangular or diagonal matrix: eigenvalues are the diagonal entries.

  • Special matrices

    real symmetric:λ∈R;  skew-symmetric:λ=0 or purely imaginary;  orthogonal:∣λ∣=1;  A2=A:λ∈{0,1}

    Eigenvectors of a real symmetric matrix for distinct eigenvalues are orthogonal.

  • Cayley–Hamilton

    p(λ)=det⁡(A−λI) ⇒ p(A)=0

    Use it to compute A−1 or high powers of A as a polynomial of degree < n in A.

  • Diagonalisability

    A=PDP−1  ⟺  A has n linearly independent eigenvectors

    Distinct eigenvalues ⇒ diagonalisable. With repeated eigenvalues, need geometric = algebraic multiplicity for each.

  • LU decomposition

    A=LU,Ly=b,  Ux=y;u1j=a1j,  li1=ai1a11,  det⁡A=∏uii

    Doolittle: L unit lower triangular, U upper triangular. Exists without row swaps if all leading principal minors are non-zero.

Calculus

  • Standard limits

    lim⁡x→0sin⁡xx=1,lim⁡x→0ax−1x=ln⁡a,lim⁡x→0(1+ax)1/x=ea,lim⁡x→∞(1+1x)x=e

    x in radians. lim⁡x→0ln⁡(1+x)x=1, lim⁡x→01−cos⁡xx2=12.

  • L'Hôpital and 1^∞ form

    lim⁡fg=lim⁡f′g′  (00 or ∞∞),lim⁡f g=elim⁡g (f−1)  (f→1, g→∞)

    Convert 0·∞ and ∞−∞ to a quotient first. Apply L'Hôpital only to indeterminate forms.

  • Continuity and differentiability

    f continuous at a  ⟺  lim⁡x→a−f=lim⁡x→a+f=f(a);differentiable⇒continuous

    Converse false: |x| is continuous but not differentiable at 0. Check left and right derivatives at break points.

  • Mean value theorems

    Rolle: f(a)=f(b)⇒f′(c)=0;LMVT: f′(c)=f(b)−f(a)b−a;Cauchy: f′(c)g′(c)=f(b)−f(a)g(b)−g(a)

    Need f continuous on [a, b] and differentiable on (a, b); c ∈ (a, b). Cauchy also needs g′ ≠ 0 on (a, b).

  • Extrema (one variable)

    f′(c)=0:f′′(c)<0⇒local max,f′′(c)>0⇒local min

    If f″(c) = 0 the test fails: check sign change of f′. For global extrema on [a, b] also compare endpoints.

  • Extrema (two variables)

    fx=fy=0,  r=fxx, s=fxy, t=fyy:  rt−s2>0 & r<0⇒max⁡;  rt−s2>0 & r>0⇒min⁡;  rt−s2<0⇒saddle

    If rt−s2=0 the test is inconclusive.

  • Definite integral properties

    Leibniz: ddx∫a(x)b(x)f(t) dt=f(b) b′−f(a) a′.

  • Wallis' formula

    Products stop at 1 or 2. E.g. ∫0π/2sin⁡4x dx=3⋅14⋅2⋅π2=3π16.

Probability and statistics

  • Addition rule

    P(A∪B)=P(A)+P(B)−P(A∩B)

    Mutually exclusive events: P(A∩B) = 0. Exclusive events with non-zero probabilities are never independent.

  • Conditional probability and independence

    P(A∣B)=P(A∩B)P(B) (P(B)>0),A⊥B  ⟺  P(A∩B)=P(A)P(B)

    If A and B are independent, so are A and Bc, Ac and Bc.

  • Total probability and Bayes

    P(B)=∑iP(B∣Ai)P(Ai),P(Aj∣B)=P(B∣Aj)P(Aj)∑iP(B∣Ai)P(Ai)

    The Ai must partition the sample space (disjoint, union is everything).

  • Expectation and variance

    E[aX+b]=aE[X]+b,Var⁡(X)=E[X2]−(E[X])2,Var⁡(aX+b)=a2Var⁡(X)

    E[X+Y] = E[X]+E[Y] always (linearity), even for dependent X, Y.

  • Variance of a sum

    Var⁡(X+Y)=Var⁡X+Var⁡Y+2Cov⁡(X,Y),Cov⁡(X,Y)=E[XY]−E[X]E[Y]

    Independent ⇒ Cov = 0 ⇒ variances add. Zero covariance does not imply independence. Var(X−Y) also adds variances when independent.

  • Discrete distributions

    Binomial ≈ Poisson with λ = np when n is large and p small. Geometric here counts trials up to and including the first success.

  • Uniform and exponential

    U(a,b): f=1b−a, μ=a+b2, σ2=(b−a)212;Exp⁡(λ): f=λe−λx (x≥0), μ=1λ, σ2=1λ2

    Exponential: P(X>x)=e−λx, memoryless P(X>s+t∣X>s)=P(X>t), median ln⁡2/λ.

  • Normal distribution

    f(x)=1σ2πe−(x−μ)22σ2,Z=X−μσ∼N(0,1)

    Mean = median = mode = μ. About 68%, 95%, 99.7% of mass lies within 1, 2, 3 σ of μ.

  • Mean, median, mode

    x(i) is the i-th value after sorting. Mode is the most frequent value. Continuous median m solves ∫−∞mf=12.

  • Standard deviation

    σ=1n∑(xi−xˉ)2=∑xi2n−xˉ2,s2=1n−1∑(xi−xˉ)2

    σ uses n (population), s uses n − 1 (sample). Adding a constant leaves σ unchanged; scaling by k scales σ by |k|.

Where marks come fromTopic-wise PYQ analysis →Use the formulasPractise PYQs on this subject →For numerical answersGATE virtual calculator →