Class 12 NCERT Solutions

Chapter 5: Continuity and Differentiability

Master the smoothness of curves, the power of the Chain Rule, and the logic of instantaneous change with our step-by-step logic.

Exercise 5.1
1. Prove that the function $f(x) = 5x – 3$ is continuous at $x = 0$, at $x = -3$ and at $x = 5$.

Given: $f(x) = 5x – 3$

Continuity at $x = 0$: Evaluate the limit by direct substitution:

$$\lim_{x \rightarrow 0} f(x) = \lim_{x \rightarrow 0}(5x – 3)$$

Putting $x = 0$: $= 5(0) – 3 = -3$

Also, $f(0) = 5(0) – 3 = -3$

$$\therefore \lim_{x \rightarrow 0} f(x) = f(0) = -3 \quad \therefore f(x) \text{ is continuous at } x = 0.$$

Continuity at $x = -3$:

$$\lim_{x \rightarrow -3} f(x) = \lim_{x \rightarrow -3}(5x – 3)$$

Putting $x = -3$: $= 5(-3) – 3 = -18$

Also, $f(-3) = 5(-3) – 3 = -18$

$$\therefore \lim_{x \rightarrow -3} f(x) = f(-3) = -18 \quad \therefore f(x) \text{ is continuous at } x = -3.$$

Continuity at $x = 5$:

$$\lim_{x \rightarrow 5} f(x) = \lim_{x \rightarrow 5}(5x – 3)$$

Putting $x = 5$: $= 5(5) – 3 = 22$

Also, $f(5) = 5(5) – 3 = 22$

$$\therefore \lim_{x \rightarrow 5}(5x – 3) = f(5) = 22 \quad \therefore f(x) \text{ is continuous at } x = 5.$$
2. Examine the continuity of the function $f(x) = 2x^2 – 1$ at $x = 3$.

Given: $f(x) = 2x^2 – 1$

Compute the limit at $x = 3$ by direct substitution:

$$\lim_{x \rightarrow 3} f(x) = \lim_{x \rightarrow 3}(2x^2 – 1)$$

Putting $x = 3$: $= 2(3)^2 – 1 = 18 – 1 = 17$

Also, $f(3) = 2(3)^2 – 1 = 17$

$$\therefore \lim_{x \rightarrow 3} f(x) = f(3) = 17 \quad \therefore f(x) \text{ is continuous at } x = 3.$$
3. Examine the following functions for continuity: (a) $f(x) = x – 5$    (b) $f(x) = \frac{1}{x-5},\ x \neq 5$    (c) $f(x) = \frac{x^2 – 25}{x+5},\ x \neq -5$    (d) $f(x) = |x – 5|$

(a) The domain of $f$ is $\mathbf{R}$. Let $c$ be any real number:

$$\lim_{x \rightarrow c} f(x) = \lim_{x \rightarrow c}(x – 5) = c – 5 = f(c)$$

Since the limit equals the function value at every point, $f$ is continuous on $\mathbf{R}$.

Alternatively: $f(x) = x – 5$ is a polynomial, and every polynomial is continuous on its domain.

(b) The domain of $f$ is $\mathbf{R} – \{5\}$ (since $f(5) \to \infty$). For any $c \neq 5$:

$$\lim_{x \rightarrow c} \frac{1}{x-5} = \frac{1}{c-5} = f(c)$$

$f$ is continuous at every point of its domain. Alternatively: $f$ is a rational function with non-zero denominator on its domain, hence continuous.

(c) The domain is $\mathbf{R} – \{-5\}$. Note that

$$f(x) = \frac{x^2-25}{x+5} = \frac{(x+5)(x-5)}{x+5} = x – 5,\quad x \neq -5$$

This reduces to a polynomial on its domain, so $f$ is continuous on $\mathbf{R} – \{-5\}$.

(d) $f(x) = |x – 5|$ is a modulus function. Every modulus function is continuous on $\mathbf{R}$, so $f$ is continuous on $\mathbf{R}$.

4. Prove that the function $f(x) = x^n$ is continuous at $x = n$, where $n$ is a positive integer.

Since $f(x) = x^n$ is a polynomial (for positive integer $n$), it is continuous everywhere on $\mathbf{R}$, and hence continuous at $x = n$ in particular.

Direct verification:

$$\lim_{x \rightarrow n} f(x) = \lim_{x \rightarrow n} x^n = n^n$$

Also, $f(n) = n^n$.

$$\therefore \lim_{x \rightarrow n} f(x) = f(n) = n^n \quad \therefore f(x) \text{ is continuous at } x = n.$$
5. Is the function $f$ defined by $f(x) = \begin{cases} x, & x \leq 1 \\ 5, & x > 1 \end{cases}$ continuous at $x = 0$? At $x = 1$? At $x = 2$?

Continuity at $x = 0$:

Since $x \to 0^-$ and $x \to 0^+$ both give values less than 1, both one-sided limits use $f(x) = x$:

$$\lim_{x \to 0^-} f(x) = 0, \quad \lim_{x \to 0^+} f(x) = 0$$ $$\therefore \lim_{x \to 0} f(x) = 0 = f(0) \quad \therefore f(x) \text{ is continuous at } x = 0.$$

Continuity at $x = 1$:

$$\lim_{x \to 1^-} f(x) = \lim_{x \to 1^-} x = 1$$ $$\lim_{x \to 1^+} f(x) = \lim_{x \to 1^+} 5 = 5$$ $$\therefore \lim_{x \to 1^-} f(x) \neq \lim_{x \to 1^+} f(x) \quad \therefore \lim_{x \to 1} f(x) \text{ does not exist.}$$

$\therefore f(x)$ is discontinuous at $x = 1$.

Continuity at $x = 2$:

For $x$ near 2 (both sides), $x > 1$ so $f(x) = 5$:

$$\lim_{x \to 2^-} f(x) = 5, \quad \lim_{x \to 2^+} f(x) = 5$$ $$\therefore \lim_{x \to 2} f(x) = 5 = f(2) \quad \therefore f(x) \text{ is continuous at } x = 2.$$

Answer: $f$ is continuous at $x = 0$ and $x = 2$, but not at $x = 1$.

6. Find all points of discontinuity of $f$, where $f(x) = \begin{cases} 2x+3, & x \leq 2 \\ 2x-3, & x > 2 \end{cases}$

For $x < 2$, $f(x) = 2x+3$ is a polynomial, hence continuous. For $x > 2$, $f(x) = 2x-3$ is a polynomial, hence continuous. The only point to check is the partition point $x = 2$:

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

The limit does not exist at $x = 2$, so $f$ is discontinuous at $x = 2$ only.

7. Find all points of discontinuity of $f$, where $f(x) = \begin{cases} |x|+3, & x \leq -3 \\ -2x, & -3 < x < 3 \\ 6x+2, & x \geq 3 \end{cases}$

The domain is $\mathbf{R}$. Each piece is a polynomial/absolute value, hence continuous within its interval. We check the two partition points.

At $x = -3$:

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

Both one-sided limits equal 6 and $f(-3) = |-3|+3 = 6$. $\therefore f$ is continuous at $x = -3$.

At $x = 3$:

$$\lim_{x \to 3^-} f(x) = \lim_{x \to 3^-}(-2x) = -6$$ $$\lim_{x \to 3^+} f(x) = \lim_{x \to 3^+}(6x+2) = 20$$ $$\therefore \lim_{x \to 3^-} f(x) \neq \lim_{x \to 3^+} f(x)$$

$f$ is discontinuous at $x = 3$ only.

8. Find all points of discontinuity of $f$, where $f(x) = \begin{cases} \dfrac{|x|}{x}, & x \neq 0 \\ 0, & x = 0 \end{cases}$

Notice that $\dfrac{|x|}{x} = 1$ for $x > 0$ and $= -1$ for $x < 0$, so $f$ behaves like a constant on each half-line and is continuous away from $x = 0$.

Checking the partition point $x = 0$:

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

The limit does not exist at $x = 0$. $\therefore f$ is discontinuous at $x = 0$ only.

9. Find all points of discontinuity of $f$, where $f(x) = \begin{cases} \dfrac{x}{|x|}, & x < 0 \\ -1, & x \geq 0 \end{cases}$

For $x < 0$: $\dfrac{x}{|x|} = \dfrac{x}{-x} = -1$. So in fact $f(x) = -1$ for all real $x$.

Since $f(x) = -1$ is a constant function, it is continuous everywhere on $\mathbf{R}$. There are no points of discontinuity.

10. Find all points of discontinuity of $f$, where $f(x) = \begin{cases} x+1, & x \geq 1 \\ x^2+1, & x < 1 \end{cases}$

Both pieces are polynomials, hence continuous away from the partition point $x = 1$. Check $x = 1$:

$$\lim_{x \to 1^-} f(x) = \lim_{x \to 1^-}(x^2+1) = 1+1 = 2$$ $$\lim_{x \to 1^+} f(x) = \lim_{x \to 1^+}(x+1) = 1+1 = 2$$ $$f(1) = 1+1 = 2$$ $$\therefore \lim_{x \to 1} f(x) = f(1) = 2 \quad \therefore f \text{ is continuous at } x = 1 \text{ as well.}$$

$\therefore f$ is continuous on $\mathbf{R}$. There are no points of discontinuity.

11. Find all points of discontinuity of $f$, where $f(x) = \begin{cases} x^3-3, & x \leq 2 \\ x^2+1, & x > 2 \end{cases}$

Both pieces are polynomials. Check partition point $x = 2$:

$$\lim_{x \to 2^-} f(x) = \lim_{x \to 2^-}(x^3-3) = 8-3 = 5$$ $$\lim_{x \to 2^+} f(x) = \lim_{x \to 2^+}(x^2+1) = 4+1 = 5$$ $$f(2) = 2^3-3 = 5$$ $$\therefore \lim_{x \to 2} f(x) = f(2) = 5 \quad \therefore f \text{ is continuous at } x = 2.$$

There are no points of discontinuity.

12. Find all points of discontinuity of $f$, where $f(x) = \begin{cases} x^{10}-1, & x \leq 1 \\ x^2, & x > 1 \end{cases}$

Both pieces are polynomials. Check partition point $x = 1$:

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

The limit does not exist. $\therefore f$ is discontinuous at $x = 1$ only.

13. Is the function defined by $f(x) = \begin{cases} x+5, & x \leq 1 \\ x-5, & x > 1 \end{cases}$ a continuous function?

Both pieces are polynomials, continuous on their respective intervals. Check the partition point $x = 1$:

$$\lim_{x \to 1^-} f(x) = 1+5 = 6$$ $$\lim_{x \to 1^+} f(x) = 1-5 = -4$$ $$\therefore \lim_{x \to 1^-} f(x) \neq \lim_{x \to 1^+} f(x)$$

The limit does not exist at $x = 1$. $\therefore f$ is not a continuous function; $x = 1$ is its only point of discontinuity.

