Receiving Helpdesk

how do you graph a derivative on excel

by Miss Madeline Barton Published 3 years ago Updated 3 years ago

  1. Set Your X Values. First thing you're going to need is a spreadsheet program like Excel, Numbers, or OpenOffice. ...
  2. Plug in Your Function and Graph It. Now just plug in your function so that every cell is a function of the one next to it. ...
  3. Differentiate It! Plotting the derivative is relatively easy. A derivative has the form "dy/dx", in other words, the change in y over the change in x.
  4. Integrate! An integral is essentially the area between a curve and the x-axis. There's also a "negative area" when the function is negative.
  5. Let's Do a Definite Integral. If you're in a calculus course, you're probably going to be asked to do a few definite integrals. ...

Open the "Insert" tab on the Ribbon and click "Charts," "Scatter" and then "Scatter with Smooth Lines," or another type of scatter chart if desired. Excel will display your original formula as "Series 1" and your derivative as "Series 2."

Full Answer

How do you calculate derivative in Excel?

Spreadsheet Calculus: Derivatives and Integrals

  1. Set Your X Values. First thing you're going to need is a spreadsheet program like Excel, Numbers, or OpenOffice. ...
  2. Plug in Your Function and Graph It. Now just plug in your function so that every cell is a function of the one next to it. ...
  3. Differentiate It! Plotting the derivative is relatively easy. ...
  4. Integrate! ...
  5. Let's Do a Definite Integral. ...

How to calculate a derivative in Excel?

x a vector of the points x -coordinates. y corresponding vector of the points y -values. p the point at which to compute the derivative. If p is a vector of points, run DERIVXY as an array formula . n order of the derivative. Enter a value of 1, 2, or 3. Default is 1. ctrl a set of key/value pairs for algorithmic control as detailed below.

What is the derivative function in Excel?

With options, you can elect to weigh the data points, use exact or smooth least square fit, as well as specify end points slopes if known. DERIVXY automatically sorts your data points and averages the y values if your data set contains duplicate x points.

How to plot an equation in Excel?

  • Regression Analysis in Excel
  • Explanation of Regression Mathematically
  • How to Perform Linear Regression in Excel? #1 – Regression Tool Using Analysis ToolPak in Excel #2 – Regression Analysis Using Scatterplot with Trendline in Excel

How to Differentiate in Excel

This is the kind of derivative calculation that is typically performed on experimental data. It can be especially useful when you were not able to directly measure the quantity of interest, but were able to measure its integrand.

Excel Derivative Formula using the Finite Difference Method

The method used to perform this calculation in Excel is the finite difference method.

Example: Calculate a Derivative in Excel

Let’s look at how to calculate a derivative in Excel with an example. We can use the position data that was calculated by integrating velocity data in the previous post and use it to calculate both the velocity and the acceleration. As a check, we will compare the calculated acceleration data to the initial acceleration data.

Results

In theory, if we differentiate data obtained by integration then we should end up back at the original data. Of course, all numerical methods impart some kind of error into the data.

Wrap Up

If you’ve followed along with the instructions, then congratulations! You’ve just performed numerical differentiation using Excel. Calculating a derivative in Excel isn’t that difficult once you know how to do it.

Step 1: Set Your X Values

First thing you're going to need is a spreadsheet program like Excel, Numbers, or OpenOffice. If you don't know how to use any of these programs, don't worry, it's pretty easy learning. To demonstrate, we're going to use the equation y=2x 3 +6x 2 -12x+4. It's the same equation shown in the picture below, which looks a lot nicer.

Step 2: Plug in Your Function and Graph It

Now just plug in your function so that every cell is a function of the one next to it. Wherever you have an undefined variable (x) just put in B1,B2, etc depending on which cell you're working on.

Step 3: Differentiate It!

Plotting the derivative is relatively easy. A derivative has the form "dy/dx", in other words, the change in y over the change in x. The change in x is easy, and it never changes, it's just what we wrote into cell A2, which in this case is 0.1. The change in y is simply going to be the difference between the cells, which isn't hard to figure out.

Step 4: Integrate!

An integral is essentially the area between a curve and the x-axis. There's also a "negative area" when the function is negative. The integral is the net area beneath a curve. That should be pretty easy to calculate. We're finding the area using a method of approximation known as Riemann sums.

Step 5: Let's Do a Definite Integral

If you're in a calculus course, you're probably going to be asked to do a few definite integrals. Basically you integrate from one x value to another. Using the integral you just made, checking your answer can be pretty easy. For example, let's try the integral shown below. This is the one we just plotted earlier.

image
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 1 2 3 4 5 6 7 8 9