diff --git a/OpenProblemLibrary/ma117DB/set5/srw2_9_63.pg b/OpenProblemLibrary/ma117DB/set5/srw2_9_63.pg index 4b5f5ce650..b3be206dcf 100644 --- a/OpenProblemLibrary/ma117DB/set5/srw2_9_63.pg +++ b/OpenProblemLibrary/ma117DB/set5/srw2_9_63.pg @@ -20,35 +20,39 @@ DOCUMENT(); # This should be the first executable line in the problem. loadMacros( "PGstandard.pl", - "PGchoicemacros.pl", + "PGML.pl", + "MathObjects.pl", "PGcourse.pl" ); -TEXT(beginproblem()); $showPartialCorrectAnswers = 1; +Context("Numeric"); + $a = random(2,9,1); +$ans3 = Formula("sqrt(x)-$a"); + +Context("Interval"); + +$ansInt = Compute("[-$a, infinity)"); + +BEGIN_PGML +The function [`f(x)=(x+[$a])^2`] is not one-to-one. Choose the largest possible +domain containing the number 100 so that the function restricted to the domain is one-to-one. + +The largest possible domain is [_________________]{$ansInt} (use interval notation). + +If [`f`] is restricted to the above domain, then the inverse function is [`g(x)=`][_______________]{$ans3}. +END_PGML + +BEGIN_PGML_SOLUTION +The function [`f(x)=(x+[$a])^2`] is one-to-one on the intervals [`(-\infty, -[$a]]`] and [`[-[$a], \infty)`]. +The second one contains the number 100. -TEXT(EV2(<