To demonstrate that cos a = 1/12 in square ABCD, the law of cosines is suggested as a key tool. The approach involves applying the law of cosines twice: first to triangle AEC to determine side EC, and then to triangle CED to calculate cos a. This method leverages the relationships between supplementary angles to facilitate the calculations. The discussion indicates that this two-step application is essential for reaching the desired result. Ultimately, the law of cosines provides a structured way to solve for cos a in this geometric context.