Questions tagged [derivative]

In calculus, a derivative is a measure of a function's rate of change as its input changes.

Loosely speaking, a derivative can be thought of as how much one quantity is changing in response to changes in some other quantity; for example, the derivative of the position of a moving object with respect to time is the object's instantaneous velocity.

The derivative of a function at a chosen input value describes the best linear approximation of the function near that input value. For a real-valued function of a single real variable, the derivative at a point equals the slope of the tangent line to the graph of the function at that point. In higher dimensions, the derivative of a function at a point is a linear transformation called the linearization.1 A closely related notion is the differential of a function.

The process of finding a derivative is called differentiation. The reverse process is called antidifferentiation. The fundamental theorem of calculus states that antidifferentiation is the same as integration. Differentiation and integration constitute the two fundamental operations in single-variable calculus.

enter image description here

845 questions
4
votes
1 answer

Computation of Jacobian matrix in cvRodrigues2

I'm reading source code of opencv: cvProjectPoints2, cvRodrigues2. In cvProjectPoints2, the Jacobian matrix is first got using cvRodrigues2( &_r, &matR, &_dRdr );, and then used to calculate the partial derivative of pixels w.r.t the rvec…
zhangxaochen
  • 32,744
  • 15
  • 77
  • 108
4
votes
1 answer

Chain rule in sympy

I'm trying some basic practice with SymPy. I would like to take a second derivative symbolically of a function in rectangular coordinates with respect to the radius parameter in polar coordinates. I'd like a nice chain rule symbolic expression…
Hatshepsut
  • 5,962
  • 8
  • 44
  • 80
4
votes
1 answer

LibGDX Path (CatmullRomSpline) Constant Speed

I’m trying to achieve constant speed on a path using the LibGDX CatmullRomSpline and I’m having problems getting it to work. I’ve tried researching on this topic a lot including reading the LibGDX wiki, but their explanation for achieving constant…
Tekkerue
  • 1,497
  • 1
  • 11
  • 17
4
votes
1 answer

Numerically compute derivative of complex-valued function in MATLAB

I would like to compute the derivative of a complex-valued function (Holomorphic function) numerically in MATLAB. I have computed the function in a grid on the complex plane, and I've tried to compute the derivative using the Cauchy–Riemann…
Simone Gaiarin
  • 340
  • 2
  • 15
4
votes
1 answer

Implementation of the first derivative of a normal probability distribution function in python

I'm searching for the formula of the first derivative of a normal pdf. Is there a function in numpy or scipy to obtain it directly?
user1363251
  • 421
  • 1
  • 11
  • 24
4
votes
1 answer

How to perform local polynomial fitting in Python

I have 200k data points and I'm trying to obtain derivative of fitted polynomial. I divided my data set into smaller ones every 0.5 K, the data is Voltage vs Temperature. My code roughly looks like this: import pandas as pd import numpy as np import…
GPM
  • 105
  • 5
4
votes
6 answers

Derivative Calculator

I'm interested in building a derivative calculator. I've racked my brains over solving the problem, but I haven't found a right solution at all. May you have a hint how to start? Thanks I'm sorry! I clearly want to make symbolic…
burki
  • 2,946
  • 6
  • 37
  • 51
4
votes
2 answers

calculating the Gradient and the Hessian in R

As you know, the Gradient of a function is the following vector: and the Hessian is the following matrix: Now, I wonder, is there any way to calculate these in R for a user defined function at a given point? First, I've found a package named…
A S
  • 1,195
  • 2
  • 12
  • 26
4
votes
1 answer

export of dymola model requires the derivative of its input

I would like to export a Dymola model to Simulink. The model consists of a derivative block (der), a RealInput, a RealOutput and there connections. When I translate this model, the following error appears: "The model requires derivatives of some…
C Winkler
  • 161
  • 2
  • 15
4
votes
7 answers

Derivative of a program

Let us assume you can represent a program as mathematical function, that's possible. How does the program representation of the first derivative of that function look like? Is there a way to transform a program to its "derivative" form, and does…
user314715
  • 51
  • 2
4
votes
3 answers

Numerical derivative of a vector

I have a problem with numerical derivative of a vector that is x: Nx1 with respect to another vector t (time) that is the same size of x. I do the following (x is chosen to be sine function as an example): t=t0:ts:tf; x=sin(t); xd=diff(x)/ts; but…
milad
  • 169
  • 1
  • 2
  • 10
4
votes
2 answers

Implementing a basic mathematical expression simplifier

I'm working on a side project for my calc class that differentiates simple functions like y=x^2 in Javascript. To do that, I parsed the expression into an Abstract Syntax Tree, and then hardcoded derivative rules like product rule and chain rule.…
scrblnrd3
  • 7,228
  • 9
  • 33
  • 64
4
votes
2 answers

Symbolic derivatives on formulas

In R, I would like a way to take symbolic derivatives of the right hand side of formulas which may include interaction terms, squared terms, etc. For example, I would like to be able to take the derivative of the right hand side of each of the…
BUML1290
  • 93
  • 6
4
votes
2 answers

Java - Computation of Derivations with Apache Commons Mathematic Library

I have a problem in using the apache commons math library. I just want to create functions like f(x) = 4x^2 + 2x and I want to compute the derivative of this function --> f'(x) = 8x + 2 I read the article about Differentiation…
4
votes
2 answers

Calculate the derivative ([i] - [i - 1]) in Ruby

Trivial using a for loop or each_with_index, just wondering if there was a better way of doing it using Ruby syntax. I need to create a new array that is the derivative of the source array, eg: for(int i = 1; i < oldArray.length; i++) { …
CookieOfFortune
  • 13,836
  • 8
  • 42
  • 58