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

Reason why we start division, Reasons why we start division : The reason w...

Reasons why we start division : The reason we start division by considering the digit in the leftmost place is efficiency and ease . For instance, suppose we divide 417 by 3, we

Use newtons method to find out an approximation, Use Newton's Method to fin...

Use Newton's Method to find out an approximation to the solution to cos x = x which lies in the interval [0,2].  Determine the approximation to six decimal places. Solution

Basic operations on fractions, A simple example of fraction would be ...

A simple example of fraction would be a rational number of the form p/q, where q ≠ 0. In fractions also we come across different types of them. The two fractions

Estimating sums, round to the nearest ten to estimate , 422+296

round to the nearest ten to estimate , 422+296

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

Diffrentiation, y=f(a^x)   and f(sinx)=lnx find dy/dx Solution) dy/dx...

y=f(a^x)   and f(sinx)=lnx find dy/dx Solution) dy/dx = (a^x)(lnx)f''(a^x), .........(1) but f(sinx) = lnx implies f(x) = ln(arcsinx) hence f''(x) = (1/arcsinx) (1/ ( ( 1-x

Show basic trigonometric functions, Q. Show basic Trigonometric Functions? ...

Q. Show basic Trigonometric Functions? Ans. There are six trigonometric functions and they can be defined using a right angle triangle. We first label each side according

Differential equation - variation of parameters, Variation of Parameters ...

Variation of Parameters Notice there the differential equation, y′′ + q (t) y′ + r (t) y = g (t) Suppose that y 1 (t) and y 2 (t) are a fundamental set of solutions for

Comparison-types of word problems related to subtraction, Comparison - the...

Comparison - the difference between two groups or numbers, namely, how much one is greater than the other, how much more is in one group than in the other. (e.g., if Munna has

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