MatheramaMatherama
← Area Under Curves
Area Under Curves·Section 3·14 min read

General Technique of Curve Sketching

When finding areas bounded by unfamiliar curves, you will often meet functions whose shapes you have not memorized. You do not need to plot twenty random points to figure them out. Instead, you can work out the shape of a graph systematically from first principles—and quite often, the first few observations alone already give you the entire picture!


How to Sketch Any Graph From Scratch§

1. Confirm the Domain First§

Always begin by asking: for which values of xx does the function even exist? This prevents you from wasting time trying to sketch in regions where the curve does not exist at all.

  • For example, consider y=x−xy = x - \sqrt{x}. Because x\sqrt{x} is defined only for x≥0x \ge 0, the domain is [0,∞)[0, \infty). You immediately know the entire graph lives to the right of the yy-axis (and includes x=0x = 0); there is nothing to draw for x<0x < 0.
  • Similarly, for y=xln⁡xy = x \ln x, the logarithm requires x>0x > 0, so the domain is the open interval (0,∞)(0, \infty).

2. Find Anchor Points§

Next, find a few fixed, guaranteed points that the graph must pass through. We call these anchor points because they pin the curve down onto the coordinate plane like nails on a board.

  • Axes intercepts: Put x=0x = 0 (if 00 is in the domain) to find where the curve cuts the yy-axis, and solve y=0y = 0 to find where it cuts the xx-axis.
  • Extra easy points: If you can plug in simple numbers like x=1x = 1, x=−1x = -1, or x=ex = e without messy arithmetic, plot those points too. Even two or three extra anchor points give you an immediate sense of how high or low the curve reaches.

3. Decide Where f(x) Is Positive or Negative§

Knowing where f(x)>0f(x) > 0 and where f(x)<0f(x) < 0 tells you which intervals sit above the xx-axis and which intervals hang below the xx-axis.

When a function is written in factored form, checking its sign is quick and foolproof: check the sign of each factor separately and multiply the signs together (exactly like solving inequalities on a number line). Let us see this on two classic examples:

1. Consider y=xln⁡xy = x \ln x (domain x>0x > 0): Look at the two factors xx and ln⁡x\ln x:

  • The first factor xx is always positive across the entire domain (0,∞)(0, \infty).
  • The second factor ln⁡x\ln x changes sign at x=1x = 1: it is negative for 0<x<10 < x < 1, zero at x=1x = 1, and positive for x>1x > 1.

Multiplying the two signs together gives the complete sign of y=xln⁡xy = x \ln x:

  • On (0,1)(0, 1): (+)×(−)=(−)(+) \times (-) = (-), so the graph lies completely below the xx-axis.
  • At x=1x = 1: y=0y = 0 (anchor point (1,0)(1, 0)).
  • On (1,∞)(1, \infty): (+)×(+)=(+)(+) \times (+) = (+), so the graph rises completely above the xx-axis.

2. Consider y=(x−1)exy = (x - 1)e^x (domain R\mathbb{R}): Look at the two factors (x−1)(x - 1) and exe^x:

  • The exponential factor exe^x is strictly positive for every real xx (ex>0e^x > 0 always!).

  • Therefore, the sign of (x−1)ex(x - 1)e^x depends solely on (x−1)(x - 1):

    • For x<1x < 1: (−)×(+)=(−)(-) \times (+) = (-), so the curve lies below the xx-axis.
    • At x=1x = 1: y=0y = 0 (anchor point (1,0)(1, 0)).
    • For x>1x > 1: (+)×(+)=(+)(+) \times (+) = (+), so the curve stays above the xx-axis.

Just from factoring, we already know every single xx-crossing and which regions are shaded above or below the axis!


4. Check for Symmetry (To Cut Your Work in Half—or in Four!)§

Before doing any calculus, check whether the equation stays balanced when signs flip:

  • Replace xx by −x-x:

    • If f(−x)=f(x)f(-x) = f(x) (even function), the graph is mirror-symmetric about the yy-axis. You only need to draw it for x≥0x \ge 0, then mirror it onto x<0x < 0.
    • If f(−x)=−f(x)f(-x) = -f(x) (odd function), the graph is symmetric about the origin (180∘180^\circ rotation). Again, you only need to draw it for x≥0x \ge 0, then flip it across both axes onto x<0x < 0.
  • Replace yy by −y-y: If the equation is unchanged (for example, y2=x2(1−x)y^2 = x^2(1 - x)), the graph is mirror-symmetric about the xx-axis. You only draw the upper branch y≥0y \ge 0 and mirror it downward.

  • Both axes / (x,y)→(−x,−y)(x, y) \to (-x, -y): If replacing xx by −x-x and yy by −y-y leaves an equation like x2+y2=4x^2 + y^2 = 4 or ∣x∣+∣y∣=2|x| + |y| = 2 symmetric across the quadrants, you only need to draw the curve in the first quadrant and reflect it to fill the whole plane!


