Numerical methods (IN) formulas
Numerical methods. 37 formulas for GATE EC, EE, IN Engineering Mathematics, each with when to use it. Each is explained in the topic notes.
IAE Academy: Numerical methods formulas (GATE EC, EE, IN)
All 37 Numerical methods (IN) formulas
LU DECOMPOSITION
Doolittle form: is unit lower triangular (1s on its diagonal) and holds the multipliers below the diagonal; is the upper-triangular matrix that Gaussian elimination without row swaps produces. Crout form puts the 1s on the diagonal of instead. For a non-singular , the factorisation exists without row swaps exactly when every leading principal minor of is non-zero. One factorisation serves any number of right-hand sides .
GAUSS-JACOBI ITERATION
Every new component uses only the previous sweep's values. Needs (reorder the equations if necessary).
GAUSS-SEIDEL ITERATION
Each new component is used immediately, later in the same sweep. Needs .
ITERATION MATRICES AND THE CONVERGENCE TEST
Here is the diagonal of and , are its strictly lower and strictly upper triangular parts (not the LU factors). Each method has the form , and , the spectral radius, is the largest over the eigenvalues of .
STRICT DIAGONAL DOMINANCE (SUFFICIENT CONDITION)
If it holds, both Jacobi and Gauss-Seidel converge for every starting vector. It is sufficient, not necessary: a system that fails it may still converge. Gauss-Seidel also converges for every start when is symmetric positive definite.
ORDER OF CONVERGENCE P
is linear (it also needs ; the error shrinks by a roughly constant factor each step). is superlinear. is quadratic: the number of correct digits roughly doubles each step.
BISECTION
Needs continuous on with ; keep the half on which the sign still changes. The -th midpoint is within of a root, and the bracket after halvings has that length. The error bound halves at every step, which is why bisection is counted as linearly convergent with ratio ; the actual error need not decrease at every step. The number of steps for a tolerance does not depend on .
REGULA FALSI (FALSE POSITION)
The -intercept of the chord joining and . Needs , and the new bracket is whichever of , keeps the sign change. Always converges for continuous , but usually only linearly, because one end of the bracket often stays fixed.
NEWTON-RAPHSON
The -intercept of the tangent at . For continuous near a simple root (), convergence from a start close enough to the root is at least quadratic (faster when ). At a root of multiplicity it is only linear, with ; the modified step restores quadratic convergence.
NEWTON-RAPHSON FOR ROOTS AND RECIPROCALS
From , and respectively, with . The iteration converges from every (after the first step every iterate is at least , and they decrease). The reciprocal iteration uses no division; since , it converges to exactly when .
SECANT
Newton-Raphson with replaced by the slope through the last two iterates. Needs two starting values but no derivative and no sign change. Order near a simple root; it can diverge because it does not keep a bracket.
FIXED-POINT ITERATION
Rewrite as , with continuous near . Linear convergence with ratio when ; the iterates move away if . Interval test: if maps into itself and for all in , then contains exactly one fixed point and the iteration converges to it from every in . Newton-Raphson is the choice , for which at a simple root, which is why it is faster than linear.
COMPOSITE TRAPEZOIDAL RULE
Any . A straight line on each subinterval. Exact for polynomials of degree .
TRAPEZOIDAL ERROR
Global error : halving cuts the error by a factor of about 4. If on (convex ) the rule overestimates; if it underestimates.
COMPOSITE SIMPSON'S 1/3 RULE
must be even (an odd number of points). A parabola through each pair of subintervals. Exact for polynomials of degree .
SIMPSON'S 1/3 ERROR
Global error : halving cuts the error by a factor of about 16.
COMPOSITE SIMPSON'S 3/8 RULE
must be a multiple of 3. A cubic through each group of three subintervals. Exact for polynomials of degree , the same degree as the 1/3 rule.
SIMPSON'S 3/8 ERROR
Also globally, with a larger constant than the 1/3 rule at the same . Useful when is odd and at least 3: apply the 3/8 rule to three subintervals and the 1/3 rule to the rest.
TWO-POINT GAUSS-LEGENDRE QUADRATURE
The second form follows from the substitution . Two function values at unequally placed points, yet exact for polynomials of degree , like Simpson's rules with three. Check: for it gives with , the exact value.
EULER (EXPLICIT, FORWARD)
Follows the tangent line at the start of the step. Order 1: local error , global error .
BACKWARD (IMPLICIT) EULER
Order 1, but appears on both sides and must be solved for (directly when is linear in ). For with real it gives , which decays for every .
MODIFIED EULER (HEUN), A SECOND-ORDER RUNGE-KUTTA METHOD
An Euler predictor followed by a trapezoidal corrector. Order 2: local error , global error . The same computation written as , , is one second-order Runge-Kutta method; the midpoint method below is another. Some texts apply the corrector repeatedly, putting each new back into until two successive values agree; one application is the formula above.
RUNGE-KUTTA, FOURTH ORDER (CLASSICAL)
Four evaluations of per step. Order 4: local error , global error . Note that uses , not , and uses a full step with .
TAYLOR-SERIES METHOD
The higher derivatives come from differentiating the equation itself (, are partial derivatives, evaluated at ). Truncating after the term gives a method of order ; keeping only the term is Euler's method.
PICARD'S SUCCESSIVE APPROXIMATIONS
Each iterate is a function, not a number. For , : , , and each further iterate adds the next term of the series of .
STABILITY OF EXPLICIT EULER
real. For the numerical solution decays without changing sign, like the exact ; at it is after one step. For it alternates in sign while decaying. At it alternates with constant magnitude, and for it grows without bound.
NORMAL EQUATIONS FOR Y = A + BX
Two linear equations in and . For a parabola the same method gives three: , , . For a line through the origin, , the single normal equation gives .
LEAST-SQUARES SLOPE AND INTERCEPT (REGRESSION OF Y ON X)
The line passes through and its residuals sum to zero. It minimises vertical deviations, so it is the line for predicting from .
CORRELATION COEFFICIENT (PEARSON)
Defined only when neither nor is zero. , and exactly when all the points lie on one (non-horizontal, non-vertical) line. is unchanged by a change of origin and scale, , with ; if only its sign changes. It measures linear association only: for and , so , although is a function of .
THE TWO REGRESSION LINES
Both lines pass through , so when solving them together gives the means. The two coefficients have the sign of , and with that common sign. The lines coincide only when ; when they are and , perpendicular. The coefficients are unchanged by a change of origin but not of scale: with , , .
SPEARMAN'S RANK CORRELATION
Rank the values and the values separately; is the difference between the two ranks of item . This form is exact when there are no tied ranks (it is then Pearson's computed on the ranks). .
GRADIENT-DESCENT UPDATE
is the learning rate. Every partial derivative is evaluated at the current (old) weights, and then all the weights are updated together.
SQUARED-ERROR LOSS
is the network output and the target. The factor is a convention that cancels the 2 from differentiation; without it every gradient doubles, so check which form a question uses.
CHAIN RULE FOR ONE NEURON
is the neuron's input (the previous layer's output) and its activation. The last result is what is passed backwards to the previous layer.
BACKPROPAGATION THROUGH A LAYER
is the weight from unit into unit , and the sum runs over every unit that unit feeds. A unit feeding several others collects a contribution from each. For an output unit with the squared-error loss above, .
ACTIVATION FUNCTIONS AND THEIR DERIVATIVES
is largest, , at . The ReLU derivative is undefined at itself; a question that lands there should state the value it uses.
SIGMOID OUTPUT WITH CROSS-ENTROPY LOSS
is 0 or 1 (natural logarithm). The chain rule gives , and multiplying by cancels the denominator.
Where this was asked: 2018 (1), 2020 (1), 2022 (1), 2023 (1), 2024 (1), 2025 (1). See the 6 previous-year questions on Numerical methods (IN). This shows what was asked, not what will be asked.