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

Determinant of an n×n matrix, How can we calculate the Determinant of an N×...

How can we calculate the Determinant of an N×N Matrix?

Evaluate the volume of the shaded region, If the hight of pipe is 18 inches...

If the hight of pipe is 18 inches, what is the volume of the shaded region in terms of π? a. 31.5π in 3 b. 126π in 3 c. 157.5 in 3 d. 58.5 in 3

Unitary Method Sample Questions, Where can I find sample questions of Unita...

Where can I find sample questions of Unitary Method for kids to practice? I need  Unitary Method  study material if availbale here on website, i found there is very useful material

Solve 4 sin 2 ( t ) - 3 sin ( t /3)= 1, Solve 4 sin 2 ( t ) - 3 sin ( t /...

Solve 4 sin 2 ( t ) - 3 sin ( t /3)= 1 . Solution Before solving this equation let's solve clearly unrelated equation. 4x 2 - 3x = 1  ⇒ 4x 2 - 3x -1 = ( 4x + 1) ( x

How much sales tax did she pay if items was 6 percent, Lindsay purchased a ...

Lindsay purchased a pocketbook for $45 and a pair of shoes for $55. The sales tax on the items was 6%. How much sales tax did she pay? Find out the price of the two items toget

Find out the volume of the solid- method of rings, Find out the volume of t...

Find out the volume of the solid obtained by rotating the region bounded by y = x 2 - 2x and  y = x about the line y = 4 . Solution: Firstly let's get the bounding region & t

My homework, Paulina played 3 soccer games on Saturday she drank I juice bo...

Paulina played 3 soccer games on Saturday she drank I juice box during each soccer game how many juice boxes did she drank

Quadratic Equations, how to find minimum value of quadratic equation?

how to find minimum value of quadratic equation?

Standard deviation, 2.When investigating times required for drive-through s...

2.When investigating times required for drive-through service, the following results (in seconds) were obtained. Find the range, variance, and standard deviation for each of the tw

Diabetes/Calcuation, #sally wieghs 100kg. According to the 50/50 basal bolu...

#sally wieghs 100kg. According to the 50/50 basal bolus rate be per meal bolus?

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