We know that for a quadratic equation of the form ax2+bx+c=0,
x=−b±√b2−4ac2a [Quadratic formula]
The given equation is x2−k2x=2p
We can rewrite the equation as x2−k2x−2p=0
∴ x=k2±√(−k2)2−4×1×(−2p)2×1 [Quadratic formula]
⇒k2±√k24+8p2
⇒k±√k2+32p4
⇒k4±√k2+32p4
Hence, option B is correct.