The function x ↦ - x * log x #
The purpose of this file is to record basic analytic properties of the function x ↦ - x * log x,
which is notably used in the theory of Shannon entropy.
Main definitions #
negMulLog: the functionx ↦ - x * log xfromℝtoℝ.
theorem
Real.Continuous.mul_log
{α : Type u_1}
[TopologicalSpace α]
{f : α → ℝ}
(hf : Continuous f)
:
Continuous fun (a : α) => f a * Real.log (f a)
At x=0, (fun x ↦ x * log x) is not differentiable
(but note that it is continuous, see continuous_mul_log).
Alias of the reverse direction of Real.differentiableAt_negMulLog_iff.
theorem
Real.hasDerivAt_negMulLog
{x : ℝ}
(hx : x ≠ 0)
:
HasDerivAt Real.negMulLog (-Real.log x - 1) x