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

Dividing using compatible numbers, 4 friends have 235 marbles and want to s...

4 friends have 235 marbles and want to share.How many marbles should each friend receive?

The quotient of 3d3 and 9d5 is, The quotient of 3d 3 and 9d 5 is The ...

The quotient of 3d 3 and 9d 5 is The key word quotient means division so the problem becomes 1d 3 -5/ 5. Divide the coef?cients:  1d 3 /3d-5 . While dividing like bases, subt

If there are 75 students in the play how many are boys, 64% of the students...

64% of the students within the school play are boys. If there are 75 students in the play, how many are boys? To ?nd out 64% of 75, multiply 75 by the decimal equivalent of 64%

Analyze the dynamic path - difference equation, One of the well-known class...

One of the well-known class of models that involve a simple difference equation are models of mean reversion. These models typically take the form yt+1 - yt = -a(yt - μ)where 0

Change of base of logarithms, Change of base: The final topic that we have...

Change of base: The final topic that we have to look at in this section is the change of base formula for logarithms. The change of base formula is,

Theory of quadratic equations.., solve the following simultaneous equations...

solve the following simultaneous equations x+y=a+b ; a/x_b/y

Sciencetific notations, how would you answer a question like this on here ...

how would you answer a question like this on here (8x10^5)

Trigonometry, can you explain it to me please

can you explain it to me please

Equations of lines - three dimensional spaces, Equations of Lines In t...

Equations of Lines In this part we need to take a view at the equation of a line in R 3 .  As we saw in the earlier section the equation y = mx+b does not explain a line in R

Define natural numbers, Q. Define natural numbers Ans. The natural...

Q. Define natural numbers Ans. The natural numbers (also called the counting numbers) are the numbers that you "naturally" use for counting: 1,2,3,4,... The set of n

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