In this paper exact solutions of two variants of a modified Camassa–Holm equation are determined by using direct ansatze. As a result, compactons solutions: solitons with the absence of infinite tails, solitons: nonlinear localized waves of infinite support, solitary patterns solutions having infinite slopes or cusps, and plane periodic solutions are… (More)