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

An even number is selected, Let the Sample Space S = {1, 2, 3, 4, 5, 6, 7, ...

Let the Sample Space S = {1, 2, 3, 4, 5, 6, 7, 8}. Suppose each outcome is equally likely. Compute the probability of event E = "an even number is selected".

Find out the mean wait in line - probability, Example of Probability I...

Example of Probability Illustration:  It has been determined that the probability density function for the wait in line at a counter is specified by, In which t is the

Solid mensuration, a circle is circumscribed about an equilateral triangle ...

a circle is circumscribed about an equilateral triangle whose side is 3 cm. find the area of the circle.

Cirlce Division, How can i calculate arc length for dividing a circle into ...

How can i calculate arc length for dividing a circle into 10 parts

Hcf and lcm, The HCF & LCM of two expressions are respectively (x+3) and (x...

The HCF & LCM of two expressions are respectively (x+3) and (x cube-7x+6). If one is x square+2x-3 , other is? Solution) (x+3) * (x^3-7x+6) = (x^2+2x-3) * y      ( ) (HCF*LCM=

Compute standard and variance deviation, A firm is manufacturing 45,000 uni...

A firm is manufacturing 45,000 units of nuts. The probability of having a defective nut is 0.15 Compute the given i. The expected no. of defective nuts ii. The standard an

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