Two gears A and B are connected. A is larger than B.

Next, consider the FBD for the small gear.