Matrix differential Figure 4: Difference matrix