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

Operations and properties, use an expression to write an expression with fi...

use an expression to write an expression with five 3s that has a value of 0

Polygon on a coordinate, a square tile measures 12 inches by 12 inches each...

a square tile measures 12 inches by 12 inches each unit on a coordinate grid represents 1 inch (1,1) and (1,13) are two of the coordinate of the tile drawn on the grid what are the

Dropped down the rational expression to lowest terms, Carry out the indicat...

Carry out the indicated operation and dropped down the answer to lowest terms.  (x 2 - 5x -14/ x 2 -3x+2) .   (x 2 - 4)/x 2 -14x+49) Solution This is a multiplication.

Denote the statement in predicate calculus, Denote the subsequent statement...

Denote the subsequent statement in predicate calculus: "Everybody respects all the selfless leaders". Ans: For each X, if every Y that is a person respects X, then X is a selfl

Differential equations, Verify Liouville''''''''s formula for y "-y" - y'''...

Verify Liouville''''''''s formula for y "-y" - y'''''''' + y = 0 in (0, 1) ?

Rational expressions, Now we have to look at rational expressions. A ration...

Now we have to look at rational expressions. A rational expression is a fraction wherein the numerator and/or the denominator are polynomials.  Here are some examples of rational e

Probability, An unbiased die is tossed twice .Find the probability of getti...

An unbiased die is tossed twice .Find the probability of getting a 4,5,6 on the first toss and a 1,2,3,4 on the second toss

Proof of various integral facts- formulas, PROOF OF VARIOUS INTEGRAL FACTS/...

PROOF OF VARIOUS INTEGRAL FACTS/FORMULAS/PROPERTIES In this section we've found the proof of several of the properties we saw in the Integrals section and also a couple from t

Calculate and plot the cdf of p-values, A discrete-valued random variable X...

A discrete-valued random variable X takes values in 0, 1, 2, . . . , where p(X = i) = π i. (a) Write down formulas for: the p-value at X = i the probability distributi

Domain and range of a function , Domain and range of a functio:  One of th...

Domain and range of a functio:  One of the more significant ideas regarding functions is that of the domain and range of a function. In simplest world the domain of function is th

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