Completing the Square, Imaginary and Complex Numbers

Completing the Square

  • The expression x2+bx+(b2)2x^2 + bx + (\frac{b}{2})^2$$x^2 + bx + (\frac{b}{2})^2$$ can be factored as (x+b2)2(x + \frac{b}{2})^2$$(x + \frac{b}{2})^2$$, and x2bx+(b2)2x^2 - bx + (\frac{b}{2})^2$$x^2 - bx + (\frac{b}{2})^2$$ is (xb2)2(x - \frac{b}{2})^2$$(x - \frac{b}{2})^2$$. These are called perfect squares.

  • Steps to solve a quadratic equation by completing the square:

    1. Subtract cc$$c$$ from both sides of the equation: ax2+bx=cax^2 + bx = -c$$ax^2 + bx = -c$$

    2. Divide both sides by aa$$a$$ to make the coefficient of x2x^2$$x^2$$ equal to 1: x2+bax=cax^2 + \frac{b}{a}x = -\frac{c}{a}$$x^2 + \frac{b}{a}x = -\frac{c}{a}$$

    3. Add the square of half the coefficient of xx$$x$$ (which is (b2a)2(\frac{b}{2a})^2$$(\frac{b}{2a})^2$$) to both sides: x2+bax+(b2a)2=ca+(b2a)2x^2 + \frac{b}{a}x + (\frac{b}{2a})^2 = -\frac{c}{a} + (\frac{b}{2a})^2$$x^2 + \frac{b}{a}x + (\frac{b}{2a})^2 = -\frac{c}{a} + (\frac{b}{2a})^2$$

    4. Rewrite the left side as a perfect square using the formulas from the first slide. This results in (x+b2a)2=ca+(b2a)2(x + \frac{b}{2a})^2 = -\frac{c}{a} + (\frac{b}{2a})^2$$(x + \frac{b}{2a})^2 = -\frac{c}{a} + (\frac{b}{2a})^2$$

    5. Compute the right side by finding a common denominator and adding the numbers.

    6. Solve the obtained equation using the square root property.

Example

  • Solve 3x24x1=03x^2 - 4x - 1 = 0$$3x^2 - 4x - 1 = 0$$ by completing the square.

    1. Add 1 to both sides: 3x24x=13x^2 - 4x = 1$$3x^2 - 4x = 1$$

    2. Divide both sides by 3: x243x=13x^2 - \frac{4}{3}x = \frac{1}{3}$$x^2 - \frac{4}{3}x = \frac{1}{3}$$

    3. Add the square of half the coefficient of xx$$x$$ to both sides. Half of 43-\frac{4}{3}$$-\frac{4}{3}$$ is 23-\frac{2}{3}$$-\frac{2}{3}$$, and its square is (23)2=49(\frac{-2}{3})^2 = \frac{4}{9}$$(\frac{-2}{3})^2 = \frac{4}{9}$$. Thus, x243x+49=13+49x^2 - \frac{4}{3}x + \frac{4}{9} = \frac{1}{3} + \frac{4}{9}$$x^2 - \frac{4}{3}x + \frac{4}{9} = \frac{1}{3} + \frac{4}{9}$$

    4. Rewrite the left side as a perfect square: (x23)2=13+49(x - \frac{2}{3})^2 = \frac{1}{3} + \frac{4}{9}$$(x - \frac{2}{3})^2 = \frac{1}{3} + \frac{4}{9}$$

    5. Compute the right side: 13+49=39+49=79\frac{1}{3} + \frac{4}{9} = \frac{3}{9} + \frac{4}{9} = \frac{7}{9}$$\frac{1}{3} + \frac{4}{9} = \frac{3}{9} + \frac{4}{9} = \frac{7}{9}$$. So, (x23)2=79(x - \frac{2}{3})^2 = \frac{7}{9}$$(x - \frac{2}{3})^2 = \frac{7}{9}$$

    6. Solve using the square root property: x23=±79=±73x - \frac{2}{3} = \pm \sqrt{\frac{7}{9}} = \pm \frac{\sqrt{7}}{3}$$x - \frac{2}{3} = \pm \sqrt{\frac{7}{9}} = \pm \frac{\sqrt{7}}{3}$$. Therefore, x=23±73x = \frac{2}{3} \pm \frac{\sqrt{7}}{3}$$x = \frac{2}{3} \pm \frac{\sqrt{7}}{3}$$

    Remarks

  • Completing the square is not the most efficient method for solving quadratic equations; the quadratic formula is generally faster.

  • The quadratic formula is derived by completing the square on the general quadratic equation ax2+bx+c=0ax^2 + bx + c = 0$$ax^2 + bx + c = 0$$.

  • Completing the square is used for techniques in chapter 2.

