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

  Fows through a constant-diameter pipe

Oil (specific gravity, 0.8)  flows through a constant-diameter pipe-(pipe diameter,  D=3 inches)  that goes through a bend of angle,  θ=45°   The flow rate in the pipe is  0.12 ft3 /s.  The pressure in the pipe atAandBis  the same, namely, 11 psi . T..

  The truck is to be towed using two ropes if the resultant

the truck is to be towed using two ropes. if the resultant force is to be 950 directed along the positive axis

  The shovels dimensions are a530 mm b 212mm c 318mm d106mm e

the shovels dimensions are a53.0 mm b 212mm. c 318mm. d106mm. e 371mm. find the reaction force at e. assume that the

  If the nozzle is attached to a 2500-in-diameter hose what

a fire hose nozzle has a diameter of 1.500 in. according to some fire codes the nozzle must be capable of delivering at

  Determine the shear strength parameters

Following are the results of two consolidated-drained triaxial tests on a clay: Test I: s3 5 140 kN/m2;s1(failure) 5 368 kN/m2 Test II: s3  5 280 kN/m2; s1(failure)  5 701 kN/m2 Determine the shear strength parameters; that is, c9 andf9.

  A 20 kg object is pulled across a flat surface with a

a 20 kg object is pulled across a flat surface with a force of 100 n. the force is applied at a 30deg angle to the

  If the probe surface has an emissivity of 085 and the probe

a sphereical interplanetary probe of 0.6-m diameter contains electronics that dissipate 170 w. if the probe surface

  Assume that the tests indicated that a tensile stress of

an internal crack has been detected by means of x-rays in the shell of a large cylindrical pressure vessel. the

  Determine the mass flow rate of air

A separate air stream passes in counterflow to the Refrigerant 134a stream, entering at 1208F and exiting at 778F. The outside of the heat exchanger is well insulated. Neglecting kinetic and potential energy effects and modeling the air as an idea..

  Explain manner in which pelamis wave power device operates

Explain in your own words the manner in which the Pelamis wave power device operates. Note that the motion at the hinges produces hydraulic power that is fed into electric generators. A motion picture of the operation of the Pelamis can be viewed ..

  Calculate the power required to drive the compressor and

air compressor is used to compress 0.03 kgs atmospheric air from 1 bar and 25oc to 10 bar. if the compression process

  Find the work done per pound of water during the expansion

water in a piston-cylinder initially starts at t 400of and p 200 psia. the piston is heated until it final volume is

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