Investigation of N–S asymmetry of solar differential rotation by various patterns for solar cycles 20 and 21