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

Geometry, What is the better buy?a square pizza measuring 8 inches by 8inch...

What is the better buy?a square pizza measuring 8 inches by 8inches that cost $10 or a round pizza with a 9 inch diameter that also cost $10?

I need help with math, can i get help with math just with fractions i want ...

can i get help with math just with fractions i want to catch up with my class

Matrices, Consider the following linear equations. x1-3x2+x3+x4-x5=8 -2x1+...

Consider the following linear equations. x1-3x2+x3+x4-x5=8 -2x1+6x2+x3-2x4-4x5=-1 3x1-9x2+8x3+4x4-13x5=49

Define number line, Q. Define Number Line? Ans. A number line is a...

Q. Define Number Line? Ans. A number line is a nice way to visualize and examine the ordering of the positive and negative numbers. Every positive and negative number that

Pre Calculus, I have no idea how to graph exponential forms.

I have no idea how to graph exponential forms.

Test of hypothesis about the population mean, Test of hypothesis about the ...

Test of hypothesis about the population mean When the population standard deviation (S) is identified then the t statistic is defined as             t = ¦(x¯ - µ)/ S x¯ ¦

Draw a common graph y = sin ( x ), Graph y = sin ( x ) Solution : As a...

Graph y = sin ( x ) Solution : As along the first problem in this section there actually isn't a lot to do other than graph it.  Following is the graph. From this grap

Definition of limit, Definition of limit : Consider that the limit of f(x)...

Definition of limit : Consider that the limit of f(x) is L as x approaches a & write this as provided we can make f(x) as close to L as we desire for all x adequately clos

Problem solving, compare 643,251;633,512; and 633,893. The answer is 633,51...

compare 643,251;633,512; and 633,893. The answer is 633,512

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