Mathematical Model Reveals the Patterns of How Innovations Arise