Using Finite Difference Method In Excel

Click For Summary
SUMMARY

The discussion focuses on utilizing the Finite Difference Method (FDM) in Excel to approximate derivatives of the function y = x³ - x² + 0.5x over the range x = [0,1] with a step size of 0.1. Three finite difference approximations are employed: forward, backward, and central differences. The analytical derivative, calculated as dy/dx = 3x² - 2x + 0.5, serves as a benchmark for comparing the accuracy of the numerical methods. Participants emphasize the importance of understanding the step size "h" in the calculations.

PREREQUISITES
  • Understanding of finite difference approximations: forward, backward, and central differences.
  • Proficiency in Excel for creating spreadsheets and plotting graphs.
  • Basic knowledge of calculus, specifically differentiation.
  • Familiarity with the function y = x³ - x² + 0.5x and its analytical derivative.
NEXT STEPS
  • Research how to implement finite difference methods in Excel using formulas.
  • Learn how to plot graphs in Excel, including adding legends for clarity.
  • Explore the concept of numerical differentiation and its applications in various fields.
  • Investigate the accuracy of finite difference methods compared to analytical differentiation.
USEFUL FOR

Students, educators, and professionals in mathematics, engineering, and data analysis who are interested in numerical methods and their applications in Excel.

elliottmarter
Messages
13
Reaction score
0
------Question------​
a) Research the three finite difference approximations mentioned above (forward, backward and central). Use a spreadsheet to demonstrate each of these numerical methods for the function below.

y=x3 −x2 +0.5x​

Investigate the derivative over the range x = [0,1], using finite differences of 0.1

b)Plot the results from each method onto one graph, along with the analytical derivative of the function. Make sure your plot includes a legend.

------Answer------​

i can see that this is a really (really) easy question if you know how to utilise the finite differences method in excel, however as you can see from the question were weren't taught it and we have to research it, so i went to wikipedia (obviously!)

so anyway i see on wikipedia they have this:
4459049109_1b6568e49a_o.jpg


which i can partially understand, you just insert your function where it says f(x) and then link you x values to a table of values 0-1 in 0.1 steps, but i don't understand what the "h" stands for, then for part b i guess by analytical derivative it means just standard differentiation so:

y=x3 −x2 +0.5x

[tex]\stackrel{dy}{dx}[/tex]=3x2-2x+0.5​


if anyone could lend a hand or a link to a good "dummies guide" web page I'd be very grateful.

Thanks
Elliott M
 
Physics news on Phys.org
h is your step. so in your case h = .1

That is kind of intuitive when you look at the equations. For the forward difference calculation you are adding +h which gives you the "forward difference" while for the backward difference calculation you subtract h in order to get the backward difference. Of course the central difference you add and subtract half your step to be in the middle. As for part B you are correct. The point of this exercise is probably to compare the accuracy of analytical differentiation with numerical differentiation (finite difference).
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
2
Views
1K
Replies
6
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K