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

Dot product - vector, Dot Product- Vector The other topic for discu...

Dot Product- Vector The other topic for discussion is that of the dot product.  Let us jump right into the definition of dot product. There is given that the two vectors a

Determine matrix of transformation for orthogonal projection, Determine the...

Determine the matrix of transformation for the orthogonal projection onto the line L that passes through the origin and is in the direction Û=(3/13 , 4/13 , 12/13). Determine the r

Multiplication of two like terms with opposite signs, The product of -7ab a...

The product of -7ab and +3ab is (-7 x 3) a 2  b 2  = -21a 2  b 2 . In other words, a term with minus sign when multiplied with a term having a positive sign, gives a product having

Show that tan = 1/v3 , If 7sin 2 ?+3cos 2 ? = 4, show that tan? =   1/√3  ...

If 7sin 2 ?+3cos 2 ? = 4, show that tan? =   1/√3                      . Ans:    If 7 Sin 2 ? + 3 Cos 2 ? = 4 S.T. Tan?  1/√3 7 Sin 2 ? + 3 Cos 2 ? = 4 (Sin 2 ? + Cos 2 ?)

Partial Differential Equation, Consider the wave equation u_tt - u_xx = 0 w...

Consider the wave equation u_tt - u_xx = 0 with u(x, 0) = f(x) = 1 if -1 Please provide me a detailed answer. I had worked the most part of this question and the only I would like

How organize data by circle graphs, Q. How organize data by Circle Graphs? ...

Q. How organize data by Circle Graphs? Ans. Circle graphs, or pie charts, are another way of organizing data sets into an easy-to-read format. They make it very easy to c

Operation research, details about criticl part time & pert method

details about criticl part time & pert method

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