"用类推的方法" can be translated into English as "by the method of analogy" or "through analogical reasoning".
"By the method of analogy" emphasizes the use of analogy as a specific approach or technique.
"Through analogical reasoning" highlights the process of drawing conclusions based on similarities between different cases or situations.
Both expressions are appropriate depending on the context in which you want to use them.