Chain-of-thought prompting was popularized by a 2022 Google paper showing that large models solved math and logic problems far better when examples included worked reasoning. Simply asking a model to “think step by step” also helps.
Reasoning models now produce this kind of thinking internally. Visible reasoning helps you check the logic, but it is not proof the answer is right. See the chain-of-thought guide.