Join WhatsApp Icon JEE WhatsApp Group
NCERT Solutions for Class 11 Maths

Chapter 12: Limits and Derivatives

Download Solutions PDF
Daily JEE Updates, Tips & Important Alerts
Join 30,000+ students and stay updated with JEE notifications and preparation insights.
Join Now!
Free PDF
Complete NCERT Solution PDF for Chapter 12: Limits and Derivatives

NCERT Solutions For Class 11 Maths Chapter 12 Limits and Derivatives introduces students to the fundamental concepts of calculus and the study of changing quantities. The page provides comprehensive NCERT Solutions that explain limits, continuity concepts, derivatives, and basic differentiation techniques. NCERT Solutions For Class 11 Maths simplify calculus concepts through detailed explanations and solved examples. The chapter builds the foundation required for advanced calculus topics studied in higher classes and competitive examinations. These solutions help students understand mathematical change and solve derivative-based problems effectively. Students can use the chapter PDF for revision, practice, and exam preparation. The structured explanations make the introduction to calculus easier and more approachable.

Download Solutions PDF

Examples 1-4

Example 1 Find the limits:

(i) $$\lim_{x \to 1}\left[x^3 - x^2 + 1\right]$$

Solution

The expression $$x^3 - x^2 + 1$$ is a polynomial. A polynomial function is defined for every real number, so its limit at any point is found by directly substituting that value of $$x$$.

Substitute $$x = 1$$:

$$\lim_{x \to 1}\left(x^3 - x^2 + 1\right) = (1)^3 - (1)^2 + 1 = 1 - 1 + 1 = 1$$

Answer

$$1$$

(ii) $$\lim_{x \to 3}\left[x(x+1)\right]$$

Solution

The expression $$x(x+1)$$ is a polynomial, so the limit is obtained by directly substituting $$x = 3$$.

$$\lim_{x \to 3}\left[x(x+1)\right] = 3\,(3 + 1) = 3 \times 4 = 12$$

Answer

$$12$$

(iii) $$\lim_{x \to -1}\left[1 + x + x^2 + \ldots + x^{10}\right]$$

Solution

The expression is a polynomial, so we substitute $$x = -1$$ directly:

$$\lim_{x \to -1}\left[1 + x + x^2 + \ldots + x^{10}\right] = 1 + (-1) + (-1)^2 + \ldots + (-1)^{10}$$

Now $$(-1)^k = 1$$ when $$k$$ is even and $$(-1)^k = -1$$ when $$k$$ is odd. The powers run from $$0$$ to $$10$$, giving $$11$$ terms in all.

The even powers $$0, 2, 4, 6, 8, 10$$ each contribute $$+1$$ — that is $$6$$ terms. The odd powers $$1, 3, 5, 7, 9$$ each contribute $$-1$$ — that is $$5$$ terms.

$$\text{Sum} = 6(1) + 5(-1) = 6 - 5 = 1$$

Answer

$$1$$

Example 2 Find the limits:

(i) $$\lim_{x \to 1}\left[\frac{x^2 + 1}{x + 100}\right]$$

Solution

Both numerator and denominator are polynomials, and the denominator does not vanish at $$x = 1$$ — there it equals $$1 + 100 = 101 \neq 0$$. Hence the limit of the quotient is the quotient of the limits, obtained by direct substitution.

$$\lim_{x \to 1}\frac{x^2 + 1}{x + 100} = \frac{(1)^2 + 1}{1 + 100} = \frac{2}{101}$$

Answer

$$\dfrac{2}{101}$$

(ii) $$\lim_{x \to 2}\left[\frac{x^3 - 4x^2 + 4x}{x^2 - 4}\right]$$

Solution

Substituting $$x = 2$$ gives numerator $$8 - 16 + 8 = 0$$ and denominator $$4 - 4 = 0$$, the indeterminate form $$\frac{0}{0}$$. So we factorise and cancel the common factor.

Numerator: $$x^3 - 4x^2 + 4x = x(x^2 - 4x + 4) = x(x - 2)^2$$.

Denominator: $$x^2 - 4 = (x - 2)(x + 2)$$.

$$\lim_{x \to 2}\frac{x(x - 2)^2}{(x - 2)(x + 2)} = \lim_{x \to 2}\frac{x(x - 2)}{x + 2}$$

Since $$x \to 2$$ means $$x \neq 2$$, the factor $$x - 2$$ may be cancelled. Now substitute $$x = 2$$:

$$= \frac{2\,(2 - 2)}{2 + 2} = \frac{2 \times 0}{4} = 0$$

Answer

$$0$$

(iii) $$\lim_{x \to 2}\left[\frac{x^2 - 4}{x^3 - 4x^2 + 4x}\right]$$

Solution

At $$x = 2$$ the numerator $$x^2 - 4 = 0$$ and the denominator $$x^3 - 4x^2 + 4x = 0$$, so this is the form $$\frac{0}{0}$$. Factorise both.

Numerator: $$x^2 - 4 = (x - 2)(x + 2)$$.

Denominator: $$x^3 - 4x^2 + 4x = x(x - 2)^2$$.

$$\lim_{x \to 2}\frac{(x - 2)(x + 2)}{x(x - 2)^2} = \lim_{x \to 2}\frac{x + 2}{x(x - 2)}$$

As $$x \to 2$$, the numerator $$x + 2 \to 4$$, a non-zero number, while the denominator $$x(x - 2) \to 2 \times 0 = 0$$. A non-zero quantity divided by a quantity approaching $$0$$ cannot approach any finite value.

Hence the limit does not exist.

Answer

The limit does not exist.

(iv) $$\lim_{x \to 2}\left[\frac{x^3 - 2x^2}{x^2 - 5x + 6}\right]$$

Solution

At $$x = 2$$: numerator $$x^3 - 2x^2 = 8 - 8 = 0$$ and denominator $$x^2 - 5x + 6 = 4 - 10 + 6 = 0$$ — the form $$\frac{0}{0}$$. Factorise.

Numerator: $$x^3 - 2x^2 = x^2(x - 2)$$.

Denominator: $$x^2 - 5x + 6 = (x - 2)(x - 3)$$.

$$\lim_{x \to 2}\frac{x^2(x - 2)}{(x - 2)(x - 3)} = \lim_{x \to 2}\frac{x^2}{x - 3}$$

Substitute $$x = 2$$:

$$= \frac{(2)^2}{2 - 3} = \frac{4}{-1} = -4$$

Answer

$$-4$$

(v) $$\lim_{x \to 1}\left[\frac{x - 2}{x^2 - x} - \frac{1}{x^3 - 3x^2 + 2x}\right]$$

Solution

First factorise each denominator.

$$x^2 - x = x(x - 1), \qquad x^3 - 3x^2 + 2x = x(x^2 - 3x + 2) = x(x - 1)(x - 2)$$

So the expression becomes

$$\frac{x - 2}{x(x - 1)} - \frac{1}{x(x - 1)(x - 2)}$$

Taking the common denominator $$x(x - 1)(x - 2)$$:

$$= \frac{(x - 2)(x - 2) - 1}{x(x - 1)(x - 2)} = \frac{(x - 2)^2 - 1}{x(x - 1)(x - 2)}$$

Now $$(x - 2)^2 - 1 = x^2 - 4x + 4 - 1 = x^2 - 4x + 3 = (x - 1)(x - 3)$$.

$$= \frac{(x - 1)(x - 3)}{x(x - 1)(x - 2)} = \frac{x - 3}{x(x - 2)}$$

Substitute $$x = 1$$:

$$\lim_{x \to 1}\frac{x - 3}{x(x - 2)} = \frac{1 - 3}{1\,(1 - 2)} = \frac{-2}{-1} = 2$$

Answer

$$2$$

Example 3 Evaluate:

(i) $$\lim_{x \to 1}\frac{x^{15} - 1}{x^{10} - 1}$$

Solution

At $$x = 1$$ both numerator and denominator vanish, giving $$\frac{0}{0}$$. We use the standard limit

$$\lim_{x \to a}\frac{x^n - a^n}{x - a} = n\,a^{n-1}$$

Divide both numerator and denominator by $$x - 1$$ (allowed since $$x \neq 1$$):

$$\frac{x^{15} - 1}{x^{10} - 1} = \frac{\dfrac{x^{15} - 1}{x - 1}}{\dfrac{x^{10} - 1}{x - 1}}$$

Taking limits as $$x \to 1$$ (here $$a = 1$$):

$$\lim_{x \to 1}\frac{x^{15} - 1}{x - 1} = 15 \cdot 1^{14} = 15, \qquad \lim_{x \to 1}\frac{x^{10} - 1}{x - 1} = 10 \cdot 1^{9} = 10$$

Therefore

$$\lim_{x \to 1}\frac{x^{15} - 1}{x^{10} - 1} = \frac{15}{10} = \frac{3}{2}$$

Answer

$$\dfrac{3}{2}$$

(ii) $$\lim_{x \to 0}\frac{\sqrt{1 + x} - 1}{x}$$

Solution

Substituting $$x = 0$$ gives $$\frac{\sqrt{1} - 1}{0} = \frac{0}{0}$$, an indeterminate form. We rationalise the numerator by multiplying and dividing by $$\sqrt{1 + x} + 1$$.

$$\frac{\sqrt{1 + x} - 1}{x} = \frac{\left(\sqrt{1 + x} - 1\right)\left(\sqrt{1 + x} + 1\right)}{x\left(\sqrt{1 + x} + 1\right)}$$

The numerator is a difference of squares: $$\left(\sqrt{1 + x}\right)^2 - 1^2 = (1 + x) - 1 = x$$.

$$= \frac{x}{x\left(\sqrt{1 + x} + 1\right)} = \frac{1}{\sqrt{1 + x} + 1}$$

Now substitute $$x = 0$$:

$$\lim_{x \to 0}\frac{1}{\sqrt{1 + x} + 1} = \frac{1}{\sqrt{1} + 1} = \frac{1}{2}$$

Answer

$$\dfrac{1}{2}$$

Example 4 Evaluate:

(i) $$\lim_{x \to 0}\frac{\sin 4x}{\sin 2x}$$

Solution

We use the standard limit $$\lim_{\theta \to 0}\dfrac{\sin \theta}{\theta} = 1$$. Rewrite the expression so that each sine is divided by its own argument.

$$\frac{\sin 4x}{\sin 2x} = \frac{\sin 4x}{4x} \cdot \frac{2x}{\sin 2x} \cdot \frac{4x}{2x}$$

The last factor simplifies: $$\dfrac{4x}{2x} = 2$$. So

$$\frac{\sin 4x}{\sin 2x} = \frac{\sin 4x}{4x} \cdot \frac{2x}{\sin 2x} \cdot 2$$

As $$x \to 0$$, both $$4x \to 0$$ and $$2x \to 0$$, hence

$$\lim_{x \to 0}\frac{\sin 4x}{4x} = 1, \qquad \lim_{x \to 0}\frac{2x}{\sin 2x} = 1$$

Therefore

$$\lim_{x \to 0}\frac{\sin 4x}{\sin 2x} = 1 \cdot 1 \cdot 2 = 2$$

Answer

$$2$$

(ii) $$\lim_{x \to 0}\frac{\tan x}{x}$$

Solution

Write $$\tan x = \dfrac{\sin x}{\cos x}$$:

$$\frac{\tan x}{x} = \frac{\sin x}{x \cos x} = \frac{\sin x}{x} \cdot \frac{1}{\cos x}$$

As $$x \to 0$$, we have $$\dfrac{\sin x}{x} \to 1$$ and $$\cos x \to \cos 0 = 1$$. Therefore

$$\lim_{x \to 0}\frac{\tan x}{x} = \lim_{x \to 0}\frac{\sin x}{x} \cdot \lim_{x \to 0}\frac{1}{\cos x} = 1 \cdot \frac{1}{1} = 1$$

Answer

$$1$$

Exercise 12.1

1 Evaluate the limit $$\lim_{x \to 3}(x + 3)$$.

Solution

The expression $$x + 3$$ is a polynomial, so its limit is found by directly substituting $$x = 3$$.

$$\lim_{x \to 3}(x + 3) = 3 + 3 = 6$$

Answer

$$6$$

2 Evaluate the limit $$\lim_{x \to \pi}\left(x - \frac{22}{7}\right)$$.

Solution

The expression $$x - \dfrac{22}{7}$$ is a polynomial in $$x$$ (the term $$\dfrac{22}{7}$$ is a constant). Its limit is found by directly substituting $$x = \pi$$.

$$\lim_{x \to \pi}\left(x - \frac{22}{7}\right) = \pi - \frac{22}{7}$$

Answer

$$\pi - \dfrac{22}{7}$$

3 Evaluate the limit $$\lim_{r \to 1}\pi r^2$$.

Solution

Here $$\pi$$ is a constant, and $$\pi r^2$$ is a polynomial in the variable $$r$$. Its limit is found by directly substituting $$r = 1$$.

$$\lim_{r \to 1}\pi r^2 = \pi\,(1)^2 = \pi$$

Answer

$$\pi$$

4 Evaluate the limit $$\lim_{x \to 4}\frac{4x + 3}{x - 2}$$.

Solution

Numerator and denominator are polynomials. The denominator at $$x = 4$$ is $$4 - 2 = 2 \neq 0$$, so the limit of the quotient is the quotient of the limits, found by direct substitution.

$$\lim_{x \to 4}\frac{4x + 3}{x - 2} = \frac{4(4) + 3}{4 - 2} = \frac{16 + 3}{2} = \frac{19}{2}$$

Answer

$$\dfrac{19}{2}$$

5 Evaluate the limit $$\lim_{x \to -1}\frac{x^{10} + x^5 + 1}{x - 1}$$.

Solution

The denominator at $$x = -1$$ is $$-1 - 1 = -2 \neq 0$$, so the limit may be found by direct substitution.

Numerator at $$x = -1$$: $$(-1)^{10} + (-1)^5 + 1 = 1 + (-1) + 1 = 1$$.

$$\lim_{x \to -1}\frac{x^{10} + x^5 + 1}{x - 1} = \frac{1}{-2} = -\frac{1}{2}$$

Answer

$$-\dfrac{1}{2}$$

6 Evaluate the limit $$\lim_{x \to 0}\frac{(x + 1)^5 - 1}{x}$$.

Solution

At $$x = 0$$: numerator $$(0 + 1)^5 - 1 = 0$$ and denominator $$= 0$$, the form $$\frac{0}{0}$$. Expand $$(x + 1)^5$$ using the binomial theorem.

$$(x + 1)^5 = 1 + 5x + 10x^2 + 10x^3 + 5x^4 + x^5$$