Imaginary Numbers

  • Definition: The imaginary unit ii$$i$$ is defined as i=1i = \sqrt{-1}$$i = \sqrt{-1}$$, which means i2=1i^2 = -1$$i^2 = -1$$.

  • If aa$$a$$ is positive, then a=ai=ia\sqrt{-a} = \sqrt{a} \cdot i = i \sqrt{a}$$\sqrt{-a} = \sqrt{a} \cdot i = i \sqrt{a}$$.

  • Example: 5=i5\sqrt{-5} = i \sqrt{5}$$\sqrt{-5} = i \sqrt{5}$$

Rules

  • Some rules of radicals that apply to real numbers do not apply to imaginary numbers.

  • Example: 94(9)(4)\sqrt{-9} \cdot \sqrt{-4} \neq \sqrt{(-9) \cdot (-4)}$$\sqrt{-9} \cdot \sqrt{-4} \neq \sqrt{(-9) \cdot (-4)}$$

    • 9=3i\sqrt{-9} = 3i$$\sqrt{-9} = 3i$$ and 4=2i\sqrt{-4} = 2i$$\sqrt{-4} = 2i$$. Thus, 94=(3i)(2i)=6i2=6(1)=6\sqrt{-9} \cdot \sqrt{-4} = (3i)(2i) = 6i^2 = 6(-1) = -6$$\sqrt{-9} \cdot \sqrt{-4} = (3i)(2i) = 6i^2 = 6(-1) = -6$$

    • If we incorrectly applied the rule, we would get (9)(4)=36=6\sqrt{(-9) \cdot (-4)} = \sqrt{36} = 6$$\sqrt{(-9) \cdot (-4)} = \sqrt{36} = 6$$, which is wrong.

Complex Numbers

  • A complex number is a number of the form a+bia + bi$$a + bi$$, where aa$$a$$ and bb$$b$$ are real numbers.

  • aa$$a$$ is called the real part, and bb$$b$$ is called the imaginary part.

  • Every real number is also a complex number (e.g., 5=5+0i5 = 5 + 0i$$5 = 5 + 0i$$).

Algebra of Complex Numbers

  • Addition/Subtraction: Combine like terms.

    • (53i)+(2+8i)=(52)+(3+8)i=3+5i(5 - 3i) + (-2 + 8i) = (5 - 2) + (-3 + 8)i = 3 + 5i$$(5 - 3i) + (-2 + 8i) = (5 - 2) + (-3 + 8)i = 3 + 5i$$

    • (53i)(2+8i)=(5(2))+(38)i=711i(5 - 3i) - (-2 + 8i) = (5 - (-2)) + (-3 - 8)i = 7 - 11i$$(5 - 3i) - (-2 + 8i) = (5 - (-2)) + (-3 - 8)i = 7 - 11i$$

  • Multiplication: Foil and combine like terms, remembering that i2=1i^2 = -1$$i^2 = -1$$.

    • (2+3i)(23i)=46i+6i9i2=4+9=13(2 + 3i)(2 - 3i) = 4 - 6i + 6i - 9i^2 = 4 + 9 = 13$$(2 + 3i)(2 - 3i) = 4 - 6i + 6i - 9i^2 = 4 + 9 = 13$$

Conjugates

  • The conjugate of a complex number a+bia + bi$$a + bi$$ is abia - bi$$a - bi$$.

  • If you multiply a number times its conjugate (a+bi)(abi) (a + bi)(a - bi)$$ (a + bi)(a - bi)$$, that's like we got in the second example in the previous slides. You're not gonna get any i's don't have to fool there or anything. You can write the answer directly

Division

  • To divide complex numbers, multiply both the numerator and denominator by the conjugate of the denominator to eliminate the imaginary part from the denominator.

Complex Solutions

  • Consider the equation x2+2x+2=0x^2 + 2x + 2 = 0$$x^2 + 2x + 2 = 0$$. Here, a=1a = 1$$a = 1$$, b=2b = 2$$b = 2$$, and c=2c = 2$$c = 2$$.

  • Using the quadratic formula: x=b±b24ac2a=2±224(1)(2)2(1)=2±482=2±42=2±2i2=1±ix = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} = \frac{-2 \pm \sqrt{2^2 - 4(1)(2)}}{2(1)} = \frac{-2 \pm \sqrt{4 - 8}}{2} = \frac{-2 \pm \sqrt{-4}}{2} = \frac{-2 \pm 2i}{2} = -1 \pm i$$x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} = \frac{-2 \pm \sqrt{2^2 - 4(1)(2)}}{2(1)} = \frac{-2 \pm \sqrt{4 - 8}}{2} = \frac{-2 \pm \sqrt{-4}}{2} = \frac{-2 \pm 2i}{2} = -1 \pm i$$

Summary

These notes cover completing the square, imaginary numbers, and complex numbers, including definitions, operations, and examples.

knowt ap exam guide logo

Completing the Square, Imaginary and Complex Numbers

Completing the Square

  • The expression x2+bx+(b2)2x^2 + bx + (\frac{b}{2})^2 can be factored as (x+b2)2(x + \frac{b}{2})^2, and x2bx+(b2)2x^2 - bx + (\frac{b}{2})^2 is (xb2)2(x - \frac{b}{2})^2. These are called perfect squares.

  • Steps to solve a quadratic equation by completing the square:

    1. Subtract cc from both sides of the equation: ax2+bx=cax^2 + bx = -c
    2. Divide both sides by aa to make the coefficient of x2x^2 equal to 1: x2+bax=cax^2 + \frac{b}{a}x = -\frac{c}{a}
    3. Add the square of half the coefficient of xx (which is (b2a)2(\frac{b}{2a})^2) to both sides: x2+bax+(b2a)2=ca+(b2a)2x^2 + \frac{b}{a}x + (\frac{b}{2a})^2 = -\frac{c}{a} + (\frac{b}{2a})^2
    4. Rewrite the left side as a perfect square using the formulas from the first slide. This results in (x+b2a)2=ca+(b2a)2(x + \frac{b}{2a})^2 = -\frac{c}{a} + (\frac{b}{2a})^2
    5. Compute the right side by finding a common denominator and adding the numbers.
    6. Solve the obtained equation using the square root property.

Example

  • Solve 3x24x1=03x^2 - 4x - 1 = 0 by completing the square.

    1. Add 1 to both sides: 3x24x=13x^2 - 4x = 1
    2. Divide both sides by 3: x243x=13x^2 - \frac{4}{3}x = \frac{1}{3}
    3. Add the square of half the coefficient of xx to both sides. Half of 43-\frac{4}{3} is 23-\frac{2}{3}, and its square is (23)2=49(\frac{-2}{3})^2 = \frac{4}{9}. Thus, x243x+49=13+49x^2 - \frac{4}{3}x + \frac{4}{9} = \frac{1}{3} + \frac{4}{9}
    4. Rewrite the left side as a perfect square: (x23)2=13+49(x - \frac{2}{3})^2 = \frac{1}{3} + \frac{4}{9}
    5. Compute the right side: 13+49=39+49=79\frac{1}{3} + \frac{4}{9} = \frac{3}{9} + \frac{4}{9} = \frac{7}{9}. So, (x23)2=79(x - \frac{2}{3})^2 = \frac{7}{9}
    6. Solve using the square root property: x23=±79=±73x - \frac{2}{3} = \pm \sqrt{\frac{7}{9}} = \pm \frac{\sqrt{7}}{3}. Therefore, x=23±73x = \frac{2}{3} \pm \frac{\sqrt{7}}{3}

    Remarks

  • Completing the square is not the most efficient method for solving quadratic equations; the quadratic formula is generally faster.

  • The quadratic formula is derived by completing the square on the general quadratic equation ax2+bx+c=0ax^2 + bx + c = 0.

  • Completing the square is used for techniques in chapter 2.

