How to Make First Derivative Graph on Excel (With Easy Steps)

We’ll consider a simple dataset that contains the Price and the Demand columns. The Price will be in Dollars and the Demand will be in the number of units.

how to make first derivative graph on excel


Step 1 – Inserting Input Data

  • Insert the Price data as in the image below in cells B5 to B10.
  • Format the cells in column B as Accounting.

inserting price to make first derivative graph on excel

  • Insert the Demand data in cells C5 to C10.


Step 2 – Creating Variations Columns

  • Go to cell D5 and type 0.
  • Use in the following formula in cell D6:
=B6-B5
  • Press the Enter key and copy the formula to the cells below. This will provide the Price Variation.

price variation to make first derivative graph on excel

  • Insert the following formula in cell E6:
=C6-C5
  • Press Enter and copy this formula to the other cells in the column.


Step 3 – Finding the First Derivative

  • Type 0 in cell F5.
  • Insert the following formula in cell F6:
=E6/D6
  • Press Enter and copy this formula to the cells below using the Fill Handle.

calculation to make first derivative graph on excel


Step 4 – Generating the First Derivative Graph

We will use a Scatter plot to clearly visualize the curve.

  • Select the cells from B5 to B10 and F5 to F10 while holding the Ctrl key.

selecting data to make first derivative graph on excel

  • Go to the Insert tab and, from the Scatter drop-down, select Scatter with Smooth Lines and Markers.

scatter chart to make first derivative graph on excel

  • This will generate the derivative graph reflecting the change in Demand with respect to Price.


Derivative Function in Excel to Find Slope

The SLOPE function in Excel returns the slope of a regression line based on some y and x values. This slope is actually the measure of the steepness of the data variation. In Mathematics, we use the formula as rise over run which is the change in y values divided by the change in x values.

Derivative Function in Excel to Find Slope

Steps:

  • Navigate to cell C10 and insert the following formula:
=SLOPE(C5:C9,B5:B9)

Derivative Function in Excel to Find Slope

  • Press the Enter key and you will get the slope for the input data.


Things to Remember

  • If there is only one set of points, the SLOPE function will return #DIV/0!
  • If the number of y and x values are not equal, the formula will return #N/A.
  • To copy a formula to other cells, you can double-click on the Fill Handle instead of dragging.

Download the Practice Workbook


<< Go Back to | Calculus in Excel | Excel for Math | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Nazmul Hossain Shovon
Nazmul Hossain Shovon

Nazmul Hossain Shovon, a BUET graduate in Naval Architecture and Marine Engineering, embarked on his career with 8 months dedicated to the Exceldemy project's triumph. Transitioning into a Software Developer role, he specialized in web add-in development. At Exceldemy, he authored about 125 blog articles and solved many visitors’ problems, refining his writing skills and delving into Excel-related topics. With a primary passion for programming and software development, Shovon continually explores new horizons, fostering professional growth in his... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo