ยท Hankyu Kim ยท Filter ยท 3 min read
Extended Kalman Filter (EKF)
The Extended Kalman Filter applies the Kalman filter to nonlinear systems by locally linearizing system and measurement models using Jacobians.
Introduction
So far, we have spent considerable time understanding the linear Kalman filter, its intuition, and practical examples.
However, most real-world systems are nonlinear.
This is where the standard Kalman filter reaches its limit.
To overcome this, engineers developed a method to apply Kalman filtering to nonlinear systems.
The earliest and most widely used solution is the Extended Kalman Filter (EKF), first applied in aerospace systems and famously used by NASA.
Core Idea of EKF
The idea behind EKF is extremely simple:
If the system is nonlinear, linearize it at every time step and apply the Kalman filter.
That is the entire concept.
From Linear KF to EKF
Recall the linear Kalman filter state prediction:
In EKF, this becomes:
Similarly, the measurement model changes from:
to:
The only difference is that constant matrices and are replaced by nonlinear functions and .
Why This Works
Although the system is nonlinear, the Kalman filter itself is still linear.
EKF resolves this mismatch by:
- Approximating nonlinear functions
- Using a local linear model at each time step
This approximation is performed using first-order Taylor expansion.
Linearization via Jacobian
At each time step, the nonlinear functions are linearized around the current estimate.

The Jacobian matrices are defined as:
These Jacobians replace and in the Kalman filter equations.
EKF Algorithm Structure
Once linearized, the EKF algorithm is identical to the linear Kalman filter:
Prediction
- Predict state using
- Predict covariance using Jacobian
Update
- Compute Kalman gain using
- Update state estimate
- Update covariance
Only the source of and changes.
What Is a Jacobian?
The Jacobian is a matrix of partial derivatives.
Suppose:
Then:
This vector forms one row of the Jacobian.
Why Partial Derivatives Are Necessary
In Kalman filtering, the state is typically a vector:
Each component affects the system differently.
Therefore, we must compute derivatives with respect to each state variable separately.
This is why Jacobians are essential in EKF.
Intuitive Interpretation
- Nonlinear system โ cannot apply Kalman filter directly
- Linearize system locally โ apply Kalman filter
- Repeat at every time step
This produces a filter that works well as long as nonlinearities are not too severe.
Comparison Summary
Linear Kalman Filter
- System is already linear
- Directly apply Kalman filter
Extended Kalman Filter
- System is nonlinear
- Linearize using Jacobians
- Apply Kalman filter to the linear approximation
Why EKF Looks Difficult
Most textbooks and papers present EKF using dense mathematical notation.
While the formulas are correct, they obscure the simplicity of the idea.
In reality:
EKF = Kalman Filter + Jacobian-based linearization
Nothing more.
Practical Notes
- Jacobians can be derived analytically or computed numerically
- Many tools (MATLAB, Python libraries) handle Jacobian computation automatically
- EKF performance depends heavily on the quality of the linearization
Summary
- Real-world systems are mostly nonlinear
- EKF extends Kalman filtering to nonlinear systems
- Nonlinear functions are linearized at every step
- Jacobians replace constant matrices
- The underlying Kalman filter structure remains unchanged
If you understand the Kalman filter, EKF is a natural and straightforward extension.