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

The function x multiplied by the cotangent of x is a product of the monomial function x and the trigonometric function of cotangent. The derivative of x multiplied by the cotangent of x is equal to the cotangent of x subtracted by the quantity of x multiplied by the cosecant squared of x, cot(x) – xcsc²(x). This derivative can be proved using the product rule, implicit differentiation, quotient rule, trigonometric cotangent function, or the inverse cotangent function.

In this article, we will discuss how to derive the product of two functions, the monomial x and the trigonometric function cotangent. We will cover brief fundamentals, its formula, a graph comparison of cotangent and its derivative, proofs, methods to derive, and an example.

##### GEOMETRY

Relevant for

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

See proofs

##### GEOMETRY

Relevant for

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

See proofs

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

The proofs of the derivative of $$x\cot{(x)}$$ are listed below. These proofs can also be used as methods of deriving this function.

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

You can review the product rule formula by looking at this article: Product Rule of derivatives. You may also find the proof of the trigonometric cotangent derivative in this article: Derivative of Cotangent, cot(x).

Suppose we are asked to derive the function

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

We may deduce which two functions are being multiplied. It is a product of a monomial and the trigonometric cotangent of angle x in this instance. With u as the first multiplicand/term, we have

$$u = x$$

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

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

Keep in mind that the product formula for derivative is

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

In other words, the function u times v is derived by multiplying u by the derivative of v and then adding it to v multiplied by the derivative of u. When we apply this formula to our given function, we get

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

Evaluating, we have the derivative of u using the power rule and the derivative of v using the derivative of cotangent.

$$\frac{d}{dx} uv = (x) \cdot (-\csc^{2}{(x)}) + (\cot{(x)}) \cdot (1)$$

Simplifying, we have

$$\frac{d}{dx} uv = -((x) \cdot (\csc^{2}{(x)})) + (\cot{(x)}) \cdot (1)$$

$$\frac{d}{dx} uv = -x\csc^{2}{(x)} + \cot{(x)}$$

$$\frac{d}{dx} uv = \cot{(x)} – x\csc^{2}{(x)}$$

Resulting to the derivative formula of $$x\cot{(x)}$$

$$\frac{d}{dx} x\cot{(x)} = \cot{(x)} – x\csc^{2}{(x)}$$

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

Having the equation

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

By cross multiplying the first multiplicand of the right-hand side to the left-hand side of the equation, we get

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

In terms of x, evaluate the implicit differentiation. On the left hand side, we will utilize the quotient rule, and on the right, we’ll use the derivative of cotangent.

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

Keep in mind 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} \cot{(x)}$$

When we apply this to the left hand side of the equation, we get

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

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

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

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

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

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

We recall from the beginning that $$y = x\cot{(x)}$$. By substituting this for y in our derivative, we get

$$\frac{dy}{dx} = \frac{x\cot{(x)}}{x} – \frac{x^2 \csc^{2}{(x)}}{x}$$

Simplifying, we have

$$\frac{dy}{dx} = \cot{(x)} – x\csc^{2}{(x)}$$

This also gives us the derivative formula for $$y = x\cot{(x)}$$

$$y’ = \cot{(x)} – x\csc^{2}{(x)}$$

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

Having the equation

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

By cross multiplying the first multiplicand of the right-hand side to the left-hand side of the equation, we get

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

Equate the equation in terms of the cotangent function’s angle x. This will necessitate the use of the inverse cotangent function.

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

In terms of x, evaluate the implicit differentiation. On the left hand side, we’ll use the chain rule formula, which includes the quotient rule and the derivative of inverse cotangent, and on the right, we’ll use a basic power rule.

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

