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

Area related to circle, If ABCD isaa square of side 6 cm find area of shad...

If ABCD isaa square of side 6 cm find area of shaded region

Probability, A man is known to speak truth 3 out of 4 times.He throws adi...

A man is known to speak truth 3 out of 4 times.He throws adie and reports it is a six. Find the probability that it is actually a six. Solution)  we can get a six if a man s

Ratio, ther are 162 student in a school.20 of them are girls .how many are ...

ther are 162 student in a school.20 of them are girls .how many are boy

Functions, The figure shows the sketch graphs of the functions

The figure shows the sketch graphs of the functions

Permutation and combination, The remainder when 5^99 is divided by 13 Ans) ...

The remainder when 5^99 is divided by 13 Ans) 8 is the remainder.

Wronskian, In the earlier section we introduced the Wronskian to assist us ...

In the earlier section we introduced the Wronskian to assist us find out whether two solutions were a fundamental set of solutions. Under this section we will look at the other app

What is slope of a line, What is Slope of a Line ? A line can have a "...

What is Slope of a Line ? A line can have a "steep" slope or a "gradual" slope. slope = rise/run The "rise" is the distance going up or down. The "run" is the distance goin

Percentage change, in a sale a clothes shop reduces its prices by 30% a shi...

in a sale a clothes shop reduces its prices by 30% a shirt usually costs £38 how much is it in the sale

Differential equation to determine initial value problem, Solve the subsequ...

Solve the subsequent IVP. cos(x) y' + sin(x) y = 2 cos 3 (x) sin(x) - 1 y(p/4) = 3√2, 0 Solution : Rewrite the differential equation to determine the coefficient of t

Ordinary differential equations, Give me the power series solution of Halm'...

Give me the power series solution of Halm''s differential equation

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