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

probability , An engineer has 200 resistors that he keeps in one box. Resi...

An engineer has 200 resistors that he keeps in one box. Resistors are colored to help their identification, and in this box there are 30 white resistors, 50 black resistors, 80 red

Simplify the boolean function, Simplify the Boolean function: F...

Simplify the Boolean function: F (w,x,y,z) = ∑ (0, 1, 2, 3, 4, 6, 8, 9, 12, 13, 14)  (8)  Ans:   f(w, x, y, z) = ∑(0, 1, 2, 3, 4, 6, 8, 9, 12, 13, 14) The above

Solve for x and y liner equation, Solve for x , y (x + y - 8)/2   ...

Solve for x , y (x + y - 8)/2   =( x + 2  y - 14)/3 = (3 x + y - 12 )/ 11   (Ans: x=2, y=6) Ans :     x+ y - 8/2  =   x + 2y - 14 /3  =    3x+ y- 12/11

Determines the first four derivatives of y = cos x, Example    determines t...

Example    determines the first four derivatives for following.                                                                  y = cos x Solution: Again, let's just do so

Algebraic expression, i dont understand what my teacher disccussing thats w...

i dont understand what my teacher disccussing thats why i want to learn for this lesson. i want to ask'' what is the variables?

Muptipucation, if 2+2=4 what does two times two epual?

if 2+2=4 what does two times two epual?

Market, what is market,what is marketing

what is market,what is marketing

Congruence, Write a proff given angle MJL congruent with angle KJL

Write a proff given angle MJL congruent with angle KJL

Tests for relative minimum, Tests for relative minimum For a relative ...

Tests for relative minimum For a relative minimum point there are two tests: i.The first derivative, which is (dy)/(dx)  = f´(x) = 0 ii.The second derivative, which i

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