Imaginary Numbers

  • Definition: The imaginary unit ii is defined as i=1i = \sqrt{-1}, which means i2=1i^2 = -1.
  • If aa is positive, then a=ai=ia\sqrt{-a} = \sqrt{a} \cdot i = i \sqrt{a}.
  • Example: 5=i5\sqrt{-5} = i \sqrt{5}

Rules

  • Some rules of radicals that apply to real numbers do not apply to imaginary numbers.
  • Example: 94(9)(4)\sqrt{-9} \cdot \sqrt{-4} \neq \sqrt{(-9) \cdot (-4)}
    • 9=3i\sqrt{-9} = 3i and 4=2i\sqrt{-4} = 2i. Thus, 94=(3i)(2i)=6i2=6(1)=6\sqrt{-9} \cdot \sqrt{-4} = (3i)(2i) = 6i^2 = 6(-1) = -6
    • If we incorrectly applied the rule, we would get (9)(4)=36=6\sqrt{(-9) \cdot (-4)} = \sqrt{36} = 6, which is wrong.

Complex Numbers

  • A complex number is a number of the form a+bia + bi, where aa and bb are real numbers.
  • aa is called the real part, and bb is called the imaginary part.
  • Every real number is also a complex number (e.g., 5=5+0i5 = 5 + 0i).

Algebra of Complex Numbers

  • Addition/Subtraction: Combine like terms.
    • (53i)+(2+8i)=(52)+(3+8)i=3+5i(5 - 3i) + (-2 + 8i) = (5 - 2) + (-3 + 8)i = 3 + 5i
    • (53i)(2+8i)=(5(2))+(38)i=711i(5 - 3i) - (-2 + 8i) = (5 - (-2)) + (-3 - 8)i = 7 - 11i
  • Multiplication: Foil and combine like terms, remembering that i2=1i^2 = -1.
    • (2+3i)(23i)=46i+6i9i2=4+9=13(2 + 3i)(2 - 3i) = 4 - 6i + 6i - 9i^2 = 4 + 9 = 13

Conjugates

  • The conjugate of a complex number a+bia + bi is abia - bi.
  • If you multiply a number times its conjugate (a+bi)(abi)(a + bi)(a - bi), that's like we got in the second example in the previous slides. You're not gonna get any i's don't have to fool there or anything. You can write the answer directly

Division

  • To divide complex numbers, multiply both the numerator and denominator by the conjugate of the denominator to eliminate the imaginary part from the denominator.

Complex Solutions

  • Consider the equation x2+2x+2=0x^2 + 2x + 2 = 0. Here, a=1a = 1, b=2b = 2, and c=2c = 2.
  • Using the quadratic formula: x=b±b24ac2a=2±224(1)(2)2(1)=2±482=2±42=2±2i2=1±ix = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} = \frac{-2 \pm \sqrt{2^2 - 4(1)(2)}}{2(1)} = \frac{-2 \pm \sqrt{4 - 8}}{2} = \frac{-2 \pm \sqrt{-4}}{2} = \frac{-2 \pm 2i}{2} = -1 \pm i

Summary

These notes cover completing the square, imaginary numbers, and complex numbers, including definitions, operations, and examples.