$$\left( -\frac{1}{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 get

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

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

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

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

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

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

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

We recall from the beginning that $$y = x\cot{(x)}$$. By substituting this to the y of our derivative, we get

$$\frac{dy}{dx} = \frac{x\cot{(x)}}{x} – \frac{x^2 \left( 1 + \left( \frac{x\cot{(x)}}{x} \right)^2 \right)}{x}$$

Simplifying, we have

$$\frac{dy}{dx} = \cot{(x)} – x \left( 1 + \left( \frac{x\cot{(x)}}{x} \right)^2 \right)$$

$$\frac{dy}{dx} = \cot{(x)} – x \left( 1 + (\cot{(x)})^2 \right)$$

$$\frac{dy}{dx} = \cot{(x)} – x \left( 1 + \cot^{2}{(x)}) \right)$$

Remember that we may use a trigonometric identity here by employing $$\csc^{2}{(x)} = 1 + \cot^{2}{(x)}$$, which is known as the Pythagorean formula for cotangents and cosecants. By utilizing this identity, we have

$$\frac{dy}{dx} = \cot{(x)} – x \left( \csc^{2}{(x)} \right)$$

$$\frac{dy}{dx} = \cot{(x)} – x\csc^{2}{(x)}$$

We now get the derivative of $$y = x\cot{(x)}$$ just like in the prior two proofs.

$$y’ = \cot{(x)} – x\csc^{2}{(x)}$$

## How to derive the x cot(x)

Before we begin the step-by-step procedure, to summarize, the derivative of $$x\cot{(x)}$$ is

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

Step 1: Determine the two functions that will be multiplied. The first multiplicand/term shall be denoted by u, and the second by v.

$$u = x$$

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

Step 2: Remember the derivative formula for the product rule.

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

Step 3: Using the product rule formula, begin deriving $$x\cot(x)$$.

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

Step 4: For the derivatives of u and v, use the proper derivative formulas. In this instance, use the power rule for u‘s derivative and the derivative of cotangent for v‘s derivative.

$$\frac{dy}{dx} = x \cdot (-\csc^{2}{(x)}) + \cot{(x)} \cdot (1)$$

Step 5: Simplify algebraically and use applicable identities or laws only when necessary.

$$\frac{dy}{dx} = -(x \cdot \csc^{2}{(x)}) + \cot{(x)}$$

$$\frac{dy}{dx} = – x \csc^{2}{(x)} + \cot{(x)}$$

$$\frac{d}{dx} x\cot{(x)} = \cot{(x)} – x\csc^{2}{(x)}$$

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

In the case of this function

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

the graph is depicted as

And, as previously discussed, deriving $$f(x) = x\cot{(x)}$$ is

$$f'(x) = \cot{(x)} – x\csc^{2}{(x)}$$

which is graphically depicted as

Depicting both graphs in one, we get

Using these graphs to compare the differences between these functions, you can see that both the original function $$f(x) = x\cot{(x)}$$ and its derivative $$f'(x) = \cot{(x)} – x\csc^{2}{(x)}$$ results to the same domain of

$$(-3\pi,-2\pi) \cup (-2\pi,-\pi) \cup (-\pi,\pi) \cup (\pi,2\pi) \cup (\pi,2\pi) \cup (2\pi,3\pi)$$

within the finite intervals of

$$(-3\pi , 3\pi)$$

both of which are also within the range of

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

## Examples

The following example explains how to use the product rule formula to derive a variable multiplied by the cotangent of the same variable.

### EXAMPLE 1

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

Solution: By applying the product rule formula, we have

Determine u and v.

$$u = \beta$$

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

Remember and use the product rule formula to derive $$\beta\cot{(\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} \cot{(\beta)} + \cot{(\beta)} \frac{d}{d\beta} \beta$$

Derive u and v in the product rule formula

$$\frac{d}{d\beta} f(\beta) = \beta \cdot (-\csc^{2}{(\beta)}) + \cot{(\beta)} \cdot (1)$$

Simplify algebraically and use applicable identities or laws only when necessary.

$$\frac{d}{d\beta} f(\beta) = -\beta \csc^{2}{(\beta)} + \cot{(\beta)}$$

$$\frac{d}{d\beta} \beta\cot{(\beta)} = \cot{(\beta)} – \beta \csc^{2}{(\beta)}$$