5. Take Limits at Open Endpoints of the Domain§

Whenever the domain has an open end—such as (0,∞)(0, \infty), (−∞,∞)(-\infty, \infty), or a point where a denominator vanishes—evaluate the limits as xx approaches those open ends. This tells you where the graph enters and exits your page!

For f(x)=xln⁡xf(x) = x \ln x on (0,∞)(0, \infty), the two open ends are 0+0^+ and +∞+\infty:

lim⁡x→0+xln⁡x=lim⁡x→0+ln⁡x1/x=lim⁡x→0+1/x−1/x2=lim⁡x→0+(−x)=0\lim_{x \to 0^+} x \ln x = \lim_{x \to 0^+} \frac{\ln x}{1/x} = \lim_{x \to 0^+} \frac{1/x}{-1/x^2} = \lim_{x \to 0^+} (-x) = 0

Since xln⁡x<0x \ln x < 0 on (0,1)(0, 1), the graph approaches the origin (0,0)(0, 0) from below (with an open circle at (0,0)(0, 0) because 00 is not in the domain). And at the right end:

lim⁡x→∞xln⁡x=+∞\lim_{x \to \infty} x \ln x = +\infty

Partial sketch of y = x ln x showing only domain, sign regions, anchor (1, 0), and endpoint limit directions as x approaches 0+ and +infinity

Notice that most of the time, these five observations alone are already enough to see the full shape of the graph!


6. Use the Derivative f'(x) to Confirm the Turns§

Let us see how all of these ideas come together on a classic curve: f(x)=xe−x2f(x) = x e^{-x^2}.

1. Domain: All real numbers, R\mathbb{R}.

2. Anchor point: Putting x=0x = 0 gives y=0y = 0, so (0,0)(0, 0) is the only intercept.

3. Sign: Since e−x2>0e^{-x^2} > 0 always, f(x)>0f(x) > 0 for x>0x > 0 and f(x)<0f(x) < 0 for x<0x < 0.

4. Symmetry: Replacing xx by −x-x gives f(−x)=(−x)e−(−x)2=−xe−x2=−f(x)f(-x) = (-x)e^{-(-x)^2} = -x e^{-x^2} = -f(x) (an odd function). So we only need to draw the graph for x≥0x \ge 0!

5. Open-end limit: As x→∞x \to \infty, the exponential denominator grows far faster than xx:

lim⁡x→∞xex2=0\lim_{x \to \infty} \frac{x}{e^{x^2}} = 0

Now stop and think visually about x≥0x \ge 0: the graph starts at (0,0)(0, 0), rises into positive values (y>0y > 0), and as x→∞x \to \infty comes back down toward 00! By continuity, the graph must turn around at least once between 00 and ∞\infty.

One tiny question remains: does it make just one smooth peak and come down, or does it wiggle up and down many times? To be 100% sure, we take the first derivative f′(x)f'(x):

f′(x)=1⋅e−x2+x⋅(−2xe−x2)=(1−2x2)e−x2f'(x) = 1 \cdot e^{-x^2} + x \cdot (-2x e^{-x^2}) = (1 - 2x^2)e^{-x^2}

Setting f′(x)=0f'(x) = 0 for x≥0x \ge 0 gives only one critical point:

1−2x2=0  ⟹  x=121 - 2x^2 = 0 \implies x = \frac{1}{\sqrt{2}}
  • For 0≤x<120 \le x < \frac{1}{\sqrt{2}}, f′(x)>0f'(x) > 0 (rising).
  • For x>12x > \frac{1}{\sqrt{2}}, f′(x)<0f'(x) < 0 (falling).

So there is no extra wiggling—just a single clean peak at (12,12e)\left(\frac{1}{\sqrt{2}}, \frac{1}{\sqrt{2e}}\right), followed by a smooth decay to 00! Rotating this x≥0x \ge 0 branch 180∘180^\circ about the origin completes x<0x < 0.

Step-by-step sketching of y = x e^{-x^2}


Step-by-Step Worked Examples§

Example 1: Restricted Domain and Turning Point Below the Axis

Sketch the curve y=x−xy = x - \sqrt{x} and find the area bounded by the curve and the xx-axis.

