An analytical solution of the transient temperature response in a semi-infinite medium with a line source of finite length has been derived, which is a more appropriate model for boreholes in geothermal heat exchangers, especially for their long-duration operation. The steady-state temperature distribution has also been obtained as a limit of this solution. An erratic approach to this problem t…