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

Find the probability of drawing a diamond card, Find the probability of dra...

Find the probability of drawing a diamond card in each of the two consecutive draws from a well shuffled pack of cards, if the card drawn is not replaced after the first draw

Given the hypotenuse of a right triangle, Given the hypotenuse of a right t...

Given the hypotenuse of a right triangle: Given that the hypotenuse of a right triangle is 18" and the length of one side is 11", what is the length of another side? a 2 +

Toni tiger, Application Practice Answer the following questions. Use Equat...

Application Practice Answer the following questions. Use Equation Editor to write mathematical expressions and equations. First, save this file to your hard drive by selecting Sav

Repeated roots, Under this section we will be looking at the previous case ...

Under this section we will be looking at the previous case for the constant coefficient and linear and homogeneous second order differential equations.  In this case we need soluti

Find all the real solutions to cubic equation, Find all the real solutions ...

Find all the real solutions to cubic equation x^3 + 4x^2 - 10 =0. Use the cubic equation x^3 + 4x^2 - 10 =0 and perform the following call to the bisection method [0, 1, 30] Use

SOLUTIONS.., bunty and bubly go for jogging every morning. bunty goes aroun...

bunty and bubly go for jogging every morning. bunty goes around a square park of side 80m and bubly goes around a rectangular park with length 90m and breadth 60m.if they both take

Higher-order derivatives, Higher-Order Derivatives It can be se...

Higher-Order Derivatives It can be seen that the derivative of a function is also a function. Considering f'x as a function of x, we can take the derivative

Dynamical system and differential equations, 1. Discuss lyapunov function t...

1. Discuss lyapunov function theory and how it can be used to prove global assmptotic stability of solutions.(Give an example form natural and engineering sciences.) --- Draw le

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