Solution:

1. Domain: x\sqrt{x} requires x≥0x \ge 0, so domain is [0,∞)[0, \infty).

2. Anchor points:

  • Put x=0  ⟹  y=0x = 0 \implies y = 0: (0,0)(0, 0).
  • Put y=0  ⟹  x−x=x(x−1)=0  ⟹  x=0,  x=1y = 0 \implies x - \sqrt{x} = \sqrt{x}(\sqrt{x} - 1) = 0 \implies x = 0, \; x = 1: (1,0)(1, 0).

3. Sign check: Factor as y=x(x−1)y = \sqrt{x}(\sqrt{x} - 1). Since x≥0\sqrt{x} \ge 0:

  • For 0<x<10 < x < 1, x<1  ⟹  y<0\sqrt{x} < 1 \implies y < 0 (below the xx-axis).
  • For x>1x > 1, x>1  ⟹  y>0\sqrt{x} > 1 \implies y > 0 (above the xx-axis).

4. Limits at open end: As x→∞x \to \infty, xx grows faster than x\sqrt{x}, so lim⁡x→∞(x−x)=+∞\lim_{x \to \infty} (x - \sqrt{x}) = +\infty.

5. Derivative check: Between (0,0)(0, 0) and (1,0)(1, 0), the curve dips below the xx-axis and comes back up, so it must turn:

dydx=1−12x=0  ⟹  x=12  ⟹  x=14\frac{dy}{dx} = 1 - \frac{1}{2\sqrt{x}} = 0 \implies \sqrt{x} = \frac{1}{2} \implies x = \frac{1}{4}

This is the single turning point, giving the minimum value y(14)=14−12=−14y\left(\frac{1}{4}\right) = \frac{1}{4} - \frac{1}{2} = -\frac{1}{4}.

Sketch of y = x - sqrt(x) with shaded area below the x-axis

Area bounded with the xx-axis: Since the closed loop lies below the xx-axis on [0,1][0, 1], we take 0−(x−x)=x−x0 - (x - \sqrt{x}) = \sqrt{x} - x:

A=∫01(x−x) dx=[23x3/2−x22]01=23−12=16 sq. units.A = \int_0^1 (\sqrt{x} - x)\,dx = \left[\frac{2}{3}x^{3/2} - \frac{x^2}{2}\right]_0^1 = \frac{2}{3} - \frac{1}{2} = \frac{1}{6}\text{ sq. units.}

Example 2: Sign Analysis Using Factors With Exponentials

Sketch y=(x−1)exy = (x - 1)e^x and find the area bounded by the curve and both coordinate axes.

Solution:

1. Domain: R\mathbb{R}.

2. Anchor points:

  • x=0  ⟹  y=−1x = 0 \implies y = -1: (0,−1)(0, -1).
  • y=0  ⟹  x=1y = 0 \implies x = 1: (1,0)(1, 0).

3. Sign: Since ex>0e^x > 0 everywhere, y<0y < 0 for x<1x < 1 and y>0y > 0 for x>1x > 1.

4. Limits at open ends (±∞\pm\infty):

  • As x→+∞x \to +\infty, (x−1)ex→+∞(x - 1)e^x \to +\infty.
  • As x→−∞x \to -\infty, write (x−1)ex=x−1e−x(x - 1)e^x = \frac{x - 1}{e^{-x}}. Since e−x→+∞e^{-x} \to +\infty exponentially fast while x−1x - 1 grows linearly, lim⁡x→−∞(x−1)ex=0\lim_{x \to -\infty} (x - 1)e^x = 0 (approaching 00 from below, written 0−0^-, because y<0y < 0 for x<1x < 1).

5. Derivative check: Because y→0−y \to 0^- as x→−∞x \to -\infty and hits (0,−1)(0, -1) before rising to (1,0)(1, 0), let us check where it turns:

f′(x)=1⋅ex+(x−1)ex=xex=0  ⟹  x=0f'(x) = 1 \cdot e^x + (x - 1)e^x = x e^x = 0 \implies x = 0

So the only turning point is right at the anchor point (0,−1)(0, -1) (f′(x)<0f'(x) < 0 for x<0x < 0 and f′(x)>0f'(x) > 0 for x>0x > 0).

Sketch of y = (x - 1)e^x showing minimum at (0, -1) and limit as x -> -infinity

Area bounded with the coordinate axes: On [0,1][0, 1], the curve stays below the xx-axis, so:

A=∫01(1−x)ex dxA = \int_0^1 (1 - x)e^x\,dx

