Suppose L is a finite-dimensional Lie algebra with multiplication ÎŒ: Lâ§LâL. Let Î(L) denote the set of triples (f,fâČ,fâł), with f, fâČ, fâłâHom(L,L), such that ÎŒâ(fâ§IL+ILâ§fâČ)=fâłâÎŒ. We consider the Lie algebra GenDer(L)={fâHom(L,L)|âfâČ, fâł: (f,fâČ, fâł)âÎ(L)}. Well-researched subalgebras of GenDer(L) include the derivation algebra, Der(L)={fâHom(L, L)|(f, f, f)âÎ(L)}, and the centroid, C(L)={fâHom(L,L)|(f,0,f)âÎŽ(L)}. We now study the subalgebra QDer(L)={fâHom(L,L)|âfâČ: (f,f,fâČ)âÎ(L)}, and the subspace QC(L)={fâHom(L,L)|(f,âf,0)âÎ(L)}. In characteristic â 2, GenDer(L)=QDer(L)+QC(L) and we are concerned with the inclusions Der(L)âQDer(L) and C(L)âQC(L)â©QDer(L). If Z(L)=0 then C(L)=QC(L)â©QDer(L) and, under reasonable conditions on Lie algebras with toral Cartan subalgebras, we show QDer(L)=Der(L)+C(L); if L is a parabolic subalgebra of a simple Lie algebra of rank >1 in characteristic 0, then we even have GenDer(L)=ad(L)+(IL). In general QC(L) is not closed under composition or Lie bracket; however, if Z(L)=0 then QC(L) is a commutative, associative algebra, and we describe conditions that force QC(L)=C(L) or, equivalently, GenDer(L)=QDer(L). We show that, in characteristic 0, GenDer(L) preserves the radical of L, thus generalizing the classical result for Der(L). We also discuss some applications of the main results to the study of functions fâHom(L,L) such that fâÎŒ or ÎŒâ(fâ§IL) defines a Lie multiplication.