Linearizing means swapping a curved, awkward equation for a straight-line version that behaves almost the same as long as you stay close to one chosen point. The recipe needs just two ingredients: the function’s value at that point and its slope there. The trade is deliberate. You get simple linear math, the kind with ready-made tools for stability and control, and you give up accuracy away from that point. The same trick sits behind balancing robots, keeping power grids stable and solving economic models.
The Core Formula and Why It Works
Near a point x0, a smooth function f(x) is approximated by f(x0) plus its derivative at x0 times (x − x0).1Royal Melbourne Institute of Technology University. Part IV: Linearization The derivative is just the function’s slope at that point, and it’s the only calculus you need. The formula keeps only the first two terms of the Taylor series, the expansion of a function into powers of (x − x0).1Royal Melbourne Institute of Technology University. Part IV: Linearization Those terms are enough because, for x close to x0, the higher terms like (x − x0)² are tiny and can be dropped.2International Journal of Theoretical and Applied Science. Linearization of Nonlinear Differential Equation by Taylor’s Series Expansion and Use of Jacobian Linearization Process
The graph of this approximation is the tangent line touching the curve at x0.3Wikipedia. Taylor’s theorem The leftover error shrinks much faster than the distance to x0 as you approach the point.3Wikipedia. Taylor’s theorem All of this requires the function to be differentiable at the point; without a slope there, nothing works.3Wikipedia. Taylor’s theorem
Try it on x² at x0 = 3. The value is 9 and the slope is 6, so the line is 9 + 6(x − 3). At x = 3.1 the true value is 9.61 and the line gives 9.6. For sin(x) at 0, the value is 0 and the slope is 1, so the approximation is simply x.
A common slip is using the slope at the wrong point. The derivative has to be evaluated at x0, which gives a number. If you leave it as f'(x), the equation stays nonlinear. Plug in the operating point values before you write the final linear equation.
The slope tells you the sign and size of the response. A slope of 6 means a nudge of 0.1 in x moves the output by about 0.6, and a negative slope means the output moves the opposite way.
How to Choose the Operating Point
For a system written as rates of change, an equilibrium is where the right-hand side F(x, y) equals zero.4Harvard University. Linear Algebra and Vector Analysis: Nonlinear systems The system sits still there, so small motions around it are exactly what linearization describes. In two variables, you can find equilibria where the zero-curve of one equation crosses the zero-curve of the other.5Florida State University. 5.1: Equilibrium Point Analysis
Finding equilibria is mechanical. Write each equation as rate = expression, set every expression to zero, and solve the resulting algebraic equations together. Many systems have several solutions. A pendulum, for instance, has one equilibrium hanging down and another balanced up. Each gets linearized separately, since each has its own slopes.
In practice you often fix some states or inputs, such as a desired speed, and solve for the remaining values that make everything steady. Software trimming tools do exactly this, letting you pin chosen states and inputs while computing the free ones.6MathWorks. Linearizing Simulink Models
The operating point doesn’t have to be a resting state of the unforced system. You can linearize around a point where you deliberately hold a steady input, like a heater on at a fixed level. The inputs then appear in the equilibrium equations too.
Equilibria make a natural base camp for a simple reason. At an equilibrium the deviation is zero, so the constant term in the linear model is the rate there, which is zero. That leaves a clean model: rate of deviation = slope × deviation. At a non-equilibrium point, the model would carry a leftover constant rate that acts like a steady push and makes stability analysis messier. And many stable systems settle at an equilibrium, so these are often exactly the conditions you care about.
Worked Example Balancing an Inverted Pendulum
The upright pendulum’s equilibrium is angle 0 and angular speed 0, which is an unstable point.7EUROCON. Non-Linear Swing-Up and Stabilizing Control of an Inverted Pendulum System Near it, both the angle and the angular speed are very small in radians.7EUROCON. Non-Linear Swing-Up and Stabilizing Control of an Inverted Pendulum System So you can replace sin(θ) with θ, cos(θ) with 1, and the squared speed with 0.7EUROCON. Non-Linear Swing-Up and Stabilizing Control of an Inverted Pendulum System Substituting these into the motion equations gives the linear model used to design a balancing controller.7EUROCON. Non-Linear Swing-Up and Stabilizing Control of an Inverted Pendulum System
Start by writing the full equation and marking each nonlinear piece. Only then swap in the simple replacements, so no term is missed. The squared-speed term typically shows up in the cart’s equation multiplied by sin or cos, so replacing it with zero removes the whole product.
These replacements come from the same formula. The approximation sin(θ) ≈ θ is the tangent line of sin at 0. cos(θ) ≈ 1 because its slope at 0 is zero. A squared small quantity is negligible because it’s a higher-order term. The angle must be in radians for sin(θ) ≈ θ to hold.
The rule is accurate where it matters. At about 10 degrees, sin(θ) and θ differ by well under 1 percent. By around 30 degrees the gap grows to a few percent. A balancing controller keeps the angle small, so the model stays valid while it works.
Linearizing Systems With Several Variables
With two equations f and g, the linearization matrix holds the partial derivatives of f and g, evaluated at the equilibrium.8Medium. Dynamical Systems#4: Linearization and Stability Each entry says how strongly one equation responds to a small nudge in one variable. This matrix is called the Jacobian matrix.8Medium. Dynamical Systems#4: Linearization and Stability The linear model then becomes rate of Δx = Jacobian × Δx.9Scholarpedia. Perturbation theory (dynamical systems)
Take f = x·y − 1 and g = x − y². Row 1 holds ∂f/∂x = y and ∂f/∂y = x. Row 2 holds ∂g/∂x = 1 and ∂g/∂y = −2y. To find the operating point, set both equations to zero. The second gives x = y², and substituting into the first gives y³ = 1. The real solution is y = 1 and x = 1, so the equilibrium is (1, 1). Plugging in turns every entry into a number: the first row is 1 and 1, and the second row is 1 and −2.
Keep rows and columns straight. Rows correspond to equations and columns to variables. Swapping them gives the transpose and wrong dynamics, so list the variables in one fixed order and keep it everywhere.
Engineers write the state as the operating value plus a small deviation, x = x_ss + Δx.10International Journal of Electrical Power and Energy Systems. Linearization of periodic power electronic-based power systems for small-signal analysis The linear model then tracks only the deviation, and it’s often called a small-signal model.10International Journal of Electrical Power and Energy Systems. Linearization of periodic power electronic-based power systems for small-signal analysis If inputs vary too, a second matrix of partial derivatives, this time with respect to the inputs, is added.
What the Linear Model Tells You About Stability
If the Jacobian has no eigenvalues with zero real part, the real system near the point behaves like its linear model.9Scholarpedia. Perturbation theory (dynamical systems) Stability judged from the linear model then holds for the original system near that point. Power engineers rely on this when they check grid stability by computing eigenvalues of the linearized equations.11Digital Repository Service (Northeastern University). Power system stability response and control using small signal analysis
If all real parts are negative, small disturbances fade. If any real part is positive, some disturbance grows. Imaginary parts mean oscillation. The upright pendulum has a positive eigenvalue, matching its tendency to fall.
Once the Jacobian is a table of numbers, a numerical library finds its eigenvalues in one call. For a two-by-two matrix you can do it by hand by solving a quadratic equation built from the matrix’s trace and determinant.
When an eigenvalue has zero real part, the linear model can’t decide, and the dropped terms matter. A frictionless pendulum at the bottom gives purely imaginary eigenvalues, so the linear model predicts endless swinging. Whether real swings slowly grow or fade depends on the neglected terms.
How Far the Approximation Can Be Trusted
Linear models are valid only within a limited neighborhood of the operating point.12Frontiers in Energy Research. Error analysis and improvement framework for linear power flow models under wide operating conditions Under wide operating conditions, linear power-flow models show errors that grow as conditions move away from the starting point.12Frontiers in Energy Research. Error analysis and improvement framework for linear power flow models under wide operating conditions That happens because the dropped Taylor terms grow with distance, and an error interval can be computed for a chosen range.13arXiv. Automatically Bounding the Taylor Remainder Series: Tighter Bounds and New Applications
A practical test is to simulate the full nonlinear model and the linear one from the same small disturbance. Increase the disturbance until the two curves visibly separate. That size is your working range, and more curved functions give narrower ranges.
The second derivative gives an early warning. The next Taylor term is half the second derivative times (x − x0)². A large second derivative means error grows quickly, so compare that term with the linear term to judge whether it’s negligible.
How much error is acceptable depends on the job. A rough controller design can tolerate more than a precise prediction of an output. Decide the tolerance first, such as an error under a few percent, then find how far from the operating point you can go before the model exceeds it.
When Simple Linearization Breaks Down
Saturation, hysteresis, friction and backlash are common non-smooth effects in real machines.14Proceedings of the Estonian Academy of Sciences. Feedback linearization of possibly non-smooth systems They have corners or jumps, so there’s no single slope at those points. They’re often written using the sign function, which switches between −1 and +1.14Proceedings of the Estonian Academy of Sciences. Feedback linearization of possibly non-smooth systems
At a corner such as the point of an absolute-value curve, the slope on the left differs from the slope on the right, so no one tangent line fits. Away from the corner, each side is smooth and can be linearized separately, which is the idea behind piecewise models. Using one slope right at a kink would be wrong for half of the nearby values.
For a wide operating range, gain scheduling linearizes at many operating points and blends the resulting linear controllers.15ControlSystemsMTK Documentation. Batch linearization and gain scheduling You can also linearize along a planned moving path instead of a fixed point, which gives a model whose coefficients change over time.16OhioLINK Electronic Theses and Dissertations Center. OUTPUT FEEDBACK TRACKING CONTROL OF NONLINEAR TIME-VARYING SYSTEMS BY TRAJECTORY LINEARIZATION Feedback linearization uses a control law to make a system behave exactly linearly, as shown for a chemical stirred-tank reactor.17Chemical Engineering Communications. AN EXOTHERMIC CONTINUOUS STIRRED TANK REACTOR IS FEEDBACK EQUIVALENT TO A LINEAR SYSTEM Data-driven methods go further and try to find linear representations of the whole system from data.18Aalto University Publication Series. Data-driven Koopman theory-based linearization of nonlinear systems
Feedback linearization isn’t an approximation. It cancels nonlinear terms exactly using measurements, which means it needs an accurate model, or the cancellation leaves leftover errors. That sets it apart from the Taylor method, which drops terms instead of canceling them.
Letting Software Do the Derivatives
Automatic differentiation computes exact derivatives of any program-coded function at little extra cost.19Progress in Canadian Mechanical Engineering. Volume 4. Automatic Differentiation In The Automatic Generation Of The Linearized Equations Of Motion It works because every program breaks functions into basic arithmetic steps whose derivatives are known.19Progress in Canadian Mechanical Engineering. Volume 4. Automatic Differentiation In The Automatic Generation Of The Linearized Equations Of Motion Simulink’s Model Linearizer finds operating points by trimming or simulating and linearizes at them.20MathWorks. Model Linearizer It can also batch-linearize across many parameter values, which supports gain scheduling.20MathWorks. Model Linearizer
Software output deserves a check. Verify that the operating point really makes all rates zero, and compare one Jacobian entry with a hand calculation. Run a small-disturbance simulation against the full model. If the software estimates derivatives by nudging inputs in small steps instead, avoid steps that are too large or too small.
Economists use a variant called log-linearization, which approximates in percentage deviations. It’s standard for solving dynamic economic models that lack exact solutions, and the steps are the same, just applied to the logs of variables.