So

$$(x + 1)^5 - 1 = 5x + 10x^2 + 10x^3 + 5x^4 + x^5$$

Divide by $$x$$ (allowed since $$x \neq 0$$):

$$\frac{(x + 1)^5 - 1}{x} = 5 + 10x + 10x^2 + 5x^3 + x^4$$

Now substitute $$x = 0$$:

$$\lim_{x \to 0}\frac{(x + 1)^5 - 1}{x} = 5 + 0 + 0 + 0 + 0 = 5$$

Answer

$$5$$

7 Evaluate the limit $$\lim_{x \to 2}\frac{3x^2 - x - 10}{x^2 - 4}$$.

Solution

At $$x = 2$$: numerator $$3(4) - 2 - 10 = 0$$ and denominator $$4 - 4 = 0$$, the form $$\frac{0}{0}$$. Factorise both.

Numerator: $$3x^2 - x - 10 = 3x^2 - 6x + 5x - 10 = 3x(x - 2) + 5(x - 2) = (x - 2)(3x + 5)$$.

Denominator: $$x^2 - 4 = (x - 2)(x + 2)$$.

$$\lim_{x \to 2}\frac{(x - 2)(3x + 5)}{(x - 2)(x + 2)} = \lim_{x \to 2}\frac{3x + 5}{x + 2}$$

Substitute $$x = 2$$:

$$= \frac{3(2) + 5}{2 + 2} = \frac{11}{4}$$

Answer

$$\dfrac{11}{4}$$

8 Evaluate the limit $$\lim_{x \to 3}\frac{x^4 - 81}{2x^2 - 5x - 3}$$.

Solution

At $$x = 3$$: numerator $$81 - 81 = 0$$ and denominator $$2(9) - 15 - 3 = 0$$, the form $$\frac{0}{0}$$. Factorise both.

Numerator: $$x^4 - 81 = (x^2)^2 - 9^2 = (x^2 - 9)(x^2 + 9) = (x - 3)(x + 3)(x^2 + 9)$$.

Denominator: $$2x^2 - 5x - 3 = 2x^2 - 6x + x - 3 = 2x(x - 3) + 1(x - 3) = (x - 3)(2x + 1)$$.

$$\lim_{x \to 3}\frac{(x - 3)(x + 3)(x^2 + 9)}{(x - 3)(2x + 1)} = \lim_{x \to 3}\frac{(x + 3)(x^2 + 9)}{2x + 1}$$

Substitute $$x = 3$$:

$$= \frac{(3 + 3)(9 + 9)}{2(3) + 1} = \frac{6 \times 18}{7} = \frac{108}{7}$$

Answer

$$\dfrac{108}{7}$$

9 Evaluate the limit $$\lim_{x \to 0}\frac{ax + b}{cx + 1}$$.

Solution

The denominator at $$x = 0$$ is $$c(0) + 1 = 1 \neq 0$$, so the limit is found by direct substitution.

$$\lim_{x \to 0}\frac{ax + b}{cx + 1} = \frac{a(0) + b}{c(0) + 1} = \frac{b}{1} = b$$

Answer

$$b$$

10 Evaluate the limit $$\lim_{z \to 1}\frac{z^{1/3} - 1}{z^{1/6} - 1}$$.

Solution

At $$z = 1$$ both numerator and denominator vanish, giving $$\frac{0}{0}$$. Substitute $$z^{1/6} = t$$, so that $$z^{1/3} = \left(z^{1/6}\right)^2 = t^2$$.

As $$z \to 1$$, we have $$t = z^{1/6} \to 1$$. The limit becomes

$$\lim_{t \to 1}\frac{t^2 - 1}{t - 1} = \lim_{t \to 1}\frac{(t - 1)(t + 1)}{t - 1} = \lim_{t \to 1}(t + 1)$$

Substitute $$t = 1$$:

$$= 1 + 1 = 2$$

Answer

$$2$$

11 Evaluate the limit $$\lim_{x \to 1}\frac{ax^2 + bx + c}{cx^2 + bx + a}, \; a + b + c \neq 0$$.

Solution

Substitute $$x = 1$$ in numerator and denominator.

Numerator at $$x = 1$$: $$a(1)^2 + b(1) + c = a + b + c$$.

Denominator at $$x = 1$$: $$c(1)^2 + b(1) + a = a + b + c$$.

Since it is given that $$a + b + c \neq 0$$, the denominator is non-zero, and the limit is

$$\lim_{x \to 1}\frac{ax^2 + bx + c}{cx^2 + bx + a} = \frac{a + b + c}{a + b + c} = 1$$

Answer

$$1$$

12 Evaluate the limit $$\lim_{x \to -2}\frac{\frac{1}{x} + \frac{1}{2}}{x + 2}$$.

Solution

At $$x = -2$$ the numerator $$\dfrac{1}{x} + \dfrac{1}{2} = -\dfrac{1}{2} + \dfrac{1}{2} = 0$$ and the denominator $$= 0$$, the form $$\frac{0}{0}$$. Simplify the numerator first.

$$\frac{1}{x} + \frac{1}{2} = \frac{2 + x}{2x}$$

So the whole expression is

$$\frac{\dfrac{x + 2}{2x}}{x + 2} = \frac{x + 2}{2x} \cdot \frac{1}{x + 2} = \frac{1}{2x}$$

The cancellation of $$x + 2$$ is valid since $$x \to -2$$ means $$x \neq -2$$. Now substitute $$x = -2$$:

$$\lim_{x \to -2}\frac{1}{2x} = \frac{1}{2(-2)} = -\frac{1}{4}$$

Answer

$$-\dfrac{1}{4}$$

13 Evaluate the limit $$\lim_{x \to 0}\frac{\sin ax}{bx}$$.

Solution

We use the standard limit $$\lim_{\theta \to 0}\dfrac{\sin \theta}{\theta} = 1$$. Rewrite the expression so that $$\sin ax$$ is divided by its argument $$ax$$.

$$\frac{\sin ax}{bx} = \frac{\sin ax}{ax} \cdot \frac{ax}{bx} = \frac{\sin ax}{ax} \cdot \frac{a}{b}$$

As $$x \to 0$$, $$ax \to 0$$, so $$\dfrac{\sin ax}{ax} \to 1$$. Therefore

$$\lim_{x \to 0}\frac{\sin ax}{bx} = 1 \cdot \frac{a}{b} = \frac{a}{b}$$

Answer

$$\dfrac{a}{b}$$

14 Evaluate the limit $$\lim_{x \to 0}\frac{\sin ax}{\sin bx}, \; a, b \neq 0$$.

Solution

Rewrite so that each sine is divided by its own argument:

$$\frac{\sin ax}{\sin bx} = \frac{\sin ax}{ax} \cdot \frac{bx}{\sin bx} \cdot \frac{ax}{bx} = \frac{\sin ax}{ax} \cdot \frac{bx}{\sin bx} \cdot \frac{a}{b}$$

As $$x \to 0$$, both $$ax \to 0$$ and $$bx \to 0$$, so

$$\lim_{x \to 0}\frac{\sin ax}{ax} = 1, \qquad \lim_{x \to 0}\frac{bx}{\sin bx} = 1$$

Therefore

$$\lim_{x \to 0}\frac{\sin ax}{\sin bx} = 1 \cdot 1 \cdot \frac{a}{b} = \frac{a}{b}$$

Answer

$$\dfrac{a}{b}$$

15 Evaluate the limit $$\lim_{x \to \pi}\frac{\sin(\pi - x)}{\pi(\pi - x)}$$.

Solution

Put $$y = \pi - x$$. As $$x \to \pi$$, we have $$y \to 0$$. The expression becomes

$$\frac{\sin(\pi - x)}{\pi(\pi - x)} = \frac{\sin y}{\pi\,y} = \frac{1}{\pi} \cdot \frac{\sin y}{y}$$

As $$y \to 0$$, $$\dfrac{\sin y}{y} \to 1$$. Therefore

$$\lim_{x \to \pi}\frac{\sin(\pi - x)}{\pi(\pi - x)} = \frac{1}{\pi} \cdot 1 = \frac{1}{\pi}$$

Answer

$$\dfrac{1}{\pi}$$

16 Evaluate the limit $$\lim_{x \to 0}\frac{\cos x}{\pi - x}$$.

Solution

The function $$\cos x$$ and the polynomial $$\pi - x$$ are both well-behaved at $$x = 0$$, and the denominator $$\pi - 0 = \pi \neq 0$$. So the limit is found by direct substitution.

$$\lim_{x \to 0}\frac{\cos x}{\pi - x} = \frac{\cos 0}{\pi - 0} = \frac{1}{\pi}$$

Answer

$$\dfrac{1}{\pi}$$

17 Evaluate the limit $$\lim_{x \to 0}\frac{\cos 2x - 1}{\cos x - 1}$$.

Solution

At $$x = 0$$ both numerator and denominator are $$0$$. Use the identity $$1 - \cos\theta = 2\sin^2\dfrac{\theta}{2}$$, which gives

$$\cos 2x - 1 = -2\sin^2 x, \qquad \cos x - 1 = -2\sin^2\frac{x}{2}$$

So

$$\frac{\cos 2x - 1}{\cos x - 1} = \frac{-2\sin^2 x}{-2\sin^2\frac{x}{2}} = \frac{\sin^2 x}{\sin^2\frac{x}{2}}$$

Rewrite to use $$\dfrac{\sin\theta}{\theta} \to 1$$:

$$\frac{\sin^2 x}{\sin^2\frac{x}{2}} = \left(\frac{\sin x}{x}\right)^2 \cdot \left(\frac{\frac{x}{2}}{\sin\frac{x}{2}}\right)^2 \cdot \frac{x^2}{\left(\frac{x}{2}\right)^2}$$

Here $$\dfrac{x^2}{\left(x/2\right)^2} = \dfrac{x^2}{x^2/4} = 4$$. As $$x \to 0$$, $$\dfrac{\sin x}{x} \to 1$$ and $$\dfrac{x/2}{\sin(x/2)} \to 1$$.

$$\lim_{x \to 0}\frac{\cos 2x - 1}{\cos x - 1} = (1)^2 \cdot (1)^2 \cdot 4 = 4$$

Answer

$$4$$

18 Evaluate the limit $$\lim_{x \to 0}\frac{ax + x \cos x}{b \sin x}$$.

Solution

Take $$x$$ common in the numerator:

$$\frac{ax + x\cos x}{b\sin x} = \frac{x(a + \cos x)}{b\sin x} = \frac{1}{b} \cdot \frac{x}{\sin x} \cdot (a + \cos x)$$

As $$x \to 0$$: $$\dfrac{x}{\sin x} \to 1$$ and $$a + \cos x \to a + \cos 0 = a + 1$$.

$$\lim_{x \to 0}\frac{ax + x\cos x}{b\sin x} = \frac{1}{b} \cdot 1 \cdot (a + 1) = \frac{a + 1}{b}$$

Answer

$$\dfrac{a + 1}{b}$$

19 Evaluate the limit $$\lim_{x \to 0} x \sec x$$.

Solution

Write $$\sec x = \dfrac{1}{\cos x}$$:

$$x\sec x = \frac{x}{\cos x}$$

At $$x = 0$$ the denominator $$\cos 0 = 1 \neq 0$$, so the limit is found by direct substitution.

$$\lim_{x \to 0} x\sec x = \frac{0}{\cos 0} = \frac{0}{1} = 0$$

Answer

$$0$$

20 Evaluate the limit $$\lim_{x \to 0}\frac{\sin ax + bx}{ax + \sin bx}, \; a, b, a + b \neq 0$$.

Solution

Divide both numerator and denominator by $$x$$ (valid since $$x \neq 0$$):

$$\frac{\sin ax + bx}{ax + \sin bx} = \frac{\dfrac{\sin ax}{x} + b}{a + \dfrac{\sin bx}{x}}$$

Now $$\dfrac{\sin ax}{x} = a \cdot \dfrac{\sin ax}{ax}$$ and $$\dfrac{\sin bx}{x} = b \cdot \dfrac{\sin bx}{bx}$$.

As $$x \to 0$$: $$\dfrac{\sin ax}{ax} \to 1$$ and $$\dfrac{\sin bx}{bx} \to 1$$, so

$$\frac{\sin ax}{x} \to a, \qquad \frac{\sin bx}{x} \to b$$

Therefore

$$\lim_{x \to 0}\frac{\sin ax + bx}{ax + \sin bx} = \frac{a + b}{a + b} = 1$$

(The condition $$a + b \neq 0$$ ensures the denominator of this last fraction is non-zero.)

Answer

$$1$$

21 Evaluate the limit $$\lim_{x \to 0}(\csc x - \cot x)$$.

Solution

Write both functions in terms of $$\sin x$$ and $$\cos x$$:

$$\csc x - \cot x = \frac{1}{\sin x} - \frac{\cos x}{\sin x} = \frac{1 - \cos x}{\sin x}$$

Use the half-angle identities $$1 - \cos x = 2\sin^2\dfrac{x}{2}$$ and $$\sin x = 2\sin\dfrac{x}{2}\cos\dfrac{x}{2}$$:

$$\frac{1 - \cos x}{\sin x} = \frac{2\sin^2\frac{x}{2}}{2\sin\frac{x}{2}\cos\frac{x}{2}} = \frac{\sin\frac{x}{2}}{\cos\frac{x}{2}} = \tan\frac{x}{2}$$

As $$x \to 0$$, $$\dfrac{x}{2} \to 0$$, so

$$\lim_{x \to 0}(\csc x - \cot x) = \lim_{x \to 0}\tan\frac{x}{2} = \tan 0 = 0$$

Answer

$$0$$

22 Evaluate the limit $$\lim_{x \to \pi/2}\frac{\tan 2x}{x - \frac{\pi}{2}}$$.

Solution

Put $$y = x - \dfrac{\pi}{2}$$, so that $$x = y + \dfrac{\pi}{2}$$. As $$x \to \dfrac{\pi}{2}$$, we have $$y \to 0$$.

Then $$2x = 2y + \pi$$, and since $$\tan$$ has period $$\pi$$,

$$\tan 2x = \tan(2y + \pi) = \tan 2y$$

The limit becomes

$$\lim_{y \to 0}\frac{\tan 2y}{y} = \lim_{y \to 0}\frac{\tan 2y}{2y} \cdot 2$$

Using $$\lim_{\theta \to 0}\dfrac{\tan\theta}{\theta} = 1$$ with $$\theta = 2y \to 0$$:

$$= 1 \cdot 2 = 2$$

Answer

$$2$$

