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

Prove intercept of a tangent between two parallel, Prove that the intercept...

Prove that the intercept of a tangent between two parallel tangents to a circle subtends a right angle at the centre. Since Δ ADF ≅ Δ DFC ∠ADF = ∠CDF ∴ ∠ADC = 2 ∠CDF

Speaking mathematically-how do children learn?, Speaking Mathematically :  ...

Speaking Mathematically :  A Class 2 teacher was explaining the concept of place value to his students, using the number eleven. He started by saying "One and one make eleven." So

Rate of change interpretation of derivative, Rate of Change : The first in...

Rate of Change : The first interpretation of derivative is rate of change.  It was not the primary problem which we looked at in the limit chapter, however it is the most signific

What was the us''s policy towards latin america, What was the US's policy t...

What was the US's policy towards Latin America during the 20th century? What were the motives behind this policy? Give one example of the US executing this policy?

Maths, f all the permutations of the letters of the word chalk are written ...

f all the permutations of the letters of the word chalk are written in a dictionary the rank of this word will be?

.fractions, what is the difference between North America''s part of the tot...

what is the difference between North America''s part of the total population and Africa''s part

We know this equation a°=1.prove this?, we know that    A^m/A^m=1         ...

we know that    A^m/A^m=1                    so A^(m-m)=1                    so A^0=1.....

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