Consider that
$$
x = vt\cos\theta, \qquad y = vt \sin\theta -\frac{gt^2}{2}.
$$
Substituting the first into the second
$$
y = x \tan\theta - \frac{gx^2}{2v^2\cos^2\theta}.
$$
For a fixed ##x## and fixed ##v##, this is the height ##y## at position ##x## when launched at angle ##\theta## with speed ##v##. To find the equation of the envelope, we need to maximise this wrt ##\theta##.
$$
\frac{dy}{d\theta} = \frac{x}{\cos^2\theta} - \frac{gx^2\sin\theta}{v^2\cos^3\theta}
= x \frac{v^2 \cos\theta - gx \sin\theta}{v^2 \cos^3\theta}= 0.
$$
Implying
$$
\tan\theta = \frac{v^2}{gx}, \quad
\frac{1}{\cos^2\theta} = 1 + \tan^2\theta
= 1 + \frac{v^4}{g^2 x^2}
$$
and therefore
$$
y_{\rm max} = \frac{v^2}{g} - \frac{gx^2}{2v^2}\left( 1 + \frac{v^4}{g^2 x^2}\right)
= \frac{v^2}{2g} - \frac{gx^2}{2v^2}.
$$
So, why is this interesting to the problem at hand? Well, since we now have the highest you can reach at ##x## with speed ##v##, we just need to find the speed ##v## such that ##y_{\rm max} = \Delta y## when ##x = \Delta x##. This is a straightforward second order polynomial equation in ##v^2##:
$$
(v^2)^2 - 2g \Delta y \, v^2 - g^2 \Delta x^2 = 0
$$
and therefore
$$
v^2 = g \Delta y + g\sqrt{\Delta y^2 + \Delta x^2}.
$$
… assuming I managed to avoid arithmetic errors while doing this on my phone …
Edit: Note that the angle ##\theta## as found above of course councides with the expression given by
@kuruman once the solution for ##v^2## is inserted into the expression for ##\tan\theta##.