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

Mathematics- in our lives , MATHEMATICS - IN OUR LIVES : What is the mo...

MATHEMATICS - IN OUR LIVES : What is the most obvious example of mathematics in your life? To many of us it is the maths that we studied in school. But is that all the mathemat

Find ways in which prizes are distributed between student, Find out the num...

Find out the number of ways in which 5 prizes can be distributed among 5 students such that  (a)   Each student may get a prize. (b)  There is no restriction to the number o

Find out the mean wait in line - probability, Example of Probability I...

Example of Probability Illustration:  It has been determined that the probability density function for the wait in line at a counter is specified by, In which t is the

Fundamental theorem of calculus, Fundamental Theorem of Calculus, Part I ...

Fundamental Theorem of Calculus, Part I As noted through the title above it is only the first part to the Fundamental Theorem of Calculus. The first part of this theorem us

Multiplication of binomials, To understand the multiplication of binomials,...

To understand the multiplication of binomials, we should know what is meant by Distributive Law of Multiplication. Suppose that we are to multiply (a + b) and m. We

How i get orders, how i become an assignment helper?n how i get order from ...

how i become an assignment helper?n how i get order from students?what should i do

Angles of elevation and depression, Can someone please help me grasp the co...

Can someone please help me grasp the concept of angles of depression and elevation?

Operations research, Solve the following Linear Programming Problem using S...

Solve the following Linear Programming Problem using Simple method. Maximize Z= 3x1 + 2X2, Subject to the constraints: X1+ X2 = 4 X1+ X2 = 2 X1, X2 = 0

Dimensions and degree of an expression, Binomials, Trinomials and P...

Binomials, Trinomials and Polynomials which we have seen above are not the only type. We can have them in a single variable say 'x' and of the form x 2 + 4

Roof-finding using steffensen''s method, write a computer program that will...

write a computer program that will implement Steffensen''s 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