Differentiate the functions given in question 1 to 10 with respect to x.
Question 1. cos x.cos2x.cos3x
Solution:
Let us considered y = cos x.cos2x.cos3x
Now taking log on both sides, we get
log y = log(cos x.cos2x.cos3x)
log y = log(cos x) + log(cos 2x) + log (cos 3x)
Now, on differentiating w.r.t x, we get



= -y(tan x + 2tan 2x + 3 tan 3x)
= -(cos x. cos 2x. cos 3x)(tan x + 2tan 2x + 3tan 3x)
Question 2. 
Solution:
Let us considered y = 
Now taking log on both sides, we get
log y = 
log y =
(log(x – 1)(x – 2)(x – 3)(x – 4)(x – 5))
log y =
(log(x – 1) + log(x – 2) – log(x – 3) – log(x – 4) – log(x – 5))
Now, on differentiating w.r.t x, we get
![Rendered by QuickLaTeX.com \frac{1}{y}.\frac{dy}{dx}=\frac{1}{2}[(\frac{1}{x-1})+(\frac{1}{x-2})+(\frac{1}{x-3})+(\frac{1}{x-4})+(\frac{1}{x-5})]](https://www.geeksforgeeks.org/wp-content/ql-cache/quicklatex.com-5f7176a0055fb823ecfb01a9e7c36e7a_l3.png)
![Rendered by QuickLaTeX.com \frac{dy}{dx}=\frac{y}{2}[(\frac{1}{x-1})+(\frac{1}{x-2})+(\frac{1}{x-3})+(\frac{1}{x-4})+(\frac{1}{x-5})]](https://www.geeksforgeeks.org/wp-content/ql-cache/quicklatex.com-5f245aed84b801a35452e40bf33dd516_l3.png)
![Rendered by QuickLaTeX.com \frac{dy}{dx}=\frac{1}{2}\sqrt{\frac{(x-1)(x-2)}{(x-3)(x-4)(x-5)}}[(\frac{1}{x-1})+(\frac{1}{x-2})-(\frac{1}{x-3})-(\frac{1}{x-4})-(\frac{1}{x-5})]](https://www.geeksforgeeks.org/wp-content/ql-cache/quicklatex.com-313155856e7babe00b4fb513507dec40_l3.png)
Question 3. (log x)cos x
Solution:
Let us considered y = (log x)cos x
Now taking log on both sides, we get
log y = log((log x)cos x)
log y = cos x(log(log x))
Now, on differentiating w.r.t x, we get




Question 4. xx – 2sin x
Solution:
Given: y = xx – 2sin x
Let us considered y = u – v
Where, u = xx and v = 2sin x
So, dy/dx = du/dx – dv/dx ………(1)
So first we take u = xx
On taking log on both sides, we get
log u = log xx
log u = x log x
Now, on differentiating w.r.t x, we get

du/dx = u(1 + log x)
du/dx = xx(1 + log x) ………(2)
Now we take v = 2sin x
On taking log on both sides, we get
log v = log (2sinx)
log v = sin x log2
Now, on differentiating w.r.t x, we get

dv/dx = v(log2cos x)
dv/dx = 2sin xcos xlog2 ………(3)
Now put all the values from eq(2) and (3) into eq(1)
dy/dx = xx(1 + log x) – 2sin xcos xlog2
Question 5. (x + 3)2.(x + 4)3.(x + 5)4
Solution:
Let us considered y = (x + 3)2.(x + 4)3.(x + 5)4
Now taking log on both sides, we get
log y = log[(x + 3)3.(x + 4)3.(x + 5)4]
log y = 2 log(x + 3) + 3 log(x + 4) + 4 log(x + 5)
Now, on differentiating w.r.t x, we get



Question 6. 
Solution:
Given: y = 
Let us considered y = u + v
Where
and 
so, dy/dx = du/dx + dv/dx ………(1)
Now first we take 
On taking log on both sides, we get
log u =
log u = 
Now, on differentiating w.r.t x, we get


![Rendered by QuickLaTeX.com \frac{dy}{dx}=u[\frac{x^2-1}{x^2+1}+\log(x+\frac{1}{x})]](https://www.geeksforgeeks.org/wp-content/ql-cache/quicklatex.com-9b6cc58cde531546f3d5853f349b45eb_l3.png)
………(2)
Now we take 
On taking log on both sides, we get
log v = 
log v = 
Now, on differentiating w.r.t x, we get

![Rendered by QuickLaTeX.com \frac{dv}{dx}=v[(\frac{x+1}{x}).\frac{1}{x}+\log x(\frac{-1}{x^2})]](https://www.geeksforgeeks.org/wp-content/ql-cache/quicklatex.com-2e8106db6ecf97f0bba94df2e597b7db_l3.png)
………(3)
Now put all the values from eq(2) and (3) into eq(1)
![Rendered by QuickLaTeX.com \frac{dy}{dx}=(x+\frac{1}{x})^2(\frac{x^2-1}{x^2+1}+\log(x+\frac{1}{x}))+x^{(1+\frac{1}{x}).[\frac{x+1-\log x}{x^2}]}](https://www.geeksforgeeks.org/wp-content/ql-cache/quicklatex.com-7d6f9353d486f6e9f2e4d4da95298c20_l3.png)
Question 7. (log x)x + x log x
Solution:
Given: y = (log x)x + x log x
Let us considered y = u + v
Where u = (log x)x and v = xlog x
so, dy/dx = du/dx + dv/dx ………(1)
Now first we take u = (log x)x
On taking log on both sides, we get
log u = log(log x)x
log u = x log(log x)
Now, on differentiating w.r.t x, we get

………(2)
Now we take v = xlog x
On taking log on both sides, we get
log v = log(xlog x)
log v = logx log(x)
log v = logx2
Now, on differentiating w.r.t x, we get



………(3)
Now put all the values from eq(2) and (3) into eq(1)

Question 8. (sin x)x + sin–1√x
Solution:
Given: y = (sin x)x + sin–1√x
Let us considered y = u + v
Where u = (sin x)x and v = sin–1√x
so, dy/dx = du/dx + dv/dx ………(1)
Now first we take u = (sin x)x
On taking log on both sides, we get
log u = log(sin x)x
log u = xlog(sin x)
Now, on differentiating w.r.t x, we get


………(2)
Now we take v = sin–1√x
On taking log on both sides, we get
log v = log sin–1√x
Now, on differentiating w.r.t x, we get

………(3)
Now put all the values from eq(2) and (3) into eq(1)

Question 9. x sin x + (sin x)cos x
Solution:
Given: y = x sin x + (sin x)cos x
Let us considered y = u + v
Where u = x sin x and v = (sin x)cos x
so, dy/dx = du/dx + dv/dx ………(1)
Now first we take u = x sin x
On taking log on both sides, we get
log u = log xsin x
log u = sin x(log x)
Now, on differentiating w.r.t x, we get
![Rendered by QuickLaTeX.com \frac{du}{dx}=u.[\sin x.\frac{1}{x}+\log x(\cos x)]](https://www.geeksforgeeks.org/wp-content/ql-cache/quicklatex.com-660ae0d311b3da184d5afb12dee551f2_l3.png)
………(2)
Now we take v =(sin x)cos x
On taking log on both sides, we get
log v = log(sin x)cos x
log v = cosx log(sinx)
Now, on differentiating w.r.t x, we get


………(3)
Now put all the values from eq(2) and (3) into eq(1)

Question 10. 
Solution:
Given: y = 
Let us considered y = u + v
Where u = xxcosx and v = 
so, dy/dx = du/dx + dv/dx ………(1)
Now first we take u = xxcosx
On taking log on both sides, we get
log u = log (x xcosx)
log u = x.cosx.logx
Now, on differentiating w.r.t x, we get

![Rendered by QuickLaTeX.com \frac{du}{dx}=u[1.cosx.logx+x.(-sinx).logx+x.cosx.\frac{1}{x}]](https://www.geeksforgeeks.org/wp-content/ql-cache/quicklatex.com-489129931974fc4edd7d54a7890b4f6b_l3.png)
………(2)
Now we take v =
On taking log on both sides, we get
log v = log
log v = log(x2 + 1) – log(x2 – 1)
Now, on differentiating w.r.t x, we get



………(3)
Now put all the values from eq(2) and (3) into eq(1)
![Rendered by QuickLaTeX.com \frac{dy}{dx}=x^{xcosx}[cosx(1+logx)-xsinxlogx]-\frac{4x}{(x^2-1)^2}](https://www.geeksforgeeks.org/wp-content/ql-cache/quicklatex.com-781b8b7743a1ab626c8b5e8ea46d8f76_l3.png)