x^2 - 4x +k = 0----------------(1)
x^2 + kx - 4 =0----------------(2)
as equations 1 and 2 has common root
Let 'a' be the common roo for the equation, therefore equation 1 and 2 becomes
a^2 - 4a +k = 0-----------------(3)
a^2 +ka - 4 = 0 ----------------(4)
subtracting equation 4 from 3:
a^2 - 4a +k - a^2 - ka +4 =0
-(4 +k)a +k + 4 =0
a = 1
substittuting the value of 'a' in equation 3, we get
1 - 4 +k = 0
k = 3