14. Discuss the continuity of $f$, where $f(x) = \begin{cases} 3, & 0 \leq x \leq 1 \\ 4, & 1 < x < 3 \\ 5, & 3 \leq x \leq 10 \end{cases}$

Each piece is a constant function, so $f$ is continuous within each interval. The partition points are $x = 1$ and $x = 3$.

At $x = 1$:

$$\lim_{x \to 1^-} f(x) = 3, \quad \lim_{x \to 1^+} f(x) = 4$$

Limits are unequal $\Rightarrow$ $f$ is discontinuous at $x = 1$.

At $x = 3$:

$$\lim_{x \to 3^-} f(x) = 4, \quad \lim_{x \to 3^+} f(x) = 5$$

Limits are unequal $\Rightarrow$ $f$ is discontinuous at $x = 3$.

$\therefore$ The two points of discontinuity in $[0,10]$ are $x = 1$ and $x = 3$.

15. Discuss the continuity of $f$, where $f(x) = \begin{cases} 2x, & x < 0 \\ 0, & 0 \leq x \leq 1 \\ 4x, & x > 1 \end{cases}$

Each piece is a polynomial/constant, continuous within its interval. Check the partition points.

At $x = 0$:

$$f(0) = 0$$ $$\lim_{x \to 0^-} f(x) = \lim_{x \to 0^-} 2x = 0, \quad \lim_{x \to 0^+} f(x) = \lim_{x \to 0^+} 0 = 0$$ $$\therefore \lim_{x \to 0} f(x) = 0 = f(0) \quad \Rightarrow f \text{ is continuous at } x = 0.$$

At $x = 1$:

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

Left and right limits are unequal $\Rightarrow$ $f$ is discontinuous at $x = 1$ only.

16. Discuss the continuity of $f$, where $f(x) = \begin{cases} -2, & x \leq -1 \\ 2x, & -1 < x \leq 1 \\ 2, & x > 1 \end{cases}$

Check the two partition points $x = -1$ and $x = 1$.

At $x = -1$:

$$\lim_{x \to -1^-} f(x) = -2, \quad \lim_{x \to -1^+} f(x) = 2(-1) = -2, \quad f(-1) = -2$$ $$\therefore \lim_{x \to -1} f(x) = f(-1) = -2 \quad \Rightarrow f \text{ is continuous at } x = -1.$$

At $x = 1$:

$$\lim_{x \to 1^-} f(x) = 2(1) = 2, \quad \lim_{x \to 1^+} f(x) = 2, \quad f(1) = 2(1) = 2$$ $$\therefore \lim_{x \to 1} f(x) = f(1) = 2 \quad \Rightarrow f \text{ is continuous at } x = 1.$$

$\therefore f$ is continuous on its entire domain $\mathbf{R}$.

17. Find the relationship between $a$ and $b$ so that the function $f$ defined by $f(x) = \begin{cases} ax+1, & x \leq 3 \\ bx+3, & x > 3 \end{cases}$ is continuous at $x = 3$.

For continuity at $x = 3$, the left limit, right limit and function value must all be equal:

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

Setting left limit $=$ right limit:

$$3a+1 = 3b+3 \Rightarrow 3a = 3b+2$$ $$\boxed{a = b + \frac{2}{3}}$$
18. For what value of $\lambda$ is the function defined by $f(x) = \begin{cases} \lambda(x^2-2x), & x \leq 0 \\ 4x+1, & x > 0 \end{cases}$ continuous at $x = 0$? What about continuity at $x = 1$?

Continuity at $x = 0$:

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

Since $0 \neq 1$ regardless of $\lambda$, the limit does not exist at $x = 0$. Therefore, for no value of $\lambda$ is $f$ continuous at $x = 0$.

Continuity at $x = 1$:

For $x$ near 1 (both sides), $x > 0$ so $f(x) = 4x+1$:

$$\lim_{x \to 1^-} f(x) = 4+1 = 5, \quad \lim_{x \to 1^+} f(x) = 4+1 = 5, \quad f(1) = 5$$

$\therefore f$ is continuous at $x = 1$ for all real values of $\lambda$.

19. Show that the function defined by $g(x) = x – [x]$ is discontinuous at all integral points. Here $[x]$ denotes the greatest integer less than or equal to $x$.

Let $c$ be any integer. Substitute $x = c – h$ (with $h \to 0^+$) for the left limit:

$$\lim_{x \to c^-} g(x) = \lim_{h \to 0^+}(c-h-[c-h])$$

Since $c \in \mathbb{Z}$ and $h \to 0^+$, we have $[c-h] = c-1$:

$$= \lim_{h \to 0^+}(c-h-c+1) = \lim_{h \to 0^+}(1-h) = 1$$

For the right limit, substitute $x = c + h$:

$$\lim_{x \to c^+} g(x) = \lim_{h \to 0^+}(c+h-[c+h]) = \lim_{h \to 0^+}(c+h-c) = 0$$ $$\therefore \lim_{x \to c^-} g(x) \neq \lim_{x \to c^+} g(x)$$

The limit fails to exist at every integer $c$. $\therefore g(x) = x – [x]$ is discontinuous at all integral points.

20. Is the function $f(x) = x^2 – \sin x + 5$ continuous at $x = \pi$?

Write $f(x) = g(x) – h(x)$ where $g(x) = x^2+5$ (polynomial, continuous) and $h(x) = \sin x$ (sine function, continuous). Their difference is continuous everywhere, so $f$ is continuous at $x = \pi$.

Direct verification:

$$\lim_{x \to \pi} f(x) = \pi^2 – \sin\pi + 5 = \pi^2 – 0 + 5 = \pi^2+5$$ $$f(\pi) = \pi^2 – \sin\pi + 5 = \pi^2+5$$ $$\therefore \lim_{x \to \pi} f(x) = f(\pi) \quad \therefore f(x) \text{ is continuous at } x = \pi.$$
21. Discuss the continuity of the following functions: (a) $f(x) = \sin x + \cos x$    (b) $f(x) = \sin x – \cos x$    (c) $f(x) = \sin x \cdot \cos x$

Both $\sin x$ and $\cos x$ are continuous for all real $x$. By the algebra of continuous functions:

(a) Their sum $f(x) = \sin x + \cos x$ is continuous for all $x \in \mathbf{R}$.

(b) Their difference $f(x) = \sin x – \cos x$ is continuous for all $x \in \mathbf{R}$.

(c) Their product $f(x) = \sin x \cdot \cos x$ is continuous for all $x \in \mathbf{R}$.

22. Discuss the continuity of the cosine, cosecant, secant and cotangent functions.

(i) $f(x) = \cos x$: Domain is $\mathbf{R}$. For any $c \in \mathbf{R}$, put $x = c+h$, $h \to 0$:

$$\lim_{x \to c} \cos x = \lim_{h \to 0}\cos(c+h) = \lim_{h \to 0}(\cos c\cos h – \sin c\sin h) = \cos c$$

Since the limit equals $f(c) = \cos c$, $\cos x$ is continuous on $\mathbf{R}$.

(ii) $f(x) = \operatorname{cosec} x = \dfrac{1}{\sin x}$: Domain is $\mathbf{D} = \mathbf{R} – \{x = n\pi;\ n \in \mathbb{Z}\}$. On this domain, $\sin x \neq 0$ and is continuous, so the quotient $\dfrac{1}{\sin x}$ is continuous on $\mathbf{D}$.

(iii) $f(x) = \sec x = \dfrac{1}{\cos x}$: Domain is $\mathbf{D} = \mathbf{R} – \left\{x = (2n+1)\dfrac{\pi}{2};\ n \in \mathbb{Z}\right\}$. On $\mathbf{D}$, $\cos x \neq 0$, so $\sec x$ is continuous on $\mathbf{D}$.

(iv) $f(x) = \cot x = \dfrac{\cos x}{\sin x}$: Domain is $\mathbf{D} = \mathbf{R} – \{x = n\pi;\ n \in \mathbb{Z}\}$. Both numerator and denominator are continuous, and denominator is non-zero on $\mathbf{D}$, so $\cot x$ is continuous on $\mathbf{D}$.

23. Find all points of discontinuity of $f$, where $f(x) = \begin{cases} \dfrac{\sin x}{x}, & x < 0 \\ x+1, & x \geq 0 \end{cases}$

For $x < 0$, $\dfrac{\sin x}{x}$ is a ratio of continuous functions with $x \neq 0$, so $f$ is continuous for $x < 0$. For $x > 0$, $f(x) = x+1$ is a polynomial, so $f$ is continuous for $x > 0$. Check $x = 0$:

$$f(0) = 0+1 = 1$$ $$\lim_{x \to 0^-} f(x) = \lim_{x \to 0^-} \frac{\sin x}{x} = 1 \quad \left[\because \lim_{x \to 0}\frac{\sin x}{x} = 1\right]$$ $$\lim_{x \to 0^+} f(x) = 0+1 = 1$$ $$\therefore \lim_{x \to 0} f(x) = 1 = f(0)$$

$f$ is continuous at $x = 0$ as well. $\therefore f$ is continuous on $\mathbf{R}$ — no points of discontinuity.

24. Determine if $f$ defined by $f(x) = \begin{cases} x^2\sin\dfrac{1}{x}, & x \neq 0 \\ 0, & x = 0 \end{cases}$ is a continuous function.

For $x \neq 0$, $f(x) = x^2 \sin\dfrac{1}{x}$ is a product of the continuous function $x^2$ and the bounded function $\sin\dfrac{1}{x}$, so $f$ is continuous for all $x \neq 0$.

At $x = 0$:

$$\lim_{x \to 0} f(x) = \lim_{x \to 0} x^2\sin\frac{1}{x} = 0 \times (\text{a quantity between } -1 \text{ and } 1) = 0$$ $$f(0) = 0$$ $$\therefore \lim_{x \to 0} f(x) = f(0) = 0$$

$f$ is continuous at $x = 0$ as well. $\therefore f$ is continuous on $\mathbf{R}$.

25. Examine the continuity of $f$, where $f$ is defined by $f(x) = \begin{cases} \sin x – \cos x, & x \neq 0 \\ -1, & x = 0 \end{cases}$

For $x \neq 0$, $f(x) = \sin x – \cos x$ is continuous (difference of two continuous functions). At $x = 0$:

$$\lim_{x \to 0} f(x) = \lim_{x \to 0}(\sin x – \cos x) = \sin 0 – \cos 0 = 0-1 = -1$$ $$f(0) = -1$$ $$\therefore \lim_{x \to 0} f(x) = f(0) = -1$$

$f$ is continuous at $x = 0$ as well. $\therefore f$ is continuous on $\mathbf{R}$.

26. Find the value of $k$ so that $f$ is continuous at $x = \dfrac{\pi}{2}$, where $f(x) = \begin{cases} \dfrac{k\cos x}{\pi – 2x}, & x \neq \dfrac{\pi}{2} \\ 3, & x = \dfrac{\pi}{2} \end{cases}$

