Nathan Tyson bagged the winner as Derby bounced back from successive defeats with a 3-2 home win over Birmingham.