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

How many ways are there to seat these children, Question: (a) Suppose ...

Question: (a) Suppose that a cookie shop has four different kinds of cookies. Assuming that only the type of cookie, and not the individual cookies or the order in which they

Find the 14th term in the arithmetic sequence. 60, Find the 14th term in t...

Find the 14th term in the arithmetic sequence. 60, 68, 76, 84, 92

Evaluate the circumference of circle, If the diameter of a circle is triple...

If the diameter of a circle is tripled times, the circumference is a. multiplied by 3. b. multiplied by 6. c. multiplied by 9. d. multiplied by 12. a. The formula fo

One integer is four times other what is the value of lesser, One integer is...

One integer is four times other. The sum of the integers is 5. What is the value of the lesser integer? Let x = the lesser integer and now let y = the greater integer. The ?rst

Geometry help, One of two complementary angles is 80& of the other. What is...

One of two complementary angles is 80& of the other. What is the degree measure of the smaller angle?

what are the coordinates of the vertex , Use the graph of y = x2 - 6x  to ...

Use the graph of y = x2 - 6x  to answer the following: a)         Without solving the equation (or factoring), determine the solutions to the equation  x 2 - 6x = 0  usi

first person drawn was named the class president, Consider a class of 55 s...

Consider a class of 55 students. The student names are placed in a hat & 3 names are randomly drawn without replacement. a)     If the first person drawn was named the class presi

Stat, defination of uper boundarie .

defination of uper boundarie .

What is the greatest common factor of 24 and 64, What is the greatest commo...

What is the greatest common factor of 24 and 64? List the factors of 24 and 64. The largest factor that they have in common is the greatest common factor. Factors of 24: 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