GATE GUIDE

GATE DA Linear Algebra and Calculus Formula Sheet with Traps

By MD ANISH AHAMADUpdated 4 Oct 20267 min read
GATE DA Linear Algebra and Calculus Formula Sheet with Traps

GATE DA linear algebra rests on a few results about rank, eigenvalues, projections and the singular value decomposition. Calculus and optimisation rest on limits, Taylor series and the tests for maxima and minima. This sheet gives each formula with its condition, a one-line example of my own and the trap beside it, all checked against the GATE DA 2027 book.

In this guide
  1. Key takeaways
  2. The terms this sheet uses
  3. Rank, systems and determinants
  4. Eigenvalues and special matrices
  5. Quadratic forms and the SVD
  6. Limits, continuity and derivatives
  7. Taylor series and approximation
  8. Maxima, minima and optimisation
  9. Using the sheet in the exam
  10. Quick revision

Key takeaways

The terms this sheet uses

The rank of a matrix is the number of independent columns, which equals the number of independent rows. The nullity is the dimension of the set of solutions of Ax=0Ax = 0. An eigenvalue λ\lambda of AA is a number with Av=λvAv = \lambda v for some non-zero vector vv, its eigenvector.

The trace, tr⁡A\operatorname{tr} A, is the sum of the diagonal. A⊤A^\top is the transpose. A stationary point of ff is where f′(x)=0f'(x) = 0. ln⁡\ln is the natural logarithm, and η\eta is the step size, or learning rate, of gradient descent.

Rank, systems and determinants

Formula Watch out for
rank⁡A+nullity⁡A=number of columns\operatorname{rank} A + \operatorname{nullity} A = \text{number of columns} Columns, not rows
rank⁡A=rank⁡A⊤=rank⁡A⊤A\operatorname{rank} A = \operatorname{rank} A^\top = \operatorname{rank} A^\top A rank⁡(AB)≤min⁡(rank⁡A,rank⁡B)\operatorname{rank}(AB) \le \min(\operatorname{rank} A, \operatorname{rank} B)
Unique solution iff rank⁡A=rank⁡[A ∣ b]=n\operatorname{rank} A = \operatorname{rank}[A \,\vert\, b] = n nn is the number of unknowns
Infinitely many iff equal ranks <n< n; none iff rank⁡A<rank⁡[A ∣ b]\operatorname{rank} A < \operatorname{rank}[A \,\vert\, b] Compare with the augmented matrix
Ax=0Ax = 0 has a non-trivial solution iff rank⁡A<n\operatorname{rank} A < n Square AA: iff det⁡A=0\det A = 0
More than nn vectors in Rn\mathbb{R}^n are dependent nn vectors are independent iff their det⁡≠0\det \ne 0
det⁡(AB)=det⁡Adet⁡B\det(AB) = \det A \det B; det⁡(kA)=kndet⁡A\det(kA) = k^n \det A Not kdet⁡Ak \det A
det⁡A−1=1det⁡A\displaystyle \det A^{-1} = \frac{1}{\det A}; a row swap flips the sign Triangular: product of the diagonal
(AB)−1=B−1A−1(AB)^{-1} = B^{-1}A^{-1}; (AB)⊤=B⊤A⊤(AB)^\top = B^\top A^\top The order reverses

The 2×22 \times 2 inverse swaps the diagonal, negates the other two entries and divides by the determinant:

[abcd]−1=1ad−bc[d−b−ca],ad−bc≠0\begin{bmatrix} a & b \\ c & d \end{bmatrix}^{-1} = \frac{1}{ad - bc}\begin{bmatrix} d & -b \\ -c & a \end{bmatrix}, \qquad ad - bc \ne 0

Examples: a 3×53 \times 5 matrix of rank 2 has nullity 3. A 3×33 \times 3 matrix with det⁡A=5\det A = 5 gives det⁡(2A)=8×5=40\det(2A) = 8 \times 5 = 40.

LU decomposition writes A=LUA = LU, with LL unit lower triangular holding the elimination multipliers. You solve Ly=bLy = b forward, then Ux=yUx = y backward. It exists without row exchanges when every leading principal minor is non-zero; otherwise PA=LUPA = LU.

Trap: det⁡(kA)\det(kA) multiplies every one of the nn rows by kk, so the factor is knk^n. Writing kdet⁡Ak \det A is the most common determinant slip.

Eigenvalues and special matrices

Formula Watch out for
det⁡(A−λI)=0\det(A - \lambda I) = 0; ∑λi=tr⁡A\sum \lambda_i = \operatorname{tr} A; ∏λi=det⁡A\prod \lambda_i = \det A Count repeated roots
2×22 \times 2: λ2−(tr⁡A)λ+det⁡A=0\lambda^2 - (\operatorname{tr} A)\lambda + \det A = 0 Fastest route for small matrices
AkA^k has λk\lambda^k; A−1A^{-1} has 1λ\displaystyle \frac{1}{\lambda}; A+cIA + cI has λ+c\lambda + c Same eigenvectors
Triangular: eigenvalues on the diagonal Even if the matrix is not symmetric
Symmetric: real eigenvalues, orthogonal eigenvectors, A=QΛQ⊤A = Q\Lambda Q^\top Needs a symmetric AA
uv⊤uv^\top has rank 1, one eigenvalue v⊤uv^\top u, the rest 0 v⊤uv^\top u is a number, uv⊤uv^\top a matrix
Orthogonal: Q⊤Q=IQ^\top Q = I, det⁡Q=±1\det Q = \pm 1, every ∣λ∣=1\lvert \lambda \rvert = 1 Preserves lengths
Projection: P=A(A⊤A)−1A⊤P = A(A^\top A)^{-1}A^\top, P⊤=PP^\top = P, P2=PP^2 = P I−PI - P projects onto the complement
Idempotent: eigenvalues 0 or 1, rank⁡=tr⁡\operatorname{rank} = \operatorname{tr} I−AI - A is idempotent too
Centring C=I−1n11⊤\displaystyle C = I - \frac{1}{n}\mathbf{1}\mathbf{1}^\top: rank n−1n - 1 Eigenvalue 0 on the vector of ones

Example: A=[4123]A = \begin{bmatrix} 4 & 1 \\ 2 & 3 \end{bmatrix} has trace 7 and determinant 10, so λ2−7λ+10=0\lambda^2 - 7\lambda + 10 = 0 gives 5 and 2. Then A2A^2 has 25 and 4, and A+3IA + 3I has 8 and 5. For u=(1,2)u = (1, 2) and v=(3,1)v = (3, 1), uv⊤uv^\top has non-zero eigenvalue v⊤u=5v^\top u = 5.

Cayley–Hamilton: every square matrix satisfies its own characteristic equation.

Quadratic forms and the SVD

Formula Watch out for
Positive definite iff all λ>0\lambda > 0 iff all leading principal minors >0> 0 Semidefinite needs all λ≥0\lambda \ge 0; minors ≥0\ge 0 are not enough
Over unit xx: max⁡x⊤Ax=λmax⁡\max x^\top A x = \lambda_{\max}, min⁡x⊤Ax=λmin⁡\min x^\top A x = \lambda_{\min} AA symmetric
A⊤AA^\top A is positive semidefinite; definite iff the columns of AA are independent Only then is A⊤AA^\top A invertible
A=UΣV⊤A = U\Sigma V^\top, σi≥0\sigma_i \ge 0, σi2\sigma_i^2 eigenvalues of A⊤AA^\top A Rank is the count of non-zero σi\sigma_i
∥A∥2=σ1\lVert A \rVert_2 = \sigma_1; ∥A∥F2=∑σi2\lVert A \rVert_F^2 = \sum \sigma_i^2 Symmetric AA: σi=∣λi∣\sigma_i = \lvert \lambda_i \rvert
Keep the kk largest σi\sigma_i for the best rank-kk approximation Drop the smallest σi\sigma_i

Examples: [2112]\begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix} has leading minors 2 and 3, so it is positive definite, with eigenvalues 3 and 1. The diagonal matrix with entries 3 and −4-4 has singular values 4 and 3, so ∥A∥2=4\lVert A \rVert_2 = 4 and ∥A∥F2=25\lVert A \rVert_F^2 = 25.

The book's last-minute sheet covers all seven technical sections this way, with every result's condition printed beside it. It is part of the GATE DA 2027 book, with 907 questions with worked solutions and 10 full mock tests.

Limits, continuity and derivatives

