# Khan/khan-exercises

Merge pull request #43433 from petercollingridge/domain-q

```Students must state the domain of simplified expression where necessary.

fix #43504; fix #43362;

Test plan: try a few example exercises (note that 1 of the 3 types don't require a domain to be specified) http://localhost:8000/exercises/simplifying_rational_expressions_3.html

Auditors: eater, alpert, cbhl```
• Loading branch information...
2 parents a3c6523 + ead4c82 commit 4a17002f7cb488dde7369af65593e21c62e41279 petercollingridge committed Mar 19, 2013
Showing with 141 additions and 42 deletions.
1. +141 −42 exercises/simplifying_rational_expressions_3.html
183 exercises/simplifying_rational_expressions_3.html
 @@ -18,6 +18,9 @@ padding-top: 1px; border-top: 1px solid black; } + #solutionarea .soln-dom { + padding-left: 3px; + } @@ -46,6 +49,52 @@ getExpressionRegex(-1, X, -B) getExpressionRegex(-1, X, -C) + +
+
+ POSITIVENUMERATOR + -A + POSITIVEDENOMINATOR +
+
+ NEGATIVENUMERATOR + -A + NEGATIVEDENOMINATOR +
+ +
+
+ +
+ Y = + + a + ; + \space X \neq a +
+ a +
+ + + + + + + + + + +
a simplifed expression, like x + 2
+ + +
+

The original expression has (X + A) in the denominator, + so is not defined when X = -A.

+
+

We must therefore include this condition with the simplified expression:

+ Y = \dfrac{FACTOR1}{FACTOR2}; \space X \neq -A +
+
@@ -59,6 +108,52 @@ getExpressionRegex(0, X, -B) getExpressionRegex(-1, X, -C)
+ +
+
+ POSITIVENUMERATOR + -A + POSITIVEDENOMINATOR +
+
+ NEGATIVENUMERATOR + -A + NEGATIVEDENOMINATOR +
+ +
+
+ +
+ Y = + + a + ; + \space X \neq a +
+ a +
+ + + + + + + + + + +
a simplifed expression, like x + 2
+ + +
+

The original expression has (X + A) in the denominator, + so is not defined when X = -A.

+
+

We must therefore include this condition with the simplified expression:

+ Y = \dfrac{FACTOR1}{FACTOR2}; \space X \neq -A +
+
@@ -72,45 +167,58 @@ getExpressionRegex(-1, X, -B) getExpressionRegex(0, X, -C)
- - -

Simplify the following expression:

-

Y = \dfrac{NUMERATOR}{DENOMINATOR}

-

You can assume X \neq 0.

+

Simplify the following expression:

+ +
+
+ POSITIVENUMERATOR + POSITIVEDENOMINATOR +
+
+ NEGATIVENUMERATOR + NEGATIVEDENOMINATOR +
-
-
- POSITIVENUMERATOR - POSITIVEDENOMINATOR -
-
- NEGATIVENUMERATOR - NEGATIVEDENOMINATOR -
-
-
- -
- Y = - - a -
- a -
- - - - - - - +
+
+ +
+ Y = + + a +
+ a +
+ + + + + + + + + +
a simplifed expression, like x + 2
+ + +
+
+

To remove the negative denominator, multiply the numerator and denominator by -1:

+
Y = \dfrac{-X + -B}{-C}
+
+
+

Dividing by -1 is the same thing as multiplying by -1, so the answer is:

+
Y = -X + -B
-

a simplifed expression, like x + 2

+ +

Simplify the following expression and state the domain:

+

Y = \dfrac{NUMERATOR}{DENOMINATOR}

+

First factor the expressions in the numerator and denominator.

@@ -123,23 +231,14 @@

Dividing both the numerator and denominator by (X + A) gives:

-
+
Y = \dfrac{FACTOR1}{FACTOR2} or more simply, Y = FACTOR1
Y = \dfrac{FACTOR1}{FACTOR2}
-
-

To remove the negative denominator, multiply the numerator and denominator by -1:

-
Y = \dfrac{-X + -B}{-C}
-
-
-

Dividing by -1 is the same thing as multiplying by -1, so the answer is:

-
Y = -X + -B
-
-

#### 0 comments on commit `4a17002`

Please sign in to comment.