Mister Exam

Other calculators

Derivative of -xlog2(x)-(1-x)log2(1-x)

Function f() - derivative -N order at the point
v

The graph:

from to

Piecewise:

The solution

You have entered [src]
   log(x)           log(1 - x)
-x*------ - (1 - x)*----------
   log(2)             log(2)  
$$- x \frac{\log{\left(x \right)}}{\log{\left(2 \right)}} - \frac{\log{\left(1 - x \right)}}{\log{\left(2 \right)}} \left(1 - x\right)$$
(-x)*(log(x)/log(2)) - (1 - x)*log(1 - x)/log(2)
Detail solution
  1. Differentiate term by term:

    1. Apply the quotient rule, which is:

      and .

      To find :

      1. The derivative of a constant times a function is the constant times the derivative of the function.

        1. Apply the product rule:

          ; to find :

          1. Apply the power rule: goes to

          ; to find :

          1. The derivative of is .

          The result is:

        So, the result is:

      To find :

      1. The derivative of the constant is zero.

      Now plug in to the quotient rule:

    2. The derivative of a constant times a function is the constant times the derivative of the function.

      1. The derivative of a constant times a function is the constant times the derivative of the function.

        1. Apply the product rule:

          ; to find :

          1. Differentiate term by term:

            1. The derivative of the constant is zero.

            2. The derivative of a constant times a function is the constant times the derivative of the function.

              1. Apply the power rule: goes to

              So, the result is:

            The result is:

          ; to find :

          1. Let .

          2. The derivative of is .

          3. Then, apply the chain rule. Multiply by :

            1. Differentiate term by term:

              1. The derivative of the constant is zero.

              2. The derivative of a constant times a function is the constant times the derivative of the function.

                1. Apply the power rule: goes to

                So, the result is:

              The result is:

            The result of the chain rule is:

          The result is:

        So, the result is:

      So, the result is:

    The result is:

  2. Now simplify:


The answer is:

The graph
The first derivative [src]
    1      log(1 - x)   log(x)       -1 + x    
- ------ + ---------- - ------ - --------------
  log(2)     log(2)     log(2)   (1 - x)*log(2)
$$- \frac{\log{\left(x \right)}}{\log{\left(2 \right)}} + \frac{\log{\left(1 - x \right)}}{\log{\left(2 \right)}} - \frac{1}{\log{\left(2 \right)}} - \frac{x - 1}{\left(1 - x\right) \log{\left(2 \right)}}$$
The second derivative [src]
  1      1
------ - -
-1 + x   x
----------
  log(2)  
$$\frac{\frac{1}{x - 1} - \frac{1}{x}}{\log{\left(2 \right)}}$$
The third derivative [src]
1        1    
-- - ---------
 2           2
x    (-1 + x) 
--------------
    log(2)    
$$\frac{- \frac{1}{\left(x - 1\right)^{2}} + \frac{1}{x^{2}}}{\log{\left(2 \right)}}$$