Numerical discretization
Objective: %computation of derivative both numerically and analytically% In first order approximation the value of dx is increases the error decreases.%In second order approximation the value of dx is increases the error increases.%In fourth order approximatiion the value od dx is increases the error will remains zero.the…