From the viewpoint of operator theory, we deal with the temperature dependence of the solution to the BCS gap equation for superconductivity. When the potential is a positive constant, the BCS gap equation reduces to the simple gap equation. We first show that there is a unique nonnegative solution to the simple gap equation, that it is continuous and strictly decreasing, and that it is of class $C^2$ with respect to the temperature. We next deal with the case where the potential is not a constant but a function. When the potential is not a constant, we give another proof of the existence and uniqueness of the solution to the BCS gap equation, and show how the solution varies with the temperature. We finally show that the solution to the BCS gap equation is indeed continuous with respect to both the temperature and the energy under a certain condition when the potential is not a constant.