Can You Calculate the Derivative of a Function that is a Sum of n Terms?

  • Thread starter jimmy1
  • Start date
  • Tags
    Derivative
In summary, it is possible to calculate the derivative of a function of the form \sum_{i=1}^n f(i) with respect to n. However, this requires defining the sum for non-integer values of n and there may be cases where this cannot be done. One method is to extend the definition of the sum to include infinitely many terms and then differentiate term by term, with certain conditions needing to be met for justification.
  • #1
jimmy1
61
0
Is it possible to calculate the derivative of a function of the form [tex] \sum_{i=1}^n f(i) [/tex] with respect to n.

That is, I have an function that is the sum of n terms and there is no closed form expression for it, and I need to get the derivative of the function w.r.t to n. I've tried to do it in Mathematica but just get error messages all the time, so is there any way to get the derivative w.r.t n of such a function?
 
Physics news on Phys.org
  • #2
jimmy1 said:
Is it possible to calculate the derivative of a function of the form [tex] \sum_{i=1}^n f(i) [/tex] with respect to n.

That is, I have an function that is the sum of n terms and there is no closed form expression for it, and I need to get the derivative of the function w.r.t to n. I've tried to do it in Mathematica but just get error messages all the time, so is there any way to get the derivative w.r.t n of such a function?

It is possible, but you need to define the sum for non itegral n in some sensable way. I do not believe this can be done in all cases. In particular the extension should be as one expects. For example convergence and consistensy allowing take a function
[tex]g(n)= \sum_{i=1}^n f(i) [/tex]
defined for n=0,1,2,3,4,...
and extend the definition to
[tex]g(n)= \sum_{i=1}^{\infty} [f(i)-f(i+n)] [/tex]
Where we allow n to take new values
Then we may formally differentiate term by term to obtain
[tex]g'(n)= -\sum_{i=1}^{\infty} f'(i+n) [/tex]
Which under favorable conditions (i.e. uniform convergence) we can justify
 
Last edited:
  • #3


Yes, it is possible to calculate the derivative of a function of the form \sum_{i=1}^n f(i) with respect to n. This is known as the discrete derivative or the finite difference. It is commonly used in numerical analysis and can be calculated using the forward or backward difference formula. However, since there is no closed form expression for the function, the derivative will also be in a discrete form and cannot be simplified further. Additionally, the derivative will depend on the specific values of n and f(i), so it may not be a general expression. If you are encountering error messages in Mathematica, it could be due to the complexity of the function or incorrect syntax. I suggest seeking help from a mathematician or a forum specific to Mathematica to troubleshoot the issue.
 

FAQ: Can You Calculate the Derivative of a Function that is a Sum of n Terms?

What is a derivative?

A derivative is a mathematical concept that represents the rate of change of a function at a specific point. It is the slope of the tangent line to the function at that point.

What is the purpose of calculating a derivative?

Calculating a derivative allows us to analyze the behavior of a function and understand how it changes over time. It is used in many fields, including physics, economics, and engineering, to model and predict the behavior of systems.

How do you calculate a derivative?

The derivative of a function is calculated by finding the limit of the slope of the secant line between two points on the function as the distance between those points approaches zero. This is also known as the first principle of differentiation.

What is the chain rule in differentiation?

The chain rule is a rule that allows us to find the derivative of a composite function. It states that the derivative of a composite function is equal to the derivative of the outer function multiplied by the derivative of the inner function.

What are some common applications of derivatives?

Some common applications of derivatives include optimization problems, finding maximum and minimum values of a function, and determining the velocity and acceleration of an object in physics. It is also used in economics to find the marginal cost and revenue of a product.

Back
Top