Numerical differentiation using forward, backward and central finite difference

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 9K views
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