Examples (Revised) - Chapter 5 - Continuity & Differentiability - Ncert Solutions class 12 - Maths
Updated On 26-08-2025 By Lithanya
You can Download the Examples (Revised) - Chapter 5 - Continuity & Differentiability - Ncert Solutions class 12 - Maths with expert answers for all chapters. Perfect for Tamil & English Medium students to revise the syllabus and score more marks in board exams. Download and share it with your friends
Share this to Friend on WhatsApp
Chapter 5: Continuity & Differentiability NCERT Solutions Class 12 Maths
Example 1
Check the continuity of the function $f$ given by $f(x)=2 x+3$ at $x=1$.
Solution
First note that the function is defined at the given point $x=1$ and its value is 5 . Then find the limit of the function at $x=1$. Clearly
$
\begin{aligned}
& \lim _{x \rightarrow 1} f(x)=\lim _{x \rightarrow 1}(2 x+3)=2(1)+3=5 \\
& \lim _{x \rightarrow 1} f(x)=5=f(1)
\end{aligned}
$
Hence, $f$ is continuous at $x=1$.
Example 2
Examine whether the function $f$ given by $f(x)=x^2$ is continuous at $x=0$.
Solution
First note that the function is defined at the given point $x=0$ and its value is 0 . Then find the limit of the function at $x=0$. Clearly
$
\begin{array}{ll}
& \lim _{x \rightarrow 0} f(x)=\lim _{x \rightarrow 0} x^2=0^2=0 \\
& \lim _{x \rightarrow 0} f(x)=0=f(0)
\end{array}
$
Thus
Hence, $f$ is continuous at $x=0$.
Example 3
Discuss the continuity of the function $f$ given by $f(x)=|x|$ at $x=0$.
Solution
By definition
$
f(x)=\left\{\begin{array}{l}
-x, \text { if } x<0 \\
x, \text { if } x \geq 0
\end{array}\right.
$
Clearly the function is defined at 0 and $f(0)=0$. Left hand limit of $f$ at 0 is
$
\lim _{x \rightarrow 0^{-}} f(x)=\lim _{x \rightarrow 0^{-}}(-x)=0
$
Similarly, the right hand limit of $f$ at 0 is
$
\lim _{x \rightarrow 0^{+}} f(x)=\lim _{x \rightarrow 0^{+}} x=0
$
Thus, the left hand limit, right hand limit and the value of the function coincide at $x=0$. Hence, $f$ is continuous at $x=0$.
Example 4
Show that the function $f$ given by
$
f(x)= \begin{cases}x^3+3, & \text { if } x \neq 0 \\ 1, & \text { if } x=0\end{cases}
$
is not continuous at $x=0$.
Solution
The function is defined at $x=0$ and its value at $x=0$ is 1 . When $x \neq 0$, the function is given by a polynomial. Hence,
$
\lim _{x \rightarrow 0} f(x)=\lim _{x \rightarrow 0}\left(x^3+3\right)=0^3+3=3
$
Since the limit of $f$ at $x=0$ does not coincide with $f(0)$, the function is not continuous at $x=0$. It may be noted that $x=0$ is the only point of discontinuity for this function.
Example 5
Check the points where the constant function $f(x)=k$ is continuous.
Solution
The function is defined at all real numbers and by definition, its value at any real number equals $k$. Let $c$ be any real number. Then
$
\lim _{x \rightarrow c} f(x)=\lim _{x \rightarrow c} k=k
$
Since $f(c)=k=\lim _{x \rightarrow c} f(x)$ for any real number $c$, the function $f$ is continuous at every real number.
Example 6
Prove that the identity function on real numbers given by $f(x)=x$ is continuous at every real number.
Solution
The function is clearly defined at every point and $f(c)=c$ for every real number $c$. Also,
$
\lim _{x \rightarrow c} f(x)=\lim _{x \rightarrow c} x=c
$
Thus, $\lim _{x \rightarrow c} f(x)=c=f(c)$ and hence the function is continuous at every real number.
Having defined continuity of a function at a given point, now we make a natural extension of this definition to discuss continuity of a function.
Example 7
Is the function defined by $f(x)=|x|$, a continuous function?
Solution
We may rewrite $f$ as
$
f(x)=\left\{\begin{array}{l}
-x, \text { if } x<0 \\
x, \text { if } x \geq 0
\end{array}\right.
$
By Example 3, we know that $f$ is continuous at $x=0$.
Let $c$ be a real number such that $c<0$. Then $f(c)=-c$. Also
$
\lim _{x \rightarrow c} f(x)=\lim _{x \rightarrow c}(-x)=-c
$
Since $\lim _{x \rightarrow c} f(x)=f(c), f$ is continuous at all negative real numbers.
Now, let $c$ be a real number such that $c>0$. Then $f(c)=c$. Also
$
\lim _{x \rightarrow c} f(x)=\lim _{x \rightarrow c} x=c
$
Since $\lim _{x \rightarrow c} f(x)=f(c), f$ is continuous at all positive real numbers. Hence, $f$ is continuous at all points.
Example 8
Discuss the continuity of the function $f$ given by $f(x)=x^3+x^2-1$.
Solution
Clearly $f$ is defined at every real number $c$ and its value at $c$ is $c^3+c^2-1$. We also know that
$
\lim _{x \rightarrow c} f(x)=\lim _{x \rightarrow c}\left(x^3+x^2-1\right)=c^3+c^2-1
$
Thus $\lim _{x \rightarrow c} f(x)=f(c)$, and hence $f$ is continuous at every real number. This means $f$ is a continuous function.
Example 9
Discuss the continuity of the function $f$ defined by $f(x)=\frac{1}{x}, x \neq 0$.
Solution
Fix any non zero real number $c$, we have
$
\lim _{x \rightarrow c} f(x)=\lim _{x \rightarrow c} \frac{1}{x}=\frac{1}{c}
$
Also, since for $c \neq 0, f(c)=\frac{1}{c}$, we have $\lim _{x \rightarrow c} f(x)=f(c)$ and hence, $f$ is continuous at every point in the domain of $f$. Thus $f$ is a continuous function.
We take this opportunity to explain the concept of infinity. This we do by analysing the function $f(x)=\frac{1}{x}$ near $x=0$. To carry out this analysis we follow the usual trick of finding the value of the function at real numbers close to 0 . Essentially we are trying to find the right hand limit of $f$ at 0 . We tabulate this in the following (Table 5.1).
.png)
We observe that as $x$ gets closer to 0 from the right, the value of $f(x)$ shoots up higher. This may be rephrased as: the value of $f(x)$ may be made larger than any given number by choosing a positive real number very close to 0 . In symbols, we write
$
\lim _{x \rightarrow 0^{+}} f(x)=+\infty
$
(to be read as: the right hand limit of $f(x)$ at 0 is plus infinity). We wish to emphasise that $+\infty$ is NOT a real number and hence the right hand limit of $f$ at 0 does not exist (as a real number).
Similarly, the left hand limit of $f$ at 0 may be found. The following table is self explanatory.
.png)
From the Table 5.2, we deduce that the value of $f(x)$ may be made smaller than any given number by choosing a negative real number very close to 0 . In symbols, we write
$
\lim _{x \rightarrow 0^{-}} f(x)=-\infty
$
(to be read as: the left hand limit of $f(x)$ at 0 is minus infinity). Again, we wish to emphasise that $-\infty$ is NOT a real number and hence the left hand limit of $f$ at 0 does not exist (as a real number). The graph of the reciprocal function given in Fig 5.3 is a geometric representation of the above mentioned facts.
.png)
Example 10
Discuss the continuity of the function $f$ defined by
$
f(x)=\left\{\begin{array}{l}
x+2, \text { if } x \leq 1 \\
x-2, \text { if } x>1
\end{array}\right.
$
Solution
The function $f$ is defined at all points of the real line.
Case 1 If $c<1$, then $f(c)=c+2$. Therefore, $\lim _{x \rightarrow c} f(x)=\lim _{x \rightarrow c}(x+2)=c+2$
Thus, $f$ is continuous at all real numbers less than 1 .
Case 2 If $c>1$, then $f(c)=c-2$. Therefore,
$
\lim _{x \rightarrow c} f(x)=\lim _{x \rightarrow c}(x-2)=c-2=f(c)
$
Thus, $f$ is continuous at all points $x>1$.
Case 3 If $c=1$, then the left hand limit of $f$ at $x=1$ is
$
\lim _{x \rightarrow 1^{-}} f(x)=\lim _{x \rightarrow 1^{-}}(x+2)=1+2=3
$
The right hand limit of $f$ at $x=1$ is
$
\lim _{x \rightarrow 1^{+}} f(x)=\lim _{x \rightarrow 1^{+}}(x-2)=1-2=-1
$
Since the left and right hand limits of $f$ at $x=1$ do not coincide, $f$ is not continuous at $x=1$. Hence
.png)
$x=1$ is the only point of discontinuity of $f$. The graph of the function is given in Fig 5.4.
Example 11
Find all the points of discontinuity of the function $f$ defined by
$
f(x)=\left\{\begin{array}{cc}
x+2, & \text { if } x<1 \\
0, & \text { if } x=1 \\
x-2, & \text { if } x>1
\end{array}\right.
$
Solution
As in the previous example we find that $f$ is continuous at all real numbers $x \neq 1$. The left hand limit of $f$ at $x=1$ is
$
\lim _{x \rightarrow 1^{-}} f(x)=\lim _{x \rightarrow 1^{-}}(x+2)=1+2=3
$
The right hand limit of $f$ at $x=1$ is
$
\lim _{x \rightarrow 1^{+}} f(x)=\lim _{x \rightarrow 1^{+}}(x-2)=1-2=-1
$
.png)
Since, the left and right hand limits of $f$ at $x=1$ do not coincide, $f$ is not continuous at $x=1$. Hence $x=1$ is the only point of discontinuity of $f$. The graph of the function is given in the Fig 5.5.
Example 12
Discuss the continuity of the function defined by
$
f(x)=\left\{\begin{array}{r}
x+2, \text { if } x<0 \\
-x+2, \text { if } x>0
\end{array}\right.
$
Solution
Observe that the function is defined at all real numbers except at 0 . Domain of definition of this function is
$
\begin{aligned}
& \mathrm{D}_1 \cup \mathrm{D}_2 \text { where } \mathrm{D}_1=\{x \in \mathbf{R}: x<0\} \text { and } \\
& \mathrm{D}_2=\{x \in \mathbf{R}: x>0\} \\
&
\end{aligned}
$
Case 1 If $c \in \mathrm{D}_1$, then $\lim _{x \rightarrow c} f(x)=\lim _{x \rightarrow c}(x+2)$ $=c+2=f(c)$ and hence $f$ is continuous in $\mathrm{D}_1$.
.png)
Case 2 If $c \in \mathrm{D}_2$, then $\lim _{x \rightarrow c} f(x)=\lim _{x \rightarrow c}(-x+2)$ $=-c+2=f(c)$ and hence $f$ is continuous in $\mathrm{D}_2$. Since $f$ is continuous at all points in the domain of $f$, we deduce that $f$ is continuous. Graph of this function is given in the Fig 5.6. Note that to graph this function we need to lift the pen from the plane of the paper, but we need to do that only for those points where the function is not defined.
Example 13
Discuss the continuity of the function $f$ given by
$
f(x)= \begin{cases}x, & \text { if } x \geq 0 \\ x^2, & \text { if } x<0\end{cases}
$
Solution
Clearly the function is defined at every real number. Graph of the function is given in Fig 5.7. By inspection, it seems prudent to partition the domain of definition of $f$ into three disjoint subsets of the real line.
Let
$
\begin{aligned}
& \mathrm{D}_1=\{x \in \mathbf{R}: x<0\}, \mathrm{D}_2=\{0\} \text { and } \\
& \mathrm{D}_3=\{x \in \mathbf{R}: x>0\}
\end{aligned}
$
.png)
Case 1 At any point in $\mathrm{D}_1$, we have $f(x)=x^2$ and it is easy to see that it is continuous there (see Example 2).
Case 2 At any point in $\mathrm{D}_3$, we have $f(x)=x$ and it is easy to see that it is continuous there (see Example 6).
Case 3 Now we analyse the function at $x=0$. The value of the function at 0 is $f(0)=0$. The left hand limit of $f$ at 0 is
$
\lim _{x \rightarrow 0^{-}} f(x)=\lim _{x \rightarrow 0^{-}} x^2=0^2=0
$
The right hand limit of $f$ at 0 is
$
\lim _{x \rightarrow 0^{+}} f(x)=\lim _{x \rightarrow 0^{+}} x=0
$
Thus $\lim _{x \rightarrow 0} f(x)=0=f(0)$ and hence $f$ is continuous at 0 . This means that $f$ is continuous at every point in its domain and hence, $f$ is a continuous function.
Example 14
Show that every polynomial function is continuous.
Solution
Recall that a function $p$ is a polynomial function if is defined by $p(x)=a_0+a_1 x+\ldots+a_n x^n$ for some natural number $n, a_n \neq 0$ and $a_i \in \mathbf{R}$. Clearly this function is defined for every real number. For a fixed real number $c$, we have
$
\lim _{x \rightarrow c} p(x)=p(c)
$
By definition, $p$ is continuous at $c$. Since $c$ is any real number, $p$ is continuous at every real number and hence $p$ is a continuous function.
Example 15
Find all the points of discontinuity of the greatest integer function defined by $f(x)=[x]$, where $[x]$ denotes the greatest integer less than or equal to $x$.
Solution
First observe that $f$ is defined for all real numbers. Graph of the function is given in Fig 5.8. From the graph it looks like that $f$ is discontinuous at every integral point. Below we explore, if this is true.
.png)
Case 1 Let $c$ be a real number which is not equal to any integer. It is evident from the graph that for all real numbers close to $c$ the value of the function is equal to $[c]$; i.e., $\lim _{x \rightarrow c} f(x)=\lim _{x \rightarrow c}[x]=[c]$. Also $f(c)=[c]$ and hence the function is continuous at all real numbers not equal to integers.
Case 2 Let $c$ be an integer. Then we can find a sufficiently small real number $r>0$ such that $[c-r]=c-1$ whereas $[c+r]=c$.
This, in terms of limits mean that
$
\lim _{x \rightarrow c} f(x)=c-1, \lim _{x \rightarrow c^{+}} f(x)=c
$
Since these limits cannot be equal to each other for any $c$, the function is discontinuous at every integral point.
Example 16
Prove that every rational function is continuous.
Solution
Recall that every rational function $f$ is given by
$
f(x)=\frac{p(x)}{q(x)}, q(x) \neq 0
$
where $p$ and $q$ are polynomial functions. The domain of $f$ is all real numbers except points at which $q$ is zero. Since polynomial functions are continuous (Example 14), $f$ is continuous by (4) of Theorem 1.
Example 17
Discuss the continuity of sine function.
Solution
To see this we use the following facts
$
\lim _{x \rightarrow 0} \sin x=0
$
We have not proved it, but is intuitively clear from the graph of $\sin x$ near 0 .
Now, observe that $f(x)=\sin x$ is defined for every real number. Let $c$ be a real number. Put $x=c+h$. If $x \rightarrow c$ we know that $h \rightarrow 0$. Therefore
$
\begin{aligned}
\lim _{x \rightarrow c} f(x) & =\lim _{x \rightarrow c} \sin x \\
& =\lim _{h \rightarrow 0} \sin (c+h) \\
& =\lim _{h \rightarrow 0}[\sin c \cos h+\cos c \sin h] \\
& =\lim _{h \rightarrow 0}[\sin c \cos h]+\lim _{h \rightarrow 0}[\cos c \sin h] \\
& =\sin c+0=\sin c=f(c)
\end{aligned}
$
Thus $\lim _{x \rightarrow c} f(x)=f(c)$ and hence $f$ is a continuous function.
Example 18
Prove that the function defined by $f(x)=\tan x$ is a continuous function.
Solution
The function $f(x)=\tan x=\frac{\sin x}{\cos x}$. This is defined for all real numbers such that $\cos x \neq 0$, i.e., $x \neq(2 n+1) \frac{\pi}{2}$. We have just proved that both sine and cosine functions are continuous. Thus $\tan x$ being a quotient of two continuous functions is continuous wherever it is defined.
An interesting fact is the behaviour of continuous functions with respect to composition of functions. Recall that if $f$ and $g$ are two real functions, then
$
(f \circ g)(x)=f(g(x))
$
is defined whenever the range of $g$ is a subset of domain of $f$. The following theorem (stated without proof) captures the continuity of composite functions.
Example 19 Show that the function defined by $f(x)=\sin \left(x^2\right)$ is a continuous function.
Solution Observe that the function is defined for every real number. The function $f$ may be thought of as a composition $g \circ h$ of the two functions $g$ and $h$, where $g(x)=\sin x$ and $h(x)=x^2$. Since both $g$ and $h$ are continuous functions, by Theorem 2, it can be deduced that $f$ is a continuous function.
Example 20
Show that the function $f$ defined by
$
f(x)=|1-x+| x||,
$
where $x$ is any real number, is a continuous function.
Solution
Define $g$ by $g(x)=1-x+|x|$ and $h$ by $h(x)=|x|$ for all real $x$. Then
$
\begin{aligned}
(h \circ g)(x) & =h(g(x)) \\
& =h(1-x+|x|) \\
& =|1-x+| x||=f(x)
\end{aligned}
$
In Example 7, we have seen that $h$ is a continuous function. Hence $g$ being a sum of a polynomial function and the modulus function is continuous. But then $f$ being a composite of two continuous functions is continuous.
Example 21
Find the derivative of the function given by $f(x)=\sin \left(x^2\right)$.
Solution
Observe that the given function is a composite of two functions. Indeed, if $t=u(x)=x^2$ and $v(t)=\sin t$, then
$
f(x)=(v \circ u)(x)=v(u(x))=v\left(x^2\right)=\sin x^2
$
Put $t=u(x)=x^2$. Observe that $\frac{d v}{d t}=\cos t$ and $\frac{d t}{d x}=2 x$ exist. Hence, by chain rule
$
\frac{d f}{d x}=\frac{d v}{d t} \cdot \frac{d t}{d x}=\cos t \cdot 2 x
$
It is normal practice to express the final result only in terms of $x$. Thus
$
\frac{d f}{d x}=\cos t \cdot 2 x=2 x \cos x^2
$
Example 22
Find $\frac{d y}{d x}$ if $x-y=\pi$.
Solution
One way is to solve for $y$ and rewrite the above as
$
\begin{aligned}
y & =x-\pi \\
\frac{d y}{d x} & =1
\end{aligned}
$
But then
Alternatively, directly differentiating the relationship w.r.t., $x$, we have
$
\frac{d}{d x}(x-y)=\frac{d \pi}{d x}
$
Recall that $\frac{d \pi}{d x}$ means to differentiate the constant function taking value $\pi$ everywhere w.r.t., $x$. Thus
$
\frac{d}{d x}(x)-\frac{d}{d x}(y)=0
$
which implies that
$
\frac{d y}{d x}=\frac{d x}{d x}=1
$
Example 23
Find $\frac{d y}{d x}$, if $y+\sin y=\cos x$.
Solution
We differentiate the relationship directly with respect to $x$, i.e.,
$
\frac{d y}{d x}+\frac{d}{d x}(\sin y)=\frac{d}{d x}(\cos x)
$
which implies using chain rule
$
\frac{d y}{d x}+\cos y \cdot \frac{d y}{d x}=-\sin x
$
This gives
$
\frac{d y}{d x}=-\frac{\sin x}{1+\cos y}
$
where
$
y \neq(2 n+1) \pi
$
Example 24
Find the derivative of $f$ given by $f(x)=\sin ^{-1} x$ assuming it exists.
Solution
Let $y=\sin ^{-1} x$. Then, $x=\sin y$.
Differentiating both sides w.r.t. $x$, we get
$
1=\cos y \frac{d y}{d x}
$
which implies that
$
\frac{d y}{d x}=\frac{1}{\cos y}=\frac{1}{\cos \left(\sin ^{-1} x\right)}
$
Observe that this is defined only for $\cos y \neq 0$, i.e., $\sin ^{-1} x \neq-\frac{\pi}{2}, \frac{\pi}{2}$, i.e., $x \neq-1,1$, i.e., $x \in(-1,1)$.
To make this result a bit more attractive, we carry out the following manipulation. Recall that for $x \in(-1,1), \sin \left(\sin ^{-1} x\right)=x$ and hence
$
\cos ^2 y=1-(\sin y)^2=1-\left(\sin \left(\sin ^{-1} x\right)\right)^2=1-x^2
$
Also, since $y \in\left(-\frac{\pi}{2}, \frac{\pi}{2}\right), \cos y$ is positive and hence $\cos y=\sqrt{1-x^2}$
Thus, for $x \in(-1,1)$,
$
\frac{d y}{d x}=\frac{1}{\cos y}=\frac{1}{\sqrt{1-x^2}}
$
.png)
Example 25
Is it true that $x=e^{\log x}$ for all real $x$ ?
Solution
First, observe that the domain of $\log$ function is set of all positive real numbers. So the above equation is not true for non-positive real numbers. Now, let $y=e^{\log x}$. If $y>0$, we may take $\log$ arithm which gives us $\log y=\log \left(e^{\log x}\right)=\log x \cdot \log e=\log x$. Thus $y=x$. Hence $x=e^{\log x}$ is true only for positive values of $x$.
One of the striking properties of the natural exponential function in differential calculus is that it doesn't change during the process of differentiation. This is captured in the following theorem whose proof we skip.
Example 26
Differentiate the following w.r.t. $x$ :
(i) $e^{-x}$
(ii) $\sin (\log x), x>0$
(iii) $\cos ^{-1}\left(e^x\right)$
(iv) $e^{\cos x}$
Solution
(i) Let $y=e^{-x}$. Using chain rule, we have
$
\frac{d y}{d x}=e^{-x} \cdot \frac{d}{d x}(-x)=-e^{-x}
$
(ii) Let $y=\sin (\log x)$. Using chain rule, we have
$
\frac{d y}{d x}=\cos (\log x) \cdot \frac{d}{d x}(\log x)=\frac{\cos (\log x)}{x}
$
(iii) Let $y=\cos ^{-1}\left(e^x\right)$. Using chain rule, we have
$
\frac{d y}{d x}=\frac{-1}{\sqrt{1-\left(e^x\right)^2}} \cdot \frac{d}{d x}\left(e^x\right)=\frac{-e^x}{\sqrt{1-e^{2 x}}}
$
(iv) Let $y=e^{\cos x}$. Using chain rule, we have
$
\frac{d y}{d x}=e^{\cos x} \cdot(-\sin x)=-(\sin x) e^{\cos x}
$
Example 27
Differentiate $\sqrt{\frac{(x-3)\left(x^2+4\right)}{3 x^2+4 x+5}}$ w.r.t. $x$.
Solution
Let $y=\sqrt{\frac{(x-3)\left(x^2+4\right)}{\left(3 x^2+4 x+5\right)}}$
Taking logarithm on both sides, we have
$
\log y=\frac{1}{2}\left[\log (x-3)+\log \left(x^2+4\right)-\log \left(3 x^2+4 x+5\right)\right]
$
Now, differentiating both sides w.r.t. $x$, we get
or
$
\begin{aligned}
\frac{1}{y} \cdot \frac{d y}{d x} & =\frac{1}{2}\left[\frac{1}{(x-3)}+\frac{2 x}{x^2+4}-\frac{6 x+4}{3 x^2+4 x+5}\right] \\
\frac{d y}{d x} & =\frac{y}{2}\left[\frac{1}{(x-3)}+\frac{2 x}{x^2+4}-\frac{6 x+4}{3 x^2+4 x+5}\right] \\
& =\frac{1}{2} \sqrt{\frac{(x-3)\left(x^2+4\right)}{3 x^2+4 x+5}}\left[\frac{1}{(x-3)}+\frac{2 x}{x^2+4}-\frac{6 x+4}{3 x^2+4 x+5}\right]
\end{aligned}
$
Example 28
Differentiate $a^x$ w.r.t. $x$, where $a$ is a positive constant.
Solution
Let $y=a^x$. Then
$
\log y=x \log a
$
Differentiating both sides w.r.t. $x$, we have
$
\frac{1}{y} \frac{d y}{d x}=\log a
$
or
$
\frac{d y}{d x}=y \log a
$
Thus
$
\frac{d}{d x}\left(a^x\right)=a^x \log a
$
Alternatively
$
\begin{aligned}
\frac{d}{d x}\left(a^x\right) & =\frac{d}{d x}\left(e^{x \log a}\right)=e^{x \log a} \frac{d}{d x}(x \log a) \\
& =e^{x \log a} \cdot \log a=a^x \log a .
\end{aligned}
$
Example 29
Differentiate $x^{\sin x}, x>0$ w.r.t. $x$.
Solution
Let $y=x^{\sin x}$. Taking logarithm on both sides, we have
Therefore
$
\begin{aligned}
\log y & =\sin x \log x \\
\frac{1}{y} \cdot \frac{d y}{d x} & =\sin x \frac{d}{d x}(\log x)+\log x \frac{d}{d x}(\sin x) \\
\frac{1}{y} \frac{d y}{d x} & =(\sin x) \frac{1}{x}+\log x \cos x
\end{aligned}
$
$
\begin{aligned}
\frac{d y}{d x} & =y\left[\frac{\sin x}{x}+\cos x \log x\right] \\
& =x^{\sin x}\left[\frac{\sin x}{x}+\cos x \log x\right] \\
& =x^{\sin x-1} \cdot \sin x+x^{\sin x} \cdot \cos x \log x
\end{aligned}
$
Example 30
Find $\frac{d y}{d x}$, if $y^x+x^y+x^x=a^b$.
Solution
Given that $y^x+x^y+x^x=a^b$.
Putting $u=y^x, v=x^y$ and $w=x^x$, we get $u+v+w=a^b$
Therefore
$
\frac{d u}{d x}+\frac{d v}{d x}+\frac{d w}{d x}=0
$
Now, $u=y^x$. Taking logarithm on both sides, we have
$
\log u=x \log y
$
Differentiating both sides w.r.t. $x$, we have
$
\begin{aligned}
\frac{1}{u} \cdot \frac{d u}{d x} & =x \frac{d}{d x}(\log y)+\log y \frac{d}{d x}(x) \\
& =x \frac{1}{y} \cdot \frac{d y}{d x}+\log y \cdot 1 \\
\frac{d u}{d x} & =u\left(\frac{x}{y} \frac{d y}{d x}+\log y\right)=y^x\left[\frac{x}{y} \frac{d y}{d x}+\log y\right]
\end{aligned}
$
Also $v=x^y$
Taking logarithm on both sides, we have
$
\log v=y \log x
$
Differentiating both sides w.r.t. $x$, we have
$
\begin{aligned}
\frac{1}{v} \cdot \frac{d v}{d x} & =y \frac{d}{d x}(\log x)+\log x \frac{d y}{d x} \\
& =y \cdot \frac{1}{x}+\log x \cdot \frac{d y}{d x} \\
\frac{d v}{d x} & =v\left[\frac{y}{x}+\log x \frac{d y}{d x}\right] \\
& =x^y\left[\frac{y}{x}+\log x \frac{d y}{d x}\right]
\end{aligned}
$
Again
$
w=x^x
$
Taking logarithm on both sides, we have
$
\log w=x \log x .
$
Differentiating both sides w.r.t. $x$, we have
$
\begin{aligned}
\frac{1}{w} \cdot \frac{d w}{d x} & =x \frac{d}{d x}(\log x)+\log x \cdot \frac{d}{d x}(x) \\
& =x \cdot \frac{1}{x}+\log x \cdot 1 \\
\frac{d w}{d x} & =w(1+\log x) \\
& =x^x(1+\log x)
\end{aligned}
$
From (1), (2), (3), (4), we have
$\begin{aligned}
& y^x\left(\frac{x}{y} \frac{d y}{d x}+\log y\right)+x^y\left(\frac{y}{x}+\log x \frac{d y}{d x}\right)+x^x(1+\log x)=0 \\
& \text { or } \quad\left(x \cdot y^{x-1}+x^y \cdot \log x\right) \frac{d y}{d x}=-x^x(1+\log x)-y \cdot x^{y-1}-y^x \log y \\
& \text { Therefore } \quad \frac{d y}{d x}=\frac{-\left[y^x \log y+y \cdot x^{y-1}+x^x(1+\log x)\right]}{x \cdot y^{x-1}+x^y \log x} \\
&
\end{aligned}$
$\begin{aligned}
& y^x\left(\frac{x}{y} \frac{d y}{d x}+\log y\right)+x^y\left(\frac{y}{x}+\log x \frac{d y}{d x}\right)+x^x(1+\log x)=0 \\
& \text { or } \quad\left(x \cdot y^{x-1}+x^y \cdot \log x\right) \frac{d y}{d x}=-x^x(1+\log x)-y \cdot x^{y-1}-y^x \log y \\
& \text { Therefore } \quad \frac{d y}{d x}=\frac{-\left[y^x \log y+y \cdot x^{y-1}+x^x(1+\log x)\right]}{x \cdot y^{x-1}+x^y \log x} \\
&
\end{aligned}$
Example 31
Find $\frac{d y}{d x}$, if $x=a \cos \theta, y=a \sin \theta$.
Solution
Given that
$
x=a \cos \theta, y=a \sin \theta
$
Therefore
$
\begin{aligned}
& \frac{d x}{d \theta}=-a \sin \theta, \frac{d y}{d \theta}=a \cos \theta \\
& \frac{d y}{d x}=\frac{\frac{d y}{d \theta}}{\frac{d x}{d \theta}}=\frac{a \cos \theta}{-a \sin \theta}=-\cot \theta
\end{aligned}
$
Example 32
Find $\frac{d y}{d x}$, if $x=a t^2, y=2 a t$.
Solution
Given that $x=a t^2, y=2 a t$
So
$
\begin{aligned}
& \frac{d x}{d t}=2 a t \text { and } \frac{d y}{d t}=2 a \\
& \frac{d y}{d x}=\frac{\frac{d y}{d t}}{\frac{d x}{d t}}=\frac{2 a}{2 a t}=\frac{1}{t}
\end{aligned}
$
Example 33
Find $\frac{d y}{d x}$, if $x=a(\theta+\sin \theta), y=a(1-\cos \theta)$.
Solution
We have $\frac{d x}{d \theta}=a(1+\cos \theta), \frac{d y}{d \theta}=a(\sin \theta)$
Therefore
$
\frac{d y}{d x}=\frac{\frac{d y}{d \theta}}{\frac{d x}{d \theta}}=\frac{a \sin \theta}{a(1+\cos \theta)}=\tan \frac{\theta}{2}
$
Example 34
Find $\frac{d y}{d x}$, if $x^{\frac{2}{3}}+y^{\frac{2}{3}}=a^{\frac{2}{3}}$.
Solution
Let $x=a \cos ^3 \theta, y=a \sin ^3 \theta$. Then
$
\begin{aligned}
x^{\frac{2}{3}}+y^{\frac{2}{3}} & =\left(a \cos ^3 \theta\right)^{\frac{2}{3}}+\left(a \sin ^3 \theta\right)^{\frac{2}{3}} \\
& =a^{\frac{2}{3}}\left(\cos ^2 \theta+\left(\sin ^2 \theta\right)=a^{\frac{2}{3}}\right.
\end{aligned}
$
Hence, $x=a \cos ^3 \theta, y=a \sin ^3 \theta$ is parametric equation of $x^{\frac{2}{3}}+y^{\frac{2}{3}}=a^{\frac{2}{3}}$
Now
$
\begin{aligned}
& \frac{d x}{d \theta}=-3 a \cos ^2 \theta \sin \theta \text { and } \frac{d y}{d \theta}=3 a \sin ^2 \theta \cos \theta \\
& \frac{d y}{d x}=\frac{\frac{d y}{d \theta}}{\frac{d x}{d \theta}}=\frac{3 a \sin ^2 \theta \cos \theta}{-3 a \cos ^2 \theta \sin \theta}=-\tan \theta=-\sqrt[3]{\frac{y}{x}}
\end{aligned}
$
Example 35
Find $\frac{d^2 y}{d x^2}$, if $y=x^3+\tan x$.
Solution
Given that $y=x^3+\tan x$. Then
$
\begin{aligned}
\frac{d y}{d x} & =3 x^2+\sec ^2 x \\
\frac{d^2 y}{d x^2} & =\frac{d}{d x}\left(3 x^2+\sec ^2 x\right) \\
& =6 x+2 \sec x \cdot \sec x \tan x=6 x+2 \sec ^2 x \tan x
\end{aligned}
$
Example 36
If $y=\mathrm{A} \sin x+\mathrm{B} \cos x$, then prove that $\frac{d^2 y}{d x^2}+y=0$.
Solution
We have
and
$
\begin{aligned}
\frac{d y}{d x} & =\mathrm{A} \cos x-\mathrm{B} \sin x \\
\frac{d^2 y}{d x^2} & =\frac{d}{d x}(\mathrm{~A} \cos x-\mathrm{B} \sin x) \\
& =-\mathrm{A} \sin x-\mathrm{B} \cos x=-y \\
\frac{d^2 y}{d x^2}+y & =0
\end{aligned}
$
Example 37
If $y=3 e^{2 x}+2 e^{3 x}$, prove that $\frac{d^2 y}{d x^2}-5 \frac{d y}{d x}+6 y=0$.
Solution
Given that $y=3 e^{2 x}+2 e^{3 x}$. Then
$
\frac{d y}{d x}=6 e^{2 x}+6 e^{3 x}=6\left(e^{2 x}+e^{3 x}\right)
$
Therefore
$
\frac{d^2 y}{d x^2}=12 e^{2 x}+18 e^{3 x}=6\left(2 e^{2 x}+3 e^{3 x}\right)
$
Hence $\quad \frac{d^2 y}{d x^2}-5 \frac{d y}{d x}+6 y=6\left(2 e^{2 x}+3 e^{3 x}\right)$
$
-30\left(e^{2 x}+e^{3 x}\right)+6\left(3 e^{2 x}+2 e^{3 x}\right)=0
$
Example 38
If $y=\sin ^{-1} x$, show that $\left(1-x^2\right) \frac{d^2 y}{d x^2}-x \frac{d y}{d x}=0$.
Solution
We have $y=\sin ^{-1} x$. Then
$
\frac{d y}{d x}=\frac{1}{\sqrt{\left(1-x^2\right)}}
$
or
$
\sqrt{\left(1-x^2\right)} \frac{d y}{d x}=1
$
So
$
\frac{d}{d x}\left(\sqrt{\left(1-x^2\right)} \cdot \frac{d y}{d x}\right)=0
$
or
$
\begin{aligned}
& \sqrt{\left(1-x^2\right)} \cdot \frac{d^2 y}{d x^2}+\frac{d y}{d x} \cdot \frac{d}{d x}\left(\sqrt{\left(1-x^2\right)}\right)=0 \\
& \sqrt{\left(1-x^2\right)} \cdot \frac{d^2 y}{d x^2}-\frac{d y}{d x} \cdot \frac{2 x}{2 \sqrt{1-x^2}}=0
\end{aligned}
$
Hence
$
\left(1-x^2\right) \frac{d^2 y}{d x^2}-x \frac{d y}{d x}=0
$
Alternatively, Given that $y=\sin ^{-1} x$, we have
$
y_1=\frac{1}{\sqrt{1-x^2}} \text {, i.e., }\left(1-x^2\right) y_1^2=1
$
So
$
\left(1-x^2\right) \cdot 2 y_1 y_2+y_1^2(0-2 x)=0
$
Hence
$
\left(1-x^2\right) y_2-x y_1=0
$
Example 39
Differentiate w.r.t. $x$, the following function:
(i) $\sqrt{3 x+2}+\frac{1}{\sqrt{2 x^2+4}}$
(ii) $\log _7(\log x)$
Solution
(i) Let $y=\sqrt{3 x+2}+\frac{1}{\sqrt{2 x^2+4}}=(3 x+2)^{\frac{1}{2}}+\left(2 x^2+4\right)^{-\frac{1}{2}}$
Note that this function is defined at all real numbers $x>-\frac{2}{3}$. Therefore
$
\begin{aligned}
\frac{d y}{d x} & =\frac{1}{2}(3 x+2)^{\frac{1}{2}-1} \cdot \frac{d}{d x}(3 x+2)+\left(-\frac{1}{2}\right)\left(2 x^2+4\right)^{-\frac{1}{2}-1} \cdot \frac{d}{d x}\left(2 x^2+4\right) \\
& =\frac{1}{2}(3 x+2)^{-\frac{1}{2}} \cdot(3)-\left(\frac{1}{2}\right)\left(2 x^2+4\right)^{-\frac{3}{2}} \cdot 4 x \\
& =\frac{3}{2 \sqrt{3 x+2}}-\frac{2 x}{\left(2 x^2+4\right)^{\frac{3}{2}}}
\end{aligned}
$
This is defined for all real numbers $x>-\frac{2}{3}$.
(ii) Let $y=\log _7(\log x)=\frac{\log (\log x)}{\log 7}$ (by change of base formula). The function is defined for all real numbers $x>1$. Therefore
$
\begin{aligned}
\frac{d y}{d x} & =\frac{1}{\log 7} \frac{d}{d x}(\log (\log x)) \\
& =\frac{1}{\log 7} \frac{1}{\log x} \cdot \frac{d}{d x}(\log x) \\
& =\frac{1}{x \log 7 \log x}
\end{aligned}
$
Example 40
Differentiate the following w.r.t. $x$.
(i) $\cos ^{-1}(\sin x)$
(ii) $\tan ^{-1}\left(\frac{\sin x}{1+\cos x}\right)$
(iii) $\sin ^{-1}\left(\frac{2^{x+1}}{1+4^x}\right)$
Solution
(i) Let $f(x)=\cos ^{-1}(\sin x)$. Observe that this function is defined for all real numbers. We may rewrite this function as
$
\begin{aligned}
f(x) & =\cos ^{-1}(\sin x) \\
& =\cos ^{-1}\left[\cos \left(\frac{\pi}{2}-x\right)\right] \\
& =\frac{\pi}{2}-x
\end{aligned}
$
Thus $\quad f^{\prime}(x)=-1$.
(ii) Let $f(x)=\tan ^{-1}\left(\frac{\sin x}{1+\cos x}\right)$. Observe that this function is defined for all real numbers, where $\cos x \neq-1$; i.e., at all odd multiplies of $\pi$. We may rewrite this function as
$
\begin{aligned}
f(x) & =\tan ^{-1}\left(\frac{\sin x}{1+\cos x}\right) \\
& =\tan ^{-1}\left[\frac{2 \sin \left(\frac{x}{2}\right) \cos \left(\frac{x}{2}\right)}{2 \cos ^2 \frac{x}{2}}\right]
\end{aligned}
$
$
=\tan ^{-1}\left[\tan \left(\frac{x}{2}\right)\right]=\frac{x}{2}
$
Observe that we could cancel $\cos \left(\frac{x}{2}\right)$ in both numerator and denominator as it is not equal to zero. Thus $f^{\prime}(x)=\frac{1}{2}$.
(iii) Let $f(x)=\sin ^{-1}\left(\frac{2^{x+1}}{1+4^x}\right)$. To find the domain of this function we need to find all $x$ such that $-1 \leq \frac{2^{x+1}}{1+4^x} \leq 1$. Since the quantity in the middle is always positive, we need to find all $x$ such that $\frac{2^{x+1}}{1+4^x} \leq 1$, i.e., all $x$ such that $2^{x+1} \leq 1+4^x$. We may rewrite this as $2 \leq \frac{1}{2^x}+2^x$ which is true for all $x$. Hence the function is defined at every real number. By putting $2^x=\tan \theta$, this function may be rewritten as
$
\begin{aligned}
f(x) & =\sin ^{-1}\left[\frac{2^{x+1}}{1+4^x}\right] \\
& =\sin ^{-1}\left[\frac{2^x \cdot 2}{1+\left(2^x\right)^2}\right] \\
& =\sin ^{-1}\left[\frac{2 \tan \theta}{1+\tan ^2 \theta}\right] \\
& =\sin ^{-1}[\sin 2 \theta] \\
& =2 \theta=2 \tan ^{-1}\left(2^x\right)
\end{aligned}
$
$\text { Thus } \quad \begin{aligned}
f^{\prime}(x) & =2 \cdot \frac{1}{1+\left(2^x\right)^2} \cdot \frac{d}{d x}\left(2^x\right) \\
& =\frac{2}{1+4^x} \cdot\left(2^x\right) \log 2 \\
& =\frac{2^{x+1} \log 2}{1+4^x}
\end{aligned}$
Example 41
Find $f^{\prime}(x)$ if $f(x)=(\sin x)^{\sin x}$ for all $0<x<\pi$.
Solution
The function $y=(\sin x)^{\sin x}$ is defined for all positive real numbers. Taking logarithms, we have
Then
$
\begin{aligned}
& \log y=\log (\sin x)^{\sin x}=\sin x \log (\sin x) \\
& \frac{1}{y} \frac{d y}{d x}=\frac{d}{d x}(\sin x \log (\sin x))
\end{aligned}
$
$
\begin{aligned}
& =\cos x \log (\sin x)+\sin x \cdot \frac{1}{\sin x} \cdot \frac{d}{d x}(\sin x) \\
& =\cos x \log (\sin x)+\cos x \\
& =(1+\log (\sin x)) \cos x
\end{aligned}
$
Thus $\quad \frac{d y}{d x}=y((1+\log (\sin x)) \cos x)=(1+\log (\sin x))(\sin x)^{\sin x} \cos x$
Example 42
For a positive constant $a$ find $\frac{d y}{d x}$, where
$
y=a^{t+\frac{1}{t}} \text {, and } x=\left(t+\frac{1}{t}\right)^a
$
Solution
Observe that both $y$ and $x$ are defined for all real $t \neq 0$. Clearly
$
\begin{aligned}
\frac{d y}{d t}=\frac{d}{d t}\left(a^{t+\frac{1}{t}}\right) & =a^{t+\frac{1}{t}} \frac{d}{d t}\left(t+\frac{1}{t}\right) \cdot \log a \\
& =a^{t+\frac{1}{t}}\left(1-\frac{1}{t^2}\right) \log a \\
\frac{d x}{d t} & =a\left[t+\frac{1}{t}\right]^{a-1} \cdot \frac{d}{d t}\left(t+\frac{1}{t}\right) \\
& =a\left[t+\frac{1}{t}\right]^{a-1} \cdot\left(1-\frac{1}{t^2}\right)
\end{aligned}
$
Similarly
$
\begin{aligned}
\frac{d x}{d t} & =a\left[t+\frac{1}{t}\right]^{a-1} \cdot \frac{d}{d t}\left(t+\frac{1}{t}\right) \\
& =a\left[t+\frac{1}{t}\right]^{a-1} \cdot\left(1-\frac{1}{t^2}\right)
\end{aligned}
$
$\frac{d x}{d t} \neq 0$ only if $t \neq \pm 1$. Thus for $t \neq \pm 1$,
$
\begin{aligned}
\frac{d y}{d x}=\frac{\frac{d y}{d t}}{\frac{d x}{d t}} & =\frac{a^{t+\frac{1}{t}}\left(1-\frac{1}{t^2}\right) \log a}{a\left[t+\frac{1}{t}\right]^{a-1} \cdot\left(1-\frac{1}{t^2}\right)} \\
& =\frac{a^{t+\frac{1}{t}} \log a}{a\left(t+\frac{1}{t}\right)^{a-1}}
\end{aligned}
$
Example 43
Differentiate $\sin ^2 x$ w.r.t. $e^{\cos x}$.
Solution Let $u(x)=\sin ^2 x$ and $v(x)=e^{\cos x}$. We want to find $\frac{d u}{d v}=\frac{d u / d x}{d v / d x}$. Clearly
$
\frac{d u}{d x}=2 \sin x \cos x \text { and } \frac{d v}{d x}=e^{\cos x}(-\sin x)=-(\sin x) e^{\cos x}
$
Thus
$
\frac{d u}{d v}=\frac{2 \sin x \cos x}{-\sin x e^{\cos x}}=-\frac{2 \cos x}{e^{\cos x}}
$
