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

Calculate average speed of a train, Calculate average speed of a train: ...

Calculate average speed of a train: What is the average speed of a train which completes a 450-mile trip in 5 hours? Solution: Using Equation 15: V av = s/t V a

Term paper topics, please suggest me that how can i get the term papers top...

please suggest me that how can i get the term papers topics?

Arithmetic progression (a.p.), A series is said to be in Arithmetic...

A series is said to be in Arithmetic Progression (A.P.) if the consecutive numbers in the series differs by a constant value. This constant value is referre

Geometry, I don''t get it .... Help

I don''t get it .... Help

Find out a series solution for differential equation, Find out a series sol...

Find out a series solution for the following differential equation about x 0 = 0 y′′ + y = 0.   Solution Note that in this case p(x)=1 and therefore every point is an or

What is the greater of two consecutive negative integers, What is the great...

What is the greater of two consecutive negative integers whose product is 132? Let x = the lesser integer and let x + 1 = the greater integer. Because product is a key word for

Geometric mean-geometric progression, Geometric mean - It is a measure ...

Geometric mean - It is a measure of central tendency normally utilized to measure industrial increases rates. - It is explained as the nth root of the product of 'n' observa

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