Compute the limit by substituting $x = \dfrac{\pi}{2} – h$, $h \to 0^+$:

$$\lim_{x \to \frac{\pi}{2}} \frac{k\cos x}{\pi – 2x} = \lim_{h \to 0^+} \frac{k\cos\!\left(\frac{\pi}{2}-h\right)}{\pi-2\!\left(\frac{\pi}{2}-h\right)} = \lim_{h \to 0^+} \frac{k\sin h}{2h} = \frac{k}{2}\lim_{h \to 0^+}\frac{\sin h}{h} = \frac{k}{2}$$

(The same result is obtained from the right side.) For continuity:

$$\frac{k}{2} = f\!\left(\frac{\pi}{2}\right) = 3 \Rightarrow \boxed{k = 6}$$
27. Find the value of $k$ so that $f$ is continuous at $x = 2$, where $f(x) = \begin{cases} kx^2, & x \leq 2 \\ 3, & x > 2 \end{cases}$
$$\lim_{x \to 2^-} f(x) = k(2)^2 = 4k, \quad \lim_{x \to 2^+} f(x) = 3, \quad f(2) = 4k$$

For continuity: $4k = 3$

$$\boxed{k = \frac{3}{4}}$$
28. Find the value of $k$ so that $f$ is continuous at $x = \pi$, where $f(x) = \begin{cases} kx+1, & x \leq \pi \\ \cos x, & x > \pi \end{cases}$
$$\lim_{x \to \pi^-} f(x) = k\pi+1, \quad \lim_{x \to \pi^+} f(x) = \cos\pi = -1, \quad f(\pi) = k\pi+1$$

For continuity: $k\pi + 1 = -1$

$$k\pi = -2 \Rightarrow \boxed{k = -\frac{2}{\pi}}$$
29. Find the value of $k$ so that $f$ is continuous at $x = 5$, where $f(x) = \begin{cases} kx+1, & x \leq 5 \\ 3x-5, & x > 5 \end{cases}$
$$\lim_{x \to 5^-} f(x) = 5k+1, \quad \lim_{x \to 5^+} f(x) = 15-5 = 10, \quad f(5) = 5k+1$$

For continuity: $5k+1 = 10$

$$5k = 9 \Rightarrow \boxed{k = \frac{9}{5}}$$
30. Find the values of $a$ and $b$ such that $f(x) = \begin{cases} 5, & x \leq 2 \\ ax+b, & 2 < x < 10 \\ 21, & x \geq 10 \end{cases}$ is a continuous function.

At $x = 2$: continuity requires

$$\lim_{x \to 2^+}(ax+b) = f(2) = 5 \Rightarrow 2a+b = 5 \quad \cdots (v)$$

At $x = 10$: continuity requires

$$\lim_{x \to 10^-}(ax+b) = f(10) = 21 \Rightarrow 10a+b = 21 \quad \cdots (vii)$$

Subtract (v) from (vii): $8a = 16 \Rightarrow a = 2$. Substituting back: $4+b = 5 \Rightarrow b = 1$.

$$\boxed{a = 2,\quad b = 1}$$
31. Show that the function defined by $f(x) = \cos(x^2)$ is a continuous function.

Write $f = g \circ h$ where $g(x) = \cos x$ (cosine — continuous) and $h(x) = x^2$ (polynomial — continuous).

$$f(x) = (g \circ h)(x) = g(h(x)) = g(x^2) = \cos(x^2)$$

Since the composite of two continuous functions is continuous, $f(x) = \cos(x^2)$ is continuous on $\mathbf{R}$.

32. Show that the function defined by $f(x) = |\cos x|$ is a continuous function.

Write $f = h \circ g$ where $g(x) = \cos x$ (continuous) and $h(x) = |x|$ (modulus — continuous).

$$(h \circ g)(x) = h(g(x)) = h(\cos x) = |\cos x| = f(x)$$

Since the composite of two continuous functions is continuous, $f(x) = |\cos x|$ is continuous on $\mathbf{R}$.

33. Examine that $\sin|x|$ is a continuous function.

Let $f(x) = \sin x$ (continuous) and $g(x) = |x|$ (continuous). Then

$$(f \circ g)(x) = f(g(x)) = \sin|x|$$

The composite of two continuous functions is continuous, so $\sin|x|$ is continuous on $\mathbf{R}$.

34. Find all points of discontinuity of $f$ defined by $f(x) = |x| – |x+1|$.

The critical points where the modulus expressions change sign are $x = 0$ and $x = -1$. Express $f$ piece-wise on the three intervals $(-\infty,-1]$, $[-1,0]$, $[0,\infty)$:

For $x \leq -1$: $|x| = -x$, $|x+1| = -(x+1)$, so $f(x) = -x+(x+1) = 1$.

For $-1 \leq x \leq 0$: $|x| = -x$, $|x+1| = x+1$, so $f(x) = -x-(x+1) = -2x-1$.

For $x \geq 0$: $|x| = x$, $|x+1| = x+1$, so $f(x) = x-(x+1) = -1$.

At $x = -1$:

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

Continuous at $x = -1$.

At $x = 0$:

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

Continuous at $x = 0$.

$\therefore f$ is continuous on all of $\mathbf{R}$. There are no points of discontinuity.

Alternatively: $|x|$ and $|x+1|$ are both continuous on $\mathbf{R}$, so their difference is continuous on $\mathbf{R}$.

Exercise 5.2
1. Differentiate $\sin(x^2+5)$ w.r.t. $x$.

Apply the chain rule — differentiate the outer sine function, then multiply by the derivative of the inner expression:

$$\frac{dy}{dx} = \cos(x^2+5)\cdot\frac{d}{dx}(x^2+5) = \cos(x^2+5)\cdot 2x = 2x\cos(x^2+5)$$
2. Differentiate $\cos(\sin x)$ w.r.t. $x$.
$$\frac{dy}{dx} = -\sin(\sin x)\cdot\frac{d}{dx}\sin x = -\sin(\sin x)\cdot\cos x = -\cos x\sin(\sin x)$$
3. Differentiate $\sin(ax+b)$ w.r.t. $x$.
$$\frac{dy}{dx} = \cos(ax+b)\cdot\frac{d}{dx}(ax+b) = \cos(ax+b)\cdot a = a\cos(ax+b)$$
4. Differentiate $\sec(\tan\sqrt{x})$ w.r.t. $x$.

Apply the chain rule three times — sec, then tan, then $\sqrt{x}$:

$$\frac{dy}{dx} = \sec(\tan\sqrt{x})\tan(\tan\sqrt{x})\cdot\sec^2(\sqrt{x})\cdot\frac{1}{2\sqrt{x}}$$
5. Differentiate $\dfrac{\sin(ax+b)}{\cos(cx+d)}$ w.r.t. $x$.

Apply the quotient rule, then the chain rule for each trig function:

$$\frac{dy}{dx} = \frac{\cos(cx+d)\cdot a\cos(ax+b) + \sin(ax+b)\cdot c\sin(cx+d)}{\cos^2(cx+d)}$$ $$= \frac{a\cos(ax+b)\cos(cx+d) + c\sin(ax+b)\sin(cx+d)}{\cos^2(cx+d)}$$
6. Differentiate $\cos x^3 \sin^2(x^5)$ w.r.t. $x$.

Use the product rule on $u = \cos x^3$ and $v = \sin^2(x^5)$:

$$\frac{dy}{dx} = \cos x^3\cdot 2\sin x^5\cos x^5\cdot 5x^4 + \sin^2 x^5\cdot(-\sin x^3)\cdot 3x^2$$ $$= 10x^4\cos x^3\sin x^5\cos x^5 – 3x^2\sin x^3\sin^2 x^5$$ $$= x^2\sin x^5\left[10x^2\cos x^3\cos x^5 – 3\sin x^5\sin x^3\right]$$
7. Differentiate $2\sqrt{\cot(x^2)}$ w.r.t. $x$.

Write $y = 2(\cot x^2)^{1/2}$ and apply the chain rule:

$$\frac{dy}{dx} = 2\cdot\frac{1}{2}(\cot x^2)^{-1/2}\cdot(-\operatorname{cosec}^2 x^2)\cdot 2x = \frac{-2x\operatorname{cosec}^2(x^2)}{\sqrt{\cot(x^2)}}$$
8. Differentiate $\cos(\sqrt{x})$ w.r.t. $x$.
$$\frac{dy}{dx} = -\sin\sqrt{x}\cdot\frac{d}{dx}\sqrt{x} = -\sin\sqrt{x}\cdot\frac{1}{2\sqrt{x}} = \frac{-\sin\sqrt{x}}{2\sqrt{x}}$$
9. Prove that the function $f$ given by $f(x) = |x-1|$, $x \in \mathbf{R}$ is not differentiable at $x = 1$.

At $x = 1$, $f(1) = 0$. Compute the one-sided derivatives:

$$Lf'(1) = \lim_{x \to 1^-}\frac{|x-1|}{x-1} = \lim_{x \to 1^-}\frac{-(x-1)}{x-1} = -1$$ $$Rf'(1) = \lim_{x \to 1^+}\frac{|x-1|}{x-1} = \lim_{x \to 1^+}\frac{x-1}{x-1} = 1$$ $$Lf'(1) \neq Rf'(1) \quad \therefore f(x) \text{ is not differentiable at } x = 1. \qquad \blacksquare$$
10. Prove that the greatest integer function defined by $f(x) = [x]$, $0 < x < 3$ is not differentiable at $x = 1$ and $x = 2$.

At $x = 1$: $f(1) = [1] = 1$. Substitute $x = 1-h$, $h \to 0^+$:

$$Lf'(1) = \lim_{h \to 0^+}\frac{[1-h]-1}{-h} = \lim_{h \to 0^+}\frac{0-1}{-h} = \lim_{h \to 0^+}\frac{1}{h} = \infty$$

The left-hand derivative does not exist $\Rightarrow$ $f$ is not differentiable at $x = 1$.

At $x = 2$: $f(2) = [2] = 2$. Substitute $x = 2-h$, $h \to 0^+$:

$$Lf'(2) = \lim_{h \to 0^+}\frac{[2-h]-2}{-h} = \lim_{h \to 0^+}\frac{1-2}{-h} = \lim_{h \to 0^+}\frac{1}{h} = \infty$$

The left-hand derivative does not exist $\Rightarrow$ $f$ is not differentiable at $x = 2$.

Exercise 5.3
1. Find $\dfrac{dy}{dx}$ for $2x+3y = \sin x$.

Differentiate both sides w.r.t. $x$:

$$2 + 3\frac{dy}{dx} = \cos x \Rightarrow 3\frac{dy}{dx} = \cos x – 2 \Rightarrow \frac{dy}{dx} = \frac{\cos x – 2}{3}$$
2. Find $\dfrac{dy}{dx}$ for $2x+3y = \sin y$.

Differentiate both sides w.r.t. $x$:

