Clear Filters
Clear Filters

How can I draw graph of y^2=x^2 * (x+3)?

1 view (last 30 days)

Accepted Answer

Sam Chak
Sam Chak on 18 Nov 2023
Edited: Sam Chak on 18 Nov 2023
Hi @Lê
The fimplicit() function can be used.
f = @(x, y) y.^2 - (x.^2).*(x + 3);
fimplicit(f), grid on
xlabel('x'), ylabel('y')
  4 Comments
Sam Chak
Sam Chak on 18 Nov 2023
Hi @Lê
The original question about the implicit plot has been adequately answered. I believe not many students are aware that it involves an implicit function. However, I agree with @John D'Errico's point, and it's fair to inquire about where to find information regarding the integral. Perhaps you didn't use the correct keywords when searching on Google.
There are both symbolic and numerical approaches. Since the problem of finding the area involves a definite integral, I suggest using the integral() command directly. Click on the link to see some examples:
Please share your MATLAB code here, and you will get a sense of achievement.

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!