Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 141 lines (131 sloc) 6.933 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140
<!DOCTYPE html>
<html data-require="math math-format">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Solving quadratics by factoring 2</title>
    <script src="../khan-exercise.js"></script>
    <style type="text/css">
        #answer_area input[type=text] {
            width: 50px;
        }
    </style>
</head>
<body>
    <div class="exercise">
    <div class="vars">
        <div data-ensure="abs(A) !== abs(B)">
            <var id="A">randRangeNonZero( -10, 10 )</var>
            <var id="B">randRangeNonZero( -10, 10 )</var>
        </div>
        <var id="SQUARE">randRange(1,6)</var>
    </div>

    <div class="problems">
        <div id="original" data-weight="2">
            <div class="vars">
                <var id="CONSTANT">SQUARE*A*B</var>
                <var id="SIMPLECONSTANT">A*B</var>
                <var id="LINEAR">SQUARE*(-A-B)</var>
                <var id="SIMPLELINEAR">-A-B</var>
            </div>

            <p class="problem">Determine where <code>f(x)</code> intersects the <code>x</code>-axis.</p>
            <p class="question"><code>f(x) = <var>plus(SQUARE + "x^2")</var> + <var>plus( LINEAR + "x" )</var> + <var>CONSTANT</var></code></p>

            <div class="solution" data-type="set">
                <div class="set-sol"><var>A</var></div>
                <div class="set-sol"><var>B</var></div>
                <div class="input-format">
                    <p><code>x = \quad</code><span class="entry"></span><code>\quad \text{and} \quad x = \quad</code><span class="entry"></span></p>
                </div>
            </div>

            <div class="hints" data-apply="appendContents">
                <div id="hint1">
                    <p>The two numbers <code class="hint_pink"><var>-A</var></code> and <code class="hint_pink"><var>-B</var></code> satisfy both conditions:</p>
                    <p><code>
                        \qquad \color{<var>PINK</var>}{<var>-A</var>} + \color{<var>PINK</var>}{<var>-B</var>} =
                        \color{<var>GREEN</var>}{<var>SIMPLELINEAR</var>}
                    </code></p>
                    <p><code>
                        \qquad \color{<var>PINK</var>}{<var>-A</var>} \times \color{<var>PINK</var>}{<var>-B</var>} =
                        \color{<var>BLUE</var>}{<var>SIMPLECONSTANT</var>}
                    </code></p>
                </div>
                <p id="hint2">
                    So <code>(x <var>A &lt; 0 ? "+" : ""</var> \color{<var>PINK</var>}{<var>-A</var>})
                    (x <var>B &lt; 0 ? "+" : ""</var> \color{<var>PINK</var>}{<var>-B</var>}) = 0</code>.
                </p>
                <p id="hint3">
                    Since <code>(x <var>A &lt; 0 ? "+" : ""</var> <var>-A</var>)
                    (x <var>B &lt; 0 ? "+" : ""</var> <var>-B</var>) = 0</code>,
                    we know that one or both quantities must equal zero for the equation to be true.
                </p>
                <p id="hint4"><code>x + <var>-A</var> = 0</code> or <code>x + <var>-B</var> = 0</code></p>
                <p id="hint5"><b>Thus, <code>x = <var>A</var></code> and <code>x = <var>B</var></code> are the solutions.</b></p>
            </div>
        </div>


        <div id="one-root" data-type="original" data-weight="1">
            <div class="vars">
                <var id="CONSTANT">SQUARE * A * A</var>
                <var id="SIMPLECONSTANT">A * A</var>
                <var id="LINEAR">SQUARE * ( -2 * A )</var>
                <var id="SIMPLELINEAR">-2 * A</var>
            </div>
            <p class="problem">Determine where <code>f(x)</code> intersects the x-axis.</p>
            <p class="question"><code>f(x) = <var>plus( SQUARE + "x^2")</var> + <var>plus( LINEAR + "x" )</var> + <var>CONSTANT</var></code></p>
            <div class="solution" data-type="multiple">
                <p><code>x = \quad</code><span class="sol"><var>A</var></span></p>
            </div>
            <div class="hints" data-apply="appendContents">
                <div id="hint1">
                    <p>The number <code class="hint_pink"><var>-A</var></code> used twice satisfies both conditions:</p>
                    <p><code>
                        \qquad \color{<var>PINK</var>}{<var>-A</var>} + \color{<var>PINK</var>}{<var>-A</var>} =
                        \color{<var>GREEN</var>}{<var>SIMPLELINEAR</var>}
                    </code></p>
                    <p><code>
                        \qquad \color{<var>PINK</var>}{<var>-A</var>} \times \color{<var>PINK</var>}{<var>-A</var>} =
                        \color{<var>BLUE</var>}{<var>SIMPLECONSTANT</var>}
                    </code></p>
                </div>
                <p id="hint2">So <code>(x <var>A &lt; 0 ? "+" : ""</var> \color{<var>PINK</var>}{<var>-A</var>})^2 = 0</code>.</p>
                <p id="hint3"><code>x + <var>-A</var> = 0</code></p>
                <p id="hint4"><b>Thus, <code>x = <var>A</var></code> is the solution.</b></p>
            </div>
        </div>
    </div>

    <div class="hints">
        <div data-if="SQUARE === 1">
            <p>The function intersects the <code>x</code>-axis where <code>f(x) = 0</code>, so solve the equation:</p>
            <p><code>
                \qquad
                <var>plus( SQUARE + "x^2" )</var>
                <var>LINEAR &gt;= 0 ? "+" : ""</var>
                <var>plus( "\\color{" + GREEN + "}{" + LINEAR + "}x" )</var>
                <var>CONSTANT &gt;= 0 ? "+" : ""</var>
                <var>plus( "\\color{" + BLUE + "}{" + CONSTANT + "}" )</var>
                = 0
            </code></p>
        </div>
        <div data-else>
            <p>The function intersects the <code>x</code>-axis where <code>f(x) = 0</code>, so solve the equation:</p>
            <p><code>\qquad <var>plus( SQUARE + "x^2", LINEAR + "x", CONSTANT )</var> = 0</code></p>
        </div>

        <div data-if="SQUARE > 1">
            <p>Dividing both sides by <code><var>SQUARE</var></code> gives:</p>
            <p><code>
                \qquad x^2
                <var>SIMPLELINEAR &gt;= 0 ? "+" : ""</var>
                <var>plus( "\\color{" + GREEN + "}{" + SIMPLELINEAR + "}x" )</var>
                <var>SIMPLECONSTANT &gt;= 0 ? "+" : ""</var>
                <var>plus( "\\color{" + BLUE + "}{" + SIMPLECONSTANT + "}" )</var>
                = 0
            </code></p>
        </div>

        <p>
            The coefficient on the <code>x</code> term is <code class="hint_green"><var>SIMPLELINEAR</var></code>
            and the constant term is <code class="hint_blue"><var>SIMPLECONSTANT</var></code>, so we need to find two numbers
            that <span class="hint_green">add up to <code><var>SIMPLELINEAR</var></code></span> and <span class="hint_blue">multiply to
            <code><var>SIMPLECONSTANT</var></code></span>.
        </p>
    </div>
    </div>
</body>
</html>
Something went wrong with that request. Please try again.