Formula sheet
Mathematical Modeling and Optimization Formula Sheet
Modeling formulas for residuals, discretization, conditioning, Newton updates, KKT conditions, uncertainty, calibration, sensitivity, and Pareto trade-offs.
This formula sheet collects common relationships used in mathematical modeling, numerical simulation, uncertainty analysis, and engineering optimization. Use it as a compact reference, not as a substitute for defining model assumptions, units, boundary conditions, data quality, and validation evidence.
General model form
Implicit model:
where x is the vector of unknowns and p is the vector of parameters.
Output model:
Residual:
Residual norm:
A small residual indicates consistency with the equations, not necessarily correctness of the physical model.
Scaling and nondimensionalization
Scaled variable:
Normalized residual:
Scaled objective:
Dimensionless input ratio:
Scaling should preserve the engineering meaning of variables while improving numerical conditioning, solver tolerance selection, and comparison between objectives with different units.
Error measures
Absolute error:
Relative error:
Percent error:
Root mean square error:
Use relative error carefully when the reference value is near zero.
Discretization
Forward finite difference:
Central finite difference:
Second derivative:
Time-step update form:
Discretization error often decreases as mesh spacing or time step decreases, but stability and cost must also be checked.
Mesh convergence
Solution change under refinement:
Observed convergence ratio:
If the method is in the asymptotic range:
where p is the observed order of accuracy.
Mesh convergence should be evaluated on the engineering quantity of interest, not only on global solver residuals.
Finite element system
Linear static form:
where K is the stiffness matrix, u is the unknown vector, and f is the load vector.
Residual form:
General nonlinear form:
Tangent linearization:
Update:
Boundary conditions, load representation, element type, and material model determine whether the finite element result is meaningful.
Linear systems and conditioning
Linear system:
Residual:
Condition number:
Large condition numbers can amplify input errors and roundoff errors.
Iterative convergence criterion:
Choose \epsilon based on the engineering decision, not only on a software default.
Newton method
Scalar Newton update:
Vector Newton update:
Linearized step:
The Jacobian matrix is:
In large systems, solve the linearized system directly or iteratively instead of forming an explicit inverse.
Optimization problem
Unconstrained optimization:
Constrained optimization:
subject to:
Feasible set:
An optimum outside the feasible set is not an engineering solution.
Gradient descent and Newton optimization
where \alpha_k is the step size.
Newton optimization step:
where H is the Hessian matrix.
First-order necessary condition for an unconstrained differentiable optimum:
Second-order sufficient condition for a local minimum:
Scaling, step-size control, and starting point strongly affect practical convergence.
Linear programming
Standard minimization form:
subject to:
Linear programming is convex when the objective and feasible region are linear. If a feasible optimum exists, at least one optimum occurs at a vertex of the feasible polytope.
KKT conditions
Lagrangian:
Stationarity:
Primal feasibility:
Dual feasibility:
Complementary slackness:
KKT conditions require suitable regularity assumptions. In convex problems, they can provide strong optimality conditions.
Probability and uncertainty
Expected value:
Variance:
Standard deviation:
Propagation by first-order linearization:
For correlated inputs:
where \Sigma_x is the input covariance matrix.
Sensitivity and calibration
Local sensitivity to parameter p_i:
Normalized sensitivity:
Least-squares calibration objective:
Weighted least squares:
Regularized calibration:
Calibration should report fitted parameters, bounds, data sources, residual structure, validation data, and whether the parameter set is identifiable.
Monte Carlo estimates
Sample mean:
Sample variance:
Estimated failure probability:
Standard error of a sample mean:
Monte Carlo accuracy improves slowly with sample size, so rare-event estimates may require specialized methods.
Kalman prediction and update
State prediction:
Covariance prediction:
Innovation:
Innovation covariance:
Kalman gain:
State update:
Covariance update:
The filter is only as credible as its dynamic model, measurement model, and noise assumptions.
Transforms
Discrete-time z-transform:
Discrete Fourier transform:
The Fast Fourier Transform is an efficient algorithm for computing the discrete Fourier transform.
Sampling relation:
where f_s is sampling frequency and T_s is sampling period.
Multi-objective optimization
Vector objective:
Pareto dominance:
if x_a is no worse in all objectives and strictly better in at least one objective.
Pareto-optimal condition:
Weighted-sum scalarization:
where w_i\ge 0 and \sum_i w_i=1.
Weights encode priorities. They do not remove the need to review the engineering trade-off.