Given the diagram below, what is cos(45°)?

As we can see, this is a 45 45 90 triangle
The legs of the triangle are equal and the hypotenuse = leg * sqrt(2)
In this case,
The hypotenuse = 6 * sqrt(2)
Cos(45) = 6 / (6 * sqrt(2))
The 6's cancel each other out and you're left with:
1 / sqrt(2)