Free preview

83 lessons

Mathematical Foundations for ML

Free preview

Mathematical Foundations for ML · 83 lessons

Build the maths foundations that make ML click

No surprise gaps

Actually remember it

Skip what you know

One subscription. All learning paths included.

Our content is best on a larger screen

Square roots

What is a square root

Explanation

Squaring a number means multiplying it by itself. A square root reverses this - it asks "what non-negative number, when squared, gives aa?"

Square root

Definition

The square root of aa, written a\sqrt{a}, is the non-negative number that squares to give aa:

a=bmeansb0 and b2=a\sqrt{a} = b \quad \text{means} \quad b \geq 0 \text{ and } b^2 = a

a\sqrt{a} is only defined for a0a \geq 0 in the real numbers. The expression a\sqrt{a} is also called a radical.

A perfect square is a number whose square root is a whole number. Recognising these from memory makes working with square roots much faster.

Perfect squares

Details

Example

Evaluate 49\sqrt{49}, 0\sqrt{0}, and 9\sqrt{-9}.

Solution

Evaluating 49\sqrt{49}

We need a non-negative number that, when squared, gives 4949. Since 72=497^2 = 49 and 707 \geq 0:

49=7\sqrt{49} = 7

Evaluating 0\sqrt{0}

We need a non-negative number that, when squared, gives 00. Since 02=00^2 = 0 and 000 \geq 0:

0=0\sqrt{0} = 0

Evaluating 9\sqrt{-9}

There is no real number whose square is 9-9. Any real number squared gives a non-negative result, so 9\sqrt{-9} is not defined in the real numbers.

Practice questions

4 questions

What is 64\sqrt{64}?

Select the correct answer:

+ 3 more questions

Principal vs negative root

Explanation

Every positive number has two square roots - one positive and one negative - because both a number and its negative square to the same result. The symbol a\sqrt{a} picks out just one of them.

Principal root

Definition

The square root symbol a\sqrt{a} always returns the non-negative root. This is called the principal root.

The equation x2=ax^2 = a (for a>0a > 0) has two solutions:

x=aorx=ax = \sqrt{a} \quad \text{or} \quad x = -\sqrt{a}

Written compactly: x=±ax = \pm\sqrt{a}.

The key distinction is between evaluating a\sqrt{a} (one answer, always non-negative) and solving x2=ax^2 = a (two answers, ±a\pm\sqrt{a}).

a±a\sqrt{a} \neq \pm\sqrt{a}

Gotcha

a\sqrt{a} is a single non-negative value. It is the equation x2=ax^2 = a that has two solutions.

Example

Solve x2=36x^2 = 36. Then evaluate 36\sqrt{36}.

Solution

Solving x2=36x^2 = 36

We need all values of xx whose square is 3636. Both 66 and 6-6 satisfy this:

62=36and(6)2=366^2 = 36 \quad \text{and} \quad (-6)^2 = 36

So the equation has two solutions:

x=6orx=6x = 6 \quad \text{or} \quad x = -6

Written compactly: x=±6x = \pm 6.

Evaluating 36\sqrt{36}

The square root symbol always returns the principal (non-negative) root. Since 606 \geq 0 and 62=366^2 = 36:

36=6\sqrt{36} = 6

The answer is 66, not ±6\pm 6. The ±\pm only appears when solving an equation like x2=36x^2 = 36.

Practice questions

4 questions

Which of the following statements is correct?

Select the correct answer:

+ 3 more questions

Estimating non-perfect square roots

Explanation

Most positive integers are not perfect squares - their square roots are irrational numbers (decimals that go on forever without repeating). We cannot write these roots exactly, but we can estimate where they fall.

Estimating square roots

Definition

If n2<a<(n+1)2n^2 < a < (n+1)^2, then:

n<a<n+1n < \sqrt{a} < n + 1

To decide which integer a\sqrt{a} is closer to, compare how close aa is to n2n^2 versus (n+1)2(n+1)^2.

This gives a quick way to place any square root between two consecutive integers - useful for sanity-checking calculations and building numerical intuition.

Example

Estimate 50\sqrt{50}. Between which two consecutive integers does it fall, and which is it closer to?

Solution

First, we identify the perfect squares on either side of 5050:

49<50<6449 < 50 < 64

Taking square roots:

49<50<64\sqrt{49} < \sqrt{50} < \sqrt{64} 7<50<87 < \sqrt{50} < 8

So 50\sqrt{50} lies between 77 and 88.

To determine which integer it is closer to, we compare distances: 5050 is only 11 away from 4949, but 1414 away from 6464. Since 5050 is much closer to 4949, 50\sqrt{50} is very close to 77.

So 50\sqrt{50} falls between 77 and 88, and is much closer to 77 (approximately 7.077.07).

Practice questions

4 questions

Between which two consecutive integers does 30\sqrt{30} fall?

Select the correct answer:

+ 3 more questions