The thermal stress in a bar is directly proportional to