x^2-2kx-3k^2

Although you didn't ask your question, I assume you want to find the factors.

(x-3k)(x+k)