In: Electrical Engineering
You are given the roots of a polynomial as: x1 = 3
x2 = -1+j5 x3 = -1-j5
- Find this polynomial. Express it in Matlab.
- Draw this polynomial’s graph.
If x1, x2 and x3 are the roots of a polynomial then the corresponding polynomial of variable x is given by,
Therefore the required polynomial is,
clc;
clear all;
syms x
P = x*x*x - x*x + 20*x - 78 ;
fplot(P)
title('Polynomial Graph of P(x) = x^3-x^2+20x-78')
xlabel('x')
ylabel('P(x)')
The Polynomial's Graph for the given polynomial is given below.