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

Definition of minimum and maximum values, Definition 1.   We say that f...

Definition 1.   We say that f(x) consist an absolute (or global) maximum at x = c if f ( x ) ≤ f (c ) for every x in the domain we are working on. 2.  We say that at x = c ,

What is perfect squares, What is Perfect Squares ? Any number that can ...

What is Perfect Squares ? Any number that can be written as an integer to the power of two is called a perfect square. For example, 4 can be written as 2 2 4 is a "perfect sq

Amy purchased 6 books how much did the books cost altogether, Amy purchased...

Amy purchased 6 books at $4.79 each. How much did the books cost altogether? Multiply 6 by $4.79; 6 × $4.79 = $28.74.

Differentiate functions f ( x ) = 15x100 - 3x12 + 5x - 46, Differentiate f...

Differentiate following functions. (a) f ( x ) = 15x 100 - 3x 12 + 5x - 46 (b) h ( x ) = x π   - x √2  Solution (a)    f ( x ) = 15x 100 - 3x 12 + 5x - 46 I

Write down the equation of the line, Write down the equation of the line wh...

Write down the equation of the line which passes through the points (2, -1, 3) and (1, 4, -3).  Write all three forms of the equation of the line. Solution To do the above

Area in polar cordinates, find the area of the region within the cardioid r...

find the area of the region within the cardioid r=1-cos

Implement immutable data type rational for rational number, Implement an im...

Implement an immutable data type Rational for rational numbers that supports addition, subtraction, multiplication and division. public class Rational Ration

Give the introduction to ratios and proportions, Give the introduction to R...

Give the introduction to Ratios and Proportions? A ratio represents a comparison between two values. A ratio of two numbers can be expressed in three ways: A ratio of "one t

#titlefunction.., provide a real-world example or scenario that can be expr...

provide a real-world example or scenario that can be express as a relation that is not a function

Bricklayer estimates 6.5 how many bricks will he required, A bricklayer est...

A bricklayer estimates that he requires 6.5 bricks per square foot. He needs to lay a patio that will be 110 square feet. How many bricks will he required? Multiply 6.5 by 110;

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