A Handbook of Mathematical Discourse
analogy
An analogy between two situations is a perceived similarity between some part of one and some part of the other. Analogy, like metaphor, is a form of conceptual blend.
Mathematics often arises out of analogy: Problems are solved by analogy with other problems and new theories are created by analogy with older ones. Sometimes a perceived analogy can be put in a formal setting and becomes a theorem.
Analogy in problem solving is discussed in [Hofstadter, 1995].
Page 15 of the book (PDF).