As we increase the temperature, the activity of the enzyme increases (the reaction gets faster)
As the temperature increases, the enzyme and substrate are moving faster so there are more collisions per second between the substrate and the active site.
At a certain temperature, the enzyme is working at the fastest possible rate. That's called the optimum temperature.
At the optimum temp, there is a maximum frequency of successful collisions between the substrate and the active site.
As we increase the temperature past the optimum, then the activity of the enzyme rapidly decreases to zero.
At high temperatures, the enzyme molecule vibrates and the shape of the active site changes.
After the active site changes shape, the substrate no longer fits perfectly into the active site. The active site is denatured.
The enzyme has an optimum pH, where the activity is maximum.
If we make the pH more acidic or more alkaline then the activity drops to zero.
The active site denatures if the conditions are too acidic or too alkaline.