Calculus · real student question

Find the derivative of f(x) = x^2/2 + cos 5x.

Question

Find the derivative of f(x)=x22+cos5x.f(x)=\frac{x^2}{2}+\cos 5x.

Step-by-step solution

  1. Split the sum. Differentiation is linear, so handle x22\dfrac{x^2}{2} and cos5x\cos 5x independently and add the results.

  2. Differentiate the quadratic term. ddx(x22)=2x2=x\dfrac{d}{dx}\left(\dfrac{x^2}{2}\right)=\dfrac{2x}{2}=x.

  3. Differentiate the cosine with the chain rule. The inner function is u=5xu=5x, whose derivative is 55. Since dducosu=sinu\dfrac{d}{du}\cos u=-\sin u, ddxcos5x=sin(5x)5=5sin5x.\frac{d}{dx}\cos 5x=-\sin(5x)\cdot 5=-5\sin 5x. Forgetting the inner factor 55 — or losing the minus sign — is the usual error here.

  4. Combine the two pieces. f(ˊx)=x5sin5x.f\'(x)=x-5\sin 5x.

  5. Verify numerically. At x=0.7x=0.7 the formula gives 0.75sin3.5=0.75(0.350783)=2.4539170.7-5\sin 3.5=0.7-5(-0.350783)=2.453917, and a central difference quotient of ff at x=0.7x=0.7 agrees to six decimals.

Answer

f(x)=x5sin5xf'(x)=x-5\sin 5x

Need to solve a different problem like this? Open the solver →