23 Find $$\lim_{x \to 0} f(x)$$ and $$\lim_{x \to 1} f(x)$$, where $$f(x) = \begin{cases} 2x + 3, & x \le 0 \\ 3(x + 1), & x > 0 \end{cases}$$

Solution

Limit at $$x = 0$$. The function is given by different formulas on the two sides of $$0$$, so we compute the two one-sided limits separately.

Left-hand limit. For $$x \le 0$$ — in particular for $$x \lt 0$$ — the function is $$f(x) = 2x + 3$$. Therefore

$$\lim_{x \to 0^-} f(x) = \lim_{x \to 0^-}(2x + 3) = 2(0) + 3 = 3$$

Right-hand limit. For $$x \gt 0$$, the function is $$f(x) = 3(x + 1)$$. Therefore

$$\lim_{x \to 0^+} f(x) = \lim_{x \to 0^+} 3(x + 1) = 3(0 + 1) = 3$$

The left-hand limit and the right-hand limit are both equal to $$3$$, so the limit exists and

$$\lim_{x \to 0} f(x) = 3$$

Limit at $$x = 1$$. Every $$x$$ in a small neighbourhood of $$1$$ satisfies $$x \gt 0$$, so $$f(x) = 3(x + 1)$$ throughout that neighbourhood. The limit is found by direct substitution:

$$\lim_{x \to 1} f(x) = \lim_{x \to 1} 3(x + 1) = 3(1 + 1) = 6$$

Answer

$$\lim_{x \to 0} f(x) = 3$$ and $$\lim_{x \to 1} f(x) = 6$$.

24 Find $$\lim_{x \to 1} f(x)$$, where $$f(x) = \begin{cases} x^2 - 1, & x \le 1 \\ -x^2 - 1, & x > 1 \end{cases}$$

Solution

The function changes formula at $$x = 1$$, so we compute the two one-sided limits.

For $$x \le 1$$, $$f(x) = x^2 - 1$$. Left-hand limit:

$$\lim_{x \to 1^-} f(x) = \lim_{x \to 1^-}(x^2 - 1) = (1)^2 - 1 = 0$$

For $$x > 1$$, $$f(x) = -x^2 - 1$$. Right-hand limit:

$$\lim_{x \to 1^+} f(x) = \lim_{x \to 1^+}(-x^2 - 1) = -(1)^2 - 1 = -2$$

Since the left-hand limit $$(0)$$ is not equal to the right-hand limit $$(-2)$$, the limit does not exist.

$$\lim_{x \to 1} f(x) \text{ does not exist.}$$

Answer

$$\lim_{x \to 1} f(x)$$ does not exist (left-hand limit $$= 0$$, right-hand limit $$= -2$$).

25 Evaluate $$\lim_{x \to 0} f(x)$$, where $$f(x) = \begin{cases} \dfrac{|x|}{x}, & x \neq 0 \\ 0, & x = 0 \end{cases}$$

Solution

Recall that $$|x| = x$$ when $$x \gt 0$$, and $$|x| = -x$$ when $$x \lt 0$$.

Right-hand limit. For $$x \gt 0$$, $$f(x) = \dfrac{|x|}{x} = \dfrac{x}{x} = 1$$. Hence

$$\lim_{x \to 0^+} f(x) = 1$$

Left-hand limit. For $$x \lt 0$$, $$f(x) = \dfrac{|x|}{x} = \dfrac{-x}{x} = -1$$. Hence

$$\lim_{x \to 0^-} f(x) = -1$$

The right-hand limit $$(1)$$ and the left-hand limit $$(-1)$$ are unequal, so the limit does not exist.

$$\lim_{x \to 0} f(x) \text{ does not exist.}$$

Answer

$$\lim_{x \to 0} f(x)$$ does not exist (right-hand limit $$= 1$$, left-hand limit $$= -1$$).

26 Find $$\lim_{x \to 0} f(x)$$, where $$f(x) = \begin{cases} \dfrac{x}{|x|}, & x \neq 0 \\ 0, & x = 0 \end{cases}$$

Solution

Recall that $$|x| = x$$ when $$x \gt 0$$, and $$|x| = -x$$ when $$x \lt 0$$.

Right-hand limit. For $$x \gt 0$$, $$f(x) = \dfrac{x}{|x|} = \dfrac{x}{x} = 1$$. Hence

$$\lim_{x \to 0^+} f(x) = 1$$

Left-hand limit. For $$x \lt 0$$, $$f(x) = \dfrac{x}{|x|} = \dfrac{x}{-x} = -1$$. Hence

$$\lim_{x \to 0^-} f(x) = -1$$

The right-hand limit $$(1)$$ and the left-hand limit $$(-1)$$ are unequal, so the limit does not exist.

$$\lim_{x \to 0} f(x) \text{ does not exist.}$$

Answer

$$\lim_{x \to 0} f(x)$$ does not exist (right-hand limit $$= 1$$, left-hand limit $$= -1$$).

27 Find $$\lim_{x \to 5} f(x)$$, where $$f(x) = |x| - 5$$.

Solution

For all values of $$x$$ near $$5$$ we have $$x > 0$$, so $$|x| = x$$ throughout that neighbourhood. Hence near $$x = 5$$,

$$f(x) = |x| - 5 = x - 5$$

This is a polynomial, so its limit is found by direct substitution:

$$\lim_{x \to 5} f(x) = \lim_{x \to 5}(x - 5) = 5 - 5 = 0$$

(Both one-sided limits equal $$0$$, confirming the limit exists.)

Answer

$$0$$

28 Suppose $$f(x) = \begin{cases} a + bx, & x < 1 \\ 4, & x = 1 \\ b - ax, & x > 1 \end{cases}$$ and if $$\lim_{x \to 1} f(x) = f(1)$$ what are possible values of $$a$$ and $$b$$?

Solution

From the definition, $$f(1) = 4$$.

Compute the one-sided limits at $$x = 1$$.

For $$x < 1$$, $$f(x) = a + bx$$, so the left-hand limit is

$$\lim_{x \to 1^-} f(x) = a + b(1) = a + b$$

For $$x > 1$$, $$f(x) = b - ax$$, so the right-hand limit is

$$\lim_{x \to 1^+} f(x) = b - a(1) = b - a$$

For $$\lim_{x \to 1} f(x)$$ to exist, the two one-sided limits must be equal, and the condition $$\lim_{x \to 1} f(x) = f(1)$$ requires both to equal $$4$$:

$$a + b = 4 \qquad \text{and} \qquad b - a = 4$$

Adding the two equations: $$2b = 8$$, so $$b = 4$$. Subtracting the second from the first: $$2a = 0$$, so $$a = 0$$.

$$a = 0, \qquad b = 4$$

Answer

$$a = 0$$ and $$b = 4$$.

29 Let $$a_1, a_2, \ldots, a_n$$ be fixed real numbers and define a function $$f(x) = (x - a_1)(x - a_2) \ldots (x - a_n)$$. What is $$\lim_{x \to a_1} f(x)$$? For some $$a \neq a_1, a_2, \ldots, a_n$$, compute $$\lim_{x \to a} f(x)$$.

Solution

The function $$f(x) = (x - a_1)(x - a_2)\cdots(x - a_n)$$ is a polynomial, so its limit at any point is obtained by direct substitution.

Limit as $$x \to a_1$$. Substitute $$x = a_1$$. The first factor becomes $$a_1 - a_1 = 0$$, which makes the whole product $$0$$:

$$\lim_{x \to a_1} f(x) = (a_1 - a_1)(a_1 - a_2)\cdots(a_1 - a_n) = 0$$

Limit as $$x \to a$$, where $$a \neq a_1, a_2, \ldots, a_n$$. Substitute $$x = a$$:

$$\lim_{x \to a} f(x) = (a - a_1)(a - a_2)\cdots(a - a_n)$$

Since $$a$$ differs from every $$a_i$$, none of these factors is zero, so the value is a non-zero product.

Answer

$$\lim_{x \to a_1} f(x) = 0$$; and $$\lim_{x \to a} f(x) = (a - a_1)(a - a_2)\cdots(a - a_n)$$.

30 If $$f(x) = \begin{cases} |x| + 1, & x < 0 \\ 0, & x = 0 \\ |x| - 1, & x > 0 \end{cases}$$ For what value(s) of $$a$$ does $$\lim_{x \to a} f(x)$$ exists?

Solution

First simplify $$f$$ on each side of $$0$$. For $$x \lt 0$$, $$|x| = -x$$, so $$f(x) = |x| + 1 = -x + 1$$. For $$x \gt 0$$, $$|x| = x$$, so $$f(x) = |x| - 1 = x - 1$$.

Case $$a \lt 0$$. Every point in a small neighbourhood of such an $$a$$ satisfies $$x \lt 0$$, so there $$f(x) = -x + 1$$, a polynomial. Hence

$$\lim_{x \to a} f(x) = -a + 1$$

and the limit exists.

Case $$a \gt 0$$. Every point in a small neighbourhood of such an $$a$$ satisfies $$x \gt 0$$, so there $$f(x) = x - 1$$, a polynomial. Hence

$$\lim_{x \to a} f(x) = a - 1$$

and the limit exists.

Case $$a = 0$$. Here we must examine the one-sided limits separately:

$$\lim_{x \to 0^-} f(x) = \lim_{x \to 0^-}(-x + 1) = 1$$

$$\lim_{x \to 0^+} f(x) = \lim_{x \to 0^+}(x - 1) = -1$$

Since $$1 \neq -1$$, the left-hand and right-hand limits differ, so the limit does not exist at $$a = 0$$.

Therefore $$\lim_{x \to a} f(x)$$ exists for every real number $$a$$ except $$a = 0$$.

Answer

$$\lim_{x \to a} f(x)$$ exists for all $$a \neq 0$$; it fails to exist only at $$a = 0$$.

31 If the function $$f(x)$$ satisfies $$\lim_{x \to 1}\frac{f(x) - 2}{x^2 - 1} = \pi$$, evaluate $$\lim_{x \to 1} f(x)$$.

Solution

We are given that

$$\lim_{x \to 1}\frac{f(x) - 2}{x^2 - 1} = \pi$$

Write $$f(x) - 2$$ as a product so we can use the product rule for limits:

$$f(x) - 2 = \frac{f(x) - 2}{x^2 - 1} \cdot (x^2 - 1)$$

Taking limits as $$x \to 1$$, and using that the limit of a product is the product of the limits:

$$\lim_{x \to 1}\big(f(x) - 2\big) = \lim_{x \to 1}\frac{f(x) - 2}{x^2 - 1} \cdot \lim_{x \to 1}(x^2 - 1) = \pi \cdot (1^2 - 1) = \pi \cdot 0 = 0$$

Hence $$\lim_{x \to 1} f(x) - 2 = 0$$, which gives

$$\lim_{x \to 1} f(x) = 2$$

Answer

$$\lim_{x \to 1} f(x) = 2$$

32 If $$f(x) = \begin{cases} mx^2 + n, & x < 0 \\ nx + m, & 0 \le x \le 1 \\ nx^3 + m, & x > 1 \end{cases}$$ For what integers $$m$$ and $$n$$ does both $$\lim_{x \to 0} f(x)$$ and $$\lim_{x \to 1} f(x)$$ exist?

Solution

Limit at $$x = 0$$. The formula for $$f$$ changes at $$x = 0$$, so we compute the two one-sided limits.

Left-hand limit. For $$x \lt 0$$, $$f(x) = mx^2 + n$$, so

$$\lim_{x \to 0^-} f(x) = m(0)^2 + n = n$$

Right-hand limit. For $$0 \le x \le 1$$, $$f(x) = nx + m$$, so

$$\lim_{x \to 0^+} f(x) = n(0) + m = m$$

For $$\lim_{x \to 0} f(x)$$ to exist, these one-sided limits must be equal:

$$n = m$$

Limit at $$x = 1$$. The formula for $$f$$ changes at $$x = 1$$, so we again compute the two one-sided limits.

Left-hand limit. For $$0 \le x \le 1$$, $$f(x) = nx + m$$, so

$$\lim_{x \to 1^-} f(x) = n(1) + m = n + m$$

Right-hand limit. For $$x \gt 1$$, $$f(x) = nx^3 + m$$, so

$$\lim_{x \to 1^+} f(x) = n(1)^3 + m = n + m$$

These two one-sided limits are equal for every choice of $$m$$ and $$n$$, so $$\lim_{x \to 1} f(x)$$ always exists.

Conclusion. The limit at $$x = 1$$ exists for all integers $$m$$ and $$n$$. The limit at $$x = 0$$ exists only when $$m = n$$. Hence both limits exist precisely when $$m = n$$ (for any integer value).

Answer

Both limits exist if and only if $$m = n$$ (any integer); $$\lim_{x \to 1} f(x)$$ exists for all integers $$m, n$$, while $$\lim_{x \to 0} f(x)$$ exists only when $$m = n$$.

Examples 5-18

Example 5 Find the derivative at $$x = 2$$ of the function $$f(x) = 3x$$.

Solution

By the first principle, the derivative of $$f$$ at $$x = 2$$ is

$$f'(2) = \lim_{h \to 0}\frac{f(2 + h) - f(2)}{h}$$

Here $$f(x) = 3x$$, so $$f(2 + h) = 3(2 + h) = 6 + 3h$$ and $$f(2) = 3(2) = 6$$.

$$f'(2) = \lim_{h \to 0}\frac{(6 + 3h) - 6}{h} = \lim_{h \to 0}\frac{3h}{h} = \lim_{h \to 0} 3 = 3$$

Answer

$$f'(2) = 3$$

Example 6 Find the derivative of the function $$f(x) = 2x^2 + 3x - 5$$ at $$x = -1$$. Also prove that $$f'(0) + 3 f'(-1) = 0$$.

Solution

By the first principle,

$$f'(x) = \lim_{h \to 0}\frac{f(x + h) - f(x)}{h}$$

Compute $$f(x + h)$$:

$$f(x + h) = 2(x + h)^2 + 3(x + h) - 5 = 2x^2 + 4xh + 2h^2 + 3x + 3h - 5$$

Subtract $$f(x) = 2x^2 + 3x - 5$$:

$$f(x + h) - f(x) = 4xh + 2h^2 + 3h = h(4x + 2h + 3)$$

Therefore

$$f'(x) = \lim_{h \to 0}\frac{h(4x + 2h + 3)}{h} = \lim_{h \to 0}(4x + 2h + 3) = 4x + 3$$

At $$x = -1$$:

$$f'(-1) = 4(-1) + 3 = -1$$

