Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 82 lines (72 sloc) 4.282 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
<!DOCTYPE html>
<html data-require="math math-format expressions">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Equation of a hyperbola</title>
    <script data-main="../local-only/main.js" src="../local-only/require.js"></script>
</head>
<body>
    <div class="exercise">
    <div class="vars">
        <var id="A">randRange(2, 9)</var>
        <var id="B" data-ensure=" A !== B">randRange(2, 9)</var>
        <var id="A2">A * A</var>
        <var id="B2">B * B</var>

        <var id="H">randRange( -9, 9 )</var>
        <var id="K">randRange( -9, 9 )</var>

        <var id="WHICH_NEG">rand(2)</var>
        <var id="X_MINUS">"+"</var>
        <var id="Y_MINUS">WHICH_NEG === 1 ? "" : "-"</var>

        <var id="X">H === 0 ? "x^2" : expr(["^", ["+", "x", -H], 2])</var>
        <var id="Y">K === 0 ? "y^2" : expr(["^", ["+", "y", -K], 2])</var>
        <var id="X2T">H === 0 ? "\\dfrac{x^2}{" + A2 + "}" : "\\dfrac {" + expr(["^", ["+", "x", -H], 2]) + "}{" + A2 +"}" </var>
        <var id="Y2T">K === 0 ? "\\dfrac{y^2}{" + B2 + "}" : "\\dfrac {" + expr(["^", ["+", "y", -K], 2]) + "}{" + B2 +"}" </var>
    </div>

    <div class="problems">
        <div>
            <div class="question">
                <p>The equation of hyperbola <code>H</code> is <code><var>WHICH_NEG === 1 ? expr(["-", Y2T, X2T]) : expr(["-", X2T, Y2T])</var> = 1</code>.</p>
                <p>What are the asymptotes?</p>
            </div>

            <div class="solution" data-type="multiple">
                <p style="font-size: 11px;">
                    <code>y = \pm </code><span class="sol short28" data-fallback="1"><var>B/A</var></span>
                    <code>(x + </code><span class="sol short28" data-fallback="0"><var>-H</var></span><code>) + </code><span class="sol short28" data-fallback="0"><var>K</var></span>
                </p>

                <p class="example">enter integers, <em>simplified</em> fractions, or <em>exact</em> decimals for each term</p>
                <p class="example">pay attention to the sign of each number you enter to be sure the entire equation is correct</p>
            </div>
        </div>
    </div>

    <div class="hints">
        <div>
            <p>We want to rewrite the equation in terms of <code>y</code>, so start off by moving the <code>y</code> terms to one side:</p>
            <p><code><var>Y2T</var> = <var>Y_MINUS</var> 1 <var>X_MINUS</var> <var>X2T</var></code></p>
        </div>

        <div>
            <p>Multiply both sides of the equation by <code><var>B2</var></code>.</p>
            <p><code><var> Y</var> = {<var>Y_MINUS</var> <var>B2</var> <var>X_MINUS</var> \dfrac{<var>X</var> \cdot <var>B2</var>}{<var>A2</var>}}</code></p>
        </div>
        <div>
            <p>Take the square root of both sides.</p>
            <p><code>\sqrt{<var>Y</var>} = \sqrt{<var>Y_MINUS</var> <var>B2</var> <var>X_MINUS</var> \dfrac{<var>X</var> \cdot <var>B2</var>}{<var>A2</var>}}</code></p>
            <p><code><var>plus("y", -K)</var> = \pm \sqrt{<var>Y_MINUS</var> <var>B2</var> <var>X_MINUS</var> \dfrac{<var>X</var> \cdot <var>B2</var>}{<var>A2</var>}}</code></p>
        </div>
        <div>
            <p>As <code>x</code> approaches positive or negative infinity, the constant term in the square root matters less and less, so we can just ignore it.</p>
            <p><code><var>plus("y", -K)</var> \approx \pm \sqrt{\dfrac{<var>X</var> \cdot <var>B2</var>}{<var>A2</var>}}</code></p>
            <p><code><var>plus("y", -K)</var> \approx \pm \left(\dfrac{<var>B</var> \cdot (<var>plus("x", -H)</var>)}{<var>A</var>}\right)</code></p>
        </div>

        <div>
            <p>
                <span data-if="K > 0">Add <code><var>K</var></code> to both sides and rewrite</span>
                <span data-else-if="K &lt; 0">Subtract <code><var>-K</var></code> from both sides and rewrite</span>
                <span data-else="">Rewrite</span>
                as an equality in terms of <code>y</code> to get the equation of the asymptotes:
            </p>
            <p><code>y = \pm <var>fractionReduce(B, A)</var>(<var>plus( "x", -H )</var>)<var>K &gt;= 0 ? "+" : ""</var> <var>K</var></code></p>
        </div>
    </div>
    </div>
</body>
</html>
Something went wrong with that request. Please try again.