Answer:
Solved using 2 different methods, used the definition of derivative aswell.
1.6m questions
2.0m answers