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

Queuing Theory, A telephone exchange has two long distance operators.The te...

A telephone exchange has two long distance operators.The telephone company find that during the peak load,long distance calls arrive in a poisson fashion at an average rate of 15 p

Numeros naturales., Averigua que nùmero de cinco cifras se esconde detras d...

Averigua que nùmero de cinco cifras se esconde detras de las pistas dadas La cifra de las unidades es par, mayor que 6 y coincide con las decenas de mil. La cifra de las decenas se

Find the probability , 1.  What is the probability that the two beverages w...

1.  What is the probability that the two beverages will be of the same kind? 2.  What is the probability that the two beverages will be different? 3.  What is the probability

Complex number, a ,b,c are complex numbers such that a/1-b=b/1-c=c-1-a=k.fi...

a ,b,c are complex numbers such that a/1-b=b/1-c=c-1-a=k.find the value of k

How many cousins does robert have- miscellaneous math, Bonnie has twice as ...

Bonnie has twice as many cousins as Robert. George has 5 cousins, which is 11 less than Bonnie has. How many cousins does Robert have? Work backwards to find the solution. Geor

Straight Line, can i known the all equations under this lesson with explana...

can i known the all equations under this lesson with explanations n examples. please..

Core concepts, define marketing and show its core concepts

define marketing and show its core concepts

Runge kutta method, As noted, Euler's method is little used in practice, as...

As noted, Euler's method is little used in practice, as there are much better ways of solving initial value problems. By better, we mean, "able to achieve a result of the same prec

Probability, what is a sample space diagram

what is a sample space diagram

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