Proof of the identity. From $$f'(x) = 4x + 3$$ we get $$f'(0) = 4(0) + 3 = 3$$. Then

$$f'(0) + 3f'(-1) = 3 + 3(-1) = 3 - 3 = 0$$

Hence $$f'(0) + 3f'(-1) = 0$$, as required.

Answer

$$f'(-1) = -1$$; and $$f'(0) + 3f'(-1) = 3 + 3(-1) = 0$$ is proved.

Example 7 Find the derivative of $$\sin x$$ at $$x = 0$$.

Solution

Let $$f(x) = \sin x$$. By the first principle, the derivative at $$x = 0$$ is

$$f'(0) = \lim_{h \to 0}\frac{f(0 + h) - f(0)}{h} = \lim_{h \to 0}\frac{\sin(0 + h) - \sin 0}{h}$$

Since $$\sin 0 = 0$$, this becomes

$$f'(0) = \lim_{h \to 0}\frac{\sin h}{h} = 1$$

using the standard limit $$\lim_{h \to 0}\dfrac{\sin h}{h} = 1$$.

Answer

$$f'(0) = 1$$

Example 8 Find the derivative of $$f(x) = 3$$ at $$x = 0$$ and at $$x = 3$$.

Solution

The function $$f(x) = 3$$ is constant: it takes the value $$3$$ for every $$x$$. By the first principle,

$$f'(x) = \lim_{h \to 0}\frac{f(x + h) - f(x)}{h} = \lim_{h \to 0}\frac{3 - 3}{h} = \lim_{h \to 0}\frac{0}{h} = \lim_{h \to 0} 0 = 0$$

This holds for every $$x$$. In particular,

$$f'(0) = 0 \qquad \text{and} \qquad f'(3) = 0$$

Answer

$$f'(0) = 0$$ and $$f'(3) = 0$$.

Example 9 Find the derivative of $$f(x) = 10x$$.

Solution

By the first principle,

$$f'(x) = \lim_{h \to 0}\frac{f(x + h) - f(x)}{h}$$

Here $$f(x + h) = 10(x + h) = 10x + 10h$$, so

$$f(x + h) - f(x) = (10x + 10h) - 10x = 10h$$

Therefore

$$f'(x) = \lim_{h \to 0}\frac{10h}{h} = \lim_{h \to 0} 10 = 10$$

Answer

$$f'(x) = 10$$

Example 10 Find the derivative of $$f(x) = x^2$$.

Solution

By the first principle,

$$f'(x) = \lim_{h \to 0}\frac{f(x + h) - f(x)}{h}$$

Compute $$f(x + h) = (x + h)^2 = x^2 + 2xh + h^2$$, so

$$f(x + h) - f(x) = (x^2 + 2xh + h^2) - x^2 = 2xh + h^2 = h(2x + h)$$

Therefore

$$f'(x) = \lim_{h \to 0}\frac{h(2x + h)}{h} = \lim_{h \to 0}(2x + h) = 2x$$

Answer

$$f'(x) = 2x$$

Example 11 Find the derivative of the constant function $$f(x) = a$$ for a fixed real number $$a$$.

Solution

The function $$f(x) = a$$ has the same value $$a$$ for every $$x$$. By the first principle,

$$f'(x) = \lim_{h \to 0}\frac{f(x + h) - f(x)}{h} = \lim_{h \to 0}\frac{a - a}{h} = \lim_{h \to 0}\frac{0}{h} = \lim_{h \to 0} 0 = 0$$

So the derivative of a constant function is $$0$$ everywhere.

Answer

$$f'(x) = 0$$

Example 12 Find the derivative of $$f(x) = \dfrac{1}{x}$$.

Solution

By the first principle,

$$f'(x) = \lim_{h \to 0}\frac{f(x + h) - f(x)}{h} = \lim_{h \to 0}\frac{\dfrac{1}{x + h} - \dfrac{1}{x}}{h}$$

Combine the fractions in the numerator:

$$\frac{1}{x + h} - \frac{1}{x} = \frac{x - (x + h)}{x(x + h)} = \frac{-h}{x(x + h)}$$

So

$$f'(x) = \lim_{h \to 0}\frac{1}{h} \cdot \frac{-h}{x(x + h)} = \lim_{h \to 0}\frac{-1}{x(x + h)}$$

Now let $$h \to 0$$:

$$f'(x) = \frac{-1}{x \cdot x} = -\frac{1}{x^2}$$

Answer

$$f'(x) = -\dfrac{1}{x^2}$$

Example 13 Compute the derivative of $$6x^{100} - x^{55} + x$$.

Solution

Let $$f(x) = 6x^{100} - x^{55} + x$$. We use the power rule $$\dfrac{d}{dx}x^n = nx^{n-1}$$ together with the fact that the derivative of a sum is the sum of the derivatives.

$$\frac{d}{dx}\big(6x^{100}\big) = 6 \cdot 100 x^{99} = 600x^{99}$$

$$\frac{d}{dx}\big(x^{55}\big) = 55x^{54}$$

$$\frac{d}{dx}(x) = 1$$

Combining these,

$$f'(x) = 600x^{99} - 55x^{54} + 1$$

Answer

$$f'(x) = 600x^{99} - 55x^{54} + 1$$

Example 14 Find the derivative of $$f(x) = 1 + x + x^2 + x^3 + \ldots + x^{50}$$ at $$x = 1$$.

Solution

Differentiate term by term using the power rule $$\dfrac{d}{dx}x^n = nx^{n-1}$$. The constant term $$1$$ has derivative $$0$$.

$$f'(x) = 0 + 1 + 2x + 3x^2 + \ldots + 50x^{49}$$

Now evaluate at $$x = 1$$. Every power of $$1$$ equals $$1$$, so

$$f'(1) = 1 + 2 + 3 + \ldots + 50$$

This is the sum of the first $$50$$ natural numbers. Using $$1 + 2 + \ldots + n = \dfrac{n(n + 1)}{2}$$ with $$n = 50$$:

$$f'(1) = \frac{50 \times 51}{2} = \frac{2550}{2} = 1275$$

Answer

$$f'(1) = 1275$$

Example 15 Find the derivative of $$f(x) = \dfrac{x + 1}{x}$$.

Solution

First simplify the function by splitting the fraction:

$$f(x) = \frac{x + 1}{x} = \frac{x}{x} + \frac{1}{x} = 1 + \frac{1}{x}$$

Now differentiate. The constant $$1$$ has derivative $$0$$, and (from Example 12) $$\dfrac{d}{dx}\left(\dfrac{1}{x}\right) = -\dfrac{1}{x^2}$$.

$$f'(x) = 0 + \left(-\frac{1}{x^2}\right) = -\frac{1}{x^2}$$

Answer

$$f'(x) = -\dfrac{1}{x^2}$$

Example 16 Compute the derivative of $$\sin x$$.

Solution

Let $$f(x) = \sin x$$. By the first principle,

$$f'(x) = \lim_{h \to 0}\frac{\sin(x + h) - \sin x}{h}$$

Use the difference-to-product identity $$\sin C - \sin D = 2\cos\dfrac{C + D}{2}\sin\dfrac{C - D}{2}$$ with $$C = x + h$$ and $$D = x$$:

$$\sin(x + h) - \sin x = 2\cos\left(x + \frac{h}{2}\right)\sin\frac{h}{2}$$

So

$$f'(x) = \lim_{h \to 0}\frac{2\cos\left(x + \frac{h}{2}\right)\sin\frac{h}{2}}{h} = \lim_{h \to 0}\cos\left(x + \frac{h}{2}\right) \cdot \frac{\sin\frac{h}{2}}{\frac{h}{2}}$$

As $$h \to 0$$: $$\cos\left(x + \dfrac{h}{2}\right) \to \cos x$$ and $$\dfrac{\sin(h/2)}{h/2} \to 1$$. Therefore

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

Answer

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

Example 17 Compute the derivative of $$\tan x$$.

Solution

Let $$f(x) = \tan x$$. By the first principle,

$$f'(x) = \lim_{h \to 0}\frac{\tan(x + h) - \tan x}{h}$$

Write each tangent as $$\dfrac{\sin}{\cos}$$ and combine over a common denominator:

$$\tan(x + h) - \tan x = \frac{\sin(x + h)}{\cos(x + h)} - \frac{\sin x}{\cos x} = \frac{\sin(x + h)\cos x - \cos(x + h)\sin x}{\cos(x + h)\cos x}$$

The numerator is $$\sin\big((x + h) - x\big) = \sin h$$. So

$$\tan(x + h) - \tan x = \frac{\sin h}{\cos(x + h)\cos x}$$

Therefore

$$f'(x) = \lim_{h \to 0}\frac{\sin h}{h} \cdot \frac{1}{\cos(x + h)\cos x}$$

As $$h \to 0$$: $$\dfrac{\sin h}{h} \to 1$$ and $$\cos(x + h) \to \cos x$$, giving

$$f'(x) = 1 \cdot \frac{1}{\cos x \cos x} = \frac{1}{\cos^2 x} = \sec^2 x$$

Answer

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

Example 18 Compute the derivative of $$f(x) = \sin^2 x$$.

Solution

Let $$f(x) = \sin^2 x$$. By the first principle,

$$f'(x) = \lim_{h \to 0}\frac{\sin^2(x + h) - \sin^2 x}{h}$$

Use the identity $$\sin^2 A - \sin^2 B = \sin(A + B)\sin(A - B)$$ with $$A = x + h$$ and $$B = x$$:

$$\sin^2(x + h) - \sin^2 x = \sin(2x + h)\sin h$$

So

$$f'(x) = \lim_{h \to 0}\frac{\sin(2x + h)\sin h}{h} = \lim_{h \to 0}\sin(2x + h) \cdot \frac{\sin h}{h}$$

As $$h \to 0$$: $$\sin(2x + h) \to \sin 2x$$ and $$\dfrac{\sin h}{h} \to 1$$. Hence

$$f'(x) = \sin 2x \cdot 1 = \sin 2x$$

Answer

$$f'(x) = \sin 2x$$

Exercise 12.2

1 Find the derivative of $$x^2 - 2$$ at $$x = 10$$.

Solution

Let $$f(x) = x^2 - 2$$. By the first principle, the derivative at $$x = 10$$ is

$$f'(10) = \lim_{h \to 0}\frac{f(10 + h) - f(10)}{h}$$

Compute the two values:

$$f(10 + h) = (10 + h)^2 - 2 = 100 + 20h + h^2 - 2 = 98 + 20h + h^2$$

$$f(10) = (10)^2 - 2 = 98$$

So

$$f(10 + h) - f(10) = 20h + h^2 = h(20 + h)$$

Therefore

$$f'(10) = \lim_{h \to 0}\frac{h(20 + h)}{h} = \lim_{h \to 0}(20 + h) = 20$$

Answer

$$f'(10) = 20$$

2 Find the derivative of $$x$$ at $$x = 1$$.

Solution

Let $$f(x) = x$$. By the first principle, the derivative at $$x = 1$$ is

$$f'(1) = \lim_{h \to 0}\frac{f(1 + h) - f(1)}{h}$$

Here $$f(1 + h) = 1 + h$$ and $$f(1) = 1$$, so

$$f'(1) = \lim_{h \to 0}\frac{(1 + h) - 1}{h} = \lim_{h \to 0}\frac{h}{h} = \lim_{h \to 0} 1 = 1$$

Answer

$$f'(1) = 1$$

3 Find the derivative of $$99x$$ at $$x = 100$$.

Solution

Let $$f(x) = 99x$$. By the first principle, the derivative at $$x = 100$$ is

$$f'(100) = \lim_{h \to 0}\frac{f(100 + h) - f(100)}{h}$$

Here $$f(100 + h) = 99(100 + h) = 9900 + 99h$$ and $$f(100) = 99(100) = 9900$$, so

$$f(100 + h) - f(100) = 99h$$

Therefore

$$f'(100) = \lim_{h \to 0}\frac{99h}{h} = \lim_{h \to 0} 99 = 99$$

Answer

$$f'(100) = 99$$

4 Find the derivative of the following functions from first principle.

(i) $$x^3 - 27$$

Solution

Let $$f(x) = x^3 - 27$$. By the first principle,

$$f'(x) = \lim_{h \to 0}\frac{f(x + h) - f(x)}{h}$$

Expand $$f(x + h) = (x + h)^3 - 27 = x^3 + 3x^2 h + 3x h^2 + h^3 - 27$$.

$$f(x + h) - f(x) = \big(x^3 + 3x^2 h + 3x h^2 + h^3 - 27\big) - \big(x^3 - 27\big) = 3x^2 h + 3x h^2 + h^3$$

$$= h\big(3x^2 + 3xh + h^2\big)$$

Therefore

$$f'(x) = \lim_{h \to 0}\frac{h(3x^2 + 3xh + h^2)}{h} = \lim_{h \to 0}\big(3x^2 + 3xh + h^2\big) = 3x^2$$

Answer

$$f'(x) = 3x^2$$

(ii) $$(x - 1)(x - 2)$$

Solution

First expand: $$f(x) = (x - 1)(x - 2) = x^2 - 3x + 2$$.

By the first principle,

$$f'(x) = \lim_{h \to 0}\frac{f(x + h) - f(x)}{h}$$

Compute $$f(x + h) = (x + h)^2 - 3(x + h) + 2 = x^2 + 2xh + h^2 - 3x - 3h + 2$$.

$$f(x + h) - f(x) = (2xh + h^2 - 3h) = h(2x + h - 3)$$

Therefore

$$f'(x) = \lim_{h \to 0}\frac{h(2x + h - 3)}{h} = \lim_{h \to 0}(2x + h - 3) = 2x - 3$$

Answer

$$f'(x) = 2x - 3$$

(iii) $$\dfrac{1}{x^2}$$

Solution

Let $$f(x) = \dfrac{1}{x^2}$$. By the first principle,

$$f'(x) = \lim_{h \to 0}\frac{1}{h}\left(\frac{1}{(x + h)^2} - \frac{1}{x^2}\right)$$

Combine the fractions:

$$\frac{1}{(x + h)^2} - \frac{1}{x^2} = \frac{x^2 - (x + h)^2}{x^2(x + h)^2} = \frac{x^2 - (x^2 + 2xh + h^2)}{x^2(x + h)^2} = \frac{-(2xh + h^2)}{x^2(x + h)^2}$$

$$= \frac{-h(2x + h)}{x^2(x + h)^2}$$

So

$$f'(x) = \lim_{h \to 0}\frac{1}{h} \cdot \frac{-h(2x + h)}{x^2(x + h)^2} = \lim_{h \to 0}\frac{-(2x + h)}{x^2(x + h)^2}$$

