Solve using MATLAB and provide code please
%%% Matlab function
function dfdx = FoPtdr(Fun,x0)
h=x0/100;
dfdx=(Fun(x0-2*h)-8*Fun(x0-h)+8*Fun(x0+h)-Fun(x0+2*h))/(12*h);
end
%%%% Test
clc;
close all;
clear all;
format long;
Fun=@(x) x^3*exp(2*x);
x0=0.6;
(a)
>> FoPtdr(Fun,x0)
ans =
5.020016698059604
>>
(b)
>> Fun=@(x) x^3;
>> x0=2;
>> FoPtdr(Fun,x0)
ans =
12.000000000000027
(c)
%%%
syms x;
f=x^3*exp(2*x);
df=subs(diff(f),x0);
fprintf('Actual value = %f Error =%1.10f
\n',df,abs(x1-df));
OUTPUT:
Actual value = 5.020017 Error =0.0000000891
>>
(d) and (e)
clc;
close all;
clear all;
format long;
Fun=@(x) 3^x/x^2;
x0=2.5;
x1=FoPtdr(Fun,x0);
fprintf('Using function FoPtdr dydx=%f \n',x1);
syms x;
f=3^x/x^2;
df=subs(diff(f),x0);
fprintf('Actual value = %f Error =%1.10f \n',df,abs(x1-df));
OUTPUT:
Using function FoPtdr dydx=0.744785
Actual value = 0.744785 Error =0.0000000174
>>
4. The first derivative of a function f(x) at a point x = xo can be approximated with the four-po...
1. Give an example of a differentiable function f and a point xo in the domain of f such that f(xo) # Poo(xo), where Poo is the Taylor series of f centered at x = 1. (To be perfectly precise, f(x0) + P(xo) means that lim En(xo) = 0, where En(xo) is the usual error function evaluated at xo.) n- 00 extex 2. The function cosh(x) = = - is called 2 the hyperbolic cosine and has many applications in...
4. (a) A function f has first derivative f'(x) and second derivative 2 f" (x) It is also known that the function f has r-intercept at (-3,0), and a y-intercept at (0,0) (i) Find all critical points, and use them to identify the intervals over which you will examine the behaviour of the first derivative. 3 marks] (ii) Use the f(x), and the First Derivative Test to classify each critical point.[3 marks] (iii) Use the second derivative to examine the...
(a) A function / has first derivative f'(z) = and second derivative 3) f"(x) It is also known that the function f has r-intercept at (-3,0), and a y-intercept at (0,0) (i) Find all critical points, and use them to identify the intervals over which you will examine the behaviour of the first derivative ii) Use the f'(), and the First Derivative Test to classify each critical point. (ii) Use the second derivative to examine the concavity around critical points...
4. (a) A function f has first derivative f' (x) - and second derivative f"(x) It is also known that the function f has r-intercept at (-3,0), and a y-intercept at (0,0) (i) Find all critical points, and use them to identify the intervals over which you will examine the behaviour of the first derivative. 3 marks] (ii) Use the f'(x), and the First Derivative Test to classify each critical point. 3 marks (iii) Use the second derivative to examine...
(1 point) Below is the graph of the derivative f'(x) of a function defined on the Interval (0,8). You can click on the graph to see a larger version in a separate window. n (A) For what values of x in (0,8) is f(x) increasing? Answer: Note: use interval notation to report your answer. Click on the link for details, but you can enter a single interval, a union of intervals, and if the function is never increasing, you can...
)and second derivative 4. (a) A function f has first derivative f'(x) f(E) It is also known that the function f has r-intercept at (-3,0), and a y-intercept at (0, Q) (i) Find all critical points, and use them to identify the intervals over which you will examine the behaviour of the first derivative [3 marks] (ii) Use the f(x), and the First Derivative Test to classify each critical point.[3 marks] (ii) Use the second derivative to examine the concavity...
Exam 2018s1] Consider the function f R2 R, defined by f(x,y) =12y + 3y-2 (a) Find the first-order Taylor approximation at the point Xo-(1,-2) and use it to find an approximate value for f(1.1,-2.1 (b) Calculate the Hessian 1 (x-4)' (Hr(%)) (x-%) at X-(1-2) c) Find the second-order Taylor approximation at xo- (1,-2) and use it to find an approximate value for f(1.1,-2.1 Use the calculator to compute the exact value of the function f(11,-2.1) Exam 2018s1] Consider the function...
CALCULUS Consider the function f : R2 → R, defined by ï. Exam 2018 (a) Find the first-order Taylor approximation at the point Xo-(1, -2) and use it to find an approximate value for f(1.1, -2.1 (b) Calculate the Hessian ã (x-xo)' (H/(%)) (x-xo) at xo (1,-2) (c) Find the second-order Taylor approximation at Xo (1,-2) and use it to find an approximate value for f(1.1, -2.1) Use the calculator to compute the exact value of the function f(1.1,-2.1) 2....
4. (a) A function f has first derivative f (r) - and second derivative f"(z) It is also known that the function f has r-intercept at (-3,0), and a y-intercept at (0,0) (i) Find all critical points, and use them to identify the intervals over which you will examine the behaviour of the first derivative (ii) Use the f'(x), and the First Derivative Test to classify each critical point. (iii) Use the second derivative to examine the concavity around critical...
show all work. if possible do both, or explanation Find the limit L for the given function f, the point xo, and the positive number e. Then find a number o> 0 such that, for 22) f(x) = (24-3x, x0 =-4, ε = 0.3 22) 23) f(x) = 6x + 3, x0 =-5, ε = 0.06 23) Find the limit L for the given function f, the point xo, and the positive number e. Then find a number o> 0...