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

Solve following x - x e 5 x + 2 = 0 logarithms, Solve following  x - x  ...

Solve following  x - x  e 5 x + 2   = 0 . Solution : The primary step is to factor an x out of both terms. DO NOT DIVIDE AN x FROM BOTH TERMS!!!! Note as well that it i

Determine the area of the matting, A circular print is being matted in a sq...

A circular print is being matted in a square frame. If the frame is 18 in by 18 in, and the radius of the print is 7 in, what is the area of the matting? (π = 3.14) a. 477.86 in

Interpretation of r – problems in interpreting r values, Interpretation of ...

Interpretation of r - Problems in interpreting r values A high value of r as +0.9 or - 0.9 only shows a strong association among the two variables but doesn't imply that th

Examples of play and learning maths, Here are a few examples of some team g...

Here are a few examples of some team games. The teams can be small (1-3 children) or big (15-20 children). We start with some games for small children. a) One team places a numb

Geometry, the segments shown could form a triangle

the segments shown could form a triangle

Fractions, #question.mario has 3 nickelsin his pocket.wha fraction ofadolla...

#question.mario has 3 nickelsin his pocket.wha fraction ofadolla do 3 nickels represent

To calculate volume of cylinder which formula is used, Mimi is filling a te...

Mimi is filling a tennis ball can along with water. She wants to know the volume of the cylinder shaped can. Which formula will she use? The volume of a cylinder is π times the

Divide by 1-digit numbers, which experession can be used to check the quoti...

which experession can be used to check the quotient 646 divided by 3

Trigonometry, Show that the radius of the circle,passing through the centre...

Show that the radius of the circle,passing through the centre of the inscribed circle of a triangle and any two of the centres of the escribed circles,is equal to the diameter of t

Explain pie charts, Explain Pie Charts ? If the frequencies are writte...

Explain Pie Charts ? If the frequencies are written as percentages, they can be easily compared using a pie chart. The following is an example of a pie chart using the data fr

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