$$2 + 3\frac{dy}{dx} = \cos y\frac{dy}{dx}$$ $$\Rightarrow (3 – \cos y)\frac{dy}{dx} = -2 \Rightarrow \frac{dy}{dx} = \frac{2}{\cos y – 3}$$
3. Find $\dfrac{dy}{dx}$ for $ax + by^2 = \cos y$.
$$a + 2by\frac{dy}{dx} = -\sin y\frac{dy}{dx}$$ $$\Rightarrow \frac{dy}{dx}(2by + \sin y) = -a \Rightarrow \frac{dy}{dx} = \frac{-a}{2by + \sin y}$$
4. Find $\dfrac{dy}{dx}$ for $xy + y^2 = \tan x + y$.

Differentiate both sides, using the product rule on $xy$:

$$x\frac{dy}{dx} + y + 2y\frac{dy}{dx} = \sec^2 x + \frac{dy}{dx}$$ $$\Rightarrow (x + 2y – 1)\frac{dy}{dx} = \sec^2 x – y \Rightarrow \frac{dy}{dx} = \frac{\sec^2 x – y}{x + 2y – 1}$$
5. Find $\dfrac{dy}{dx}$ for $x^2 + xy + y^2 = 100$.
$$2x + x\frac{dy}{dx} + y + 2y\frac{dy}{dx} = 0$$ $$\Rightarrow (x+2y)\frac{dy}{dx} = -(2x+y) \Rightarrow \frac{dy}{dx} = -\frac{2x+y}{x+2y}$$
6. Find $\dfrac{dy}{dx}$ for $x^3 + x^2y + xy^2 + y^3 = 81$.
$$3x^2 + x^2\frac{dy}{dx} + 2xy + 2xy\frac{dy}{dx} + y^2 + 3y^2\frac{dy}{dx} = 0$$ $$\Rightarrow \frac{dy}{dx}(x^2+2xy+3y^2) = -(3x^2+2xy+y^2) \Rightarrow \frac{dy}{dx} = -\frac{3x^2+2xy+y^2}{x^2+2xy+3y^2}$$
7. Find $\dfrac{dy}{dx}$ for $\sin^2 y + \cos xy = \pi$.
$$2\sin y\cos y\frac{dy}{dx} – \sin xy\left(x\frac{dy}{dx}+y\right) = 0$$ $$\Rightarrow (\sin 2y – x\sin xy)\frac{dy}{dx} = y\sin xy$$ $$\therefore \frac{dy}{dx} = \frac{y\sin xy}{\sin 2y – x\sin xy}$$
8. Find $\dfrac{dy}{dx}$ for $\sin^2 x + \cos^2 y = 1$.
$$2\sin x\cos x – 2\cos y\sin y\frac{dy}{dx} = 0$$ $$\Rightarrow \sin 2x = \sin 2y\frac{dy}{dx} \Rightarrow \frac{dy}{dx} = \frac{\sin 2x}{\sin 2y}$$
9. Find $\dfrac{dy}{dx}$ for $y = \sin^{-1}\!\left(\dfrac{2x}{1+x^2}\right)$.

Substitute $x = \tan\theta$ to simplify the inverse trig expression:

$$y = \sin^{-1}\!\left(\frac{2\tan\theta}{1+\tan^2\theta}\right) = \sin^{-1}(\sin 2\theta) = 2\theta = 2\tan^{-1}x$$ $$\therefore \frac{dy}{dx} = 2\cdot\frac{1}{1+x^2} = \frac{2}{1+x^2}$$
10. Find $\dfrac{dy}{dx}$ for $y = \tan^{-1}\!\left(\dfrac{3x-x^3}{1-3x^2}\right)$, $\dfrac{-1}{\sqrt{3}} < x < \dfrac{1}{\sqrt{3}}$.

Substitute $x = \tan\theta$:

$$y = \tan^{-1}\!\left(\frac{3\tan\theta – \tan^3\theta}{1-3\tan^2\theta}\right) = \tan^{-1}(\tan 3\theta) = 3\theta = 3\tan^{-1}x$$ $$\therefore \frac{dy}{dx} = \frac{3}{1+x^2}$$
11. Find $\dfrac{dy}{dx}$ for $y = \cos^{-1}\!\left(\dfrac{1-x^2}{1+x^2}\right)$, $0 < x < 1$.

Substitute $x = \tan\theta$:

$$y = \cos^{-1}\!\left(\frac{1-\tan^2\theta}{1+\tan^2\theta}\right) = \cos^{-1}(\cos 2\theta) = 2\theta = 2\tan^{-1}x$$ $$\therefore \frac{dy}{dx} = \frac{2}{1+x^2}$$
12. Find $\dfrac{dy}{dx}$ for $y = \sin^{-1}\!\left(\dfrac{1-x^2}{1+x^2}\right)$, $0 < x < 1$.

Substitute $x = \tan\theta$:

$$y = \sin^{-1}\!\left(\frac{1-\tan^2\theta}{1+\tan^2\theta}\right) = \sin^{-1}(\cos 2\theta) = \sin^{-1}\sin\!\left(\frac{\pi}{2}-2\theta\right) = \frac{\pi}{2}-2\tan^{-1}x$$ $$\therefore \frac{dy}{dx} = -\frac{2}{1+x^2}$$
13. Find $\dfrac{dy}{dx}$ for $y = \cos^{-1}\!\left(\dfrac{2x}{1+x^2}\right)$, $-1 < x < 1$.

Substitute $x = \tan\theta$:

$$y = \cos^{-1}(\sin 2\theta) = \cos^{-1}\cos\!\left(\frac{\pi}{2}-2\theta\right) = \frac{\pi}{2}-2\tan^{-1}x$$ $$\therefore \frac{dy}{dx} = -\frac{2}{1+x^2}$$
14. Find $\dfrac{dy}{dx}$ for $y = \sin^{-1}\!\left(2x\sqrt{1-x^2}\right)$, $-\dfrac{1}{\sqrt{2}} < x < \dfrac{1}{\sqrt{2}}$.

Substitute $x = \sin\theta$:

$$y = \sin^{-1}(2\sin\theta\cos\theta) = \sin^{-1}(\sin 2\theta) = 2\theta = 2\sin^{-1}x$$ $$\therefore \frac{dy}{dx} = \frac{2}{\sqrt{1-x^2}}$$
15. Find $\dfrac{dy}{dx}$ for $y = \sec^{-1}\!\left(\dfrac{1}{2x^2-1}\right)$, $0 < x < \dfrac{1}{\sqrt{2}}$.

Substitute $x = \cos\theta$:

$$y = \sec^{-1}\!\left(\frac{1}{2\cos^2\theta-1}\right) = \sec^{-1}\!\left(\frac{1}{\cos 2\theta}\right) = \sec^{-1}(\sec 2\theta) = 2\theta = 2\cos^{-1}x$$ $$\therefore \frac{dy}{dx} = \frac{-2}{\sqrt{1-x^2}}$$
Exercise 5.4
1. Differentiate $\dfrac{e^x}{\sin x}$ w.r.t. $x$.

Apply the quotient rule:

$$\frac{dy}{dx} = \frac{\sin x\cdot e^x – e^x\cos x}{\sin^2 x} = \frac{e^x(\sin x – \cos x)}{\sin^2 x}$$
2. Differentiate $e^{\tan^{-1}x}$ w.r.t. $x$.
$$\frac{dy}{dx} = e^{\tan^{-1}x}\cdot\frac{1}{1+x^2}$$
3. Differentiate $e^{x^3}$ w.r.t. $x$.
$$\frac{dy}{dx} = e^{x^3}\cdot 3x^2 = 3x^2 e^{x^3}$$
4. Differentiate $\sin(\tan^{-1}e^{-x})$ w.r.t. $x$.

Apply the chain rule for sin, then $\tan^{-1}$, then $e^{-x}$:

$$\frac{dy}{dx} = \cos(\tan^{-1}e^{-x})\cdot\frac{1}{1+e^{-2x}}\cdot e^{-x}\cdot(-1) = -\frac{e^{-x}\cos(\tan^{-1}e^{-x})}{1+e^{-2x}}$$
5. Differentiate $\log(\cos e^x)$ w.r.t. $x$.
$$\frac{dy}{dx} = \frac{1}{\cos e^x}\cdot(-\sin e^x)\cdot e^x = -e^x\tan e^x$$
6. Differentiate $e^x + e^{x^2} + e^{x^3} + e^{x^4} + e^{x^5}$ w.r.t. $x$.

Differentiate each term separately using the chain rule:

$$\frac{dy}{dx} = e^x + 2xe^{x^2} + 3x^2e^{x^3} + 4x^3e^{x^4} + 5x^4e^{x^5}$$
7. Differentiate $\sqrt{e^{\sqrt{x}}}$, $x > 0$, w.r.t. $x$.

Write $y = (e^{\sqrt{x}})^{1/2}$ and apply chain rule:

$$\frac{dy}{dx} = \frac{1}{2\sqrt{e^{\sqrt{x}}}}\cdot e^{\sqrt{x}}\cdot\frac{1}{2\sqrt{x}} = \frac{e^{\sqrt{x}}}{4\sqrt{x}\sqrt{e^{\sqrt{x}}}}$$
8. Differentiate $\log(\log x)$, $x > 1$, w.r.t. $x$.
$$\frac{dy}{dx} = \frac{1}{\log x}\cdot\frac{1}{x} = \frac{1}{x\log x}$$
9. Differentiate $\dfrac{\cos x}{\log x}$, $x > 0$, w.r.t. $x$.
$$\frac{dy}{dx} = \frac{\log x(-\sin x) – \cos x\cdot\frac{1}{x}}{(\log x)^2} = -\frac{x\sin x\log x + \cos x}{x(\log x)^2}$$
10. Differentiate $\cos(\log x + e^x)$, $x > 0$, w.r.t. $x$.
$$\frac{dy}{dx} = -\sin(\log x+e^x)\cdot\left(\frac{1}{x}+e^x\right) = -\left(\frac{1}{x}+e^x\right)\sin(\log x + e^x)$$
Exercise 5.5
1. Differentiate $\cos x\cos 2x\cos 3x$ w.r.t. $x$.

Take logarithm of both sides to convert the product to a sum:

$$\log y = \log\cos x + \log\cos 2x + \log\cos 3x$$

Differentiate both sides w.r.t. $x$:

$$\frac{1}{y}\frac{dy}{dx} = -\tan x – 2\tan 2x – 3\tan 3x$$ $$\therefore \frac{dy}{dx} = -\cos x\cos 2x\cos 3x(\tan x + 2\tan 2x + 3\tan 3x)$$
2. Differentiate $\sqrt{\dfrac{(x-1)(x-2)}{(x-3)(x-4)(x-5)}}$ w.r.t. $x$.

Take logarithm to separate the factors:

$$\log y = \frac{1}{2}[\log(x-1)+\log(x-2)-\log(x-3)-\log(x-4)-\log(x-5)]$$

