Find the integral of a function, Mathematics

Assignment Help:

We want to find the integral of a function at an arbitrary location x from the origin. Thus,

1486_find the integral of a function.png

where I(x=0) is the value of the integral for all times less than 0. (Essentially, I(x=0) is the unknown constant of integration or the initial condition.) From the class lecture on the trapezoidal rule for numerical integration, it can be seen that this function can be approximated by

2413_find the integral of a function1.png

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule. Your function should accept two vectors as inputs, x and f.

The first vector (x) contains the independent variable data (the points at which the values of the function are known. The second vector (f) should contain the values of the function at the points provided in the first vector. Your function should return the integral of f with respect to x, as a function of x.


Related Discussions:- Find the integral of a function

How long will he have to ride to burn 750 calories, Jeff burns 500 calories...

Jeff burns 500 calories per hour bicycling. How long will he have to ride to burn 750 calories? To find out the number of hours required to burn 750 calories, divide 750 throug

Surface areas and volumes, a conical vessel of radius 6cm and height 8cm is...

a conical vessel of radius 6cm and height 8cm is completely filled with water.a sphere is lowered into the water and its size is such that when it touches the size it is immersed.w

how large a sample is necessary to have a standard error, If the populatio...

If the population standard deviation is o=8, how large a sample is necessary to have a standard error that is: a.  less than 4 points? b.  less than 2 points? c.  less than 1 poin

Maths for Social Science, A retired couple has up to $30000 to invest in fi...

A retired couple has up to $30000 to invest in fixed-income securities. Their broker recommends investing in two bonds: one a AAA bond yielding 8%; the other a B+ bond paying 12%.

Determine the angle of depression to a ship, From the top of a 200 m lighth...

From the top of a 200 m lighthouse, the angle of depression to a ship in the ocean is 23 . How far is the ship form the base of the lighthouse?

Show that the vector is in the perfect matching polytope, 1.  Let G = (V,E)...

1.  Let G = (V,E) be a graph for which all nodes have degree 5 and where G is 5-edge is connected. a) Show that the vector x which is indexed by the edges E and for which x e =

Evaluate following. 0ln (1+)excos(1-ex)dx substitution, Evaluate following....

Evaluate following. ∫ 0 ln (1 + π )   e x cos(1-e x )dx Solution The limits are little unusual in this case, however that will happen sometimes therefore don't get

Give an example of divisibility, Give an example of Divisibility? If yo...

Give an example of Divisibility? If you can divide one number by another without getting a remainder, we say that the first number is divisible by the second. For instance, the

Examples of complex numbers, Following are some examples of complex numbers...

Following are some examples of complex numbers. 3 + 5i                                                 √6 -10i (4/5) + 1           16i                     113 The last t

Write Your Message!

Captcha
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