Given:
The function is

To find:
The derivative of the given function.
Solution:
Chain rule of differentiation:
![[f(g(x))]'=f'(g(x))g'(x)](https://tex.z-dn.net/?f=%5Bf%28g%28x%29%29%5D%27%3Df%27%28g%28x%29%29g%27%28x%29)
Product rule of differentiation:
![[f(x)g(x)]'=f(x)g'(x)+g(x)f'(x)](https://tex.z-dn.net/?f=%5Bf%28x%29g%28x%29%5D%27%3Df%28x%29g%27%28x%29%2Bg%28x%29f%27%28x%29)
We have,

Differentiate with respect to x.

![f'(x)=(x-5)^2[2(3-x)(0-1)]+(3-x)^2[2(x-5)(1-0)]](https://tex.z-dn.net/?f=f%27%28x%29%3D%28x-5%29%5E2%5B2%283-x%29%280-1%29%5D%2B%283-x%29%5E2%5B2%28x-5%29%281-0%29%5D)


On further simplification, we get



Therefore, the derivative of the given function is
.