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

Concrete operational stage, Concrete Operational Stage :  Piaget describes...

Concrete Operational Stage :  Piaget describes a five-year-old boy playing with a collection of pebbles. First, he laid them in a line and counted along the line from left to righ

Fractions, what is the lowest term of 11/121

what is the lowest term of 11/121

Actaap released item booklet april 2010 grade 8, what is the least number o...

what is the least number of faces and bases the paperweight could have?

Difference between probability and statistics, Q. Difference between Probab...

Q. Difference between Probability and statistics? Ans. Probability and statistics are used in many different aspects of life. What are they and why are they so popular?

He would such as to leave 20% tip how much should he leave, Mr. Pelicas too...

Mr. Pelicas took his family out to dinner. The bill was $65.00. He would such as to leave a 20% tip. How much should he leave? Find 20% by multiplying $65 through the decimal e

Factorization, factorize the following algebraic expressions

factorize the following algebraic expressions

Find the tangent to the curve, 1. Find the third and fourth derivatives of ...

1. Find the third and fourth derivatives of the function Y=5x 7 +3x-6-17x -3 2. Find the Tangent to the curve Y= 5x 3 +2x-1 At the point where x = 2.

Lance has 70 cents margaret has 3/4 who has the most money, Lance has 70 ce...

Lance has 70 cents, Margaret has three-fourths of a dollar, Guy has two quarters and a dime, and Bill has six dimes. Who has the most money? Lance has 70 cents. Three-fourths o

Determine if following sequences are monotonic or bounded, Determine if the...

Determine if the following sequences are monotonic and/or bounded. (a)   {-n 2 } ∞ n=0 (b) {( -1) n+1 } ∞ n=1 (c) {2/n 2 } ∞ n=5 Solution {-n 2 } ∞ n=0

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