find the area bounded by the curves f(x)=9-x.^2 and g(x)=x-3 in javascript

To find the area bounded by f(x)=9-x^2 and g(x)=x-3, you must first find the x-coordinates of points where they intersect. This can be done by setting the two functions equal to each other and solving for x:

9 - x^2 = x - 3

x^2 + x - 6 = 0

(x + 3)(x - 2) = 0

x = -3, 2

Now, we can integrate to find the area between the curves. Since f(x) is on top and g(x) is on the bottom,

Area = ∫[a,b] (f(x) - g(x)) dx = ∫[-3,2] (9 - x^2 - (x - 3)) dx

Area = ∫[-3,2] (12 - x^2 - x) dx

Area = [12x - (x^3/3) - (x^2/2)] from -3 to 2

Area = 65.5

Therefore, the area bounded by f(x)=9-x^2 and g(x)=x-3 is 65.5 square units.

related categories

gistlibby LogSnag