Numerical differentiation using forward, backward and central finite difference

Click For Summary
SUMMARY

The discussion focuses on calculating the first derivative of the function f(x) = 5(x^1.3) + 1.5(7x - 3) + 3(e^−x) + ln(2.5(x^3)) using numerical differentiation techniques: forward difference approximation, backward difference approximation, and central finite difference approximation. The user encounters a challenge at x=0 due to the undefined nature of ln(0). The consensus suggests excluding points where ln(0) occurs to adhere to the requirement of finding derivatives at all possible points within the interval [0, 6]. MATLAB is mentioned as a tool for implementing these calculations.

PREREQUISITES
  • Understanding of numerical differentiation techniques: forward, backward, and central finite differences
  • Familiarity with logarithmic functions and their properties, specifically ln(x)
  • Basic calculus concepts, particularly derivatives
  • Proficiency in MATLAB for implementing numerical methods
NEXT STEPS
  • Implement forward difference approximation in MATLAB for the given function
  • Explore backward difference approximation techniques and their applications
  • Learn about central finite difference methods and their accuracy
  • Investigate handling undefined values in numerical computations
USEFUL FOR

Students studying numerical methods, mathematicians, and anyone interested in applying numerical differentiation techniques in MATLAB.

Pricey89
Messages
3
Reaction score
0
ive been given this question for a uni assignment:

given the function:

f (x) = 5(x^1.3) +1.5(7x − 3)+ 3(e^− x) + ln(2.5(x^3))

find the first derivative at all possible points within the interval [0, 6], with step length h = 1 for:
forward difference aproximation, backward difference aproximation and central finite difference aproximation.

having a bit of trouble with the question... pretty sure i know how to do most of it but not sure what to do when x=0 because ln(0) is undefined or -infinity...

any ideas?

thanks
 
Physics news on Phys.org
Well, it says "for all possible points" which would exclude any points where ln(0) appears.
 
Pricey89 said:
ive been given this question for a uni assignment:

given the function:

f (x) = 5(x^1.3) +1.5(7x − 3)+ 3(e^− x) + ln(2.5(x^3))

find the first derivative at all possible points within the interval [0, 6], with step length h = 1 for:
forward difference aproximation, backward difference aproximation and central finite difference aproximation.

having a bit of trouble with the question... pretty sure i know how to do most of it but not sure what to do when x=0 because ln(0) is undefined or -infinity...

any ideas?






thanks


LOL I'm guessing you're from brunel :P
I've figured out how to do the hand calculations but not the MATLAB part
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K