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

Linear independence and dependence, It is not the first time that we've loo...

It is not the first time that we've looked this topic. We also considered linear independence and linear dependence back while we were looking at second order differential equation

Find out the volume of the solid method of disks , Find out the volume of t...

Find out the volume of the solid obtained by rotating the region bounded by y = x 2 - 4x + 5 , x = 1 , x = 4 , and the x-axis about the x-axis. Solution : The firstly thing t

Differential Equations, 1.Verify Liouville''s formula for y "-y" - y'' + y ...

1.Verify Liouville''s formula for y "-y" - y'' + y = 0 in (0, 1) ? 2.Find the normalized differential equation which has {x, xex} as its fundamental set. 3.6Find the general soluti

Statistics Assignment, I need help in assignment of stats? Please give me a...

I need help in assignment of stats? Please give me assist in my stats exam.

Maxima and minima, Maxima and Minima We have to make a distinctio...

Maxima and Minima We have to make a distinction between relative maxima (or minima) and global maxima (or minima). Let f(x) be a function of x. Then the global maxi

Equations, 20 equations that equal 36

20 equations that equal 36

The perimeter square can be expressed as x + 4 estimate x, The perimeter of...

The perimeter of a square can be expressed as x + 4. If one side of the square is 24, what is the value of x? Since the perimeter of the square is x + 4, and a square has four

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