# Derivative of x sin(x) with Proofs and Graphs

The x multiplied by sine of x function is a product of the monomial function x and the trigonometric function of sine. The derivative of x multiplied by the sine of x is equal to the quantity of x multiplied by the cosine of x and then added to the sine of x, xcos(x) + sin(x). We can prove this derivative using the product rule, implicit differentiation, quotient rule, trigonometric sine function, or the inverse sine function.

In this article, we will discuss how to derive the product of two functions, the monomial x and the trigonometric function sine. We will cover brief fundamentals, its formula, a graph comparison of tangent and its derivative, a proof, methods to derive, and a few examples.

##### GEOMETRY

Relevant for

Learning how to find the derivative of x sin(x).

See proofs

##### GEOMETRY

Relevant for

Learning how to find the derivative of x sin(x).

See proofs

## Proofs of the Derivative of x sin(x)

Listed below are the proofs of the derivative of $$x\sin{(x)}$$. These proofs can also serve as the main methods of deriving this function.

### Proof of the derivative of x sin(x) using the Product Rule formula

In the derivative process of $$x\sin{(x)}$$, the product rule is used since the x is being multiplied by the trigonometric sine of x. Here, we have two multiplicands. They are two functions being multiplied together that we cannot algebraically simplify.

You can review the product rule formula by looking at this article: Product Rule of derivatives. You can also look at this article for the proof of the trigonometric sine derivative using limits: Derivative of Sine, sin(x).

Let’s have the derivative of the function

$$f(x) = x\sin{(x)}$$

We can figure out the two functions being multiplied. In this case, it is a product of a monomial and a trigonometric sine of angle x. Setting the first multiplicand/term as u, we have

$$u = x$$

and setting the second multiplicand/term as v, we have

$$v = \sin{(x)}$$

Recall that the derivative product formula is

$$\frac{d}{dx} uv = u \frac{d}{dx} v + v \frac{d}{dx} u$$

That is, the function u times v is derived by multiplying u by the derivative of v and then added to v multiplied by the derivative of u. Applying this formula to our given function, we have

$$\frac{d}{dx} uv = (x) \frac{d}{dx} (\sin{(x)}) + (\sin{(x)}) \frac{d}{dx} (x)$$

Evaluating the derivative of u by using power rule and v by using the derivative of sine, we have

$$\frac{d}{dx} uv = (x) \cdot (\cos{(x)}) + (\sin{(x)}) \cdot (1)$$

Simplifying, we have

$$\frac{d}{dx} uv = x\cos{(x)} + \sin{(x)})$$

As a result, we arrive at the $$x\sin{(x)}$$ derivative formula.

$$\frac{d}{dx} x\sin{(x)} = x\cos{(x)} + \sin{(x)})$$

### Proof of the derivative of xsin(x) using implicit differentiation through quotient rule and trigonometric sine function

Given that the equation

$$y = x\sin{(x)}$$

Cross multiplying the first multiplicand of the right-hand side to the left-hand side of the equation, we have

$$\frac{y}{x} = \sin{(x)}$$

Evaluate the implicit differentiation in terms of x. We will use the quotient rule on the left hand side and the derivative of sine on the right hand side.

$$\frac{d}{dx} \left( \frac{y}{x} \right) = \frac{d}{dx} \sin{(x)}$$

Recall that the quotient rule formula is

$$\frac{d}{dx} \left( \frac{u}{v} \right) = \frac{u \frac{d}{dx} v – v \frac{d}{dx} u}{v^2}$$

Applying this to the derivative of the left hand side of the equation, we have

$$\frac{x \frac{dy}{dx} – y}{x^2} = \frac{d}{dx} \sin{(x)}$$

Deriving the right hand side of the equation, we have

$$\frac{x \frac{dy}{dx} – y}{x^2} = \cos{(x)}$$

Isolating $$\frac{dy}{dx}$$, we have

$$x \frac{dy}{dx} – y = x^2 \cos{(x)}$$

$$x \frac{dy}{dx} = x^2 \cos{(x)} + y$$

$$\frac{dy}{dx} = \frac{x^2 \cos{(x)} + y}{x}$$

$$\frac{dy}{dx} = \frac{x^2 \cos{(x)}}{x} + \frac{y}{x}$$

We recall from the beginning that $$y = x\sin{(x)}$$. Substituting this to the y of our derivative, we have

$$\frac{dy}{dx} = \frac{x^2 \cos{(x)}}{x} + \frac{x\sin{(x)}}{x}$$

Simplifying, we have

$$\frac{dy}{dx} = x \cos{(x)} + \sin{(x)}$$

We now have the derivative of $$y = x\sin{(x)}$$

$$y’ = x \cos{(x)} + \sin{(x)}$$

### Proof of the derivative of x sin(x) using implicit differentiation through quotient rule and the inverse sine function

Given that the equation

$$y = x\sin{(x)}$$

Cross multiplying the first multiplicand of the right hand side to the left hand side of the equation, we have

$$\frac{y}{x} = \sin{(x)}$$

Equate the equation in terms of the angle x of the sine function. Doing this will involve the process of inverse sine function.

$$\sin^{-1}{\left( \frac{y}{x} \right)} = x$$

Evaluate the implicit differentiation in terms of x. We will use the chain rule formula on the left hand side involving the quotient rule and the derivative of inverse sine; and then on the right hand side, a simple power rule.

$$\frac{d}{dx} \left( \sin^{-1}{\left( \frac{y}{x} \right)} \right) = x$$

