Calculate the derivation of the function by hand

Assignment Help Mechanical Engineering
Reference no: EM131328019

1) Calculate the following for the function f(x) = e-3x - 2x.

a. Calculate the derivation of the function by hand. Write a MATLAB function that calculates the derivative of this function and calculate the derivative at x = 0.5.

b. Develop an M-to evaluate the centered finite-difference approximations, at x = 0.5. Assume that dx = 0.1.

c. Repeat part (b) for the second-order forward and backward differences. Again Assume that dx = 0.1.

d. Using the results obtained in parts b and C, calculate the percentage error between actual value and the results of (b) and (c).

Use the following formulas:

Centered diff. df/dx = (f(i+1) -  f(I - 1))/2dx

Fwd. diff. df/dx  = (-f(i+2) + 4f (i+1)- 3f(i))/2dx

Bkwd. diff. df/dx = (3f(i)-4f(i-1)+f(i-2))/2dx

2) a. Use the three-point Gauss-Legendre formula to evaluate the following function between 0 and 0.8

f(x) = 3x + 5x2

Remember that you have to make a change of variable to make the integration between -1 to 1. Do all your calculations in MATLAB.

b) Calculate the value of the integral using a MATLAB built in function of your choosing.

1061_Table.png

3) Use any Matlab built-in function to solve the following differential equation in the range of t = 0 to 10 and plot the solution.

y' = 4e0.8t - 5y,   y(0) = 2.

Reference no: EM131328019

Questions Cloud

Determine the individual pressure drops to the nearest tenth : Determine the individual pressure drops to the nearest tenth (0.1) psi and the gage pressures to the nearest whole (1) psi
Learning in traditional classroom versus in online setting : Identify the primary differences between learning in a traditional classroom versus learning in an online setting.
Create a diagram that illustrates willowmills operations : Create a diagram that illustrates Willowmill's operations around the world. Include the tax rates in each country and the cost to manufacture the products in each area.
Provide some background about william cope moyers : Write a paper relating the information from the book Broken to any course content we have covered.- Provide some background about William Cope Moyers.
Calculate the derivation of the function by hand : Calculate the following for the function f(x) = e-3x - 2x. Calculate the derivation of the function by hand. Write a MATLAB function that calculates the derivative of this function and calculate the derivative at x = 0.5
Organize the presentation so that the information is clear : Organize the presentation so that the information is clear and visually appealing. Use technology and information resources to research issues in information systems.
Sketch a graph of h versus x : A box of fixed volume V has a square base with side length x. Write a formula for the height, h, of the box in terms of x and V. Sketch a graph of h versus x.
What is the minimum possible degree of the polynomial : Is the leading coefficient of the polynomial positive or negative?
How do you prepare a statement of cash flows : That is, how do you prepare a statement of cash flows using the indirect method? Don't use numbers but explain the mathematical calculations and line items.

Reviews

Write a Review

Mechanical Engineering Questions & Answers

  What is the expected number of weeks until a player matches

A state runs a lottery in which 6 numbers are randomly selected from 40, without replacement. A player chooses 6 numbers before the state's sample is selected.

  Find the horsepower to circulate the flow

Consider a recalculating flow in the power cycle shown in the figure. The fluid flowing in 100 ft of smooth pipe have an average specific weight of 50 lbf/ft3 and average dynamic viscosity of 5×10-4 lbf.s/ft2. Head loss in the nuclear reactor is 75 f..

  Refrigerant-134a at 240 kpa and 20c undergoes an

refrigerant-134a at 240 kpa and 20c undergoes an isothermal process in a closed system until its quality is 20 percent.

  Mass of oxygen gas in a container with a volume

What is the mass of oxygen gas in a container with a volume of 25 ft3, at a pressure of 14.7 psia and a temperature of 75oF?

  Is this a power cycle or a refrigerationheat pump cycle

a system of 1 lb of r22 contained in a piston cylinder undergoes the following process in seriesprocess a constant

  You as a project manager have been successful in

1-listening is often the most important aspect of good communication. why is this factor often ignored? what can

  The african elephant has developed the pinna or external

the african elephant has developed the pinna or external ear that functions as a radiator-convector. the pinna can be

  Standard atmospheric pressure

Standard atmospheric pressure (numerical value).Be very specific and to the point if you want me to reward you

  Problem on kinematic chains

Assignment on kinematic chains - Type of chain whether it is locked,constrained or unconstrained?

  Develop the function of cop of this heat pump with the

the heat supplied by a heat pump used to maintain a buildings temperature is often supplemented by another source of

  Determine the reduction in heat loss per unit length after

to reduce heat losses from a horizontal isothermal cylinder of radius ri 20 mm which is located in a large room in

  Determine the water content-wet unit weight-dry unit weight

A chunk of soil has a wet weight of 62lb and a volume of .56ft^2. When dried in an oven, the soil weighs 50 lb. If the specific gravity of Gs = 2.64, determine the water content, wet unit weight, dry unit weight, and void ratio of the soil.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd