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

Show trigonometric functions on a graph, Q. Show Trigonometric Functions on...

Q. Show Trigonometric Functions on a Graph? Ans. By discussing the trig functions with respect to an angle in a right-angle triangle, we have only considered angles betwee

Basics of vectors - calculus, Vectors - The Basics Let us start this s...

Vectors - The Basics Let us start this section off with a quick discussion on what is the use of vector.  Vectors are utilized to present quantities that have both a magnitude

Calculate the instantaneous rate of change of the volume, Assume that the a...

Assume that the amount of air in a balloon after t hours is specified by                                             V (t ) = t 3 - 6t 2 + 35 Calculate the instantaneous

Sqares, Recently I had an insight regarding the difference between squares ...

Recently I had an insight regarding the difference between squares of sequential whole numbers and the sum of those two whole numbers. I quickly realized the following: x + (x+1)

Example of the commutative property of addition, Tori was asked to provide ...

Tori was asked to provide an example of the commutative property of addition. Which of the subsequent choices would be correct? Using the simple interest formula Interest = pr

Evaluate limit in indeterminate form, Evaluate following limits. S...

Evaluate following limits. Solution In this case we also contain a 0/0 indeterminate form and if we were actually good at factoring we could factor the numerator & den

Divides a given line segment internally in the ratio of 1:3, Divides a give...

Divides a given line segment internally in the ratio of 1:3 Construction : i )Draw a ray AX making an acute angle with AB. ii) Mark 4 points at equal distance. on AX Let

Indeterminate form, Indeterminate form : The 0/0 we initially got is calle...

Indeterminate form : The 0/0 we initially got is called an indeterminate form. It means that we don't actually know what it will be till we do some more work.  In the denominator

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