Question

In: Computer Science

Consider the following equation: f’(x) = 2.5x2 + π2 + e3 Assume f(0) = 0, for...

Consider the following equation: f’(x) = 2.5x2 + π2 + e3

Assume f(0) = 0, for x = -2 to 2, plot f’(x), its anti-derivative f(x) and the intersection point(s) between f’(x) and f(x) on the graph. Label the plots and provide a suitable legend. Then print out ONLY the intersection point(s) for f’(x) and f(x) for the above specified range. NOTE: Symbolic toolbox cannot be used for the following questions. Solve in Matlab language please.

Solutions

Expert Solution

`Hey,

Note: If you have any queries related the answer please do comment. I would be very happy to resolve all your queries.

clc%clears screen
clear all%clears history
close all%closes all files
format long
g=@(x) 2.5*x.^2+pi^2+exp(1)^3;
f=@(x) 2.5*x.^3/3+pi^2*x+exp(1)^3*x;
hold on;
fplot(f,[-2,2]);
fplot(g,[-2,2]);
legend('f(x)','f''(x)');
disp('Point of iintersection i')
fzero(@(x) f(x)-g(x),2)

Kindly revert for any queries

Thanks.


Related Solutions

Consider the nonlinear equation f(x) = x3− 2x2 − x + 2 = 0. (a) Verify...
Consider the nonlinear equation f(x) = x3− 2x2 − x + 2 = 0. (a) Verify that x = 1 is a solution. (b) Convert f(x) = 0 to a fixed point equation g(x) = x where this is not the fixed point iteration implied by Newton’s method, and verify that x = 1 is a fixed point of g(x) = x. (c) Convert f(x) = 0 to the fixed point iteration implied by Newton’s method and again verify that...
Suppose f is a twice differentiable function such that f′(x)>0 and f′′(x)<0 everywhere, and consider the...
Suppose f is a twice differentiable function such that f′(x)>0 and f′′(x)<0 everywhere, and consider the following data table. x      0       1       2 f(x)   3       A       B For each part below, determine whether the given values of A and B are possible (i.e., consistent with the information about f′and f′′ given above) or impossible, and explain your answer. a)A= 5, B= 6 (b)A= 5, B= 8 (c)A= 6, B= 6 (d)A= 6, B= 6.1 (e)A= 6, B= 9
Let f (x) = ex - 4x2 a) Show that equation f (x) = 0 has...
Let f (x) = ex - 4x2 a) Show that equation f (x) = 0 has three real solutions. b) Use the Newton Method to calculate the largest of the solutions with precision. preset of 0.01.
f(x)=0 if x≤0, f(x)=x^a if x>0 For what a is f continuous at x = 0...
f(x)=0 if x≤0, f(x)=x^a if x>0 For what a is f continuous at x = 0 For what a is f differentiable at x = 0 For what a is f twice differentiable at x = 0
Consider the function f(x)f(x) whose second derivative is f''(x)=5x+10sin(x)f′′(x)=5x+10sin(x). If f(0)=4f(0)=4 and f'(0)=4f′(0)=4, what is f(5)f(5)?....
Consider the function f(x)f(x) whose second derivative is f''(x)=5x+10sin(x)f′′(x)=5x+10sin(x). If f(0)=4f(0)=4 and f'(0)=4f′(0)=4, what is f(5)f(5)?. show work
Find f. f ''(x) = x−2,    x > 0,    f(1) = 0,    f(4) = 0 f(x)=
Find f. f ''(x) = x−2,    x > 0,    f(1) = 0,    f(4) = 0 f(x)=
Consider a function f(x) which satisfies the following properties: 1. f(x+y)=f(x) * f(y) 2. f(0) does...
Consider a function f(x) which satisfies the following properties: 1. f(x+y)=f(x) * f(y) 2. f(0) does not equal to 0 3. f'(0)=1 Then: a) Show that f(0)=1. (Hint: use the fact that 0+0=0) b) Show that f(x) does not equal to 0 for all x. (Hint: use y= -x with conditions (1) and (2) above.) c) Use the definition of the derivative to show that f'(x)=f(x) for all real numbers x d) let g(x) satisfy properties (1)-(3) above and let...
1. Consider the following function F(x) = {2x / 25 0<x<5            {0 otherwise a) Prove...
1. Consider the following function F(x) = {2x / 25 0<x<5            {0 otherwise a) Prove that f(x) is a valid probability function. b) Develop an inverse-transformation for this function. c) Assume a multiplicative congruential random number generator with parameters: a: 23, m: 100, and xo: 17. Generate two random variates from the function for (x).
4. Consider the triangular probability distribution with PDF f(x) = 0 if x <= 0 or...
4. Consider the triangular probability distribution with PDF f(x) = 0 if x <= 0 or x >= 4, x/2 if 0 < x <= 1, (4-x)/6 if 1 < x < 4. (a) Obtain the CDF F (b) Obtain its inverse F^-1 (c) Describe the inverse CDF simulation method for this given problem.
Find f(x) for the following function. Then find f(6), f(0), and f(-7). f(x)=-2x^2+1x f(x)= f(6)= f(0)=...
Find f(x) for the following function. Then find f(6), f(0), and f(-7). f(x)=-2x^2+1x f(x)= f(6)= f(0)= f(-7)=
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT