How the Math Used in 19th-Century Heat Physics Helps LLMs Understand Sentences