1. Starting Knowledge:
  2. Taylor expansion on the function:
  3. Neglect the last term and we obtain: Where: and are Jacobean matrices So we can re-write as:
  4. Calculate the estimate of :
  5. We have defined as the covariance matrix of the error of the prediction and true value , so:

Exactly like in the linear case, the only difference is that and are now time varying matrices, so because and are uncorrelated we can write:

From the definition we gave to we have that:

And from the definition of Covariance Matrix, and knowing that the mean of is :

We can conclude that:

And obtain the 2nd formula of the EKF algorithm: 5. We can now start with the correction step: The following step will be very similar to the previous ones. 6. Taylor expansion of the function: So we have:

  1. After declaring we need to find its estimate:
  1. Its covariance:
  2. Then we can say that, using the same formulas from the KF algorithm: Obtaining the 3rd formula of the EKF algorithm:
  3. Where the Kalman Gain, , is given by: (4th formula of the EKF algorithm, taken from the KF algorithm)
  4. Also taken from the KF algorithm, the 5th formula of the EKF algorithm: