If two planes are perpendicular, then their normal vectors must also be perpendicular. First we find the normal vectors of the planes, which is the gradient of the function.
plane 1: n1 = [2, -k, 2k]. plane 2: n2 = [3, 1, -1].
If two vectors are to be perpendicular, then they must have a dot product of 0. Set this equation up and solve for k
n1 • n2 = [2, -k, 2k] • [3, 1, -1] = 6 -k - 2k = 6 - 3k = 0 ==> k = 2