An alternate form of Ueno's X- and Y-equations for inhomogeneous atmospheres