Questions tagged [differentiation]

The process of finding a derivative.

In calculus, a branch of mathematics, the derivative is a measure of how a function changes 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.

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.

236 questions
0
votes
0 answers

How to get all the zeroes for the derivative of a function using DualNumbers

The original problem I had was, given an interval, [a, b] and a function f(x) and its derivative continuous over that interval, find the minimum and maximum of the derivative over that integral, (and since it's continuous, every single value of the…
0
votes
0 answers

Automatic Differentiation in R (or through any other means?)

I want to calculate the derivative of the following function: (plogis(-0.17283 + 0.0000471*x[1])*exp(9.53643)*(x[1])^0.468)+ (plogis(-0.17283 + 0.0000471*x[2])*exp(9.53643)*(x[2])^0.468)+ (plogis(-0.17283 +…
0
votes
1 answer

Differentiating pnorm() in R to show that the PDF of a continuous variable is the derivative of the CDF

I need to demonstrate that the probability density function is the derivative of the CDF. Any distribution will do, but I have been trying with the normal. I have got as far as: set.seed(53) b <- rnorm(500) db <- density(b) plot(db) Then I can…
Reader 123
  • 285
  • 1
  • 7
0
votes
1 answer

How to differentiate an expression?

Here's the script of the basic Bollinger Bands Width indicator (plus my commented explanation): //@version=5 indicator(title="Bollinger Bands Width", shorttitle="BBW", format=format.price, precision=2, timeframe="", timeframe_gaps=true) length =…
Vendrel
  • 865
  • 9
  • 19
0
votes
1 answer

Plotting a graph for the double differentiation of a function on OCTAVE

trying to plot the function for the double differentiation of a function on octave with no luck. I am trying to plot the double derivative of sin(x) in this case. I know how to find the derivative of sin(x) on octave x1 = linspace(-2*pi, 2* pi); y1…
0
votes
2 answers

How to differentiate a expression with respect to a symbol that is not a free symbol of the expression in SymPy?

I have the following equation, like this: y = 3x2 + x Then, I want to differentiate the both side w.r.t the variable t with sympy. I try to implement it in the following code in JupyterNotebook: >>> import sympy as sp >>> x, y, t = sp.symbols('x y…
Jet C.
  • 126
  • 8
0
votes
2 answers

Function to invert Eigen matrix without branching statements for auto differentiation

I need to invert an Eigen matrix (9x9 in my particular case) as a part of code that I want to automatically differentiate using CppAD. For this to succeed the code executing the inversion can not contain any branching like for example if or switch…
Manumerous
  • 455
  • 6
  • 21
0
votes
0 answers

Numerical differentiation of a function of many variables

I have to count this. in this way I chose the second method. But I'm not at all sure if I did it right.But I think not.Because I don't even understand how to count it on a piece of paper. At the same time, I was told to calculate it with a given…
user17059077
0
votes
1 answer

How is it possible to define a equation, differentiate and plot it, using Sympy in Jupyter Nootebook?

In Jupyter Notebook i would like to define a equation, differentiate and plot the equation. import sympy as sp from IPython.display import display sp.init_printing() import matplotlib.pyplot as plt import numpy as np x = sp.symbols('x') def…
0
votes
0 answers

Plotting a derivative

I have an implicit function, and I'm trying to plot the derivative of the solution of this function. The function is: p = \[Phi]/(1/\[Beta]) + ((1 - \[Phi]) \[Phi] (1 - \[Lambda]) \ \[Beta])/(((W - A) 1/\[Beta] + \[Phi] A/ p) 1/\[Beta] +…
0
votes
0 answers

How to use np.gradient on multidimensional data?

There exist a lot of questions on this, but I can't find one that describes this particular use case. I have a matrix P, which gives a scalar value in a 3D field of size (dx,dy,dz)=(360, 720, 30) over 41 timesteps. That is, >>> np.shape(P) (41, 30,…
pretzlstyle
  • 2,774
  • 5
  • 23
  • 40
0
votes
1 answer

sympy - differentiation over an abstract component

I'm working differentiating in sympy, thanks to this answer I'm almost done, but not quite. I have the following code in variations: From the answer x = IndexedBase('x') alpha, beta, gamma = symbols('alpha beta gamma', integer=True) r =…
Bbllaaddee
  • 145
  • 1
  • 9
0
votes
1 answer

How can I calculate the analytical derivative of a function?

How can I analytically differentiate in Python? E.g: d/dx (x^3 * L * lambda /(pi*d)) Additional:
Karl
  • 59
  • 7
0
votes
0 answers

matlab nonlinear equations

my code is: function F=root4d(x) W1 = 0.928*(6-0.928)/tan(x(3))*20; W2 = (6-0.928)*((6-0.928)/(tan(x(3))))/2*20; F(1)= x(4)*cos(10*pi/180)+x(1)*cos(x(3))-x(2)*sin(x(3)); F(2)=…
0
votes
0 answers

Finding largest cylinder to be placed in a sphere of a given radius

Take both volumes, viz.: pi r^2 h to be < 4/3 pi a^3, to distinguish between radii of the 2 figures, let us call the radius of the sphere a pi is divided out r^2 h < 4/3 a^3 It is time to take the derivate in order to find the maximal r, but the 4/3…
Versteher
  • 23
  • 5