Formula Watch out for
As x→0x \to 0: sin⁡xx→1\displaystyle \frac{\sin x}{x} \to 1, 1−cos⁡xx2→12\displaystyle \frac{1 - \cos x}{x^2} \to \frac{1}{2}, ex−1x→1\displaystyle \frac{e^x - 1}{x} \to 1, ln⁡(1+x)x→1\displaystyle \frac{\ln(1 + x)}{x} \to 1 Rescale the argument first
(1+1n)n→e\displaystyle \left(1 + \frac{1}{n}\right)^n \to e A 1∞1^\infty form, not 1
L'Hôpital: lim⁡fg=lim⁡f′g′\displaystyle \lim \frac{f}{g} = \lim \frac{f'}{g'} Only for 00\displaystyle \frac{0}{0} or ∞∞\displaystyle \frac{\infty}{\infty}
Continuity at aa: left limit == right limit =f(a)= f(a) All three must exist
(f∘g)′=f′(g) g′(f \circ g)' = f'(g)\,g'; (fg)′=f′g−fg′g2\displaystyle \left(\frac{f}{g}\right)' = \frac{f'g - fg'}{g^2} Keep the minus sign in order
σ′(x)=σ(x)(1−σ(x))\sigma'(x) = \sigma(x)\big(1 - \sigma(x)\big), largest 14\displaystyle \frac{1}{4} at 00; tanh⁡′=1−tanh⁡2\tanh' = 1 - \tanh^2 σ′\sigma' is never above 14\displaystyle \frac{1}{4}
(ax)′=axln⁡a(a^x)' = a^x \ln a; (ln⁡x)′=1x\displaystyle (\ln x)' = \frac{1}{x} The factor is ln⁡a\ln a, not log⁡10a\log_{10} a

Example: lim⁡x→01−cos⁡2xx2=4×12=2\displaystyle \lim_{x \to 0} \frac{1 - \cos 2x}{x^2} = 4 \times \frac{1}{2} = 2, after writing u=2xu = 2x.

Taylor series and approximation

Formula Watch out for
f(x)=∑n≥0f(n)(a)n!(x−a)n\displaystyle f(x) = \sum_{n \ge 0} \frac{f^{(n)}(a)}{n!}(x - a)^n About a=0a = 0 it is the Maclaurin series
ex=∑xnn!\displaystyle e^x = \sum \frac{x^n}{n!}; sin⁡x=x−x33!+⋯\displaystyle \sin x = x - \frac{x^3}{3!} + \cdots; cos⁡x=1−x22!+⋯\displaystyle \cos x = 1 - \frac{x^2}{2!} + \cdots sin⁡\sin odd powers, cos⁡\cos even
ln⁡(1+x)=x−x22+x33−⋯\displaystyle \ln(1 + x) = x - \frac{x^2}{2} + \frac{x^3}{3} - \cdots Only for −1<x≤1-1 < x \le 1
11−x=∑xn\displaystyle \frac{1}{1 - x} = \sum x^n Only for ∣x∣<1\lvert x \rvert < 1
f(x+h)≈f(x)+hf′(x)+h22f′′(x)\displaystyle f(x + h) \approx f(x) + hf'(x) + \frac{h^2}{2}f''(x) Halve the second-order term

Example: e0.1≈1+0.1+0.005=1.105e^{0.1} \approx 1 + 0.1 + 0.005 = 1.105, against the true 1.10517.

Maxima, minima and optimisation

Formula Watch out for
Candidates: f′(c)=0f'(c) = 0, points where f′f' does not exist, interval ends Do not forget the ends
f′′(c)>0f''(c) > 0 minimum; f′′(c)<0f''(c) < 0 maximum f′′(c)=0f''(c) = 0 decides nothing
First non-zero derivative of even order: extremum; odd order: inflection Minimum if that derivative is positive
f′′≥0f'' \ge 0 means convex; a local minimum of a convex function is global Strictly convex: at most one minimiser
Mean value theorem: f′(c)=f(b)−f(a)b−a\displaystyle f'(c) = \frac{f(b) - f(a)}{b - a} for some c∈(a,b)c \in (a, b) Rolle is the case f(a)=f(b)f(a) = f(b)
Gradient descent x←x−ηf′(x)x \leftarrow x - \eta f'(x); on ax2ax^2 converges iff 0<η<1a\displaystyle 0 < \eta < \frac{1}{a} a>0a > 0
Newton for a minimum: x←x−f′(x)f′′(x)\displaystyle x \leftarrow x - \frac{f'(x)}{f''(x)} One step on a quadratic

Examples: f(x)=x3−3xf(x) = x^3 - 3x has f′(x)=3x2−3f'(x) = 3x^2 - 3, so x=±1x = \pm 1. Since f′′(x)=6xf''(x) = 6x, x=1x = 1 is a minimum and x=−1x = -1 a maximum. On [0,3][0, 3], compare f(0)=0f(0) = 0, f(1)=−2f(1) = -2 and f(3)=18f(3) = 18: the maximum is 18 at the end point. For f(x)=x4f(x) = x^4 at 0, the first non-zero derivative is the fourth, so 0 is a minimum.

In one line: A closed-interval question is a comparison of values, and the winner is often an end point.

Using the sheet in the exam

Matrix and series questions often end in a decimal. Practise them on the GATE virtual calculator. Read the MCQ, MSQ and NAT marking scheme, common to every GATE paper too: an MSQ has no negative marks, but no partial credit either. If you know the CS syllabus, GATE CS vs GATE DA shows where the linear algebra overlaps and that optimisation is DA's own.

Remember: No counted paper (2024 to 2026) has examined LU decomposition, but the syllabus names it. An afternoon on it is cheap insurance.

More formula sheets: all of GATE DA · DBMS and Algorithms · Machine Learning · Probability and Statistics

Quick revision

  1. rank⁡A+nullity⁡A\operatorname{rank} A + \operatorname{nullity} A equals the number of columns.
  2. ∑λ=tr⁡A\sum \lambda = \operatorname{tr} A, ∏λ=det⁡A\prod \lambda = \det A, and det⁡(kA)=kndet⁡A\det(kA) = k^n \det A.
  3. AkA^k, A−1A^{-1} and A+cIA + cI have λk\lambda^k, 1λ\displaystyle \frac{1}{\lambda} and λ+c\lambda + c.
  4. Projections are symmetric and idempotent, with rank equal to trace.
  5. σi2\sigma_i^2 are the eigenvalues of A⊤AA^\top A, and ∥A∥2=σ1\lVert A \rVert_2 = \sigma_1.
  6. 1−cos⁡xx2→12\displaystyle \frac{1 - \cos x}{x^2} \to \frac{1}{2}, and σ′\sigma' peaks at 14\displaystyle \frac{1}{4}.
  7. f′′(c)=0f''(c) = 0 decides nothing; go to the first non-zero derivative.
  8. Gradient descent on ax2ax^2 converges only for 0<η<1a\displaystyle 0 < \eta < \frac{1}{a}.

Frequently asked questions

What is the relation between eigenvalues, trace and determinant?

The sum of the eigenvalues of a square matrix equals its trace, and their product equals its determinant, counting repeated eigenvalues. For a 2×22 \times 2 matrix this gives the characteristic equation λ2−(tr⁡A)λ+det⁡A=0\lambda^2 - (\operatorname{tr} A)\lambda + \det A = 0. A zero eigenvalue therefore means a zero determinant, so the matrix is singular.

What is the formula for a projection matrix?

The projection onto the column space of AA, whose columns are independent, is P=A(A⊤A)−1A⊤P = A(A^\top A)^{-1}A^\top. Onto a single unit vector uu it is uu⊤uu^\top. Every projection matrix is symmetric and idempotent, so P2=PP^2 = P, its eigenvalues are only 0 and 1, and its rank equals its trace.

How do you check whether a matrix is positive definite?

A symmetric matrix is positive definite exactly when every eigenvalue is positive, or equivalently when every leading principal minor is positive. For positive semidefinite you need every eigenvalue to be non-negative. Checking only that the leading minors are non-negative is not enough for semidefiniteness, which is a classic trap.

When does gradient descent converge on a quadratic?

For f(x)=ax2f(x) = ax^2 with a>0a > 0, the update x←x−ηf′(x)x \leftarrow x - \eta f'(x) multiplies xx by 1−2aη1 - 2a\eta at each step. It converges exactly when 0<η<1a\displaystyle 0 < \eta < \frac{1}{a}. At η=12a\displaystyle \eta = \frac{1}{2a} it reaches the minimum in one step, and beyond 1a\displaystyle \frac{1}{a} the iterates grow without bound.

Does continuity imply differentiability?

No. Differentiability implies continuity, but not the other way round. The functions ∣x∣\lvert x \rvert and ReLU, max⁡(x,0)\max(x, 0), are continuous at 0 but have a corner there, so they are not differentiable at 0. For a piecewise function, match the values at the join for continuity, and also match the one-sided derivatives for differentiability.

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 DA 2027 book614 pages · ₹250 ₹300
Buy now — ₹250