Differentiate:

$$\frac{1}{y}\frac{dy}{dx} = \frac{1}{2}\left[\frac{1}{x-1}+\frac{1}{x-2}-\frac{1}{x-3}-\frac{1}{x-4}-\frac{1}{x-5}\right]$$ $$\therefore \frac{dy}{dx} = \frac{1}{2}\sqrt{\frac{(x-1)(x-2)}{(x-3)(x-4)(x-5)}}\left[\frac{1}{x-1}+\frac{1}{x-2}-\frac{1}{x-3}-\frac{1}{x-4}-\frac{1}{x-5}\right]$$
3. Differentiate $(\log x)^{\cos x}$ w.r.t. $x$.

Take log and use the product rule:

$$\log y = \cos x\log(\log x)$$ $$\frac{1}{y}\frac{dy}{dx} = \cos x\cdot\frac{1}{\log x}\cdot\frac{1}{x} – \sin x\log(\log x) = \frac{\cos x}{x\log x} – \sin x\log(\log x)$$ $$\therefore \frac{dy}{dx} = (\log x)^{\cos x}\left[\frac{\cos x}{x\log x} – \sin x\log(\log x)\right]$$
4. Differentiate $x^x – 2^{\sin x}$ w.r.t. $x$.

Set $u = x^x$ and $v = 2^{\sin x}$, so $\dfrac{dy}{dx} = \dfrac{du}{dx} – \dfrac{dv}{dx}$.

For $u = x^x$: $\log u = x\log x \Rightarrow \dfrac{du}{dx} = x^x(1+\log x)$

For $v = 2^{\sin x}$: $\dfrac{dv}{dx} = 2^{\sin x}(\log 2)\cos x$

$$\therefore \frac{dy}{dx} = x^x(1+\log x) – 2^{\sin x}\cos x\log 2$$
5. Differentiate $(x+3)^2(x+4)^3(x+5)^4$ w.r.t. $x$.

Take logarithm to split the product into a sum:

$$\log y = 2\log(x+3)+3\log(x+4)+4\log(x+5)$$ $$\frac{1}{y}\frac{dy}{dx} = \frac{2}{x+3}+\frac{3}{x+4}+\frac{4}{x+5}$$ $$\therefore \frac{dy}{dx} = (x+3)^2(x+4)^3(x+5)^4\left(\frac{2}{x+3}+\frac{3}{x+4}+\frac{4}{x+5}\right)$$
6. Differentiate $\left(x+\dfrac{1}{x}\right)^x + x^{\left(1+\frac{1}{x}\right)}$ w.r.t. $x$.

Set $u = \left(x+\frac{1}{x}\right)^x$ and $v = x^{(1+1/x)}$.

For $u$: $\log u = x\log\!\left(x+\frac{1}{x}\right)$, differentiating:

$$\frac{du}{dx} = \left(x+\frac{1}{x}\right)^x\left[\frac{x^2-1}{x^2+1}+\log\!\left(x+\frac{1}{x}\right)\right]$$

For $v$: $\log v = \left(1+\frac{1}{x}\right)\log x$, differentiating:

$$\frac{dv}{dx} = x^{(1+1/x)}\left[\frac{1}{x}\!\left(1+\frac{1}{x}\right)-\frac{\log x}{x^2}\right]$$ $$\therefore \frac{dy}{dx} = \frac{du}{dx}+\frac{dv}{dx} \quad \text{(sum of the above two expressions)}$$
7. Differentiate $(\log x)^x + x^{\log x}$ w.r.t. $x$.

Set $u = (\log x)^x$ and $v = x^{\log x}$.

For $u$: $\log u = x\log(\log x)$, so

$$\frac{du}{dx} = (\log x)^{x-1}(1+\log x\log(\log x))$$

For $v$: $\log v = (\log x)^2$, so

$$\frac{dv}{dx} = 2x^{\log x-1}\log x$$ $$\therefore \frac{dy}{dx} = (\log x)^{x-1}(1+\log x\log(\log x)) + 2x^{\log x-1}\log x$$
8. Differentiate $(\sin x)^x + \sin^{-1}\sqrt{x}$ w.r.t. $x$.

Set $u = (\sin x)^x$ and $v = \sin^{-1}\sqrt{x}$.

For $u$: $\log u = x\log\sin x$, so

$$\frac{du}{dx} = (\sin x)^x(x\cot x+\log\sin x)$$

For $v$:

$$\frac{dv}{dx} = \frac{1}{\sqrt{1-x}}\cdot\frac{1}{2\sqrt{x}} = \frac{1}{2\sqrt{x-x^2}}$$ $$\therefore \frac{dy}{dx} = (\sin x)^x(x\cot x+\log\sin x)+\frac{1}{2\sqrt{x-x^2}}$$
9. Differentiate $x^{\sin x} + (\sin x)^{\cos x}$ w.r.t. $x$.

Set $u = x^{\sin x}$ and $v = (\sin x)^{\cos x}$.

$$\frac{du}{dx} = x^{\sin x}\!\left(\frac{\sin x}{x}+\cos x\log x\right)$$ $$\frac{dv}{dx} = (\sin x)^{\cos x}(\cos x\cot x – \sin x\log\sin x)$$ $$\therefore \frac{dy}{dx} = x^{\sin x}\!\left(\frac{\sin x}{x}+\cos x\log x\right)+(\sin x)^{\cos x}(\cos x\cot x-\sin x\log\sin x)$$
10. Differentiate $x^{x\cos x} + \dfrac{x^2+1}{x^2-1}$ w.r.t. $x$.

Set $u = x^{x\cos x}$ and $v = \dfrac{x^2+1}{x^2-1}$.

For $u$: $\log u = x\cos x\log x$, differentiating with the product rule on three factors:

$$\frac{du}{dx} = x^{x\cos x}[\cos x\log x – x\sin x\log x + \cos x]$$

For $v$ (quotient rule):

$$\frac{dv}{dx} = \frac{-4x}{(x^2-1)^2}$$ $$\therefore \frac{dy}{dx} = x^{x\cos x}[\cos x\log x – x\sin x\log x + \cos x] – \frac{4x}{(x^2-1)^2}$$
11. Differentiate $(x\cos x)^x + (x\sin x)^{1/x}$ w.r.t. $x$.

Set $u = (x\cos x)^x$ and $v = (x\sin x)^{1/x}$.

For $u$: $\log u = x(\log x+\log\cos x)$, so

$$\frac{du}{dx} = (x\cos x)^x[1-x\tan x+\log(x\cos x)]$$

For $v$: $\log v = \dfrac{1}{x}(\log x+\log\sin x)$, so

$$\frac{dv}{dx} = (x\sin x)^{1/x}\cdot\frac{1+x\cot x-\log(x\sin x)}{x^2}$$ $$\therefore \frac{dy}{dx} = (x\cos x)^x[1-x\tan x+\log(x\cos x)]+(x\sin x)^{1/x}\cdot\frac{1+x\cot x-\log(x\sin x)}{x^2}$$
12. Find $\dfrac{dy}{dx}$ for $x^y + y^x = 1$.

Set $u = x^y$ and $v = y^x$, so $u + v = 1$ and $\dfrac{du}{dx} + \dfrac{dv}{dx} = 0$.

$$\frac{du}{dx} = x^{y-1}y + x^y\log x\frac{dy}{dx}$$ $$\frac{dv}{dx} = y^{x-1}x\frac{dy}{dx} + y^x\log y$$

Substitute into $\dfrac{du}{dx} + \dfrac{dv}{dx} = 0$ and solve for $\dfrac{dy}{dx}$:

$$\frac{dy}{dx} = -\frac{x^{y-1}y + y^x\log y}{x^y\log x + y^{x-1}x}$$
13. Find $\dfrac{dy}{dx}$ for $y^x = x^y$.

Taking logarithms: $y\log x = x\log y$. Differentiate both sides:

$$\frac{y}{x} + \log x\frac{dy}{dx} = \frac{x}{y}\frac{dy}{dx} + \log y$$ $$\Rightarrow \frac{y\log x – x}{y}\cdot\frac{dy}{dx} = \frac{x\log y – y}{x}$$ $$\therefore \frac{dy}{dx} = \frac{y(x\log y – y)}{x(y\log x – x)}$$
14. Find $\dfrac{dy}{dx}$ for $(\cos x)^y = (\cos y)^x$.

Taking logarithms: $y\log\cos x = x\log\cos y$. Apply the product rule on each side:

$$-y\tan x + \log\cos x\frac{dy}{dx} = -x\tan y\frac{dy}{dx} + \log\cos y$$ $$\Rightarrow (x\tan y + \log\cos x)\frac{dy}{dx} = y\tan x + \log\cos y$$ $$\therefore \frac{dy}{dx} = \frac{y\tan x + \log\cos y}{x\tan y + \log\cos x}$$
15. Find $\dfrac{dy}{dx}$ for $xy = e^{x-y}$.

Take logarithms: $\log x + \log y = x – y$. Differentiate both sides:

$$\frac{1}{x} + \frac{1}{y}\frac{dy}{dx} = 1 – \frac{dy}{dx}$$ $$\Rightarrow \frac{dy}{dx}\!\left(\frac{1}{y}+1\right) = \frac{x-1}{x} \Rightarrow \frac{1+y}{y}\frac{dy}{dx} = \frac{x-1}{x}$$ $$\therefore \frac{dy}{dx} = \frac{y(x-1)}{x(1+y)}$$
16. Find the derivative of $f(x) = (1+x)(1+x^2)(1+x^4)(1+x^8)$ and hence find $f'(1)$.

Take logarithm to convert the product to a sum, then differentiate:

$$\frac{1}{f(x)}f'(x) = \frac{1}{1+x}+\frac{2x}{1+x^2}+\frac{4x^3}{1+x^4}+\frac{8x^7}{1+x^8}$$ $$f'(x) = f(x)\left[\frac{1}{1+x}+\frac{2x}{1+x^2}+\frac{4x^3}{1+x^4}+\frac{8x^7}{1+x^8}\right]$$

At $x = 1$: $f(1) = 2\cdot2\cdot2\cdot2 = 16$ and each term in the bracket equals $\frac{1}{2}$:

$$f'(1) = 16\left[\frac{1}{2}+\frac{2}{2}+\frac{4}{2}+\frac{8}{2}\right] = 16\cdot\frac{15}{2} = 120$$
17. Differentiate $(x^2-5x+8)(x^3+7x+9)$ by: (i) product rule, (ii) expanding first, (iii) logarithmic differentiation. Do all three give the same answer?

(i) Product rule:

$$\frac{dy}{dx} = (x^2-5x+8)(3x^2+7)+(x^3+7x+9)(2x-5) = 5x^4-20x^3+45x^2-52x+11$$

(ii) Expand first: $y = x^5-5x^4+15x^3-26x^2+11x+72$

$$\frac{dy}{dx} = 5x^4-20x^3+45x^2-52x+11$$

(iii) Logarithmic differentiation:

$$\frac{1}{y}\frac{dy}{dx} = \frac{2x-5}{x^2-5x+8}+\frac{3x^2+7}{x^3+7x+9}$$ $$\Rightarrow \frac{dy}{dx} = y\cdot\frac{5x^4-20x^3+45x^2-52x+11}{(x^2-5x+8)(x^3+7x+9)} = 5x^4-20x^3+45x^2-52x+11$$

All three methods yield the same answer: $\dfrac{dy}{dx} = 5x^4-20x^3+45x^2-52x+11$.

18. If $u$, $v$ and $w$ are functions of $x$, show that $\dfrac{d}{dx}(uvw) = \dfrac{du}{dx}vw + u\dfrac{dv}{dx}w + uv\dfrac{dw}{dx}$ in two ways — by repeated product rule and by logarithmic differentiation.

(i) Repeated product rule: Treat $uv$ as one factor:

$$\frac{d}{dx}[(uv)w] = uv\frac{dw}{dx} + w\frac{d}{dx}(uv) = uv\frac{dw}{dx} + w\!\left(u\frac{dv}{dx}+v\frac{du}{dx}\right)$$ $$= \frac{du}{dx}vw + u\frac{dv}{dx}w + uv\frac{dw}{dx} \qquad \blacksquare$$

(ii) Logarithmic differentiation: Let $y = uvw$, so $\log y = \log u+\log v+\log w$:

$$\frac{1}{y}\frac{dy}{dx} = \frac{1}{u}\frac{du}{dx}+\frac{1}{v}\frac{dv}{dx}+\frac{1}{w}\frac{dw}{dx}$$ $$\frac{d}{dx}(uvw) = uvw\!\left(\frac{1}{u}\frac{du}{dx}+\frac{1}{v}\frac{dv}{dx}+\frac{1}{w}\frac{dw}{dx}\right) = \frac{du}{dx}vw + u\frac{dv}{dx}w + uv\frac{dw}{dx} \qquad \blacksquare$$
Exercise 5.6
1. Find $\dfrac{dy}{dx}$ for $x = 2at^2$, $y = at^4$.
$$\frac{dx}{dt} = 4at, \quad \frac{dy}{dt} = 4at^3 \quad \Rightarrow \quad \frac{dy}{dx} = \frac{4at^3}{4at} = t^2$$
2. Find $\dfrac{dy}{dx}$ for $x = a\cos\theta$, $y = b\cos\theta$.
$$\frac{dx}{d\theta} = -a\sin\theta, \quad \frac{dy}{d\theta} = -b\sin\theta \quad \Rightarrow \quad \frac{dy}{dx} = \frac{-b\sin\theta}{-a\sin\theta} = \frac{b}{a}$$
3. Find $\dfrac{dy}{dx}$ for $x = \sin t$, $y = \cos 2t$.
$$\frac{dx}{dt} = \cos t, \quad \frac{dy}{dt} = -2\sin 2t \quad \Rightarrow \quad \frac{dy}{dx} = \frac{-2\sin 2t}{\cos t} = \frac{-4\sin t\cos t}{\cos t} = -4\sin t$$
4. Find $\dfrac{dy}{dx}$ for $x = 4t$, $y = \dfrac{4}{t}$.
$$\frac{dx}{dt} = 4, \quad \frac{dy}{dt} = -\frac{4}{t^2} \quad \Rightarrow \quad \frac{dy}{dx} = \frac{-4/t^2}{4} = -\frac{1}{t^2}$$
5. Find $\dfrac{dy}{dx}$ for $x = \cos\theta – \cos 2\theta$, $y = \sin\theta – \sin 2\theta$.
$$\frac{dx}{d\theta} = -\sin\theta + 2\sin 2\theta, \quad \frac{dy}{d\theta} = \cos\theta – 2\cos 2\theta$$ $$\therefore \frac{dy}{dx} = \frac{\cos\theta – 2\cos 2\theta}{2\sin 2\theta – \sin\theta}$$
6. Find $\dfrac{dy}{dx}$ for $x = a(\theta – \sin\theta)$, $y = a(1+\cos\theta)$.
$$\frac{dx}{d\theta} = a(1-\cos\theta), \quad \frac{dy}{d\theta} = -a\sin\theta$$ $$\frac{dy}{dx} = \frac{-a\sin\theta}{a(1-\cos\theta)} = -\frac{2\sin\frac{\theta}{2}\cos\frac{\theta}{2}}{2\sin^2\frac{\theta}{2}} = -\cot\frac{\theta}{2}$$
7. Find $\dfrac{dy}{dx}$ for $x = \dfrac{\sin^3 t}{\sqrt{\cos 2t}}$, $y = \dfrac{\cos^3 t}{\sqrt{\cos 2t}}$.

After applying the quotient rule to both $\dfrac{dx}{dt}$ and $\dfrac{dy}{dt}$, simplifying, and dividing:

$$\frac{dy}{dx} = \frac{\sin t\cos^2 t(2\cos^2 t-3\cos 2t)}{\sin^2 t\cos t(3\cos 2t+2\sin^2 t)} = -\cot 3t$$
8. Find $\dfrac{dy}{dx}$ for $x = a\!\left(\cos t+\log\tan\dfrac{t}{2}\right)$, $y = a\sin t$.
$$\frac{dx}{dt} = a\!\left(-\sin t+\frac{1}{\sin t}\right) = \frac{a\cos^2 t}{\sin t}, \quad \frac{dy}{dt} = a\cos t$$ $$\therefore \frac{dy}{dx} = \frac{a\cos t}{\frac{a\cos^2 t}{\sin t}} = \frac{\sin t}{\cos t} = \tan t$$
9. Find $\dfrac{dy}{dx}$ for $x = a\sec\theta$, $y = b\tan\theta$.
$$\frac{dx}{d\theta} = a\sec\theta\tan\theta, \quad \frac{dy}{d\theta} = b\sec^2\theta$$ $$\frac{dy}{dx} = \frac{b\sec^2\theta}{a\sec\theta\tan\theta} = \frac{b\sec\theta}{a\tan\theta} = \frac{b}{a}\operatorname{cosec}\theta$$
10. Find $\dfrac{dy}{dx}$ for $x = a(\cos\theta+\theta\sin\theta)$, $y = a(\sin\theta-\theta\cos\theta)$.
$$\frac{dx}{d\theta} = a\theta\cos\theta, \quad \frac{dy}{d\theta} = a\theta\sin\theta$$ $$\therefore \frac{dy}{dx} = \frac{a\theta\sin\theta}{a\theta\cos\theta} = \tan\theta$$
11. If $x = \sqrt{a^{\sin^{-1}t}}$, $y = \sqrt{a^{\cos^{-1}t}}$, show that $\dfrac{dy}{dx} = -\dfrac{y}{x}$.

Write $x = a^{\frac{1}{2}\sin^{-1}t}$ and $y = a^{\frac{1}{2}\cos^{-1}t}$. Differentiating w.r.t. $t$:

$$\frac{dx}{dt} = a^{\frac{1}{2}\sin^{-1}t}\log a\cdot\frac{1}{2\sqrt{1-t^2}}, \quad \frac{dy}{dt} = a^{\frac{1}{2}\cos^{-1}t}\log a\cdot\frac{-1}{2\sqrt{1-t^2}}$$ $$\therefore \frac{dy}{dx} = \frac{dy/dt}{dx/dt} = \frac{-a^{\frac{1}{2}\cos^{-1}t}}{a^{\frac{1}{2}\sin^{-1}t}} = -\frac{y}{x} \qquad \blacksquare$$
Exercise 5.7
1. Find the second order derivative of $x^2+3x+2$.
$$\frac{dy}{dx} = 2x+3 \quad \Rightarrow \quad \frac{d^2y}{dx^2} = 2$$
2. Find the second order derivative of $x^{20}$.
$$\frac{dy}{dx} = 20x^{19} \quad \Rightarrow \quad \frac{d^2y}{dx^2} = 380x^{18}$$
3. Find the second order derivative of $x\cos x$.
$$\frac{dy}{dx} = -x\sin x+\cos x$$ $$\frac{d^2y}{dx^2} = -(x\cos x+\sin x)-\sin x = -x\cos x-2\sin x$$
4. Find the second order derivative of $\log x$.
$$\frac{dy}{dx} = \frac{1}{x} \quad \Rightarrow \quad \frac{d^2y}{dx^2} = \frac{d}{dx}x^{-1} = -x^{-2} = -\frac{1}{x^2}$$
5. Find the second order derivative of $x^3\log x$.
$$\frac{dy}{dx} = x^2+3x^2\log x$$ $$\frac{d^2y}{dx^2} = 2x+3(x+2x\log x) = 5x+6x\log x = x(5+6\log x)$$
6. Find the second order derivative of $e^x\sin 5x$.
$$\frac{dy}{dx} = e^x(5\cos 5x+\sin 5x)$$ $$\frac{d^2y}{dx^2} = e^x(-25\sin 5x+5\cos 5x+5\cos 5x+\sin 5x) = e^x(10\cos 5x-24\sin 5x) = 2e^x(5\cos 5x-12\sin 5x)$$
7. Find the second order derivative of $e^{6x}\cos 3x$.
$$\frac{dy}{dx} = e^{6x}(-3\sin 3x+6\cos 3x)$$ $$\frac{d^2y}{dx^2} = e^{6x}(-9\cos 3x-18\sin 3x-18\sin 3x+36\cos 3x) = e^{6x}(27\cos 3x-36\sin 3x) = 9e^{6x}(3\cos 3x-4\sin 3x)$$
8. Find the second order derivative of $\tan^{-1}x$.
$$\frac{dy}{dx} = \frac{1}{1+x^2} \quad \Rightarrow \quad \frac{d^2y}{dx^2} = \frac{-2x}{(1+x^2)^2}$$
9. Find the second order derivative of $\log(\log x)$.
$$\frac{dy}{dx} = \frac{1}{x\log x}$$ $$\frac{d^2y}{dx^2} = -\frac{1+\log x}{(x\log x)^2}$$
10. Find the second order derivative of $\sin(\log x)$.
$$\frac{dy}{dx} = \frac{\cos(\log x)}{x}$$ $$\frac{d^2y}{dx^2} = \frac{-\sin(\log x)\cdot\frac{1}{x}\cdot x-\cos(\log x)}{x^2} = -\frac{\sin(\log x)+\cos(\log x)}{x^2}$$
11. If $y = 5\cos x – 3\sin x$, prove that $\dfrac{d^2y}{dx^2} + y = 0$.
$$\frac{dy}{dx} = -5\sin x-3\cos x, \quad \frac{d^2y}{dx^2} = -5\cos x+3\sin x = -(5\cos x-3\sin x) = -y$$ $$\therefore \frac{d^2y}{dx^2}+y = 0 \qquad \blacksquare$$
12. If $y = \cos^{-1}x$, find $\dfrac{d^2y}{dx^2}$ in terms of $y$ alone.

