Invariant differential equations and the Adler–Gel’fand–Dikii bracket