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

Net Present Value, A business has the opportunity to expand by purchasing ...

A business has the opportunity to expand by purchasing a machine at a cost of £80,000. The machine has an estimated life of 5 years and is projected to generate a cashflow of £20,0

Algebra, Manuel is a cross-country runner for his school’s team. He jogged ...

Manuel is a cross-country runner for his school’s team. He jogged along the perimeter of a rectangular field at his school. The track is a rectangle that has a length that is 3 tim

Proof of limit comparison test - sequences and series, Proof of Limit Compa...

Proof of Limit Comparison Test As 0  Now, as   we know that for large enough n the quotient a n /b n should be close to c and thus there must be a positive integer

The appropriate resource constraint, Consider a person's decision problem i...

Consider a person's decision problem in trying to decide how many children to have. Although she cares about children and would like to have as many as possible, she knows that chi

Find out the radius of convergence, Example: Find out the radius of conver...

Example: Find out the radius of convergence for the following power series. Solution : Therefore, in this case we have, a n = ((-3) n )/(n7 n+1 )   a n+1 = (

Statistics Assignment, I need help in assignment of stats? Please give me a...

I need help in assignment of stats? Please give me assist in my stats exam.

What is identities and contradictions, What is Identities and Contradiction...

What is Identities and Contradictions ? Look at this equation: x + 1 = 1 + x It happens to be true always, no matter what the value of x. (Try it out! What if x is 43?)

Determine the order of the local truncation error, The backwards Euler diff...

The backwards Euler difference operator is given by for differential equation y′ = f(t, y). Determine the order of the local truncation error. Explain why this difference o

Price cutter sold 85 beach towels what were the total sales, Price Cutter s...

Price Cutter sold 85 beach towels for $6.95 each. What were the total sales? You must multiply the number of towels sold through the price of each towel; 85 × $6.95 = $590.75.

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