Question: (Using Matlab please) Consider a function defined as follows: y = 5e x + 2x 2 + 2 Where x is a vector with values
(Using Matlab please)
Consider a function defined as follows: y = 5e x + 2x 2 + 2 Where x is a vector with values ranging from 0 to 5, in increments of 0.1. Find the derivative of the above function using backward differentiation and forward differentiation. Plot the function y and y 0 against x, on the same graph for backward differentiation and then for forward differentiation. Give the graph an appropriate title and labels for the x and y axes. Add a boxed legend at the top right portion of the plot. Find the first zero crossing of the derivative function. For full marks, find this value from the data
(Q2): Consider a function defined as follows: y=5e1 +2x2 +2 Where is a vector with values ranging from 0 to 5, in increments of 0.1 Find the derivative of the above function using backward differentiation and forward differentiation. Plot the function y and y' against x, on the same graph for backward differentiation and then for forward differentia tion. Give the graph an appropriate title and labels for the x and y axes. Add a boxed legend at the top right portion of the plot. Find the first zero crossing of the derivative function. For full marks, find this value from the data
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
