Mister Exam

Derivative of x(a*cos2x+bsin2x)

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

The graph:

from to

Piecewise:

The solution

You have entered [src]
x*(a*cos(2*x) + b*sin(2*x))
x(acos(2x)+bsin(2x))x \left(a \cos{\left(2 x \right)} + b \sin{\left(2 x \right)}\right)
x*(a*cos(2*x) + b*sin(2*x))
Detail solution
  1. Apply the product rule:

    ddxf(x)g(x)=f(x)ddxg(x)+g(x)ddxf(x)\frac{d}{d x} f{\left(x \right)} g{\left(x \right)} = f{\left(x \right)} \frac{d}{d x} g{\left(x \right)} + g{\left(x \right)} \frac{d}{d x} f{\left(x \right)}

    f(x)=xf{\left(x \right)} = x; to find ddxf(x)\frac{d}{d x} f{\left(x \right)}:

    1. Apply the power rule: xx goes to 11

    g(x)=acos(2x)+bsin(2x)g{\left(x \right)} = a \cos{\left(2 x \right)} + b \sin{\left(2 x \right)}; to find ddxg(x)\frac{d}{d x} g{\left(x \right)}:

    1. Differentiate acos(2x)+bsin(2x)a \cos{\left(2 x \right)} + b \sin{\left(2 x \right)} term by term:

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

        1. Let u=2xu = 2 x.

        2. The derivative of cosine is negative sine:

          dducos(u)=sin(u)\frac{d}{d u} \cos{\left(u \right)} = - \sin{\left(u \right)}

        3. Then, apply the chain rule. Multiply by ddx2x\frac{d}{d x} 2 x:

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

            1. Apply the power rule: xx goes to 11

            So, the result is: 22

          The result of the chain rule is:

          2sin(2x)- 2 \sin{\left(2 x \right)}

        So, the result is: 2asin(2x)- 2 a \sin{\left(2 x \right)}

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

        1. Let u=2xu = 2 x.

        2. The derivative of sine is cosine:

          ddusin(u)=cos(u)\frac{d}{d u} \sin{\left(u \right)} = \cos{\left(u \right)}

        3. Then, apply the chain rule. Multiply by ddx2x\frac{d}{d x} 2 x:

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

            1. Apply the power rule: xx goes to 11

            So, the result is: 22

          The result of the chain rule is:

          2cos(2x)2 \cos{\left(2 x \right)}

        So, the result is: 2bcos(2x)2 b \cos{\left(2 x \right)}

      The result is: 2asin(2x)+2bcos(2x)- 2 a \sin{\left(2 x \right)} + 2 b \cos{\left(2 x \right)}

    The result is: acos(2x)+bsin(2x)+x(2asin(2x)+2bcos(2x))a \cos{\left(2 x \right)} + b \sin{\left(2 x \right)} + x \left(- 2 a \sin{\left(2 x \right)} + 2 b \cos{\left(2 x \right)}\right)

  2. Now simplify:

    acos(2x)+bsin(2x)2x(asin(2x)bcos(2x))a \cos{\left(2 x \right)} + b \sin{\left(2 x \right)} - 2 x \left(a \sin{\left(2 x \right)} - b \cos{\left(2 x \right)}\right)


The answer is:

acos(2x)+bsin(2x)2x(asin(2x)bcos(2x))a \cos{\left(2 x \right)} + b \sin{\left(2 x \right)} - 2 x \left(a \sin{\left(2 x \right)} - b \cos{\left(2 x \right)}\right)

The first derivative [src]
a*cos(2*x) + b*sin(2*x) + x*(-2*a*sin(2*x) + 2*b*cos(2*x))
acos(2x)+bsin(2x)+x(2asin(2x)+2bcos(2x))a \cos{\left(2 x \right)} + b \sin{\left(2 x \right)} + x \left(- 2 a \sin{\left(2 x \right)} + 2 b \cos{\left(2 x \right)}\right)
The second derivative [src]
4*(b*cos(2*x) - a*sin(2*x) - x*(a*cos(2*x) + b*sin(2*x)))
4(asin(2x)+bcos(2x)x(acos(2x)+bsin(2x)))4 \left(- a \sin{\left(2 x \right)} + b \cos{\left(2 x \right)} - x \left(a \cos{\left(2 x \right)} + b \sin{\left(2 x \right)}\right)\right)
The third derivative [src]
4*(-3*a*cos(2*x) - 3*b*sin(2*x) + 2*x*(a*sin(2*x) - b*cos(2*x)))
4(3acos(2x)3bsin(2x)+2x(asin(2x)bcos(2x)))4 \left(- 3 a \cos{\left(2 x \right)} - 3 b \sin{\left(2 x \right)} + 2 x \left(a \sin{\left(2 x \right)} - b \cos{\left(2 x \right)}\right)\right)