This paper treats an optimal heating problem for transient thermal stress in a long circular cylinder so as to determine the temperature of the surrounding medium under prescribed mechanical boundary conditions. In the present investigation, the Laplace transform is used, and the exact solutions for the surrounding temperature and thermal stresses are obtained. The numerical results for the temperature and thermal stresses are shown in figures.