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

Real analysis, Let {An} be sequence of real numbers. Define a set S by: S={...

Let {An} be sequence of real numbers. Define a set S by: S={i ? N : for all j > i, ai

What is the square root of 36, What is the square root of 36? To search...

What is the square root of 36? To search the square root (√) you ask yourself, "What number multiplied through itself gives me 36?" 6 .6 = 36; thus, 6 is the square root of 36.

Surds and logarithms, what are these all about and could i have some exampl...

what are these all about and could i have some examples of them please

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?

Developing an understanding of subtraction, DEVELOPING AN UNDERSTANDING O...

DEVELOPING AN UNDERSTANDING OF SUBTRACTION :  The process of subtraction is the reverse of that of addition. Adding more to a collection to make it bigger is just the reverse

How are Indian customers visiting Shoppers’ Stop any differe, How are India...

How are Indian customers visiting Shoppers’ Stop any different from customers of developed western countries?

Find out the area of the region, Find out the area of the region enclosed b...

Find out the area of the region enclosed by y = x 2 & y =√x . Solution Firstly, just what do we mean by "area enclosed by". This means that the region we're interested in

What is approximation, approximate value is the precise or the accurate val...

approximate value is the precise or the accurate value which is measured  to the actual value.., approximation is how close the measured value is to the actual value , for example

Example to compute limit, calculates the value of the following limit. ...

calculates the value of the following limit. Solution Now, notice that if we plug in θ =0 which we will get division by zero & so the function doesn't present at this

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