Letting $$h \to 0$$:

$$f'(x) = \frac{-2x}{x^2 \cdot x^2} = \frac{-2x}{x^4} = -\frac{2}{x^3}$$

Answer

$$f'(x) = -\dfrac{2}{x^3}$$

(iv) $$\dfrac{x + 1}{x - 1}$$

Solution

Let $$f(x) = \dfrac{x + 1}{x - 1}$$. By the first principle,

$$f'(x) = \lim_{h \to 0}\frac{1}{h}\left(\frac{x + h + 1}{x + h - 1} - \frac{x + 1}{x - 1}\right)$$

Combine over the common denominator $$(x + h - 1)(x - 1)$$. The numerator is

$$(x + h + 1)(x - 1) - (x + 1)(x + h - 1)$$

Expand each product:

$$(x + h + 1)(x - 1) = x^2 + hx - h - 1$$

$$(x + 1)(x + h - 1) = x^2 + hx + h - 1$$

Subtracting:

$$\big(x^2 + hx - h - 1\big) - \big(x^2 + hx + h - 1\big) = -2h$$

So

$$\frac{x + h + 1}{x + h - 1} - \frac{x + 1}{x - 1} = \frac{-2h}{(x + h - 1)(x - 1)}$$

Therefore

$$f'(x) = \lim_{h \to 0}\frac{1}{h} \cdot \frac{-2h}{(x + h - 1)(x - 1)} = \lim_{h \to 0}\frac{-2}{(x + h - 1)(x - 1)}$$

Letting $$h \to 0$$:

$$f'(x) = \frac{-2}{(x - 1)(x - 1)} = -\frac{2}{(x - 1)^2}$$

Answer

$$f'(x) = -\dfrac{2}{(x - 1)^2}$$

5 For the function $$f(x) = \dfrac{x^{100}}{100} + \dfrac{x^{99}}{99} + \ldots + \dfrac{x^2}{2} + x + 1.$$ Prove that $$f'(1) = 100 \, f'(0)$$.

Solution

Differentiate term by term using the power rule $$\dfrac{d}{dx}x^n = nx^{n-1}$$. A typical term is $$\dfrac{x^n}{n}$$, whose derivative is

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

Applying this to every term (and noting the constant $$1$$ has derivative $$0$$):

$$f'(x) = x^{99} + x^{98} + \ldots + x^2 + x + 1$$

This is a sum of $$100$$ terms (the powers $$x^{99}$$ down to $$x^0 = 1$$).

Value at $$x = 1$$: every power of $$1$$ equals $$1$$, so

$$f'(1) = \underbrace{1 + 1 + \ldots + 1}_{100 \text{ terms}} = 100$$

Value at $$x = 0$$: every term with a positive power of $$x$$ vanishes, leaving only the last term $$1$$:

$$f'(0) = 0 + 0 + \ldots + 0 + 1 = 1$$

Hence

$$f'(1) = 100 = 100 \times 1 = 100\,f'(0)$$

which proves $$f'(1) = 100\,f'(0)$$.

Answer

Proved: $$f'(1) = 100$$ and $$f'(0) = 1$$, so $$f'(1) = 100\,f'(0)$$.

6 Find the derivative of $$x^n + ax^{n-1} + a^2 x^{n-2} + \ldots + a^{n-1} x + a^n$$ for some fixed real number $$a$$.

Solution

Let $$f(x) = x^n + ax^{n-1} + a^2 x^{n-2} + \ldots + a^{n-1}x + a^n$$. Here $$a$$ is a constant, so each power $$a^k$$ is just a constant coefficient.

Differentiate term by term using $$\dfrac{d}{dx}x^m = m x^{m-1}$$:

$$\frac{d}{dx}\big(x^n\big) = n x^{n-1}$$

$$\frac{d}{dx}\big(a x^{n-1}\big) = a(n - 1)x^{n-2}$$

$$\frac{d}{dx}\big(a^2 x^{n-2}\big) = a^2(n - 2)x^{n-3}$$

and so on, while the last term $$a^n$$ is a constant with derivative $$0$$. Collecting all the terms:

$$f'(x) = n x^{n-1} + a(n - 1)x^{n-2} + a^2(n - 2)x^{n-3} + \ldots + a^{n-1}$$

Answer

$$f'(x) = nx^{n-1} + a(n-1)x^{n-2} + a^2(n-2)x^{n-3} + \ldots + a^{n-1}$$

7 For some constants $$a$$ and $$b$$, find the derivative of

(i) $$(x - a)(x - b)$$

Solution

Expand the product, treating $$a$$ and $$b$$ as constants:

$$(x - a)(x - b) = x^2 - (a + b)x + ab$$

Differentiate term by term. The term $$-(a + b)x$$ has derivative $$-(a + b)$$, and the constant $$ab$$ has derivative $$0$$:

$$\frac{d}{dx}\big[(x - a)(x - b)\big] = 2x - (a + b)$$

Answer

$$2x - (a + b)$$

(ii) $$(ax^2 + b)^2$$

Solution

Expand the square, treating $$a$$ and $$b$$ as constants:

$$(ax^2 + b)^2 = a^2 x^4 + 2abx^2 + b^2$$

Differentiate term by term using the power rule:

$$\frac{d}{dx}\big(a^2 x^4\big) = 4a^2 x^3, \qquad \frac{d}{dx}\big(2abx^2\big) = 4abx, \qquad \frac{d}{dx}\big(b^2\big) = 0$$

Therefore

$$\frac{d}{dx}\big[(ax^2 + b)^2\big] = 4a^2 x^3 + 4abx = 4ax\,(ax^2 + b)$$

Answer

$$4a^2 x^3 + 4abx = 4ax(ax^2 + b)$$

(iii) $$\dfrac{x - a}{x - b}$$

Solution

Apply the quotient rule $$\left(\dfrac{u}{v}\right)' = \dfrac{u'v - uv'}{v^2}$$ with

$$u = x - a, \quad u' = 1, \qquad v = x - b, \quad v' = 1$$

Then

$$\frac{d}{dx}\left(\frac{x - a}{x - b}\right) = \frac{(1)(x - b) - (x - a)(1)}{(x - b)^2}$$

Simplify the numerator:

$$(x - b) - (x - a) = x - b - x + a = a - b$$

Therefore

$$\frac{d}{dx}\left(\frac{x - a}{x - b}\right) = \frac{a - b}{(x - b)^2}$$

Answer

$$\dfrac{a - b}{(x - b)^2}$$

8 Find the derivative of $$\dfrac{x^n - a^n}{x - a}$$ for some constant $$a$$.

Solution

Let $$f(x) = \dfrac{x^n - a^n}{x - a}$$. Apply the quotient rule $$\left(\dfrac{u}{v}\right)' = \dfrac{u'v - uv'}{v^2}$$ with

$$u = x^n - a^n, \quad u' = nx^{n-1}, \qquad v = x - a, \quad v' = 1$$

Then

$$f'(x) = \frac{nx^{n-1}(x - a) - (x^n - a^n)(1)}{(x - a)^2}$$

Expand the numerator:

$$nx^{n-1}(x - a) = nx^n - nax^{n-1}$$

$$\text{Numerator} = nx^n - nax^{n-1} - x^n + a^n = (n - 1)x^n - nax^{n-1} + a^n$$

Therefore

$$f'(x) = \frac{(n - 1)x^n - nax^{n-1} + a^n}{(x - a)^2}$$

Answer

$$\dfrac{(n - 1)x^n - nax^{n-1} + a^n}{(x - a)^2}$$

9 Find the derivative of

(i) $$2x - \dfrac{3}{4}$$

Solution

Differentiate term by term. The term $$2x$$ has derivative $$2$$, and $$\dfrac{3}{4}$$ is a constant with derivative $$0$$.

$$\frac{d}{dx}\left(2x - \frac{3}{4}\right) = 2 - 0 = 2$$

Answer

$$2$$

(ii) $$(5x^3 + 3x - 1)(x - 1)$$

Solution

Apply the product rule $$(uv)' = u'v + uv'$$ with

$$u = 5x^3 + 3x - 1, \quad u' = 15x^2 + 3, \qquad v = x - 1, \quad v' = 1$$

Then

$$\frac{d}{dx}\big[(5x^3 + 3x - 1)(x - 1)\big] = (15x^2 + 3)(x - 1) + (5x^3 + 3x - 1)(1)$$

Expand $$(15x^2 + 3)(x - 1) = 15x^3 - 15x^2 + 3x - 3$$. Adding $$5x^3 + 3x - 1$$:

$$= 15x^3 - 15x^2 + 3x - 3 + 5x^3 + 3x - 1 = 20x^3 - 15x^2 + 6x - 4$$

Answer

$$20x^3 - 15x^2 + 6x - 4$$

(iii) $$x^{-3}(5 + 3x)$$

Solution

It is easiest to expand the product first:

$$x^{-3}(5 + 3x) = 5x^{-3} + 3x^{-3}\cdot x = 5x^{-3} + 3x^{-2}$$

Differentiate term by term using the power rule $$\dfrac{d}{dx}x^n = nx^{n-1}$$ (valid for negative integers too):

$$\frac{d}{dx}\big(5x^{-3}\big) = 5(-3)x^{-4} = -15x^{-4}$$

$$\frac{d}{dx}\big(3x^{-2}\big) = 3(-2)x^{-3} = -6x^{-3}$$

Therefore

$$\frac{d}{dx}\big[x^{-3}(5 + 3x)\big] = -15x^{-4} - 6x^{-3} = -\frac{15}{x^4} - \frac{6}{x^3}$$

Answer

$$-\dfrac{15}{x^4} - \dfrac{6}{x^3}$$

(iv) $$x^5(3 - 6x^{-9})$$

Solution

Expand the product first:

$$x^5(3 - 6x^{-9}) = 3x^5 - 6x^{5}\cdot x^{-9} = 3x^5 - 6x^{-4}$$

Differentiate term by term:

$$\frac{d}{dx}\big(3x^5\big) = 15x^4$$

$$\frac{d}{dx}\big(6x^{-4}\big) = 6(-4)x^{-5} = -24x^{-5}$$

Therefore

$$\frac{d}{dx}\big[x^5(3 - 6x^{-9})\big] = 15x^4 - (-24x^{-5}) = 15x^4 + 24x^{-5} = 15x^4 + \frac{24}{x^5}$$

Answer

$$15x^4 + \dfrac{24}{x^5}$$

(v) $$x^{-4}(3 - 4x^{-5})$$

Solution

Expand the product first:

$$x^{-4}(3 - 4x^{-5}) = 3x^{-4} - 4x^{-4}\cdot x^{-5} = 3x^{-4} - 4x^{-9}$$

Differentiate term by term:

$$\frac{d}{dx}\big(3x^{-4}\big) = 3(-4)x^{-5} = -12x^{-5}$$

$$\frac{d}{dx}\big(4x^{-9}\big) = 4(-9)x^{-10} = -36x^{-10}$$

Therefore

$$\frac{d}{dx}\big[x^{-4}(3 - 4x^{-5})\big] = -12x^{-5} - (-36x^{-10}) = -12x^{-5} + 36x^{-10} = -\frac{12}{x^5} + \frac{36}{x^{10}}$$

Answer

$$-\dfrac{12}{x^5} + \dfrac{36}{x^{10}}$$

(vi) $$\dfrac{2}{x + 1} - \dfrac{x^2}{3x - 1}$$

Solution

Differentiate each fraction separately, then subtract.

First term. Quotient rule on $$\dfrac{2}{x + 1}$$ with $$u = 2,\, u' = 0$$ and $$v = x + 1,\, v' = 1$$:

$$\frac{d}{dx}\left(\frac{2}{x + 1}\right) = \frac{0\cdot(x + 1) - 2\cdot 1}{(x + 1)^2} = \frac{-2}{(x + 1)^2}$$

Second term. Quotient rule on $$\dfrac{x^2}{3x - 1}$$ with $$u = x^2,\, u' = 2x$$ and $$v = 3x - 1,\, v' = 3$$:

$$\frac{d}{dx}\left(\frac{x^2}{3x - 1}\right) = \frac{2x(3x - 1) - x^2(3)}{(3x - 1)^2} = \frac{6x^2 - 2x - 3x^2}{(3x - 1)^2} = \frac{3x^2 - 2x}{(3x - 1)^2}$$

Therefore

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

Answer

$$-\dfrac{2}{(x + 1)^2} - \dfrac{3x^2 - 2x}{(3x - 1)^2}$$

10 Find the derivative of $$\cos x$$ from first principle.

Solution

Let $$f(x) = \cos x$$. By the first principle,

$$f'(x) = \lim_{h \to 0}\frac{\cos(x + h) - \cos x}{h}$$

Use the difference-to-product identity $$\cos C - \cos D = -2\sin\dfrac{C + D}{2}\sin\dfrac{C - D}{2}$$ with $$C = x + h$$ and $$D = x$$:

$$\cos(x + h) - \cos x = -2\sin\left(x + \frac{h}{2}\right)\sin\frac{h}{2}$$

So

$$f'(x) = \lim_{h \to 0}\frac{-2\sin\left(x + \frac{h}{2}\right)\sin\frac{h}{2}}{h} = \lim_{h \to 0}\left[-\sin\left(x + \frac{h}{2}\right) \cdot \frac{\sin\frac{h}{2}}{\frac{h}{2}}\right]$$

As $$h \to 0$$: $$\sin\left(x + \dfrac{h}{2}\right) \to \sin x$$ and $$\dfrac{\sin(h/2)}{h/2} \to 1$$. Therefore

$$f'(x) = -\sin x \cdot 1 = -\sin x$$

Answer

$$\dfrac{d}{dx}(\cos x) = -\sin x$$

11 Find the derivative of the following functions:

(i) $$\sin x \cos x$$

Solution

Apply the product rule $$(uv)' = u'v + uv'$$ with $$u = \sin x$$ and $$v = \cos x$$. Recall $$\dfrac{d}{dx}\sin x = \cos x$$ and $$\dfrac{d}{dx}\cos x = -\sin x$$.

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

Using the identity $$\cos^2 x - \sin^2 x = \cos 2x$$:

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

Answer

$$\cos^2 x - \sin^2 x = \cos 2x$$

(ii) $$\sec x$$

Solution

Write $$\sec x = \dfrac{1}{\cos x}$$ and apply the quotient rule $$\left(\dfrac{u}{v}\right)' = \dfrac{u'v - uv'}{v^2}$$ with $$u = 1,\, u' = 0$$ and $$v = \cos x,\, v' = -\sin x$$:

$$\frac{d}{dx}(\sec x) = \frac{0\cdot\cos x - 1\cdot(-\sin x)}{\cos^2 x} = \frac{\sin x}{\cos^2 x}$$

Splitting the fraction:

$$= \frac{1}{\cos x} \cdot \frac{\sin x}{\cos x} = \sec x \tan x$$

Answer

$$\sec x \tan x$$

(iii) $$5 \sec x + 4 \cos x$$

Solution

Differentiate term by term, using $$\dfrac{d}{dx}\sec x = \sec x \tan x$$ and $$\dfrac{d}{dx}\cos x = -\sin x$$.

$$\frac{d}{dx}(5\sec x) = 5\sec x \tan x$$

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

Therefore

$$\frac{d}{dx}(5\sec x + 4\cos x) = 5\sec x \tan x - 4\sin x$$

Answer

$$5\sec x \tan x - 4\sin x$$

(iv) $$\csc x$$

Solution

Write $$\csc x = \dfrac{1}{\sin x}$$ and apply the quotient rule with $$u = 1,\, u' = 0$$ and $$v = \sin x,\, v' = \cos x$$:

$$\frac{d}{dx}(\csc x) = \frac{0\cdot\sin x - 1\cdot\cos x}{\sin^2 x} = \frac{-\cos x}{\sin^2 x}$$

Splitting the fraction:

$$= -\frac{1}{\sin x} \cdot \frac{\cos x}{\sin x} = -\csc x \cot x$$

Answer

$$-\csc x \cot x$$

(v) $$3 \cot x + 5 \csc x$$

Solution

We need the derivatives of $$\cot x$$ and $$\csc x$$.

Derivative of $$\cot x$$. Write $$\cot x = \dfrac{\cos x}{\sin x}$$ and use the quotient rule:

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

From part (iv), $$\dfrac{d}{dx}(\csc x) = -\csc x \cot x$$.

Now differentiate term by term:

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

Answer

$$-3\csc^2 x - 5\csc x \cot x$$

(vi) $$5 \sin x - 6 \cos x + 7$$

Solution

Differentiate term by term, using $$\dfrac{d}{dx}\sin x = \cos x$$ and $$\dfrac{d}{dx}\cos x = -\sin x$$. The constant $$7$$ has derivative $$0$$.

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

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

Therefore

$$\frac{d}{dx}(5\sin x - 6\cos x + 7) = 5\cos x - (-6\sin x) + 0 = 5\cos x + 6\sin x$$

Answer

$$5\cos x + 6\sin x$$

(vii) $$2 \tan x - 7 \sec x$$

Solution

Differentiate term by term, using $$\dfrac{d}{dx}\tan x = \sec^2 x$$ and $$\dfrac{d}{dx}\sec x = \sec x \tan x$$.

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

$$\frac{d}{dx}(7\sec x) = 7\sec x \tan x$$

Therefore

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

Answer

$$2\sec^2 x - 7\sec x \tan x$$

Miscellaneous Examples

Example 19 Find the derivative of $$f$$ from the first principle, where $$f$$ is given by

(i) $$f(x) = \dfrac{2x + 3}{x - 2}$$

Solution

By the first principle,

$$f'(x) = \lim_{h \to 0}\frac{f(x + h) - f(x)}{h}$$

Here

$$f(x + h) - f(x) = \frac{2(x + h) + 3}{(x + h) - 2} - \frac{2x + 3}{x - 2} = \frac{2x + 2h + 3}{x + h - 2} - \frac{2x + 3}{x - 2}$$

Combine over the common denominator $$(x + h - 2)(x - 2)$$. The numerator is

$$(2x + 2h + 3)(x - 2) - (2x + 3)(x + h - 2)$$

Expand each product:

$$(2x + 2h + 3)(x - 2) = 2x^2 - x + 2hx - 4h - 6$$

$$(2x + 3)(x + h - 2) = 2x^2 - x + 2hx + 3h - 6$$

Subtracting, all terms cancel except the $$h$$-terms:

$$(-4h) - (3h) = -7h$$

So

$$f(x + h) - f(x) = \frac{-7h}{(x + h - 2)(x - 2)}$$

Therefore

$$f'(x) = \lim_{h \to 0}\frac{1}{h} \cdot \frac{-7h}{(x + h - 2)(x - 2)} = \lim_{h \to 0}\frac{-7}{(x + h - 2)(x - 2)} = \frac{-7}{(x - 2)^2}$$

Answer

$$f'(x) = -\dfrac{7}{(x - 2)^2}$$

(ii) $$f(x) = x + \dfrac{1}{x}$$

Solution

By the first principle,

$$f'(x) = \lim_{h \to 0}\frac{f(x + h) - f(x)}{h}$$

Compute the difference:

$$f(x + h) - f(x) = \left[(x + h) + \frac{1}{x + h}\right] - \left[x + \frac{1}{x}\right] = h + \left(\frac{1}{x + h} - \frac{1}{x}\right)$$

The bracketed difference is

$$\frac{1}{x + h} - \frac{1}{x} = \frac{x - (x + h)}{x(x + h)} = \frac{-h}{x(x + h)}$$

So

$$f(x + h) - f(x) = h - \frac{h}{x(x + h)} = h\left(1 - \frac{1}{x(x + h)}\right)$$

Therefore

$$f'(x) = \lim_{h \to 0}\left(1 - \frac{1}{x(x + h)}\right) = 1 - \frac{1}{x \cdot x} = 1 - \frac{1}{x^2}$$

Answer

$$f'(x) = 1 - \dfrac{1}{x^2}$$

Example 20 Find the derivative of $$f(x)$$ from the first principle, where $$f(x)$$ is

(i) $$\sin x + \cos x$$

Solution

Let $$f(x) = \sin x + \cos x$$. By the first principle,

$$f'(x) = \lim_{h \to 0}\frac{f(x + h) - f(x)}{h}$$

Group the sine and cosine differences:

$$f(x + h) - f(x) = \big[\sin(x + h) - \sin x\big] + \big[\cos(x + h) - \cos x\big]$$

Using the difference-to-product identities:

$$\sin(x + h) - \sin x = 2\cos\left(x + \frac{h}{2}\right)\sin\frac{h}{2}$$

$$\cos(x + h) - \cos x = -2\sin\left(x + \frac{h}{2}\right)\sin\frac{h}{2}$$

So

$$f(x + h) - f(x) = 2\sin\frac{h}{2}\left[\cos\left(x + \frac{h}{2}\right) - \sin\left(x + \frac{h}{2}\right)\right]$$

Therefore

$$f'(x) = \lim_{h \to 0}\frac{\sin\frac{h}{2}}{\frac{h}{2}}\left[\cos\left(x + \frac{h}{2}\right) - \sin\left(x + \frac{h}{2}\right)\right]$$

As $$h \to 0$$, $$\dfrac{\sin(h/2)}{h/2} \to 1$$, and the bracket tends to $$\cos x - \sin x$$. Hence

$$f'(x) = \cos x - \sin x$$

Answer

$$f'(x) = \cos x - \sin x$$

(ii) $$x \sin x$$

Solution

Let $$f(x) = x\sin x$$. By the first principle,

$$f'(x) = \lim_{h \to 0}\frac{(x + h)\sin(x + h) - x\sin x}{h}$$

Add and subtract $$x\sin(x + h)$$ in the numerator:

$$(x + h)\sin(x + h) - x\sin x = \big[(x + h)\sin(x + h) - x\sin(x + h)\big] + \big[x\sin(x + h) - x\sin x\big]$$

$$= h\sin(x + h) + x\big[\sin(x + h) - \sin x\big]$$

Dividing by $$h$$:

$$\frac{f(x + h) - f(x)}{h} = \sin(x + h) + x \cdot \frac{\sin(x + h) - \sin x}{h}$$

As $$h \to 0$$: $$\sin(x + h) \to \sin x$$, and the second quotient is precisely the first-principle derivative of $$\sin x$$, namely $$\cos x$$. Therefore

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

Answer

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

Example 21 Compute derivative of

(i) $$f(x) = \sin 2x$$

Solution

Use the double-angle identity $$\sin 2x = 2\sin x \cos x$$, so

$$f(x) = 2\sin x \cos x$$

Apply the product rule to $$\sin x \cos x$$ (with the constant factor $$2$$ kept outside):

$$f'(x) = 2\big[(\cos x)(\cos x) + (\sin x)(-\sin x)\big] = 2\big(\cos^2 x - \sin^2 x\big)$$

Since $$\cos^2 x - \sin^2 x = \cos 2x$$,

$$f'(x) = 2\cos 2x$$

Answer

$$f'(x) = 2\cos 2x$$

(ii) $$g(x) = \cot x$$

Solution

Write $$g(x) = \cot x = \dfrac{\cos x}{\sin x}$$ and apply the quotient rule $$\left(\dfrac{u}{v}\right)' = \dfrac{u'v - uv'}{v^2}$$ with $$u = \cos x,\, u' = -\sin x$$ and $$v = \sin x,\, v' = \cos x$$:

$$g'(x) = \frac{(-\sin x)(\sin x) - (\cos x)(\cos x)}{\sin^2 x} = \frac{-\sin^2 x - \cos^2 x}{\sin^2 x}$$

Using $$\sin^2 x + \cos^2 x = 1$$:

$$g'(x) = \frac{-1}{\sin^2 x} = -\csc^2 x$$

Answer

$$g'(x) = -\csc^2 x$$

Example 22 Find the derivative of

(i) $$\dfrac{x^5 - \cos x}{\sin x}$$

Solution

Apply the quotient rule $$\left(\dfrac{u}{v}\right)' = \dfrac{u'v - uv'}{v^2}$$ with

$$u = x^5 - \cos x, \quad u' = 5x^4 + \sin x, \qquad v = \sin x, \quad v' = \cos x$$

Then

$$\frac{d}{dx}\left(\frac{x^5 - \cos x}{\sin x}\right) = \frac{(5x^4 + \sin x)\sin x - (x^5 - \cos x)\cos x}{\sin^2 x}$$

Expand the numerator:

$$(5x^4 + \sin x)\sin x = 5x^4 \sin x + \sin^2 x$$

$$(x^5 - \cos x)\cos x = x^5 \cos x - \cos^2 x$$

$$\text{Numerator} = 5x^4 \sin x + \sin^2 x - x^5 \cos x + \cos^2 x$$

Since $$\sin^2 x + \cos^2 x = 1$$,

$$\text{Numerator} = -x^5 \cos x + 5x^4 \sin x + 1$$

Therefore

$$\frac{d}{dx}\left(\frac{x^5 - \cos x}{\sin x}\right) = \frac{-x^5 \cos x + 5x^4 \sin x + 1}{\sin^2 x}$$

Answer

$$\dfrac{-x^5 \cos x + 5x^4 \sin x + 1}{\sin^2 x}$$

(ii) $$\dfrac{x + \cos x}{\tan x}$$

Solution

Apply the quotient rule $$\left(\dfrac{u}{v}\right)' = \dfrac{u'v - uv'}{v^2}$$ with

$$u = x + \cos x, \quad u' = 1 - \sin x, \qquad v = \tan x, \quad v' = \sec^2 x$$

Then

$$\frac{d}{dx}\left(\frac{x + \cos x}{\tan x}\right) = \frac{(1 - \sin x)\tan x - (x + \cos x)\sec^2 x}{\tan^2 x}$$

Answer

$$\dfrac{(1 - \sin x)\tan x - (x + \cos x)\sec^2 x}{\tan^2 x}$$

Miscellaneous Exercise on Chapter 12

1 Find the derivative of the following functions from first principle:

(i) $$-x$$

Solution

Let $$f(x) = -x$$. By the first principle,

$$f'(x) = \lim_{h \to 0}\frac{f(x + h) - f(x)}{h}$$

Here $$f(x + h) = -(x + h) = -x - h$$, so

$$f(x + h) - f(x) = (-x - h) - (-x) = -h$$

Therefore

$$f'(x) = \lim_{h \to 0}\frac{-h}{h} = \lim_{h \to 0}(-1) = -1$$

Answer

$$f'(x) = -1$$

(ii) $$(-x)^{-1}$$

Solution

First simplify: $$f(x) = (-x)^{-1} = \dfrac{1}{-x} = -\dfrac{1}{x}$$.

By the first principle,

$$f'(x) = \lim_{h \to 0}\frac{f(x + h) - f(x)}{h}$$

Compute the difference:

$$f(x + h) - f(x) = -\frac{1}{x + h} - \left(-\frac{1}{x}\right) = \frac{1}{x} - \frac{1}{x + h} = \frac{(x + h) - x}{x(x + h)} = \frac{h}{x(x + h)}$$

Therefore

$$f'(x) = \lim_{h \to 0}\frac{1}{h} \cdot \frac{h}{x(x + h)} = \lim_{h \to 0}\frac{1}{x(x + h)} = \frac{1}{x^2}$$

Answer

$$f'(x) = \dfrac{1}{x^2}$$

(iii) $$\sin(x + 1)$$

Solution

Let $$f(x) = \sin(x + 1)$$. By the first principle,

$$f'(x) = \lim_{h \to 0}\frac{\sin(x + h + 1) - \sin(x + 1)}{h}$$

Use $$\sin C - \sin D = 2\cos\dfrac{C + D}{2}\sin\dfrac{C - D}{2}$$ with $$C = x + h + 1$$ and $$D = x + 1$$. Then $$\dfrac{C + D}{2} = x + 1 + \dfrac{h}{2}$$ and $$\dfrac{C - D}{2} = \dfrac{h}{2}$$:

$$\sin(x + h + 1) - \sin(x + 1) = 2\cos\left(x + 1 + \frac{h}{2}\right)\sin\frac{h}{2}$$

So

$$f'(x) = \lim_{h \to 0}\cos\left(x + 1 + \frac{h}{2}\right) \cdot \frac{\sin\frac{h}{2}}{\frac{h}{2}}$$

As $$h \to 0$$: $$\cos\left(x + 1 + \dfrac{h}{2}\right) \to \cos(x + 1)$$ and $$\dfrac{\sin(h/2)}{h/2} \to 1$$. Therefore

$$f'(x) = \cos(x + 1)$$

Answer

$$f'(x) = \cos(x + 1)$$

(iv) $$\cos\left(x - \dfrac{\pi}{8}\right)$$

Solution

Let $$f(x) = \cos\left(x - \dfrac{\pi}{8}\right)$$. By the first principle,

$$f'(x) = \lim_{h \to 0}\frac{\cos\left(x + h - \frac{\pi}{8}\right) - \cos\left(x - \frac{\pi}{8}\right)}{h}$$

