The vertices of the ellipse are given as
The focus of the ellipse is given as
The equation of an ellipse is given as
Where the coordinate of the center is
To calculate the coordinate of the center, we will use the formula below
The formula to calculate the value of a is given below
By comparing coefficients, we will have
By adding equations (1) and (2) and solving simultaneously, we will have
By substituting hk=2 in equation 1, we will have
The coordinate of the focus,is calculated using the formula below
By substituting the values, we will have
The value of will be calculated using the formula below
By substituting the values, we will have
By substituting the values of a,b,h and k in the equation of an ellipse, we will have
Hence,
The equation of the ellipse will be