Concept explainers
The first derivative
where h is a small number relative to x0. Write a user-defined function (see Section 7.9) that calculates the derivative of a math function f(x) by using the four-point central difference formula. For the user-defined function name, use dfdx=FoPtder (Fun, x0), were Fun is a name for the function that is passed into FoPtder, and x0is the point where the derivative is calculated. Use h=x0/100 in the four-point central difference formula. Use the user-defined function FoPtder to calculate the following:
(a) The derivative of f(x) = x3e2x at x0= 0.6.
(b) The derivative of
In both cases compare the answer obtained from FoPtder with the analytical solution (use format long).
Trending nowThis is a popular solution!
Chapter 7 Solutions
Matlab
- Find all points on the graph of fx=x3+9x2+19x-10 where the slope of the tangent line is -5.arrow_forwardUse the rules for derivatives to find the derivative of each function defined as follows. y=-7x2e-3xarrow_forwardDetermine whether each of the following statements is true or false, and explain why. The derivative of 10x is x10x-1.arrow_forward
- Algebra & Trigonometry with Analytic GeometryAlgebraISBN:9781133382119Author:SwokowskiPublisher:CengageCalculus For The Life SciencesCalculusISBN:9780321964038Author:GREENWELL, Raymond N., RITCHEY, Nathan P., Lial, Margaret L.Publisher:Pearson Addison Wesley,Big Ideas Math A Bridge To Success Algebra 1: Stu...AlgebraISBN:9781680331141Author:HOUGHTON MIFFLIN HARCOURTPublisher:Houghton Mifflin Harcourt
- College AlgebraAlgebraISBN:9781305115545Author:James Stewart, Lothar Redlin, Saleem WatsonPublisher:Cengage Learning