Use $$\cos C - \cos D = -2\sin\dfrac{C + D}{2}\sin\dfrac{C - D}{2}$$ with $$C = x + h - \dfrac{\pi}{8}$$ and $$D = x - \dfrac{\pi}{8}$$. Then $$\dfrac{C + D}{2} = x - \dfrac{\pi}{8} + \dfrac{h}{2}$$ and $$\dfrac{C - D}{2} = \dfrac{h}{2}$$:

$$\cos\left(x + h - \frac{\pi}{8}\right) - \cos\left(x - \frac{\pi}{8}\right) = -2\sin\left(x - \frac{\pi}{8} + \frac{h}{2}\right)\sin\frac{h}{2}$$

So

$$f'(x) = \lim_{h \to 0}\left[-\sin\left(x - \frac{\pi}{8} + \frac{h}{2}\right) \cdot \frac{\sin\frac{h}{2}}{\frac{h}{2}}\right]$$

As $$h \to 0$$, the sine factor tends to $$\sin\left(x - \dfrac{\pi}{8}\right)$$ and $$\dfrac{\sin(h/2)}{h/2} \to 1$$. Therefore

$$f'(x) = -\sin\left(x - \frac{\pi}{8}\right)$$

Answer

$$f'(x) = -\sin\left(x - \dfrac{\pi}{8}\right)$$

2

Find the derivative of the following function (it is to be understood that $$a$$, $$b$$, $$c$$, $$d$$, $$p$$, $$q$$, $$r$$ and $$s$$ are fixed non-zero constants and $$m$$ and $$n$$ are integers):

$$(x + a)$$

Solution

Let $$f(x) = x + a$$, where $$a$$ is a constant. Differentiate term by term: the derivative of $$x$$ is $$1$$, and the derivative of the constant $$a$$ is $$0$$.

$$\frac{d}{dx}(x + a) = 1 + 0 = 1$$

Answer

$$1$$

3 Find the derivative of $$(px + q)\left(\dfrac{r}{x} + s\right)$$.

Solution

It is simplest to expand the product first:

$$(px + q)\left(\frac{r}{x} + s\right) = px\cdot\frac{r}{x} + px\cdot s + q\cdot\frac{r}{x} + q\cdot s = pr + psx + \frac{qr}{x} + qs$$

So the function is

$$psx + \frac{qr}{x} + (pr + qs)$$

where $$pr + qs$$ is a constant. Differentiate term by term, using $$\dfrac{d}{dx}\left(\dfrac{1}{x}\right) = -\dfrac{1}{x^2}$$:

$$\frac{d}{dx}(psx) = ps, \qquad \frac{d}{dx}\left(\frac{qr}{x}\right) = -\frac{qr}{x^2}, \qquad \frac{d}{dx}(pr + qs) = 0$$

Therefore

$$\frac{d}{dx}\left[(px + q)\left(\frac{r}{x} + s\right)\right] = ps - \frac{qr}{x^2}$$

Answer

$$ps - \dfrac{qr}{x^2}$$

4 Find the derivative of $$(ax + b)(cx + d)^2$$.

Solution

Apply the product rule $$(uv)' = u'v + uv'$$ with $$u = ax + b$$ and $$v = (cx + d)^2$$.

Here $$u' = a$$. For $$v$$, expand $$(cx + d)^2 = c^2 x^2 + 2cdx + d^2$$, whose derivative is

$$v' = 2c^2 x + 2cd = 2c(cx + d)$$

Then

$$\frac{d}{dx}\big[(ax + b)(cx + d)^2\big] = a(cx + d)^2 + (ax + b)\cdot 2c(cx + d)$$

Take the common factor $$(cx + d)$$:

$$= (cx + d)\big[a(cx + d) + 2c(ax + b)\big]$$

Simplify the bracket: $$a(cx + d) + 2c(ax + b) = acx + ad + 2acx + 2bc = 3acx + ad + 2bc$$.

$$\frac{d}{dx}\big[(ax + b)(cx + d)^2\big] = (cx + d)(3acx + ad + 2bc)$$

Answer

$$(cx + d)(3acx + ad + 2bc)$$

5 Find the derivative of $$\dfrac{ax + b}{cx + d}$$.

Solution

Apply the quotient rule $$\left(\dfrac{u}{v}\right)' = \dfrac{u'v - uv'}{v^2}$$ with

$$u = ax + b, \quad u' = a, \qquad v = cx + d, \quad v' = c$$

Then

$$\frac{d}{dx}\left(\frac{ax + b}{cx + d}\right) = \frac{a(cx + d) - (ax + b)c}{(cx + d)^2}$$

Expand the numerator:

$$a(cx + d) - c(ax + b) = acx + ad - acx - bc = ad - bc$$

Therefore

$$\frac{d}{dx}\left(\frac{ax + b}{cx + d}\right) = \frac{ad - bc}{(cx + d)^2}$$

Answer

$$\dfrac{ad - bc}{(cx + d)^2}$$

6 Find the derivative of $$\dfrac{1 + \dfrac{1}{x}}{1 - \dfrac{1}{x}}$$.

Solution

First simplify the compound fraction by multiplying numerator and denominator by $$x$$:

$$\frac{1 + \dfrac{1}{x}}{1 - \dfrac{1}{x}} = \frac{x\left(1 + \dfrac{1}{x}\right)}{x\left(1 - \dfrac{1}{x}\right)} = \frac{x + 1}{x - 1}$$

Now apply the quotient rule with $$u = x + 1,\, u' = 1$$ and $$v = x - 1,\, v' = 1$$:

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

Simplify the numerator: $$(x - 1) - (x + 1) = -2$$.

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

Answer

$$-\dfrac{2}{(x - 1)^2}$$

7 Find the derivative of $$\dfrac{1}{ax^2 + bx + c}$$.

Solution

Apply the quotient rule $$\left(\dfrac{u}{v}\right)' = \dfrac{u'v - uv'}{v^2}$$ with

$$u = 1, \quad u' = 0, \qquad v = ax^2 + bx + c, \quad v' = 2ax + b$$

Then

$$\frac{d}{dx}\left(\frac{1}{ax^2 + bx + c}\right) = \frac{0\cdot(ax^2 + bx + c) - 1\cdot(2ax + b)}{(ax^2 + bx + c)^2}$$

$$= \frac{-(2ax + b)}{(ax^2 + bx + c)^2}$$

Answer

$$-\dfrac{2ax + b}{(ax^2 + bx + c)^2}$$

8 Find the derivative of $$\dfrac{ax + b}{px^2 + qx + r}$$.

Solution

Apply the quotient rule $$\left(\dfrac{u}{v}\right)' = \dfrac{u'v - uv'}{v^2}$$ with

$$u = ax + b, \quad u' = a, \qquad v = px^2 + qx + r, \quad v' = 2px + q$$

Then

$$\frac{d}{dx}\left(\frac{ax + b}{px^2 + qx + r}\right) = \frac{a(px^2 + qx + r) - (ax + b)(2px + q)}{(px^2 + qx + r)^2}$$

Expand the numerator:

$$a(px^2 + qx + r) = apx^2 + aqx + ar$$

$$(ax + b)(2px + q) = 2apx^2 + aqx + 2bpx + bq$$

$$\text{Numerator} = (apx^2 + aqx + ar) - (2apx^2 + aqx + 2bpx + bq) = -apx^2 - 2bpx + ar - bq$$

Therefore

$$\frac{d}{dx}\left(\frac{ax + b}{px^2 + qx + r}\right) = \frac{-apx^2 - 2bpx + ar - bq}{(px^2 + qx + r)^2}$$

Answer

$$\dfrac{-apx^2 - 2bpx + ar - bq}{(px^2 + qx + r)^2}$$

9 Find the derivative of $$\dfrac{px^2 + qx + r}{ax + b}$$.

Solution

Apply the quotient rule $$\left(\dfrac{u}{v}\right)' = \dfrac{u'v - uv'}{v^2}$$ with

$$u = px^2 + qx + r, \quad u' = 2px + q, \qquad v = ax + b, \quad v' = a$$

Then

$$\frac{d}{dx}\left(\frac{px^2 + qx + r}{ax + b}\right) = \frac{(2px + q)(ax + b) - (px^2 + qx + r)a}{(ax + b)^2}$$

Expand the numerator:

$$(2px + q)(ax + b) = 2apx^2 + 2bpx + aqx + bq$$

$$a(px^2 + qx + r) = apx^2 + aqx + ar$$

$$\text{Numerator} = (2apx^2 + 2bpx + aqx + bq) - (apx^2 + aqx + ar) = apx^2 + 2bpx + bq - ar$$

Therefore

$$\frac{d}{dx}\left(\frac{px^2 + qx + r}{ax + b}\right) = \frac{apx^2 + 2bpx + bq - ar}{(ax + b)^2}$$

Answer

$$\dfrac{apx^2 + 2bpx + bq - ar}{(ax + b)^2}$$

10 Find the derivative of $$\dfrac{a}{x^4} - \dfrac{b}{x^2} + \cos x$$.

Solution

Rewrite the powers of $$x$$ with negative exponents:

$$\frac{a}{x^4} - \frac{b}{x^2} + \cos x = a x^{-4} - b x^{-2} + \cos x$$

Differentiate term by term, using the power rule and $$\dfrac{d}{dx}\cos x = -\sin x$$:

$$\frac{d}{dx}\big(a x^{-4}\big) = a(-4)x^{-5} = -4a x^{-5}$$

$$\frac{d}{dx}\big(b x^{-2}\big) = b(-2)x^{-3} = -2b x^{-3}$$

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

Therefore

$$\frac{d}{dx}\left(\frac{a}{x^4} - \frac{b}{x^2} + \cos x\right) = -4a x^{-5} - (-2b x^{-3}) - \sin x = -\frac{4a}{x^5} + \frac{2b}{x^3} - \sin x$$

Answer

$$-\dfrac{4a}{x^5} + \dfrac{2b}{x^3} - \sin x$$

11 Find the derivative of $$4\sqrt{x} - 2$$.

Solution

Write the square root as a power: $$\sqrt{x} = x^{1/2}$$, so the function is $$4x^{1/2} - 2$$.

Differentiate term by term using the power rule $$\dfrac{d}{dx}x^n = nx^{n-1}$$, valid here with $$n = \dfrac{1}{2}$$. The constant $$2$$ has derivative $$0$$.

$$\frac{d}{dx}\big(4x^{1/2}\big) = 4 \cdot \frac{1}{2} x^{1/2 - 1} = 2x^{-1/2}$$

Therefore

$$\frac{d}{dx}\big(4\sqrt{x} - 2\big) = 2x^{-1/2} = \frac{2}{\sqrt{x}}$$

Answer

$$\dfrac{2}{\sqrt{x}}$$

12 Find the derivative of $$(ax + b)^n$$.

Solution

Let $$f(x) = (ax + b)^n$$. We work from the first principle.

$$f'(x) = \lim_{h \to 0}\frac{(a(x + h) + b)^n - (ax + b)^n}{h}$$

Write $$u = ax + b$$, so $$a(x + h) + b = ax + b + ah = u + ah$$. Expand $$(u + ah)^n$$ by the binomial theorem:

$$(u + ah)^n = u^n + n\,u^{n-1}(ah) + \binom{n}{2}u^{n-2}(ah)^2 + \ldots$$

Subtracting $$u^n$$ and dividing by $$h$$:

$$\frac{(u + ah)^n - u^n}{h} = n\,u^{n-1}a + \binom{n}{2}u^{n-2}a^2 h + \ldots$$

Every term after the first still contains a factor $$h$$, so it vanishes as $$h \to 0$$. Hence

$$f'(x) = n\,u^{n-1}a = na(ax + b)^{n-1}$$

Answer

$$na(ax + b)^{n-1}$$

13 Find the derivative of $$(ax + b)^n (cx + d)^m$$.

Solution

Apply the product rule $$(uv)' = u'v + uv'$$ with $$u = (ax + b)^n$$ and $$v = (cx + d)^m$$.

From Question 12, the derivatives of these powers are

$$u' = na(ax + b)^{n-1}, \qquad v' = mc(cx + d)^{m-1}$$

Then

$$\frac{d}{dx}\big[(ax + b)^n (cx + d)^m\big] = na(ax + b)^{n-1}(cx + d)^m + (ax + b)^n \cdot mc(cx + d)^{m-1}$$

Take out the common factor $$(ax + b)^{n-1}(cx + d)^{m-1}$$:

$$= (ax + b)^{n-1}(cx + d)^{m-1}\big[na(cx + d) + mc(ax + b)\big]$$

Answer

$$(ax + b)^{n-1}(cx + d)^{m-1}\big[na(cx + d) + mc(ax + b)\big]$$

14 Find the derivative of $$\sin(x + a)$$.

Solution

Expand $$\sin(x + a)$$ using the addition formula. Since $$a$$ is a constant, $$\cos a$$ and $$\sin a$$ are constants:

$$\sin(x + a) = \sin x \cos a + \cos x \sin a$$

Differentiate term by term, using $$\dfrac{d}{dx}\sin x = \cos x$$ and $$\dfrac{d}{dx}\cos x = -\sin x$$:

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

The right side is the expansion of $$\cos(x + a)$$, so

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

Answer

$$\cos(x + a)$$

15 Find the derivative of $$\csc x \cot x$$.

Solution

Apply the product rule $$(uv)' = u'v + uv'$$ with $$u = \csc x$$ and $$v = \cot x$$. Recall

$$\frac{d}{dx}\csc x = -\csc x \cot x, \qquad \frac{d}{dx}\cot x = -\csc^2 x$$

Then

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

$$= -\csc x \cot^2 x - \csc^3 x$$

Take the common factor $$-\csc x$$:

$$= -\csc x\,(\cot^2 x + \csc^2 x)$$

Answer

$$-\csc x\,(\cot^2 x + \csc^2 x)$$

16 Find the derivative of $$\dfrac{\cos x}{1 + \sin x}$$.

Solution

Apply the quotient rule $$\left(\dfrac{u}{v}\right)' = \dfrac{u'v - uv'}{v^2}$$ with

$$u = \cos x, \quad u' = -\sin x, \qquad v = 1 + \sin x, \quad v' = \cos x$$

Then

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

Expand the numerator:

$$-\sin x - \sin^2 x - \cos^2 x = -\sin x - (\sin^2 x + \cos^2 x) = -\sin x - 1$$

So

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

Answer

$$-\dfrac{1}{1 + \sin x}$$

17 Find the derivative of $$\dfrac{\sin x + \cos x}{\sin x - \cos x}$$.

