MathLive

MathLive User Guide

Overview

This page is not a traditional “user guide” in the strict sense. Instead, it serves as a collection of example problems designed to showcase MathLive’s capabilities and help users become familiar with how to enter functions, manipulate the graph, and activate features such as intersection detection.

The examples chosen are often equations that are difficult—or impossible—to solve in elementary closed form. By exploring these examples, users can see how MathLive can be used to visualize multiple functions, identify where two or more functions intersect, and therefore determine the solution points of the given equations.

This approach not only illustrates the power of MathLive’s graphing and intersection tools but also provides a hands-on way to learn and practice solving mathematical problems numerically. Please note that this 2D grapher — the 2D Function Graphing Calculator and Visual Equation Solver — finds solutions only for functions in the real number field \(\mathbb{R}\). It will not solve problems for implicit equations involving both \(x\) and \(y\) in the same equation, where the relationship cannot be expressed as \(y = g(x)\). For example, \(x^2 + y^2 = 1\) (circle), \(x^2 - y^2 = 4\) (hyperbola), or in general form \(F(x, y) = 0\). Future revisions of MathLive may include the ability to solve and plot implicit equations.

1. Transcendental equations

(1a) \( x e^{x} = 5 \)
Solution illustration for x e^x = 5
Solution illustration for x e^x = 5
MathLive solution for \( x e^{x} = 5 \)

No elementary closed form; solution via the Lambert \( \operatorname{W} \) function: \( x = \operatorname{W}(5) \approx 1.32672466 \).

Numerically: MathLive.com uses bisection method to solve \( x e^{x} = 5 \).

(1b) \( \cos x = x \)

No closed form. One real root near \( x \approx 0.739085 \).

MathLive.com uses bisection method to solve \( \cos x = x \).

Solution illustration for cos x = x
Solution illustration for cos x = x
MathLive solution for \( \cos x = x \)
(1c) \( x = \tan x \)

Infinitely many roots; none in \( (-\tfrac{\pi}{2},0) \), one near \( 0 \), and one in each interval \( (k\pi-\tfrac{\pi}{2},\,k\pi+\tfrac{\pi}{2}) \). Use bracketing + Newton for each interval.

Solution illustration for tan x = x
Solution illustration for tan x = x
MathLive solution for \( \tan x = x \)

2. Mixed trigonometric–exponential

(2a) \( e^{x} + \sin x = 4 \)

No closed form. Unique real root near \( x \approx 1.1299805 \).

Use bisection on \( [1,1.2] \) or Newton with \( f'(x)=e^x+\cos x \).

Solution illustration for e^x + sin x = 4
Solution illustration for e^x + sin x = 4
MathLive solution for \( e^{x} + \sin x = 4 \)
(2b) \( x^{2} e^{x} = \cos x \)

Infinitely many real roots accumulating for large negative \( x \).

Plot for x^2 e^x = cos x (1)
Plot for x^2 e^x = cos x (2)
MathLive solution for \( x^{2} e^{x} = \cos x \)

3. Fifth-degree polynomial

\( x^{5} - 4x^{3} + x - 1 = 0. \)

By Abel–Ruffini, no general radicals solution.

Solution illustration for x^5 - 4x^3 + x - 1 = 0
Solution illustration for x^5 - 4x^3 + x - 1 = 0
MathLive solution for \( x^{5} - 4x^{3} + x - 1 = 0 \)

4. Complex transcendental form

\( \sin x = x^{3} e^{-x}. \)

Many crossings; bracket each sign change and refine by bisection.

Solution illustration for sin x = x^3 e^{-x}
Solution illustration for sin x = x^3 e^{-x}
MathLive solution for \( \sin x = x^{3} e^{-x} \)

5. Nonlinear eigenvalue problem

\[ \sin \lambda = \frac{\lambda}{2} \]

Discrete spectrum of \( \lambda \). Solve per interval with bracketing

Solution illustration for sin λ = λ/2
Solution illustration for sin λ = λ/2
MathLive solution for \( \sin x = \frac{x}{2} \)

Notes on MathLive Method to Find Intersections (Solutions)

MathLive uses the Bisection Method to find the coordinates of intersection points between functions. This numerical method is guaranteed to find a root if the function values at the endpoints \(a\) and \(b\) have opposite signs (meaning the function crosses zero within \([a,b]\)). The error is reduced by half with each iteration, making it both reliable and predictable.

We use the Bisection Method instead of Newton's Method because it does not require knowing or computing the derivative \(f'(x)\). Implementing Newton’s Method for intersection detection would have required more complex code to symbolically or numerically evaluate derivatives for all user-entered functions. That extra complexity would slow down performance and make the algorithm less robust, especially for functions that are not differentiable everywhere.

Advantages of the Bisection Method:

Worked Example: Solve \(x^3 - x - 2 = 0\)

1) Define: \( f(x) = x^3 - x - 2 \).

2) Choose an interval \([a,b]\) with opposite signs: \( a = 1,\; b = 2 \). Then \( f(1) = 1 - 1 - 2 = -2 \) (negative), \( f(2) = 8 - 2 - 2 = 4 \) (positive). Since the signs differ, a root lies in \([1,2]\).

3) Iterate (Bisection): at each step, take the midpoint \( m = \dfrac{a+b}{2} \) and keep the half-interval where the sign changes.

Step \(a\) \(b\) \(m=\frac{a+b}{2}\) \(f(m)\) Keep
1 1.0000 2.0000 1.5000 \(f(1.5)=-0.125\) [1.5, 2]
2 1.5000 2.0000 1.7500 \(f(1.75)\approx 1.609\) [1.5, 1.75]
3 1.5000 1.7500 1.6250 \(f(1.625)\approx 0.666\) [1.5, 1.625]
4 1.5000 1.6250 1.5625 \(f(1.5625)\approx 0.249\) [1.5, 1.5625]

Continuing in this way shrinks the interval around the root. After several iterations, $$x \approx 1.52138 \quad \text{(to five decimal places).}$$

Stopping criterion: stop when \(b-a\) is below a chosen tolerance when \(|f(m)|\) is sufficiently small. MathLive uses tolerance = \(10^{-12}\).

Solution illustration for x^3 - x - 2 = 0
MathLive solution for \( x^{3} - x - 2 = 0 \)

Links: MathLive.com