Math With AmarA C A D E M Y
All math animations

Graduate · Smoothing a weak derivative

Smoothing a weak derivative: A broad rounded corner

Smoothing a weak derivative: investigate a broad rounded corner with smoothing width ε = 1; corner location b = 0.

Predict what will happen, press Play, then pause and explain what changed. Every control also works without playback.

Watch the relationship

Paused
Smoothing a weak derivative: A broad rounded corner. Input x: -3. Smooth derivative: -0.949. Sign representative: -1. Smoothing error: 0.162Smooth a corner, then compare derivatives03.16-303yTeal: smooth curve · dashed: absolute value
ε>0. The sign representative is set to zero at x=b, but that point value is immaterial to the weak derivative. This family illustrates approximation; the weak identity itself is justified by integration by parts against compactly supported test functions.

Starts paused. Play once, pause anywhere, or use Step to inspect the mathematics. Playback stops when this panel leaves the screen.

Make it your experiment

Change one value. Notice what follows.

The controls adjust the model. Numbers below describe the current frame. Decimals are rounded.

Input x
-3
Smooth derivative
-0.949
Sign representative
-1
Smoothing error
0.162

HD animation studio

From experiment to screen.

Present a crisp Canvas scene, save a full-HD image, or capture your model as a silent video.

Understand what you are seeing

The idea behind the motion.

The absolute-value function has a corner but admits a weak first derivative represented by a sign function. A smooth approximation makes the distinction visible: its derivative transitions continuously, while its function error is uniformly bounded by ε. Values assigned to the sign function at the single corner do not affect the weak derivative class. This investigation starts with Smoothing width ε = 1; Corner location b = 0. Predict the result before playing, then change one parameter while keeping the other fixed to test the reason for the change.

A relationship to keep

fε(x)=√((x−b)²+ε²); fε′=(x−b)/fε; ||fε−|x−b|||∞≤ε

Read the symbols alongside the explanation. A diagram shows the relationship; the assumptions tell you when it applies.

  1. STEP 1

    Set up the mathematical model

    Locate the corner b and compare the exact absolute-value curve with its smooth approximation. The starting case is “A broad rounded corner.”

  2. STEP 2

    Follow the changing quantity

    Trace the derivative of the smooth curve. Away from the corner it approaches −1 or +1 as ε shrinks.

  3. STEP 3

    Explain and test the result

    Use √(d²+ε²)−|d|≤ε for the function-error bound. This does not give uniform convergence of the derivatives across the corner.

Your turn to explain

Make a prediction. Test your reasoning.

Keep Smoothing width ε = 1; Corner location b = 0. Pause the timeline at 20%. Given input x = -1.8, calculate smooth derivative, sign representative, smoothing error. Show the substitution into the displayed formula.

Use the values specified in the question. Reset restores the initial values for this investigation.

Compare your explanation

At d=x−b=-1.8, the smooth derivative is d/√(d²+ε²)=-1.8/√(-1.8²+1²)=-0.874157. Subtracting |d| from the smooth function gives error 0.259126, at most ε=1. Results: Smooth derivative: -0.874; Sign representative: -1; Smoothing error: 0.259. Decimal values are rounded; retain the original parameters when checking.

Connect the animation to a worked example and practice questions.