How Cool it could be if we can create a cool scientific calculator using python. Isn’t it? Well We CanHey Python Developers!!. So today, we are going to learn how you can solve derivative using python. Sounds Cool?

**What Should be needed to make this program?**Just Basics Of Python and Basic Understanding Of Derivatives. So Now if you are ready. Should we dive into it?

## Get Your WorkSpace Ready For The Program

So, before we dive in. Make sure that we are working on python three here. And we will be using a very famous mathematical python library called**Sympy.**Maybe You have already heard about it. Anyways, we will use Python3 + Sympy = For Derivative Calculator.

## Enough Of Theory… Let’s Make Python Derivative Calculator

Ohh did I took so long? If so sorry, Now let’s look into the coding. First of all, you have to install the sympy library on your system. So just open your terminal and install sympy library using PIP.pip install sympyAfter pressing enter, sympy will be installed on our computer. Now let’s Create a new file

**derivative.py**and enter the following python code into it.

from sympy import Symbol, Derivative equation = str(input('Enter Equation: ')) x = Symbol('x') derivative= Derivative(equation, x) result = derivative.doit() print('\n\tYour Answer Is : ', result , '\n')You Can Also Go To our Github Repository Of the same, and download/clone the repository to your computer. Now Just go to Terminal and run your python file

**derivative.py.**It will ask you to enter the equation. Now you have to enter the equation, but the way of writing equation is different.

- x³ = x**3
- 4x = 4*x
- sinx = sin(x)
- and so on… if you have any doubt comment below : )