T(X) = Q(x)G(x) + R(x)and lets call the extra bit "b".
(T(X)x + b) = (x Q(x))G(x) + (R(x)x + b)
R(x)x + b - Q(x)is guaranteed to have degree less than k since the coefficients of xk in both Q(x) and R(x)x must be 1 and 1+1 = 0.
In this case, regrouping the terms of the equation above to yield
(T(X)x + b) = (x Q(x) + 1)G(x) + (R(x)x + b - G(x))allows us to conclude that this time
R(x)x + b - Q(x)must be the new remainder.
Accordingly, when the first bit of the CRC is 1, we can compute the new CRC by first shifting the old CRC left by one, then appending the new bit b and then adding G(x). Since addition mod 2 is just the exclusive or operation, we can just exclusive or the bits of the shifted CRC with the bits corresponding to the coefficients of G(x).