Since $y = \cos^{-1}x$, we have $x = \cos y$.

$$\frac{dy}{dx} = \frac{-1}{\sqrt{1-x^2}} = \frac{-1}{\sin y} = -\operatorname{cosec} y$$ $$\frac{d^2y}{dx^2} = \operatorname{cosec} y\cot y\cdot(-\operatorname{cosec} y) = -\operatorname{cosec}^2 y\cot y$$
13. If $y = 3\cos(\log x)+4\sin(\log x)$, show that $x^2y_2 + xy_1 + y = 0$.

Differentiate and multiply by $x$ to clear the denominator:

$$xy_1 = -3\sin(\log x)+4\cos(\log x)$$

Differentiate again using the product rule on the left, and the chain rule on the right:

$$x y_2 + y_1 = \frac{-[3\cos(\log x)+4\sin(\log x)]}{x}$$

Multiply through by $x$:

$$x^2 y_2 + xy_1 = -[3\cos(\log x)+4\sin(\log x)] = -y$$ $$\therefore x^2y_2 + xy_1 + y = 0 \qquad \blacksquare$$
14. If $y = Ae^{mx} + Be^{nx}$, show that $\dfrac{d^2y}{dx^2}-(m+n)\dfrac{dy}{dx}+mny = 0$.
$$\frac{dy}{dx} = Ame^{mx}+Bne^{nx}, \quad \frac{d^2y}{dx^2} = Am^2e^{mx}+Bn^2e^{nx}$$

Substitute into the LHS:

$$Am^2e^{mx}+Bn^2e^{nx}-(m+n)(Ame^{mx}+Bne^{nx})+mn(Ae^{mx}+Be^{nx}) = 0 \qquad \blacksquare$$

(All terms cancel pairwise.)

15. If $y = 500e^{7x}+600e^{-7x}$, show that $\dfrac{d^2y}{dx^2} = 49y$.
$$\frac{dy}{dx} = 3500e^{7x}-4200e^{-7x}$$ $$\frac{d^2y}{dx^2} = 24500e^{7x}+29400e^{-7x} = 49(500e^{7x}+600e^{-7x}) = 49y \qquad \blacksquare$$
16. If $e^y(x+1) = 1$, show that $\dfrac{d^2y}{dx^2} = \left(\dfrac{dy}{dx}\right)^2$.

From $e^y(x+1) = 1$: $y = -\log(x+1)$.

$$\frac{dy}{dx} = -\frac{1}{x+1}$$ $$\frac{d^2y}{dx^2} = \frac{1}{(x+1)^2} = \left(\frac{1}{x+1}\right)^2 = \left(\frac{dy}{dx}\right)^2 \qquad \blacksquare$$
17. If $y = (\tan^{-1}x)^2$, show that $(x^2+1)^2y_2 + 2x(x^2+1)y_1 = 2$.
$$y_1 = \frac{2\tan^{-1}x}{1+x^2} \Rightarrow (1+x^2)y_1 = 2\tan^{-1}x$$

Differentiate again:

$$(1+x^2)y_2 + 2xy_1 = \frac{2}{1+x^2}$$

Multiply both sides by $(1+x^2)$:

$$(x^2+1)^2y_2 + 2x(x^2+1)y_1 = 2 \qquad \blacksquare$$
Miscellaneous Exercise
1. Differentiate $(3x^2-9x+5)^9$ w.r.t. $x$.
$$\frac{dy}{dx} = 9(3x^2-9x+5)^8(6x-9) = 27(2x-3)(3x^2-9x+5)^8$$
2. Differentiate $\sin^3 x + \cos^6 x$ w.r.t. $x$.
$$\frac{dy}{dx} = 3\sin^2 x\cos x – 6\cos^5 x\sin x = 3\sin x\cos x(\sin x – 2\cos^4 x)$$
3. Differentiate $(5x)^{3\cos 2x}$ w.r.t. $x$.

Take logarithm: $\log y = 3\cos 2x\log(5x)$. Differentiate:

$$\frac{1}{y}\frac{dy}{dx} = 3\left[\frac{\cos 2x}{x} – 2\sin 2x\log 5x\right]$$ $$\therefore \frac{dy}{dx} = 3(5x)^{3\cos 2x}\!\left(\frac{\cos 2x}{x} – 2\sin 2x\log 5x\right)$$
4. Differentiate $\sin^{-1}(x\sqrt{x})$, $0 \leq x \leq 1$, w.r.t. $x$.

Note $x\sqrt{x} = x^{3/2}$:

$$\frac{dy}{dx} = \frac{1}{\sqrt{1-x^3}}\cdot\frac{3}{2}x^{1/2} = \frac{3\sqrt{x}}{2\sqrt{1-x^3}} = \frac{3}{2}\sqrt{\frac{x}{1-x^3}}$$
5. Differentiate $\dfrac{\cos^{-1}\frac{x}{2}}{\sqrt{2x+7}}$, $-2 < x < 2$, w.r.t. $x$.

Apply the quotient rule:

$$\frac{dy}{dx} = -\frac{2x+7+\sqrt{4-x^2}\cos^{-1}\frac{x}{2}}{\sqrt{4-x^2}(2x+7)^{3/2}}$$
6. Differentiate $\cot^{-1}\!\left[\dfrac{\sqrt{1+\sin x}+\sqrt{1-\sin x}}{\sqrt{1+\sin x}-\sqrt{1-\sin x}}\right]$, $0 < x < \dfrac{\pi}{2}$, w.r.t. $x$.

Simplify using half-angle identities: for $0 < x < \frac{\pi}{2}$,

$$\sqrt{1+\sin x} = \cos\frac{x}{2}+\sin\frac{x}{2}, \quad \sqrt{1-\sin x} = \cos\frac{x}{2}-\sin\frac{x}{2}$$

The fraction simplifies to $\cot\dfrac{x}{2}$, so

$$y = \cot^{-1}\!\left(\cot\frac{x}{2}\right) = \frac{x}{2} \quad \Rightarrow \quad \frac{dy}{dx} = \frac{1}{2}$$
7. Differentiate $(\log x)^{\log x}$, $x > 1$, w.r.t. $x$.

Take log: $\log y = \log x\cdot\log(\log x)$. Differentiate:

$$\frac{1}{y}\frac{dy}{dx} = \frac{1+\log(\log x)}{x}$$ $$\therefore \frac{dy}{dx} = (\log x)^{\log x}\cdot\frac{1+\log(\log x)}{x}$$
8. Differentiate $\cos(a\cos x+b\sin x)$ for some constants $a$ and $b$, w.r.t. $x$.
$$\frac{dy}{dx} = -\sin(a\cos x+b\sin x)\cdot(-a\sin x+b\cos x) = (a\sin x-b\cos x)\sin(a\cos x+b\sin x)$$
9. Differentiate $(\sin x-\cos x)^{\sin x-\cos x}$, $\dfrac{\pi}{4} < x < \dfrac{3\pi}{4}$, w.r.t. $x$.

Take log: $\log y = (\sin x-\cos x)\log(\sin x-\cos x)$. Differentiate using the product rule:

$$\frac{1}{y}\frac{dy}{dx} = (\cos x+\sin x)[1+\log(\sin x-\cos x)]$$ $$\therefore \frac{dy}{dx} = (\sin x-\cos x)^{\sin x-\cos x}(\cos x+\sin x)[1+\log(\sin x-\cos x)]$$
10. Differentiate $x^x + x^a + a^x + a^a$ for some fixed $a > 0$ and $x > 0$, w.r.t. $x$.

Differentiate term by term. Note $a^a$ is a constant with zero derivative. For $u = x^x$: $\log u = x\log x$, giving $\dfrac{du}{dx} = x^x(1+\log x)$.

$$\therefore \frac{dy}{dx} = x^x(1+\log x) + ax^{a-1} + a^x\log a$$
11. Differentiate $x^{x^2-3}+(x-3)^{x^2}$ for $x > 3$, w.r.t. $x$.

Set $u = x^{x^2-3}$ and $v = (x-3)^{x^2}$.

For $u$: $\log u = (x^2-3)\log x$, so $\dfrac{du}{dx} = x^{x^2-3}\!\left(\dfrac{x^2-3}{x}+2x\log x\right)$

For $v$: $\log v = x^2\log(x-3)$, so $\dfrac{dv}{dx} = (x-3)^{x^2}\!\left(\dfrac{x^2}{x-3}+2x\log(x-3)\right)$

$$\therefore \frac{dy}{dx} = x^{x^2-3}\!\left(\frac{x^2-3}{x}+2x\log x\right)+(x-3)^{x^2}\!\left(\frac{x^2}{x-3}+2x\log(x-3)\right)$$
12. Find $\dfrac{dy}{dx}$ if $y = 12(1-\cos t)$ and $x = 10(t-\sin t)$, $-\dfrac{\pi}{2} < t < \dfrac{\pi}{2}$.
$$\frac{dy}{dt} = 12\sin t, \quad \frac{dx}{dt} = 10(1-\cos t)$$ $$\frac{dy}{dx} = \frac{12\sin t}{10(1-\cos t)} = \frac{6}{5}\cdot\frac{2\sin\frac{t}{2}\cos\frac{t}{2}}{2\sin^2\frac{t}{2}} = \frac{6}{5}\cot\frac{t}{2}$$
13. Find $\dfrac{dy}{dx}$ if $y = \sin^{-1}x + \sin^{-1}\sqrt{1-x^2}$, $-1 \leq x \leq 1$.
$$\frac{dy}{dx} = \frac{1}{\sqrt{1-x^2}} + \frac{1}{\sqrt{1-(1-x^2)}}\cdot\frac{-x}{\sqrt{1-x^2}} = \frac{1}{\sqrt{1-x^2}} – \frac{x}{x\sqrt{1-x^2}} = \frac{1}{\sqrt{1-x^2}} – \frac{1}{\sqrt{1-x^2}} = 0$$
14. If $x\sqrt{1+y}+y\sqrt{1+x} = 0$, for $-1 < x < 1$, prove that $\dfrac{dy}{dx} = \dfrac{-1}{(1+x)^2}$.

Rearrange and square to find $y$ explicitly. From $x\sqrt{1+y} = -y\sqrt{1+x}$, squaring gives $x^2(1+y) = y^2(1+x)$, which factors as $(x-y)(x+y) = -xy(x-y)$. Dividing by $(x-y) \neq 0$:

$$x+y = -xy \Rightarrow y(1+x) = -x \Rightarrow y = -\frac{x}{1+x}$$

Differentiate:

$$\frac{dy}{dx} = -\frac{(1+x)-x}{(1+x)^2} = -\frac{1}{(1+x)^2} \qquad \blacksquare$$
15. If $(x-a)^2+(y-b)^2 = c^2$, prove that $\dfrac{\left[1+\left(\frac{dy}{dx}\right)^2\right]^{3/2}}{\frac{d^2y}{dx^2}}$ is a constant independent of $a$ and $b$.

