This method is the same as the above but where two (or more) solvents are used. This relies on both "compound A" and "impurity B" being soluble in a first solvent. A second solvent is slowly added. Either "compound A" or "impurity B" will be insoluble in this solvent and precipitate, whilst the other of "compound A"/"impurity B" will remain in solution. Thus the proportion of first and second solvents is critical. Typically the second solvent is added slowly until one of the compounds begins to crystallize from the solution and then the solution is cooled. Heating is not required for this technique but can be used.
The reverse of this method can be used where a mixture of solvents dissolves both A and B. One of the solvents is then removed by distillation or by an applied vacuum. This results in a change in the proportions of the solvent causing either "compound A" or "impurity B" to precipitate.