How do I solve this simultaneous equation below

The question is solve this simulataneous eqaution and verify the soultion by plotting the functions in the domain -5 is less then or equal to x or is less then or equal to 5.
simulataneous equation is
x^2 +1 = y
7 - x = y
Just want to be pointed in the rigth direction because I have no idea how to do this.

댓글 수: 3

Torsten
Torsten 2022년 9월 17일
편집: Torsten 2022년 9월 17일
Do you know how to determine the intersection point(s) of the two functions
f(x) = x^2+1
g(x) = -x+7
using pencil and paper ?
Adam
Adam 2022년 9월 17일
yes i do
And what's the problem then in MATLAB ?
syms x
f1 = x^2+1;
f2 = -x+7;
sol = solve(f1==f2)
sol = 
hold on
fplot(f1,[-5 5])
fplot(f2,[-5,5])
hold off

댓글을 달려면 로그인하십시오.

답변 (1개)

Sam Chak
Sam Chak 2022년 9월 17일
Verify with MATLAB:
x = roots([1 1 -6])
x = 2×1
-3 2
Can I leave you to find y as a simple exercise?

카테고리

도움말 센터File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

질문:

2022년 9월 17일

댓글:

2022년 9월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by