Derivative of x*sin(x)

Answer

cos(x)⋅x+sin(x)\mathrm{cos}\left(x\right) \cdot x+\mathrm{sin}\left(x\right)
cos(x)*x+sin(x)

Derivative of x*sin(x)

Rule Used
Product Rule
Steps
  1. Identify a product of two functions of x in x*sin⁡(x)\sin(x): use the product rule (uv)' = u'v + uv'. Each factor is differentiated once while the other is held as-is, then the two terms are added.
  2. Differentiate each factor and combine.
  3. Final answer: cos⁡(x)\cos(x)*x+sin⁡(x)\sin(x)

d/dx x sin(x) = cos(x)*x+sin(x). The expression is built from polynomials, sine, cosine, or exponentials, so the derivative exists for every real x.

Instant step-by-step solution for x*sin(x)

Share this result
Share on X

Derivative of x*sin(x) = cos(x)*x+sin(x) Solve step-by-step for free: https://derivativecalculatorai.com/derivative-of-x-sin-x

Derivative

x sin(x) → cos(x)*x+sin(x)engine: cos(x)*x+sin(x)

Graph of the function and its derivative

f(x) f'(x)

The solid curve is f. The dashed curve is f′. Vertical gaps are asymptotes or jumps, not extra zeros.

Why the derivative has this form

x sin(x) is a product of two functions that both depend on x. Differentiate x and leave sin(x), then differentiate sin(x) and leave x: the sum is sin(x) + x cos(x). Neither term is optional. At x = 0 the second term vanishes and the derivative equals sin's value, which is 0, matching the flat start of x sin(x).

Apply the product rule to x sin(x). The form to remember, already simplified, is cos(x)*x+sin(x).

The expression is built from polynomials, sine, cosine, or exponentials, so the derivative exists for every real x.

At x = 0, substitute into the simplified form cos(x)*x+sin(x). That number is the slope of x sin(x) there; a secant over a small step in x lands next to it.

Worked derivative

  1. Write f(x) = x sin(x).
  2. Apply the product rule to x sin(x). The form to remember, already simplified, is cos(x)*x+sin(x).
  3. At x = 0, substitute into the simplified form cos(x)*x+sin(x). That number is the slope of x sin(x) there; a secant over a small step in x lands next to it.

Common mistakes

Answering x*cos(x)

x cos(x) differentiates only the sine and keeps x in front, dropping the sin(x) term that comes from differentiating the x.

Differentiating only one factor of x sin(x)

Both factors depend on x. Differentiating one and copying the other, then stopping, drops a whole term.

Frequently asked questions

What is the derivative of x sin(x)?

cos(x)*x+sin(x). x sin(x) is a product of two functions that both depend on x. Differentiate x and leave sin(x), then differentiate sin(x) and leave x: the sum is sin(x) + x cos(x). Neither term is optional. At x = 0 the second term vanishes and the derivative equals sin's value, which is 0, matching the flat start of x sin(x).

Which wrong answer shows up for x sin(x)?

x cos(x) differentiates only the sine and keeps x in front, dropping the sin(x) term that comes from differentiating the x.

Where is the derivative of x sin(x) defined?

The expression is built from polynomials, sine, cosine, or exponentials, so the derivative exists for every real x.