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

Retail price index, Retail price index This is weighted average of pri...

Retail price index This is weighted average of price relatives based on an average household in the base year. The items consumed are divided into groups as liker food, transp

Parametric equations and curves - polar coordinates, Parametric Equations a...

Parametric Equations and Curves Till to this point we have looked almost completely at functions in the form y = f (x) or x = h (y) and approximately all of the formulas that w

Adding fractions with the same denominator, Q. Adding Fractions with the Sa...

Q. Adding Fractions with the Same Denominator? Adding fractions with the same denominator is easy- you add the numerators (the tops), and you leave the denominator alone!

Weighted mean-progression, Weighted mean - It is the mean which employ...

Weighted mean - It is the mean which employs arbitrarily given weights - This is a useful measure especially whereas assessment is being done yet the situation prevailing a

Binary to decimal, 01010011 01100101 01101101 01110000 01100101 01110010 00...

01010011 01100101 01101101 01110000 01100101 01110010 00100000 01000110 01101001 00100001

Multiplication of complex numbers, Multiplication of complex numbers: ...

Multiplication of complex numbers: Example 1: Combine the subsequent complex numbers: (4 + 3i) + (8 - 2i) - (7 + 3i) =  Solution: (4 + 3i) + (8 - 2i) - (7 + 3i

System of differential equations for the population, Write down the system ...

Write down the system of differential equations for the population of both predators and prey by using the assumptions above. Solution We will start off through letting that

The null hypothesis, The null hypothesis It is the hypothesis being tes...

The null hypothesis It is the hypothesis being tested, the belief of a specific characteristic for illustration, US Bureau of Standards may walk to a sugar making company along

Modeling with first order differential equations, We here move to one of th...

We here move to one of the major applications of differential equations both into this class and in general. Modeling is the process of writing a differential equation to explain a

Alternate notation of derivative, Alternate Notation : Next we have to dis...

Alternate Notation : Next we have to discuss some alternate notation for the derivative. The typical derivative notation is the "prime" notation. Though, there is another notation

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