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

Graphs, How do I graph a round robin pool tournment with 6 players using gr...

How do I graph a round robin pool tournment with 6 players using graph theory

Factors or multiples, long ago, people decided to divide the day into units...

long ago, people decided to divide the day into units called hours. they choose 24 as the number of hours in one day. why is 24 a more convenient choice than 23 or 25?

common divisors greater than one, Let R be the relation on Z + defined by...

Let R be the relation on Z + defined by aRb iff gcd(a; b) = 1 (that is, a and b have no common divisors greater than one). Explain whether R is reflexive, irreflexive, symmetri

Pair of linear equations in two variables, PAIR OF LINEAR EQUATIONS IN TWO ...

PAIR OF LINEAR EQUATIONS IN TWO VARIABLES: Like  the  crest  of a  peacock so  is  mathematics  at the  head of all knowledge. Example At a certain time in a deer park, t

F distribution, The F Distribution The F distribution is the dis...

The F Distribution The F distribution is the distribution of the ratio of 2 random variables. Both random variables have yet another distribution, called the c 2 Distri

Hyperboloid of two sheets - three dimensional spaces, Hyperboloid of Two Sh...

Hyperboloid of Two Sheets The equation which is given here is the equation of a hyperboloid of two sheets. - x 2 /a 2 - y 2 / b 2 + z 2 /c 2 = 1 Here is a diagram of

Carrot juice, 1. His favorite current carrot drink contain 40%. but h eneed...

1. His favorite current carrot drink contain 40%. but h eneeds add to 80 quarts wife brought his perfect drink mix.

How to find value in polynomial?, Example  Find the values of the ...

Example  Find the values of the given expressions. Also given that a = 2, b = 3, c = 1, and x = 2. 8a + 5bc          =       8.2

Probability, The probability that a leap year will have 53 sunday is ? and ...

The probability that a leap year will have 53 sunday is ? and how please explain it ? (a)1/7    (b) 2/7    (c) 5/7    (d)6/7 Sol) A leap year has 366 days, therefore 52 weeks i.e

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