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

.fractions, what is the difference between North America''s part of the tot...

what is the difference between North America''s part of the total population and Africa''s part

How many teachers are there at russell high, There are 81 women teachers at...

There are 81 women teachers at Russell High. If 45% of the teachers in the school are women, how many teachers are there at Russell High? Use the proportion part/whole = %/100.

Hcf, the length of three pieces of ropes are 140cm,150cm and 200cm.what is ...

the length of three pieces of ropes are 140cm,150cm and 200cm.what is the greatest possible length to measure the given pieces of a rope?

Multiple, what number does not belong 43,47,53,59,65,67

what number does not belong 43,47,53,59,65,67

Calculate one-sided limits, Calculate the value of the following limits. ...

Calculate the value of the following limits. Solution From the graph of this function illustrated below, We can illustrate that both of the one-sided limits suffer

Project, elliptical path of celestial bodies

elliptical path of celestial bodies

Fractions, what is greater than three forths

what is greater than three forths

Differentiate exponential functions, Differentiate following functions. ...

Differentiate following functions. (a)    R ( w) = 4 w - 5 log 9 w (b)   f ( x ) = 3e x + 10x 3 ln x Solution :  (a) It will be the only example which doesn't includ

Principle of superposition, If y 1 (t) and y 2 (t) are two solutions to a...

If y 1 (t) and y 2 (t) are two solutions to a linear, homogeneous differential equation thus it is y (t ) = c 1 y 1 (t ) + c 2 y 2 (t )   ........................(3) Remem

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