$$\left( \frac{1}{\sqrt{1-\left(\frac{y}{x}\right)^2}} \right) \cdot \left( \frac{x \frac{dy}{dx} – y}{x^2} \right) = 1$$

Isolating $$\frac{dy}{dx}$$, we have

$$\frac{ \frac{x \frac{dy}{dx} – y}{x^2} }{ \sqrt{1-\left(\frac{y}{x}\right)^2} } = 1$$

$$\frac{x \frac{dy}{dx} – y}{x^2} = \sqrt{1-\left(\frac{y}{x}\right)^2}$$

$$x \frac{dy}{dx} – y = x^2 \sqrt{1-\left(\frac{y}{x}\right)^2}$$

$$x \frac{dy}{dx} = x^2 \sqrt{1-\left(\frac{y}{x}\right)^2} + y$$

$$\frac{dy}{dx} = \frac{ x^2 \sqrt{1-\left(\frac{y}{x}\right)^2} + y }{x}$$

$$\frac{dy}{dx} = \frac{ x^2 \sqrt{1-\left(\frac{y}{x}\right)^2}}{x} + \frac{y}{x}$$

We recall from the beginning that $$y = x\sin{(x)}$$. Substituting this to the y of our derivative, we have

$$\frac{dy}{dx} = \frac{ x^2 \sqrt{1-\left(\frac{x\sin{(x)}}{x}\right)^2}}{x} + \frac{x\sin{(x)}}{x}$$

Simplifying, we have

$$\frac{dy}{dx} = x \sqrt{1-(\sin{(x)})^2} + \sin{(x)}$$

$$\frac{dy}{dx} = x \sqrt{1-\sin^{2}{(x)}} + \sin{(x)}$$

Recall that we can apply a trigonometric identity here by using $$\sin^{2}{(x)} + \cos^{2}{(x)} = 1$$, also called the pythagorean formula for sines and cosines. Applying this identity, we have

$$\frac{dy}{dx} = x \sqrt{\cos^{2}{(x)}} + \sin{(x)}$$

$$\frac{dy}{dx} = x \cos{(x)} + \sin{(x)}$$

Just like the first two proofs, we now have the derivative of $$y = x\sin{(x)}$$

$$y’ = x \cos{(x)} + \sin{(x)}$$

## How to derive the function x sin(x)

Before we start on the step by step process and as a summary, the derivative of $$x\sin{(x)}$$ is

### Derivative of the x sin(x) using product rule

Step 1: Determine the two functions being multiplied. Mark the first multiplicand/term as u and the second as v.

$$u = x$$

$$v = \sin{(x)}$$

Step 2: Recall the product rule formula.

$$\frac{d}{dx} f(x) = u \frac{d}{dx} v + v \frac{d}{dx} u$$

Step 3: Apply the product rule formula to derive $$x\sin(x)$$.

$$\frac{dy}{dx} = x \cdot \frac{d}{dx} \sin{(x)} + \sin{(x)} \cdot \frac{d}{dx} x$$

Step 4: Use the appropriate derivative formulas for u and v. In this case, use the power rule for the derivative of u and the derivative of sine for the derivative of v.

$$\frac{dy}{dx} = x \cdot \cos{(x)} + \sin{(x)} \cdot (1)$$

Step 5: Simplify algebraically and apply some identities or laws only if applicable

$$\frac{dy}{dx} = x \cos{(x)} + \sin{(x)}$$

$$\frac{d}{dx} x\sin{(x)} = x\cos{(x)} + \sin{(x)}$$

## Graph of x sin(x) vs. its derivative

In the instance of this function

$$f(x) = x\sin{(x)}$$

the graph is illustrated as

And as we learned above, deriving $$f(x) = x\sin{(x)}$$ will be

$$f'(x) = x\cos{(x)} + \sin{(x)}$$

which is illustrated graphically as

Illustrating both graphs in one, we have

By examining the differences between these functions using these graphs, you can see that both the original function $$f(x) = x\sin{(x)}$$ and its derivative $$f'(x) = x\cos{(x)} + \sin{(x)}$$ have a similar domain of

$$(-\infty,\infty)$$ or $$x | x \in \mathbb{R}$$

and both also lie within the range of

$$(-\infty,\infty)$$ or $$y | y \in \mathbb{R}$$

## Examples

The example below shows how to derive a variable multiplied by the sine of the same variable using the product rule formula.

### EXAMPLE 1

Derive: $$f(\beta) = \beta\sin{(\beta)}$$

Solution: Using the product rule formula, we have

Determine u and v.

$$u = \beta$$

$$v = \sin{(\beta)}$$

Recall and apply the product rule formula to derive $$\beta\sin{(\beta)}$$

$$\frac{d}{d\beta} f(\beta) = u \frac{d}{d\beta} v + v \frac{d}{d\beta} u$$

$$\frac{d}{d\beta} f(\beta) = \beta \frac{d}{d\beta} \sin{(\beta)} + \sin{(\beta)} \frac{d}{d\beta} \beta$$

Derive u and v in the product rule formula

$$\frac{d}{d\beta} f(\beta) = \beta \cdot \cos{(\beta)} + \sin{(\beta)} \cdot (1)$$

Simplify algebraically and apply some identities or laws only if applicable

$$\frac{d}{d\beta} f(\beta) = \beta \cos{(\beta)} + \sin{(\beta)}$$

$$\frac{d}{d\beta} \beta\sin{(\beta)} = \beta \cos{(\beta)} + \sin{(\beta)}$$