Logic gates implemented with non-ideal transistors have non-zero rise times. Therefore, they are smooth and differentiable.