Face reality as it is, not as it was or as you wish it to be, Jack Welch.
The derivative of a function at a chosen input value, when it exists, is the slope of the tangent line to the graph of the function at that point. It is the instantaneous rate of change —the exact ratio of the instantaneous change in the dependent variable ($y$) to that of the independent variable ($x$).
Definition. A function $f(x)$ is differentiable at a point $a$ of its domain if its domain contains an open interval containing $a$, and the following limit exists: $\boxed{f'(a) = L = \lim_{h \to 0} \frac{f(a+h) - f(a)}{h}}$
Formal Definition: More rigorously, for every positive real number $\epsilon > 0$, there exists a positive real number $\delta > 0$, such that for every $h$ satisfying $0 < |h| < \delta$, the difference between the secant slopes at points sufficiently near a are guaranteed to be ε-close to the derivative: $\left| L - \frac{f(a+h) - f(a)}{h} \right| < \epsilon$
A critical point is a point in the domain of the function where the function is either not differentiable or the derivative is equal to zero ($f'(x) = 0$). The value of the function at a critical point (the $y$-value) is called a critical value.
The squeeze or sandwich theorem. If a function f lies between two functions g and h, and the limits of each of them at a particular point are both equal to L, then the limit of f at that particular point is also equal to L.
The Extreme Value Theorem. If f is a continuous function on an closed interval $[a, b]$, then f has both maximum and minimum values on $[a, b]$. It states that if a function is continuous on a closed bounded interval, then it is guaranteed to hit a highest point and a lowest point somewhere within that interval (either at a peak/valley or at the endpoints a or b).
Fermat’s Theorem. If a function $f(x)$ is defined on the interval $(a, b)$, has a local extremum (a relative maximum or minimum) at $x = c$, and $f'(c)$ exists, then $x = c$ is a critical point of $f(x)$ and $f'(c) = 0$.
Newton’s method is a powerful root-finding algorithm. It is an iterative numerical technique that produces successively better approximations to the roots (zeroes) of a real-valued function $f(x)$.
It is widely used for solving nonlinear equations and finding roots of functions.
The core idea is to approximate the function’s curve with a straight line (the tangent line) and find where that line crosses the x-axis.
Start with an initial guess, $x_0$. Hopefully, it is a reasonable good guess, relatively close to the true root.
Then, we approximate the function by its tangent line, and calculate the x-intercept of this tangent line. This x-intercept is our new guess, say $x_1$, and it will typically be a better approximation to the original function's root than the first guess.
This method is illustrated at the Figure 2.d.
The point-slope formula for a line is $y - y_0 = m(x - x_0)$. Here, the slope $m$ is the derivative $f'(x_0)$. So, the tangent line is: $\boxed{y - f(x_0) = f'(x_0)(x - x_0)}$
Find the x-intercept of this tangent line. To find where the tangent line crosses the x-axis, set $y = 0$ and solve for $x$. We will call this new point $x_1$:
$0 - f(x_0) = f'(x_0)(x_1 - x_0)$
$-\frac{f(x_0)}{f'(x_0)} = x_1 - x_0$
$x_1 = x_0 - \frac{f(x_0)}{f'(x_0)}$
This $x_1$ is our new, refined guess. We repeat the process using $x_1$ to find $x_2$, and so on.
$0-y_n=m(x_{n+1}-x_n) ⇒ x_{n+1} = x_n -\frac{y_n}{m} = x_n -\frac{f(x_n)}{f'(x_n)}$.
This gives us the general recurrence formula: $\boxed{x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)}}$
This method is particularly efficient and quite effective for approximating solutions to equations, especially when the original guess is reasonably close to the actual solution and the function is well-behaved. However, it may not converge or may converge to a local minimum or maximum if the initial guess is far from the actual root.
Additionally, Newton’s method requires the derivative of the function, which may not always be readily available or computationally expensive to compute. If the derivative $f′(x_n)$ is ever zero (a horizontal tangent), the formula fails because you cannot divide by zero.
We want to find the value of $x$ where $x = \sqrt{2}$. Squaring both sides gives $x^2 = 2$, which means we are looking for the root of the function: $f(x) = x^2 - 2$
The derivative is: $f'(x) = 2x$. Now we apply the iterative formula $\boxed{x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)}}$:
After just three iterations, we have reached an approximation of $1.41421$, which is highly accurate to five decimal places.
Setup: Let $f(x) = x^3 + x - 1$. The derivative is $f'(x) = 3x^2 + 1$.
Using Newton’s method formula, $\boxed{x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)}}$:
Check: Plugging this back in, $0.6823^3 + 0.6823 - 1 \approx 0.00002$. This is an extremely good approximation after just three steps.
Existence of a Root. First, notice that $f(x)$ is continuous.
Besides, $f(1) = 1^5 - 5(1) + 3 = -1$ (Negative) and $f(2) = 2^5 - 5(2) + 3 = 25$ (Positive).
By the Intermediate Value Theorem, since the function changes sign, there must exist at least one root $a \in (1, 2)$.
Setup: Let’s use $x_0 = 2$ as our initial guess. The derivative is $f'(x) = 5x^4 - 5$.
Iteration 1: $x_1 = 2 - \frac{2^5 - 5(2) + 3}{5(2)^4 - 5} = 2 - \frac{25}{75} = \frac{5}{3} \approx 1.6667$
Iteration 2: $x_2 = 1.6667 - \frac{1.6667^5 - 5(1.6667) + 3}{5(1.6667)^4 - 5} \approx 1.4425$
Iteration 3: $x_3 = 1.4425 - \frac{1.4425^5 - 5(1.4425) + 3}{5(1.4425)^4 - 5} \approx 1.3204$
Iteration 4: $x_4 = 1.3204 - \frac{1.3204^5 - 5(1.3204) + 3}{5(1.3204)^4 - 5} \approx 1.2800$
Check: $f(1.2800) \approx 0.036$. While not perfectly zero, it is close enough for many purposes. Running one more iteration yields $x_5 \approx 1.2757$, where $f(1.2757) \approx 0.00015$, bringing us safely into the target precision for most use cases.