Solution

Apply the quotient rule $$\left(\dfrac{u}{v}\right)' = \dfrac{u'v - uv'}{v^2}$$ with

$$u = \sin x + \cos x, \quad u' = \cos x - \sin x$$

$$v = \sin x - \cos x, \quad v' = \cos x + \sin x$$

Then

$$\frac{d}{dx}\left(\frac{\sin x + \cos x}{\sin x - \cos x}\right) = \frac{(\cos x - \sin x)(\sin x - \cos x) - (\sin x + \cos x)(\cos x + \sin x)}{(\sin x - \cos x)^2}$$

Evaluate each product. Note $$(\cos x - \sin x)(\sin x - \cos x) = -(\sin x - \cos x)^2 = -(1 - 2\sin x\cos x)$$, and $$(\sin x + \cos x)^2 = 1 + 2\sin x\cos x$$.

$$\text{Numerator} = -(1 - 2\sin x\cos x) - (1 + 2\sin x\cos x) = -1 + 2\sin x\cos x - 1 - 2\sin x\cos x = -2$$

Therefore

$$\frac{d}{dx}\left(\frac{\sin x + \cos x}{\sin x - \cos x}\right) = \frac{-2}{(\sin x - \cos x)^2}$$

Answer

$$-\dfrac{2}{(\sin x - \cos x)^2}$$

18 Find the derivative of $$\dfrac{\sec x - 1}{\sec x + 1}$$.

Solution

Apply the quotient rule $$\left(\dfrac{u}{v}\right)' = \dfrac{u'v - uv'}{v^2}$$ with

$$u = \sec x - 1, \quad u' = \sec x \tan x, \qquad v = \sec x + 1, \quad v' = \sec x \tan x$$

Then

$$\frac{d}{dx}\left(\frac{\sec x - 1}{\sec x + 1}\right) = \frac{\sec x \tan x\,(\sec x + 1) - (\sec x - 1)\,\sec x \tan x}{(\sec x + 1)^2}$$

Take the common factor $$\sec x \tan x$$ in the numerator:

$$= \frac{\sec x \tan x\,\big[(\sec x + 1) - (\sec x - 1)\big]}{(\sec x + 1)^2} = \frac{\sec x \tan x \cdot 2}{(\sec x + 1)^2}$$

Therefore

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

Answer

$$\dfrac{2\sec x \tan x}{(\sec x + 1)^2}$$

19 Find the derivative of $$\sin^n x$$.

Solution

Let $$f(x) = \sin^n x = (\sin x)^n$$. We prove, by induction on $$n$$, that

$$\frac{d}{dx}\sin^n x = n\sin^{n-1}x\cos x$$

Base case ($$n = 1$$). $$\dfrac{d}{dx}\sin x = \cos x$$, which agrees with $$1 \cdot \sin^0 x \cos x = \cos x$$.

Inductive step. Assume the result holds for some $$n = k$$, that is $$\dfrac{d}{dx}\sin^k x = k\sin^{k-1}x\cos x$$. Write $$\sin^{k+1}x = \sin^k x \cdot \sin x$$ and apply the product rule:

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

$$= \big(k\sin^{k-1}x\cos x\big)\sin x + \sin^k x\cos x = k\sin^k x\cos x + \sin^k x\cos x$$

$$= (k + 1)\sin^k x\cos x$$

This is the formula for $$n = k + 1$$. By induction it holds for every positive integer $$n$$:

$$\frac{d}{dx}\sin^n x = n\sin^{n-1}x\cos x$$

Answer

$$n\sin^{n-1}x\cos x$$

20 Find the derivative of $$\dfrac{a + b \sin x}{c + d \cos x}$$.

Solution

Apply the quotient rule $$\left(\dfrac{u}{v}\right)' = \dfrac{u'v - uv'}{v^2}$$ with

$$u = a + b\sin x, \quad u' = b\cos x, \qquad v = c + d\cos x, \quad v' = -d\sin x$$

Then

$$\frac{d}{dx}\left(\frac{a + b\sin x}{c + d\cos x}\right) = \frac{b\cos x\,(c + d\cos x) - (a + b\sin x)(-d\sin x)}{(c + d\cos x)^2}$$

$$= \frac{b\cos x\,(c + d\cos x) + d\sin x\,(a + b\sin x)}{(c + d\cos x)^2}$$

Expand the numerator:

$$bc\cos x + bd\cos^2 x + ad\sin x + bd\sin^2 x$$

$$= bc\cos x + ad\sin x + bd(\cos^2 x + \sin^2 x) = bc\cos x + ad\sin x + bd$$

Therefore

$$\frac{d}{dx}\left(\frac{a + b\sin x}{c + d\cos x}\right) = \frac{bc\cos x + ad\sin x + bd}{(c + d\cos x)^2}$$

Answer

$$\dfrac{bc\cos x + ad\sin x + bd}{(c + d\cos x)^2}$$

21 Find the derivative of $$\dfrac{\sin(x + a)}{\cos x}$$.

Solution

Apply the quotient rule $$\left(\dfrac{u}{v}\right)' = \dfrac{u'v - uv'}{v^2}$$ with

$$u = \sin(x + a), \quad u' = \cos(x + a), \qquad v = \cos x, \quad v' = -\sin x$$

(The derivative $$\dfrac{d}{dx}\sin(x + a) = \cos(x + a)$$ was established in Question 14.)

$$\frac{d}{dx}\left(\frac{\sin(x + a)}{\cos x}\right) = \frac{\cos(x + a)\cos x - \sin(x + a)(-\sin x)}{\cos^2 x}$$

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

The numerator is $$\cos\big((x + a) - x\big) = \cos a$$. Therefore

$$\frac{d}{dx}\left(\frac{\sin(x + a)}{\cos x}\right) = \frac{\cos a}{\cos^2 x}$$

Answer

$$\dfrac{\cos a}{\cos^2 x}$$

22 Find the derivative of $$x^4 (5 \sin x - 3 \cos x)$$.

Solution

Apply the product rule $$(uv)' = u'v + uv'$$ with $$u = x^4$$ and $$v = 5\sin x - 3\cos x$$.

$$u' = 4x^3, \qquad v' = 5\cos x - 3(-\sin x) = 5\cos x + 3\sin x$$

Then

$$\frac{d}{dx}\big[x^4(5\sin x - 3\cos x)\big] = 4x^3(5\sin x - 3\cos x) + x^4(5\cos x + 3\sin x)$$

Take out the common factor $$x^3$$:

$$= x^3\big[4(5\sin x - 3\cos x) + x(5\cos x + 3\sin x)\big]$$

$$= x^3\big(20\sin x - 12\cos x + 5x\cos x + 3x\sin x\big)$$

Answer

$$x^3\big(20\sin x - 12\cos x + 5x\cos x + 3x\sin x\big)$$

23 Find the derivative of $$(x^2 + 1) \cos x$$.

Solution

Apply the product rule $$(uv)' = u'v + uv'$$ with $$u = x^2 + 1$$ and $$v = \cos x$$.

$$u' = 2x, \qquad v' = -\sin x$$

Then

$$\frac{d}{dx}\big[(x^2 + 1)\cos x\big] = 2x\cos x + (x^2 + 1)(-\sin x)$$

$$= 2x\cos x - (x^2 + 1)\sin x$$

Answer

$$2x\cos x - (x^2 + 1)\sin x$$

24 Find the derivative of $$(ax^2 + \sin x)(p + q \cos x)$$.

Solution

Apply the product rule $$(uv)' = u'v + uv'$$ with $$u = ax^2 + \sin x$$ and $$v = p + q\cos x$$.

$$u' = 2ax + \cos x, \qquad v' = -q\sin x$$

Then

$$\frac{d}{dx}\big[(ax^2 + \sin x)(p + q\cos x)\big] = (2ax + \cos x)(p + q\cos x) + (ax^2 + \sin x)(-q\sin x)$$

$$= (2ax + \cos x)(p + q\cos x) - q\sin x\,(ax^2 + \sin x)$$

Answer

$$(2ax + \cos x)(p + q\cos x) - q\sin x\,(ax^2 + \sin x)$$

25 Find the derivative of $$(x + \cos x)(x - \tan x)$$.

Solution

Apply the product rule $$(uv)' = u'v + uv'$$ with $$u = x + \cos x$$ and $$v = x - \tan x$$.

$$u' = 1 - \sin x, \qquad v' = 1 - \sec^2 x$$

Then

$$\frac{d}{dx}\big[(x + \cos x)(x - \tan x)\big] = (1 - \sin x)(x - \tan x) + (x + \cos x)(1 - \sec^2 x)$$

Answer

$$(1 - \sin x)(x - \tan x) + (x + \cos x)(1 - \sec^2 x)$$

26 Find the derivative of $$\dfrac{4x + 5 \sin x}{3x + 7 \cos x}$$.

Solution

Apply the quotient rule $$\left(\dfrac{u}{v}\right)' = \dfrac{u'v - uv'}{v^2}$$ with

$$u = 4x + 5\sin x, \quad u' = 4 + 5\cos x$$

$$v = 3x + 7\cos x, \quad v' = 3 - 7\sin x$$

Then

$$\frac{d}{dx}\left(\frac{4x + 5\sin x}{3x + 7\cos x}\right) = \frac{(4 + 5\cos x)(3x + 7\cos x) - (4x + 5\sin x)(3 - 7\sin x)}{(3x + 7\cos x)^2}$$

Expand each product in the numerator:

$$(4 + 5\cos x)(3x + 7\cos x) = 12x + 28\cos x + 15x\cos x + 35\cos^2 x$$

$$(4x + 5\sin x)(3 - 7\sin x) = 12x - 28x\sin x + 15\sin x - 35\sin^2 x$$

Subtract the second from the first. The $$12x$$ terms cancel, and $$35\cos^2 x + 35\sin^2 x = 35$$:

$$\text{Numerator} = 28\cos x + 15x\cos x + 28x\sin x - 15\sin x + 35$$

Therefore

$$\frac{d}{dx}\left(\frac{4x + 5\sin x}{3x + 7\cos x}\right) = \frac{35 + 28\cos x + 15x\cos x + 28x\sin x - 15\sin x}{(3x + 7\cos x)^2}$$

Answer

$$\dfrac{35 + 28\cos x + 15x\cos x + 28x\sin x - 15\sin x}{(3x + 7\cos x)^2}$$

27 Find the derivative of $$\dfrac{x^2 \cos\left(\dfrac{\pi}{4}\right)}{\sin x}$$.

Solution

Here $$\cos\dfrac{\pi}{4} = \dfrac{1}{\sqrt{2}}$$ is a constant, so it can be taken outside the derivative:

$$\frac{d}{dx}\left(\frac{x^2 \cos\frac{\pi}{4}}{\sin x}\right) = \cos\frac{\pi}{4} \cdot \frac{d}{dx}\left(\frac{x^2}{\sin x}\right)$$

Apply the quotient rule to $$\dfrac{x^2}{\sin x}$$ with $$u = x^2,\, u' = 2x$$ and $$v = \sin x,\, v' = \cos x$$:

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

Therefore

$$\frac{d}{dx}\left(\frac{x^2 \cos\frac{\pi}{4}}{\sin x}\right) = \cos\frac{\pi}{4} \cdot \frac{2x\sin x - x^2\cos x}{\sin^2 x} = \frac{2x\sin x - x^2\cos x}{\sqrt{2}\,\sin^2 x}$$

Answer

$$\cos\dfrac{\pi}{4} \cdot \dfrac{2x\sin x - x^2\cos x}{\sin^2 x} = \dfrac{2x\sin x - x^2\cos x}{\sqrt{2}\,\sin^2 x}$$

28 Find the derivative of $$\dfrac{x}{1 + \tan x}$$.

Solution

Apply the quotient rule $$\left(\dfrac{u}{v}\right)' = \dfrac{u'v - uv'}{v^2}$$ with

$$u = x, \quad u' = 1, \qquad v = 1 + \tan x, \quad v' = \sec^2 x$$

Then

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

$$= \frac{1 + \tan x - x\sec^2 x}{(1 + \tan x)^2}$$

Answer

$$\dfrac{1 + \tan x - x\sec^2 x}{(1 + \tan x)^2}$$

29 Find the derivative of $$(x + \sec x)(x - \tan x)$$.

Solution

Apply the product rule $$(uv)' = u'v + uv'$$ with $$u = x + \sec x$$ and $$v = x - \tan x$$.

$$u' = 1 + \sec x \tan x, \qquad v' = 1 - \sec^2 x$$

Then

$$\frac{d}{dx}\big[(x + \sec x)(x - \tan x)\big] = (1 + \sec x \tan x)(x - \tan x) + (x + \sec x)(1 - \sec^2 x)$$

Answer

$$(1 + \sec x \tan x)(x - \tan x) + (x + \sec x)(1 - \sec^2 x)$$

30 Find the derivative of $$\dfrac{x}{\sin^n x}$$.

Solution

Apply the quotient rule $$\left(\dfrac{u}{v}\right)' = \dfrac{u'v - uv'}{v^2}$$ with $$u = x$$ and $$v = \sin^n x$$.

$$u' = 1, \qquad v' = n\sin^{n-1}x\cos x$$

(The derivative $$\dfrac{d}{dx}\sin^n x = n\sin^{n-1}x\cos x$$ was established in Question 19.)

Then

$$\frac{d}{dx}\left(\frac{x}{\sin^n x}\right) = \frac{1\cdot\sin^n x - x\cdot n\sin^{n-1}x\cos x}{(\sin^n x)^2} = \frac{\sin^n x - nx\sin^{n-1}x\cos x}{\sin^{2n} x}$$

Take the common factor $$\sin^{n-1}x$$ out of the numerator:

$$= \frac{\sin^{n-1}x\,(\sin x - nx\cos x)}{\sin^{2n} x} = \frac{\sin x - nx\cos x}{\sin^{n+1} x}$$

Answer

$$\dfrac{\sin x - nx\cos x}{\sin^{n+1} x}$$
NCERT Solutions for Class 11
Maths
NCERT Solutions for Class 11 Maths
Chapter-wise step-by-step
solutions with explanations
explore solutions Maths bg
Physics
NCERT Solutions for Class 11 Physics
Chapter-wise step-by-step
solutions with explanations
explore solutions Physics bg
Chemistry
NCERT Solutions for Class 11 Chemistry
Chapter-wise step-by-step
solutions with explanations
explore solutions Chemistry bg

Frequently Asked Questions

50,000+ JEE Students Trusted Our Score Calculator

Predict your JEE Main percentile, rank & performance in seconds