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

1, what''s the beneit of study mathematics ?

what''s the beneit of study mathematics ?

Number of permutations of ''n'' dissimilar things , Finding the numbe...

Finding the number of Permutations of 'n' dissimilar things taken 'r' at a time:  After looking at the definition of permutations, we look at how to evolve a

Solving Trig Equations, How would you solve the equation: 1+ sin(theta)= 2 ...

How would you solve the equation: 1+ sin(theta)= 2 cos^2(theta)?

Riddles, I am a number yell my identity subtract 20 from me and add 30 make...

I am a number yell my identity subtract 20 from me and add 30 make the total twice to reach century you still need eight

Fractions, If i worked 7 1/3 hours and planted 11 trees how many hours did ...

If i worked 7 1/3 hours and planted 11 trees how many hours did it take to plant each tree?

Smooth curve - three dimensional space, Smooth Curve - Three Dimensional Sp...

Smooth Curve - Three Dimensional Space A smooth curve is a curve for which → r' (t) is continuous and → r' (t) ≠ 0 for any t except probably at the endpoints. A helix is a s

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