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

Concrete operational stage, Concrete Operational Stage :  Piaget describes...

Concrete Operational Stage :  Piaget describes a five-year-old boy playing with a collection of pebbles. First, he laid them in a line and counted along the line from left to righ

Application of related rates to economics and business, the wholesale p of ...

the wholesale p of string beans in dollars per bushel and the daily supply x in thousands of bushel,are related by the equation px+6x+7p=5950. if the supply is decreasing at the r

Test of hypothesis about the population mean, Test of hypothesis about the ...

Test of hypothesis about the population mean When the population standard deviation (S) is identified then the t statistic is defined as             t = ¦(x¯ - µ)/ S x¯ ¦

Algebra, Multiple response question.Zack puts a mug of water ni his microwa...

Multiple response question.Zack puts a mug of water ni his microwave oven. He knows that the final temperature of the water will be a function of the number of seconds he heats the

Circle, Circle Well, let's recall just what a circle is. A circle is al...

Circle Well, let's recall just what a circle is. A circle is all the points which are the similar distance, r - called the radius, from a point, ( h, k ) - called the center. I

Differential Equations, 1.Verify Liouville''s formula for y "-y" - y'' + y ...

1.Verify Liouville''s formula for y "-y" - y'' + y = 0 in (0, 1) ? 2.Find the normalized differential equation which has {x, xex} as its fundamental set. 3.6Find the general soluti

Determine the position and nature of stationary points, Question. Deter...

Question. Determine the position and nature of stationary points of the function? f(x,y)= y/x -x 2 +y 2

What will the day of the week be the further time at the gym, Max goes to t...

Max goes to the gym every fourth day. Ellen's exercise routine is to go every third day. Today is Monday and both Max and Ellen are at the gym. What will the day of the week be the

Finf the value of x or y from given liner equation, 41x + 53y = 135, 53x +4...

41x + 53y = 135, 53x +41y =147 Ans:    41x + 53 y = 135, 53 x + 41 y = 147 Add the two equations : Solve it, to get ... x + y = 3 -------(1) Subtract : Solve it , to

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