Menu

Analyzing Functions: Intersections and Critical Points

Understanding mathematical behavior often requires comparing multiple functions simultaneously or pinpointing specific coordinates. Our updated EquationGraph component now supports multi-series plotting and coordinate points.

1. Finding Intersections

Consider the problem of finding where a parabola y=x2y = x^2 intersects with a line y=x+2y = x + 2.

Solving x2=x+2x^2 = x + 2: x2x2=0x^2 - x - 2 = 0 (x2)(x+1)=0(x-2)(x+1) = 0 So, the intersections are at x=1x = -1 and x=2x = 2.

Let’s visualize this:

Intersection Analysis

Visualizing solutions to x² = x+2

(-1, 1) (2, 4)
Parabola vs Line

2. Visualizing Derivatives

In Calculus, it’s helpful to see a function alongside its derivative. Here is sin(x)\sin(x) and its derivative cos(x)\cos(x).

Notice how the peaks of the sine wave line up with the zero-crossings of the cosine wave.

Function & Derivative

sin(x) [Blue] vs cos(x) [Green]

Max Zero
d/dx sin(x) = cos(x)

3. Optimization Problems

Visualizing the maximum area of a rectangle inscribed in a semicircle. If the circle is x2+y2=4x^2 + y^2 = 4 (radius 2), the area of a rectangle with corner (x,y)(x, y) is A(x)=2x4x2A(x) = 2x \cdot \sqrt{4-x^2}.

Max Area
Area Function A(x)

This graph clearly shows the peak area occurs at x=21.414x = \sqrt{2} \approx 1.414, where the Area is exactly 4.

Implementation Code

Here is how you can use the component in your MDX files:

<EquationGraph 
    series={[
        { function: "sin", color: "blue" },
        { function: "cos", color: "green" }
    ]}
    points={[
        { x: 0, y: 0, label: "Origin" }
    ]}
/>