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

The function x multiplied by the tangent of x is a product of the monomial function x and the trigonometric function tangent. The derivative of x multiplied by the tangent of x is equal to the quantity of x multiplied by the secant squared of x and then added to the tangent of x, xsec²(x) + tan(x). We can prove this derivative using the product rule, implicit differentiation, quotient rule, trigonometric tangent function, or the inverse tangent function.

In this article, we will discuss how to derive the product of two functions, the monomial x and the trigonometric function tangent. 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 tan(x).

See proofs

##### GEOMETRY

Relevant for

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

See proofs

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

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

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

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 tangent derivative: Derivative of Tangent, tan(x).

Let’s have the derivative of the function

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

We can figure out the two functions being multiplied. In this case, it is a product of a monomial and a trigonometric tangent 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 = \tan{(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} (\tan{(x)}) + (\tan{(x)}) \frac{d}{dx} (x)$$

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

$$\frac{d}{dx} uv = (x) \cdot (\sec^{2}{(x)}) + (\tan{(x)}) \cdot (1)$$

Simplifying, we have

$$\frac{d}{dx} uv = x\sec^{2}{(x)} + \tan{(x)})$$

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

$$\frac{d}{dx} x\tan{(x)} = x\sec^{2}{(x)} + \tan{(x)})$$

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

You are advised to learn/review the derivative rule for quotients, the derivative of trigonometric function tangent, and implicit differentiation for this proof.

Given that the equation

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

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

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

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

$$\frac{d}{dx} \left( \frac{y}{x} \right) = \frac{d}{dx} \tan{(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} \tan{(x)}$$

Deriving the right hand side of the equation, we have

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

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

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

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

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

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

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

$$\frac{dy}{dx} = \frac{x^2 \sec^{2}{(x)}}{x} + \frac{x\tan{(x)}}{x}$$

Simplifying, we have

$$\frac{dy}{dx} = x\sec^{2}{(x)} + \tan{(x)}$$

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

$$y’ = x\sec^{2}{(x)} + \tan{(x)}$$

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

You are advised to learn/review the chain rule formula, the derivative rule for quotients, the derivative of inverse tangent, and implicit differentiation for this proof.

Given that the equation

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

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

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

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

$$\tan^{-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 tangent; and then on the right hand side, a simple power rule.

$$\frac{d}{dx} \left( \tan^{-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 have

$$\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}$$

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

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

Simplifying, we have

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

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

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

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

$$\frac{dy}{dx} = x \left( \sec^{2}{(x)} \right) + \tan{(x)}$$

$$\frac{dy}{dx} = x\sec^{2}{(x)} + \tan{(x)}$$

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

$$y’ = x\sec^{2}{(x)} + \tan{(x)}$$

## How to derive the x tan(x)

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

### Derivative of the x tan(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 = \tan{(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\tan(x)$$.

$$\frac{dy}{dx} = x \cdot \frac{d}{dx} \tan{(x)} + \tan{(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 tangent for the derivative of v.

$$\frac{dy}{dx} = x \cdot \sec^{2}{(x)} + \tan{(x)} \cdot (1)$$

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

$$\frac{dy}{dx} = x\sec^{2}{(x)} + \tan{(x)}$$

Step 6: Finalize the answer.

$$\frac{d}{dx} x\tan{(x)} = x\sec^{2}{(x)} + \tan{(x)}$$

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

In the instance of this function

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

the graph is illustrated as

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

$$f'(x) = x\sec^{2}{(x)} + \tan{(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\tan{(x)}$$ and its derivative $$f'(x) = x\sec^{2}{(x)} + \tan{(x)}$$ have a similar domain of

$$\left( -\frac{5\pi}{2} , -\frac{3\pi}{2} \right) \cup \left( -\frac{3\pi}{2} , -\frac{\pi}{2} \right) \cup \left( -\frac{\pi}{2} , \frac{\pi}{2} \right) \cup \left( \frac{\pi}{2} , \frac{3\pi}{2} \right) \cup \left( \frac{3\pi}{2} , \frac{5\pi}{2} \right)$$

within the finite intervals of

$$-\frac{5\pi}{2} , \frac{5\pi}{2}$$

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 tangent of the same variable using the product rule formula.

### EXAMPLE 1

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

Solution: Using the product rule formula, we have

Determine u and v.

$$u = \beta$$

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

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

Derive u and v in the product rule formula

$$\frac{d}{d\beta} f(\beta) = \beta \cdot \sec^{2}{(\beta)} + \tan{(\beta)} \cdot (1)$$

Simplify algebraically and apply some identities or laws only if applicable

$$\frac{d}{d\beta} f(\beta) = \beta \sec^{2}{(\beta)} + \tan{(\beta)}$$

The final answer is:

$$\frac{d}{d\beta} \beta\tan{(\beta)} = \beta \sec^{2}{(\beta)} + \tan{(\beta)}$$  