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

Number system, NATURAL NUMBERS The numbers 1, 2, 3, 4.... Are called as...

NATURAL NUMBERS The numbers 1, 2, 3, 4.... Are called as natural numbers, their set is shown by N. Hence N = {1, 2, 3, 4, 5....} WHOLE NUMBERS The numbers 0, 1, 2, 3, 4

Vectors - calculus, Vectors  This is a quite short section. We will b...

Vectors  This is a quite short section. We will be taking a concise look at vectors and a few of their properties. We will require some of this material in the other section a

Systems of equations, Since we are going to be working almost exclusively a...

Since we are going to be working almost exclusively along with systems of equations wherein the number of unknowns equals the number of equations we will confine our review to thes

What is the approximate cost of 1 binder and 1 pen, At the school bookstore...

At the school bookstore and two binders and three pens cost $12.50. Three binders and five pens cost $19.50. What is the approximate cost of 1 binder and 1 pen? Let x = the cos

Rita, Calculate 50%

Calculate 50%

Solid mensuration, a circle is circumscribed about an equilateral triangle ...

a circle is circumscribed about an equilateral triangle whose side is 3 cm. find the area of the circle.

Profit maximization, a medical clinic performs three types of medical tests...

a medical clinic performs three types of medical tests that use the same machines. Tests A, B,and C take 15 minutes, 30 minutes and 1 hours respectively, with respective profits of

Rate and ratio, express 4:24 as fraction in lowest term

express 4:24 as fraction in lowest term

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