Reverse Stabilization

I have stabilized a video with two trackers with the idea to stabilize it by translation and rotation.

When compositing there are two options to visualize the stabilisation:

  1. With Stabilize 2D node - which is easier to setup and
  2. With Transform node which have inputs correlating with the outputs of the Movie Clip node (Offset X, Offset Y, Angle and Scale)
    Both methods give the same result of stabilized image.

Now I would like to reverse the stabilisation by using Math nodes and the Transform node.
Simply multiplying the Angle output by -1 will reverse the rotation, but reversing X and Y offsets are those giveing me headaches.

Does anyone have a solution how to reverse stabilisation in Blender?

Similar to this?

Detailed tutorial here:

Thanks for the quick reply, Sean!

The links are related to video stabilization, but not to the reversing of the stabilisation effect.

Actually I think I’ve solved the problem myself.
The key was to use two Transform nodes.
I was trying to do this with a single Transform node, but obviously the ordering of the calculations gives priority to the Angle input first and that is why I failed to do all in a single node.