Differentiate: $\dfrac{dy}{dx} = -\dfrac{x-a}{y-b}$

Differentiate again and simplify using $(x-a)^2+(y-b)^2 = c^2$:

$$\frac{d^2y}{dx^2} = -\frac{c^2}{(y-b)^3}$$

Substitute:

$$\frac{\left[1+\frac{(x-a)^2}{(y-b)^2}\right]^{3/2}}{-\frac{c^2}{(y-b)^3}} = \frac{[(y-b)^2+(x-a)^2]^{3/2}}{(y-b)^3}\cdot\frac{(y-b)^3}{-c^2} = \frac{(c^2)^{3/2}}{-c^2} = -c$$

This is a constant independent of $a$ and $b$. $\blacksquare$

16. If $\cos y = x\cos(\alpha+y)$ with $\cos\alpha \neq \pm 1$, prove that $\dfrac{dy}{dx} = \dfrac{\cos^2(\alpha+y)}{\sin\alpha}$.

Express $x = \dfrac{\cos y}{\cos(\alpha+y)}$ and differentiate w.r.t. $y$ using the quotient rule:

$$\frac{dx}{dy} = \frac{-\cos(\alpha+y)\sin y+\cos y\sin(\alpha+y)}{\cos^2(\alpha+y)} = \frac{\sin(\alpha+y-y)}{\cos^2(\alpha+y)} = \frac{\sin\alpha}{\cos^2(\alpha+y)}$$

Take the reciprocal:

$$\frac{dy}{dx} = \frac{\cos^2(\alpha+y)}{\sin\alpha} \qquad \blacksquare$$
17. If $x = a(\cos t + t\sin t)$ and $y = a(\sin t – t\cos t)$, find $\dfrac{d^2y}{dx^2}$.
$$\frac{dx}{dt} = at\cos t, \quad \frac{dy}{dt} = at\sin t \quad \Rightarrow \quad \frac{dy}{dx} = \tan t$$

Differentiate again w.r.t. $x$:

$$\frac{d^2y}{dx^2} = \sec^2 t\cdot\frac{dt}{dx} = \sec^2 t\cdot\frac{1}{at\cos t} = \frac{\sec^3 t}{at}$$
18. If $f(x) = |x|^3$, show that $f”(x)$ exists for all real $x$ and find it.

Express piece-wise: $f(x) = x^3$ for $x \geq 0$ and $f(x) = -x^3$ for $x < 0$.

Then $f'(x) = 3x^2$ for $x > 0$ and $f'(x) = -3x^2$ for $x < 0$.

At $x = 0$: $Lf'(0) = Rf'(0) = 0$, so $f'(0) = 0$.

Similarly, $Lf”(0) = Rf”(0) = 0$, confirming $f”(0) = 0$.

$$\therefore f”(x) = \begin{cases} 6x, & x > 0 \\ -6x, & x < 0 \\ 0, & x = 0 \end{cases}$$
19. Using mathematical induction, prove that $\dfrac{d}{dx}(x^n) = nx^{n-1}$ for all positive integers $n$.

Base case $P(1)$: $\dfrac{d}{dx}(x^1) = 1 = 1\cdot x^0$. ✓

Inductive step: Assume $P(k)$ holds: $\dfrac{d}{dx}(x^k) = kx^{k-1}$. Then:

$$\frac{d}{dx}(x^{k+1}) = \frac{d}{dx}(x^k\cdot x) = x^k\cdot 1 + x\cdot kx^{k-1} = x^k+kx^k = (k+1)x^k$$

This is exactly $P(k+1)$. By the principle of mathematical induction, the result holds for all positive integers $n$. $\blacksquare$

20. Using the fact that $\sin(A+B) = \sin A\cos B + \cos A\sin B$ and differentiation, obtain the sum formula for cosines.

Treat $A$ and $B$ as functions of $x$ and differentiate both sides:

$$\cos(A+B)\!\left(\frac{dA}{dx}+\frac{dB}{dx}\right) = (\cos A\cos B-\sin A\sin B)\!\left(\frac{dA}{dx}+\frac{dB}{dx}\right)$$

Dividing both sides by $\dfrac{dA}{dx}+\dfrac{dB}{dx}$:

$$\cos(A+B) = \cos A\cos B – \sin A\sin B \qquad \blacksquare$$
21. Does there exist a function which is continuous everywhere but not differentiable at exactly two points?

Yes. A concrete example is $f(x) = |x-1|+|x-2|$.

This simplifies piece-wise to: $f(x) = 3-2x$ for $x \leq 1$; $f(x) = 1$ for $1 \leq x \leq 2$; $f(x) = 2x-3$ for $x \geq 2$.

Checking at $x = 1$: both one-sided limits equal 1, and $f(1) = 1$, so $f$ is continuous there. However, the left derivative is $-2$ and the right derivative is $0$, so $f$ is not differentiable at $x = 1$.

Checking at $x = 2$: both one-sided limits equal 1 and $f(2) = 1$, so $f$ is continuous there. The left derivative is $0$ and the right derivative is $2$, so $f$ is not differentiable at $x = 2$.

$\therefore f(x) = |x-1|+|x-2|$ is continuous on $\mathbf{R}$ but fails to be differentiable at exactly two points.

22. If $y = \begin{vmatrix} f(x) & g(x) & h(x) \\ l & m & n \\ a & b & c \end{vmatrix}$, prove that $\dfrac{dy}{dx} = \begin{vmatrix} f'(x) & g'(x) & h'(x) \\ l & m & n \\ a & b & c \end{vmatrix}$.

Expand the determinant along the first row:

$$y = f(x)(mc-nb) – g(x)(lc-na) + h(x)(lb-ma)$$

Differentiate w.r.t. $x$:

$$\frac{dy}{dx} = f'(x)(mc-nb) – g'(x)(lc-na) + h'(x)(lb-ma)$$

This is precisely the expansion of $\begin{vmatrix} f'(x) & g'(x) & h'(x) \\ l & m & n \\ a & b & c \end{vmatrix}$. $\blacksquare$

23. If $y = e^{a\cos^{-1}x}$, $-1 \leq x \leq 1$, show that $(1-x^2)\dfrac{d^2y}{dx^2} – x\dfrac{dy}{dx} – a^2y = 0$.
$$\frac{dy}{dx} = e^{a\cos^{-1}x}\cdot\frac{-a}{\sqrt{1-x^2}} \Rightarrow \sqrt{1-x^2}\frac{dy}{dx} = -ay$$

Differentiate both sides w.r.t. $x$:

$$\sqrt{1-x^2}\frac{d^2y}{dx^2} + \frac{-x}{\sqrt{1-x^2}}\frac{dy}{dx} = -a\frac{dy}{dx}$$

Multiply through by $\sqrt{1-x^2}$:

$$(1-x^2)\frac{d^2y}{dx^2} – x\frac{dy}{dx} = -a\sqrt{1-x^2}\frac{dy}{dx} = -a(-ay) = a^2y$$ $$\therefore (1-x^2)\frac{d^2y}{dx^2} – x\frac{dy}{dx} – a^2y = 0 \qquad \blacksquare$$

Test Your Mathematical Logic

Complete the Chapter 1 quiz to unlock your performance badge.

/15

Get ready to be challenged

Thank you for answering the multiple choice test


Continuity and Differentiability Class 12 (120501)


General Instruction:

1. There are 15 MCQ's in the Test.

2. Passing %age is 50.

3. After time gets over, test will be submitted itself.

Your Information ...

1 / 15

If \( x(t) = e^t \) and \( y(t) = \ln(t) \), what is \( \frac{dy}{dx} \)?

A) \( \frac{1}{t} \)

B) \( \frac{1}{e^t} \)

C) \( t \)

D) \( \frac{t}{e^t} \)

2 / 15

If \( f(x) = \sin^{-1}(e^x) \), what is \( f'(x) \)?

A) \( \frac{e^x}{\sqrt{1-e^{2x}}} \)

B) \( \frac{e^x}{1+e^{2x}} \)

C) \( \frac{1}{\sqrt{1-e^{2x}}} \)

D) \( e^x \)

3 / 15

4 / 15

Given \( y = x^2 \cdot e^x \), what is \( \frac{dy}{dx} \)?

A) \( 2x \cdot e^x + x^2 \cdot e^x \)

B) \( 2x \cdot e^x \)

C) \( x^2 \cdot e^x \)

D) \( e^x \)

5 / 15

6 / 15

Given \( y = x^x \), what is \( \frac{dy}{dx} \)?

A) \( x^x(\ln(x) + 1) \)

B) \( x^{x-1} \)

C) \( e^x \)

D) \( x \ln(x) \)

7 / 15

What is the derivative of \( \sec^{-1}{x} \)?

A) \( \frac{1}{x\sqrt{x^2-1}} \)

B) \( \frac{1}{\sqrt{x^2-1}} \)

C) \( \frac{1}{|x|\sqrt{x^2-1}} \)

D) \( -\frac{1}{|x|\sqrt{x^2-1}} \)

8 / 15

What is the derivative of \( y = \log(log(x)) \)?

A) \( \frac{1}{x \log(x)} \)

B) \( x \log(x) \)

C) \( \frac{1}{x} \)

D) \( \frac{1}{y} \)

9 / 15

10 / 15

If \( f(x) = e^{2x} \), what is \( f''(x) \)?

A) \( 2e^{2x} \)
B) \( 4e^{2x} \)
C) \( e^{2x} \)
D) \( 4x \cdot e^{2x} \)

11 / 15

If \( f(x) = \ln(x) \), what is \( f''(x) \)?

A) \( -\frac{1}{x^2} \)

B) \( \frac{1}{x} \)

C) \( \frac{1}{x^2} \)

D) \( -\frac{1}{x} \)

12 / 15

13 / 15

14 / 15

Given \( x^2 + y^2 = 1 \), what is \( \frac{dy}{dx} \) at any point on the curve?

A) \( -\frac{x}{y} \)

B) \( \frac{x}{y} \)

C) \( -\frac{y}{x} \)

D) \( \frac{y}{x} \)

15 / 15

Given \( x = a \cos(t) \) and \( y = a \sin(t) \), what is \( \frac{dy}{dx} \)?

A) \( \tan(t) \)

B) \( \cot(t) \)

C) \( \sin(t) \)

D) \( \cos(t) \)

Your score is

0%

Please rate this quiz

Thank you for answering the multiple choice test

Pos.NameScoreDuration
1Rannaggam Singh Mann73 %14 minutes 12 seconds
2Kk67 %7 minutes 39 seconds
3Ekam Singh Brar60 %15 minutes
4N53 %7 minutes 29 seconds
5Anhad40 %15 minutes

Download Assignments, DPP’s here

Get the editable Word files and premium DPPs for this chapter.

error: Content is protected !!