> For the complete documentation index, see [llms.txt](https://jona-projects.gitbook.io/kiwicalc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jona-projects.gitbook.io/kiwicalc/functions/derivatives.md).

# Derivatives

#### Derivative of a function

As for this version, only linear and polynomial derivatives are fully implemented. Trigonometric derivatives are also available, but the support is still basic and needs to be extended. A larger variety of derivatives will be supported in the future.

```python
# The method's signature
def derivative(self):
                    
```

The method accepts no parameters and returns a Function object that represent the derivative of the original function. for example:

```python
func = Function("f(x)=x**2+2x-5")
print(func.derivative())
                    
```

#### Partial Derivatives

As for now, partial derivatives are only supported in linear and polynomial functions. The support is expected to be extended in the next versions.

```python
func = Function("f(x,y) = x^2 * y^2")
print(func.partial_derivative('x'))
print(func.partial_derivative('y'))
print(func.partial_derivative('xy'))
                    
```
