Let d be a non-zero derivation on a primitive ring R and ƒ(x1,…, xn) a homogeneous polynomial of degree m. We prove that the condition d(ƒ(r1,…, rn)t) = 0, for all r1,…, rn ∈ R, with t depending on r1,…, rn, forces R to be a finite dimensional central simple algebra and ƒ power-central valued on R. We also obtain bounds on [R : Z(R)] in terms of m.