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

Trigonometry, Prove: cotA/2.cotB/2.cotC/2 = cotA/2+cotB/2+cotC/2

Prove: cotA/2.cotB/2.cotC/2 = cotA/2+cotB/2+cotC/2

Using calculus method, Sheldon as the day for the challenge gets closer wan...

Sheldon as the day for the challenge gets closer wants to enter the race. Not being content with an equal start, he wants to handicap himself by giving the other yachts a head star

Statistics quiz.., can someone help me with a statistics quiz?

can someone help me with a statistics quiz?

Prove sum of squares any two sides equal twice square, Prove that in any tr...

Prove that in any triangle the sum of the squares of any two sides is equal to twice the square of half of the third side together with twice the square of the median, which bisect

The low temperature in Achorage, The low temperature in Anchorage, Alaska t...

The low temperature in Anchorage, Alaska today was negative four degrees. The low temperature in Los Angeles, California was sixty-three degreees. What is the difference in the two

Exercise to think about this aspect of children- maths, Doing the following...

Doing the following exercise will give you and opportunity to think about this aspect of children. E1) List some illustrations of exploration by four or five-year-olds that you

Areas of a rectangle, a rectangular field with a path around it measures 1...

a rectangular field with a path around it measures 120m by 50m.if the path is 1m wide all around,(a)find the length of the outer edge of the path.(b)find the area of the path

Math134, how to sketch feasible set

how to sketch feasible set

Experience language pictures symbols-e - l - p - s , E - L - P - S : Has t...

E - L - P - S : Has the title of this section stumped you? Children, similarly, don't understand new symbols that are thrust upon them without giving them an adequate grounding. Y

Properties of triangle, In triangle ABC if angle B = 90 degrees what is the...

In triangle ABC if angle B = 90 degrees what is the value Tan A/2 in terms of its sided? Solution) tanA=c/b let tan(A/2)=x 2x/(1-x 2 )=c/b,solve for x

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