Integrate by parts with u=1−xu = 1 - x, dv=ex dxdv = e^x\,dx (so du=−dxdu = -dx, v=exv = e^x):

A=[(1−x)ex]01+∫01ex dx=(0−1)+[ex]01=−1+(e−1)=e−2 sq. units.A = \Big[(1 - x)e^x\Big]_0^1 + \int_0^1 e^x\,dx = (0 - 1) + \Big[e^x\Big]_0^1 = -1 + (e - 1) = e - 2\text{ sq. units.}

Example 3: Step-by-Step Build of y = x ln x

Sketch y=xln⁡xy = x \ln x step by step.

Solution: Let us trace the graph of y=xln⁡xy = x \ln x stage by stage:

1. Domain & Anchor: Domain is (0,∞)(0, \infty). Putting y=0y = 0 gives ln⁡x=0  ⟹  x=1\ln x = 0 \implies x = 1, so (1,0)(1, 0) is the anchor point.

2. Sign: x>0x > 0 always; ln⁡x<0\ln x < 0 on (0,1)(0, 1) and ln⁡x>0\ln x > 0 on (1,∞)(1, \infty), so the graph lies below the xx-axis on (0,1)(0, 1) and above it on (1,∞)(1, \infty).

3. Endpoint limits: lim⁡x→0+xln⁡x=0−\lim_{x \to 0^+} x \ln x = 0^- (open hole at (0,0)(0, 0)) and lim⁡x→∞xln⁡x=+∞\lim_{x \to \infty} x \ln x = +\infty.

4. Derivative: Because yy leaves (0,0)(0, 0) downward and returns to (1,0)(1, 0), it must turn inside (0,1)(0, 1):

f′(x)=1⋅ln⁡x+x⋅1x=ln⁡x+1=0  ⟹  ln⁡x=−1  ⟹  x=1ef'(x) = 1 \cdot \ln x + x \cdot \frac{1}{x} = \ln x + 1 = 0 \implies \ln x = -1 \implies x = \frac{1}{e}

There is one minimum at (1e,−1e)\left(\frac{1}{e}, -\frac{1}{e}\right), after which the curve climbs monotonically to +∞+\infty.

Step-by-step sketching of y = x ln x


Example 4: Symmetric Bell-Wave Curve y = x e^{-x^2}

Using the graph of y=xe−x2y = x e^{-x^2} that we just sketched above, find the area bounded by y=xe−x2y = x e^{-x^2}, the xx-axis, and the lines x=0x = 0 and x=1x = 1.

Solution: From our earlier analysis, we already know y=xe−x2≥0y = x e^{-x^2} \ge 0 for all x∈[0,1]x \in [0, 1], peaking at x=12x = \frac{1}{\sqrt{2}}. Therefore:

A=∫01xe−x2 dxA = \int_0^1 x e^{-x^2}\,dx

Substitute t=x2  ⟹  dt=2x dx  ⟹  x dx=12 dtt = x^2 \implies dt = 2x\,dx \implies x\,dx = \frac{1}{2}\,dt. When x=0x = 0, t=0t = 0; when x=1x = 1, t=1t = 1:

A=12∫01e−t dt=12[−e−t]01=1−e−12 sq. units.A = \frac{1}{2}\int_0^1 e^{-t}\,dt = \frac{1}{2}\Big[-e^{-t}\Big]_0^1 = \frac{1 - e^{-1}}{2}\text{ sq. units.}

Example 5: A Logarithm Over x With a Vertical Asymptote

Sketch the curve y=ln⁡xxy = \frac{\ln x}{x}.

Solution:

1. Domain: x>0x > 0, i.e., (0,∞)(0, \infty).

2. Anchor point: y=0  ⟹  ln⁡x=0  ⟹  x=1y = 0 \implies \ln x = 0 \implies x = 1, giving (1,0)(1, 0).

3. Sign: Denominator x>0x > 0 is always positive, so the sign comes purely from ln⁡x\ln x: negative on (0,1)(0, 1), positive on (1,∞)(1, \infty).

4. Endpoint limits:

  • As x→0+x \to 0^+, ln⁡x→−∞\ln x \to -\infty and 1x→+∞\frac{1}{x} \to +\infty, so lim⁡x→0+ln⁡xx=−∞\lim_{x \to 0^+} \frac{\ln x}{x} = -\infty (the negative yy-axis is a vertical asymptote).
  • As x→∞x \to \infty, lim⁡x→∞ln⁡xx=lim⁡x→∞1/x1=0\lim_{x \to \infty} \frac{\ln x}{x} = \lim_{x \to \infty} \frac{1/x}{1} = 0 (approaching 00 from above!).

