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
-2
votes
1 answer

Input a function and calculate derivative in python

I want to ask a user to enter a function: function = input('Input expression: ') # x**2 + 1 or cos(x) I want to be able to evaluate this function, for example f(1). I want to compute the derivative f', such that again, i can do f'(0) for example.…
didiegop
  • 139
  • 3
-2
votes
4 answers

Is there a simple way to do array differences and approximate array derivatives in C++? (Like the diff() function in matlab)

Matlab code I would like to translate into C++ X = [1 1 2 3 5 8 13 21]; Y = diff(X) output : 0 1 1 2 3 5 8 https://www.mathworks.com/help/matlab/ref/diff.html
Bart inho
  • 11
  • 1
-2
votes
1 answer

The relationship between derivatives and normal function

Let f’ be a differentiable function, and suppose that f(2x)=3f(x) for all x. Prove that f’(2x)=3/2f’(x).
-2
votes
2 answers

How to select the second derivative greater than 1 in r

I'm looking for the exact value of epsilon to run the DBSCAN clustering algorithm. Here's the KNN distance plot. This chart has two flex points. I need the second flex point. I'm using the following code: # evaluate kNN distance dist <-…
-2
votes
3 answers

How can I resolve an exponential function for x in R?

I want to analyse a logarithmic growth curve in more detail. Especially I would like to kow the time point when the slope becomes >0 (which is the starting point of growth after a lag phase). Therefore I fitted a logarithmic function to my growth…
Anne
  • 241
  • 1
  • 3
  • 9
-2
votes
1 answer

Calculating difference and direction between two headings

I have a large array with values representing wind direction in degrees(0-360) I am required to calculate the instantaneous rate of change with respect to time, using backwards, forward and then central difference methods. So far I have managed to…
-2
votes
2 answers

How to find all maximas if x and y values of the function are given as np.array

I have two numpy arrays x and y, I have plotted a curve with these values. Now I want to find all the values of x where local maxima exists on that curve. How it will be done? Please give a method to fit the best possible curve with these x and y…
prtkp
  • 537
  • 1
  • 6
  • 8
-2
votes
1 answer

Plotting Derivative of data in matlab

I am pretty new to Matlab and i have some Current Vs times stored under a structure in a matlab file. What i am trying to plot is current vs time along with the first derivative of it. (di/dt). I used the diff function but the plot seems to be…
vittal rao
  • 17
  • 1
  • 8
-2
votes
2 answers

hello, I am trying to write a simple program in python that will calculate the derivative of a polynomial function

I am trying to write a simple program that will calculate the derivative of a polynomial function. Here is what I have. It may not be pretty, but for some reason the for loop is not iterable (whatever that means). def main(): n =…
-2
votes
2 answers

Derivative of the polynomial (c++)

I am expected to create a simple c++ program that have a class named polynomial. It will create dynamic array has 6 data in it and every ones index is exponent of the term and its value is coefficient. Everything is good till I face with that: "a…
-3
votes
1 answer

how do i approach "h" parameter to zero in derivative?

I have a few problem with my derivative because it shows me an error when I approach Denominator to zero . func derivativeOf(fn: (Double) -> Double, atX x: Double) -> Double { let h -> 0 return (fn(x + h) - fn(x))/h } i know my syntax…
-3
votes
1 answer

How should you calculate partial derivative ∂f/∂x using first the chain rule & directly in MAPLE?

If f(u,v) = vsinu+v^2, u(x,y)=tan^−1(y/x), v=sqrt(x^2 + y^2) Calculate using chain rule and directly substituting for u(x,y), v(x,y).
zae
  • 1
-3
votes
2 answers

Finding increases from 'baseline' in the graph, not sure how to do

I want to write an algorithm that spits out the points highlighted by arrows. I've tried using a second derivative but it returns a similar plot to the one above and not sure how to use it. Hi, sorry about that, I don't want the peaks, I want the…
-3
votes
4 answers

A function generating the derivative of f

I´m trying to construct a function that return the derivate of f, a function of one variable. The return value should be a function approximating the derivative of f' using the symmetric difference quotient, so that the returned function will…
Alexander West
  • 81
  • 1
  • 1
  • 9
-3
votes
1 answer

How to compute a polynomial derivative?

I am trying to write a function for calculating the derivative of a polynomial function. degr is the degree of the polynomial, arr is the array that contains the coefficients of the polynomial. I want to calculate the derivative at point t. Below is…
allstar
  • 109
  • 3
  • 12
1 2 3
56
57