MATLAB Answers

0

How can I solve this problem ? 'Area between curves'

Asked by Abdulrahman Al Ali on 6 Mar 2019
Latest activity Edited by darova
on 18 Mar 2019
clear all
clc
syms x;
f=@(x) x^3-3*x^2;
g=@(x) 4*x;
IP=solve(f(x)-g(x))
A1=int(-g(x)+f(x),-1,0);
A2=int(-f(x)+g(x),0,4);
A=A1+A2
Aalt=int(abs(f(x)-g(x)),-1,4)

  0 Comments

Sign in to comment.

2 Answers

Answer by darova
on 18 Mar 2019
Edited by darova
on 18 Mar 2019
 Accepted Answer

fplot(f,[-2 5])
hold on
fplot(g,[-2 5],'r')
hold off

  0 Comments

Sign in to comment.


Answer by Munish Raj on 18 Mar 2019

Hello Abdulrahman,
This answer will help you solve this problem.
It demostrates how you can calculate the area between two curves.

  0 Comments

Sign in to comment.