5. Derivative check: For x>1x > 1, the curve starts at (1,0)(1, 0), goes positive, and drops back toward 00 as x→∞x \to \infty, so it must have a peak:

f′(x)=x⋅1x−ln⁡x⋅1x2=1−ln⁡xx2=0  ⟹  ln⁡x=1  ⟹  x=ef'(x) = \frac{x \cdot \frac{1}{x} - \ln x \cdot 1}{x^2} = \frac{1 - \ln x}{x^2} = 0 \implies \ln x = 1 \implies x = e

So there is a single maximum at (e,1e)\left(e, \frac{1}{e}\right), then a steady decline toward 00.

Sketch of y = (ln x)/x with maximum at (e, 1/e)


Example 6: Always Non-Negative Curve That Touches the Origin

Sketch the curve y=x2e−xy = x^2 e^{-x}.

Solution:

1. Domain: R\mathbb{R}.

2. Anchor point: x=0  ⟹  y=0x = 0 \implies y = 0, so (0,0)(0, 0) is the only intercept.

3. Sign: Notice x2≥0x^2 \ge 0 and e−x>0e^{-x} > 0 for all x∈Rx \in \mathbb{R}, so y≥0y \ge 0 everywhere! The graph never drops below the xx-axis; it just touches (0,0)(0, 0) and bounces back up.

4. Limits at ±∞\pm\infty:

  • As x→−∞x \to -\infty, both x2→+∞x^2 \to +\infty and e−x→+∞e^{-x} \to +\infty, so y→+∞y \to +\infty.
  • As x→+∞x \to +\infty, lim⁡x→∞x2ex=0\lim_{x \to \infty} \frac{x^2}{e^x} = 0.

5. Derivative check: Since y≥0y \ge 0, hits 00 at x=0x = 0, and returns to 00 as x→+∞x \to +\infty, it must peak somewhere on (0,∞)(0, \infty):

f′(x)=2xe−x−x2e−x=x(2−x)e−x=0  ⟹  x=0,  x=2f'(x) = 2x e^{-x} - x^2 e^{-x} = x(2 - x)e^{-x} = 0 \implies x = 0, \; x = 2

Checking the sign of x(2−x)x(2 - x): decreasing for x<0x < 0, minimum at (0,0)(0, 0), rising on (0,2)(0, 2), peaking at (2,4e2)\left(2, \frac{4}{e^2}\right), and decaying toward 00 on (2,∞)(2, \infty).

Sketch of y = x^2 e^{-x} touching at O(0,0) and peaking at (2, 4/e^2)


Example 7: Odd Rational Function

Sketch y=xx2+1y = \frac{x}{x^2 + 1}.

Solution:

1. Domain: Since x2+1≥1>0x^2 + 1 \ge 1 > 0, the denominator is never zero—the domain is all of R\mathbb{R}.

2. Anchor point: (0,0)(0, 0) is the only intercept.

3. Symmetry: f(−x)=−xx2+1=−f(x)f(-x) = \frac{-x}{x^2 + 1} = -f(x) (odd function), so we only need to sketch x≥0x \ge 0 and rotate 180∘180^\circ about the origin.

4. Sign & Limit for x≥0x \ge 0: On (0,∞)(0, \infty), both numerator and denominator are positive (y>0y > 0), and lim⁡x→∞xx2+1=lim⁡x→∞1/x1+1/x2=0\lim_{x \to \infty} \frac{x}{x^2 + 1} = \lim_{x \to \infty} \frac{1/x}{1 + 1/x^2} = 0.

5. Derivative check: Since the curve leaves (0,0)(0, 0) upward and decays to 00 as x→∞x \to \infty, it turns:

f′(x)=(x2+1)(1)−x(2x)(x2+1)2=1−x2(x2+1)2=0  ⟹  x=1(x≥0)f'(x) = \frac{(x^2 + 1)(1) - x(2x)}{(x^2 + 1)^2} = \frac{1 - x^2}{(x^2 + 1)^2} = 0 \implies x = 1 \quad (x \ge 0)

So for x≥0x \ge 0 there is one maximum at (1,12)\left(1, \frac{1}{2}\right). By odd symmetry, for x<0x < 0 there is one minimum at (−1,−12)\left(-1, -\frac{1}{2}\right).

Sketch of odd rational function y = x / (x^2 + 1)

Section 3 of 7 · Area Under Curves

Mark this section complete when you have worked through its proofs.