---
title: "Second region condition, ellipse midpoint"
subject: "Computer Graphics"
chapter: 2
key: "semester_5/computer_graphics:ellipse-second-region-condition"
source: https://www.bctengineer.com/q/semester_5/computer_graphics/ellipse-second-region-condition
site: BCT Engineering
---

# Second region condition, ellipse midpoint

Computer Graphics · Chapter 2: Scan-Conversion

- Asked in: 2072 Kartik, 2 marks
- Video: [Midpoint Ellipse Drawing Algorithm](https://www.youtube.com/watch?v=a6XFLAxqqQI) — TutorialsPoint
- Answer checked by Claude Opus 5.5 (high effort) on 2026-10-14
- Page: https://www.bctengineer.com/q/semester_5/computer_graphics/ellipse-second-region-condition
- Whole chapter: https://www.bctengineer.com/md/semester_5/computer_graphics/chapter-2

## Question

State the condition to identify that you are in the second region of the ellipse using the midpoint algorithm.

## Short answer

The second region is identified when 2·ry²·x ≥ 2·rx²·y, meaning the slope magnitude is at least 1. Region 1 continues while 2ry²x < 2rx²y; otherwise switch to region 2 where y is stepped.

## Answer

In the midpoint ellipse algorithm, the slope of the ellipse at (x, y) is dy/dx = −(ry²x)/(rx²y). We are in the **second region** when the slope magnitude becomes 1 or more, i.e. when

**2·ry²·x ≥ 2·rx²·y**

The loop for region 1 runs while 2ry²x < 2rx²y; once this is false, the algorithm switches to region 2 (y is then the unit-step direction).

## Check yourself

The answer's key points as multiple-choice questions, with the correct option and why.

1. The midpoint ellipse algorithm is in region 2 when:
   A. 2ry^2 x ≥ 2rx^2 y
   B. 2ry^2 x < 2rx^2 y
   C. rx x ≥ ry y
   D. x ≥ rx
   Answer: A. Slope magnitude ≥ 1 corresponds to this inequality. (Key point: Condition)

2. The slope of the ellipse at (x,y) is:
   A. (ry^2 x)/(rx^2 y)
   B. −(ry^2 x)/(rx^2 y)
   C. −(rx^2 y)/(ry^2 x)
   D. −(ry x)/(rx y)
   Answer: B. Differentiating ry^2x^2 + rx^2y^2 = rx^2ry^2 gives this. (Key point: Slope)

3. In region 2, which direction is the unit step?
   A. x
   B. Both
   C. y (decreasing by 1)
   D. Neither
   Answer: C. Once the slope magnitude is ≥ 1, y becomes the unit step. (Key point: Unit step)

## Related in Computer Graphics

- [Compare DDA/Bresenham; midpoint ellipse](https://www.bctengineer.com/question.md?key=semester_5%2Fcomputer_graphics%3Acompare-dda-bresenham-midpoint-ellipse) — Computer Graphics, chapter 2
- [Midpoint circle algorithm and decision parameter](https://www.bctengineer.com/question.md?key=semester_5%2Fcomputer_graphics%3Amidpoint-circle-derive) — Computer Graphics, chapter 2, asked 8×
- [Ellipse symmetry and drawing algorithm](https://www.bctengineer.com/question.md?key=semester_5%2Fcomputer_graphics%3Aellipse-symmetry-algorithm) — Computer Graphics, chapter 2
- [Midpoint ellipse: x²/64 + y²/36 = 1](https://www.bctengineer.com/question.md?key=semester_5%2Fcomputer_graphics%3Aellipse-x2-64-y2-36) — Computer Graphics, chapter 2
- [Midpoint circle: r=5, centre (10,5)](https://www.bctengineer.com/question.md?key=semester_5%2Fcomputer_graphics%3Acircle-r5-center-10-5) — Computer Graphics, chapter 2, asked 2×
- [Midpoint circle: r=8, centre (-5,10)](https://www.bctengineer.com/question.md?key=semester_5%2Fcomputer_graphics%3Acircle-r8-center-neg5-10) — Computer Graphics, chapter 2, asked 2×

## Related in other subjects

- [Condition for lx+my+n=0 to be normal to ellipse](https://www.bctengineer.com/question.md?key=semester_1%2Fmathematics_i%3Aellipse-normal-condition-lx-my-n) — Mathematics I, chapter 3, asked 2×
- [Condition for lx+my+n=0 to be tangent to ellipse](https://www.bctengineer.com/question.md?key=semester_1%2Fmathematics_i%3Aellipse-tangent-condition-lx-my-n) — Mathematics I, chapter 3
- [Condition for x cosα + y sinα = p to touch ellipse](https://www.bctengineer.com/question.md?key=semester_1%2Fmathematics_i%3Aellipse-tangent-condition-xcos-ysin) — Mathematics I, chapter 3
- [Race condition example; Peterson's algorithm](https://www.bctengineer.com/question.md?key=semester_6%2Foperating_system%3Arace-condition-example-peterson) — Operating System, chapter 3
