Now, we will suppose that the foci and are on the axis , so that they are defined by and and therefore the ellipse is also centred on the origin, but now the major semiaxis is the vertical one and the minor semiaxis is horizontal, precisely the opposite to equation ellipse I.
With the same ellipse definition we will write that any point of the ellipse satisfies:
where corresponds to a constant that we can determine as: . Let's see it in the following drawing:

We will now develop which is equivalent to the expression
We isolate the first root and square everything:
Now we isolate on one side of the equation the root that we have left, thereby obtaining:
We raise both sides of the equality to the square:
Remembering that this relation exists , we have:
Now we divide both sides of the expression by the factor and it gives:
We already have the equation of the ellipse for this second case. As it is possible to appreciate, the formula is very similar, only now the square of the value of the major semiaxis is not under , but under . The values of the semiaxes of the denominators have been changed.
Let's see an example:
Example
We will determine the equation of the ellipse of foci and with minor semiaxis and major semiaxis .
The information of the foci tells us that these are placed on the axis and therefore the equation to be considered is where is the major semiaxis and is the minor semiaxis. And so, substituting we have: