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

.., the circumference of a circle C of radius r is given by C=2pR.taking p ...

the circumference of a circle C of radius r is given by C=2pR.taking p to be 22/7 a)find the circumference when the radius is 28 cm b)find the radius when the circumference is 484

Comparison test or limit comparison test, Comparison Test or Limit Comparis...

Comparison Test or Limit Comparison Test In the preceding section we saw how to relate a series to an improper integral to find out the convergence of a series.  When the inte

Ampltude and period, find the amplitude and period of y=3 sin 2 pi x

find the amplitude and period of y=3 sin 2 pi x

5% sales tax on a basket what was the price of the basket, The 5% sales tax...

The 5% sales tax on a basket was $0.70. What was the price of the basket? Use a proportion to solve the problem; part/whole = %/100. The whole is the price of the basket (wh

Shortcomng methods for teaching hto in maths, 1.What are the strengths and ...

1.What are the strengths and shortcomings of the methods of teaching H T 0 in Examples 1 and 2? 2. a) Think of another activity for getting children to practise H T 0, especia

Differentiate product rule functions, Differentiate following functions. ...

Differentiate following functions. Solution At this point there in fact isn't a lot of cause to use the product rule.  We will utilize the product rule.  As we add

Level curves or contour curves - three dimensional space, Level Curves or C...

Level Curves or Contour Curves Another topic that we should look at is that of level curves or also known as contour curves. The level curves of the function z = f (x, y) are t

Area and perimeter, if perimeter is 300m length is 100m.find the breadth

if perimeter is 300m length is 100m.find the breadth

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