I'm looking at the standard full subtractor circuit and have been trying to understand how the circuit is derived/synthesized based on a web tutorial.
I can follow the derivation of the truth table in the image below:

Which subsequently leads to the first boolean expression in the next image below. However I can't figure out how to minimize the expression to the exclusive OR format.
I've tried re-arranging the equation such that it looks like D = B(!X!Y + XY) + !B(!XY + X!Y). I think the first section of the expression in brackets corresponds to the truth table of an EX-NOR gate and the second section of the expression in brackets corresponds to the truth table of an XOR gate.....any tips on how to proceed or an explanation of the minimization would be greatly appreciated!

