---
title: "Absolute Value Function — AP Calc Definition & MVT Guide"
description: "The absolute value function returns a number's distance from zero, creating a corner where it's not differentiable. It's the classic MVT counterexample in AP Calc."
canonical: "https://fiveable.me/ap-calc/key-terms/absolute-value-function"
type: "key-term"
subject: "AP Calculus AB/BC"
unit: "Unit 5"
---

# Absolute Value Function — AP Calc Definition & MVT Guide

## Definition

The absolute value function f(x) = |x| outputs the distance of x from zero, so it's continuous everywhere but has a sharp corner where its derivative does not exist. On the AP Calculus exam it's the go-to counterexample for why the Mean Value Theorem needs differentiability, not just continuity.

## What It Is

The absolute value function takes any input and returns its distance from zero, so f(x) = |x| gives 3 for both 3 and -3. You can also write it as a [piecewise function](/ap-calc/key-terms/piecewise-function "fv-autolink"). It equals x when x is at or above zero, and -x when x is below zero. Its graph is a V shape with a sharp corner at the vertex.

That corner is the whole story in [AP Calc](/ap-calc "fv-autolink"). The [function](/ap-calc/unit-1/defining-continuity-at-point/study-guide/JbsR9iQfAzCznNOCG6JK "fv-autolink") is continuous everywhere (you can draw it without lifting your pencil), but at the corner the slope jumps instantly from -1 to +1. There is no single tangent line there, so the derivative does not exist at that point. Shifted versions like f(x) = |x - 2| just move the corner, in this case to x = 2. Whenever an interval contains the corner, differentiability fails on that interval, and that's exactly the trap the exam sets.

## Why It Matters

This term lives in Topic 5.1, Using the Mean Value Theorem, in [Unit 5](/ap-calc/unit-5 "fv-autolink") (Analytical Applications of Differentiation). Learning objective 5.1.A asks you to justify conclusions using the MVT, and FUN-1.B.1 spells out the two hypotheses you must check first. The function has to be [continuous](/ap-calc/key-terms/continuous "fv-autolink") on the closed interval [a, b] AND differentiable on the open interval (a, b). The absolute value function is the cleanest example of a function that passes the first check and fails the second. If the corner sits inside (a, b), the MVT gives you no guarantee at all, even though the function looks perfectly tame. AP loves testing whether you actually verify hypotheses instead of just applying the theorem on autopilot, and |x - 2| is how they do it.

## Connections

### [Piecewise Function (Unit 1)](/ap-calc/key-terms/piecewise-function)

The absolute value function IS a piecewise function in disguise. Rewriting |x - 2| as two linear pieces that meet at x = 2 is often the fastest way to see why the [slope](/ap-calc/key-terms/slope "fv-autolink") jumps from -1 to 1 at the corner.

### [Tangent Line (Unit 2)](/ap-calc/key-terms/tangent-line)

Differentiability means a unique [tangent line](/ap-calc/key-terms/tangent-line "fv-autolink") exists at a point. At the corner of |x|, the left side wants a tangent of slope -1 and the right side wants slope 1, so no single tangent line works and the derivative fails.

### [Rolle's Theorem (Unit 5)](/ap-calc/key-terms/rolles-theorem)

[Rolle's Theorem](/ap-calc/key-terms/rolles-theorem "fv-autolink") is the special case of the MVT where the endpoint values are equal, and it requires the same differentiability hypothesis. f(x) = |x| on [-1, 1] has equal endpoints but no point where f'(c) = 0, because the corner at zero breaks the theorem's conditions.

### [Closed Interval (Unit 5)](/ap-calc/key-terms/closed-interval)

The MVT splits its demands between interval types. Continuity is needed on the closed interval [a, b], but differentiability only on the open interval (a, b). For an absolute value function, what matters is whether the corner lands inside that open interval.

## On the AP Exam

Expect the absolute value function in multiple-choice questions about MVT hypotheses. A typical stem gives you f(x) = |x - 2| on an interval like [-1, 5] or [0, 4] and asks whether the Mean Value Theorem applies, or which hypothesis fails. The move is always the same. First confirm continuity on the closed interval (absolute value functions are always continuous). Then locate the corner and check whether it falls inside the open interval. If it does, differentiability fails and the MVT does not apply. No released FRQ has centered on this term by name, but FRQ justifications that invoke the MVT must state both hypotheses, and an absolute value piece inside a function is a red flag that one of them might not hold.

## Absolute Value Function vs Continuity (vs. differentiability)

The big trap is assuming continuous and differentiable mean the same thing. Differentiability implies continuity, but not the other way around, and |x| is the standard proof. It's continuous at zero, yet the corner means no derivative exists there. When a question says a function is continuous on [a, b], that alone does NOT let you use the MVT. You still have to check for corners, cusps, or vertical tangents inside (a, b).

## Key Takeaways

- The absolute value function f(x) = |x| returns a number's distance from zero and graphs as a V with a sharp corner at its vertex.
- It is continuous everywhere but not differentiable at the corner, because the slope jumps instantly (from -1 to 1 for |x|) with no single tangent line.
- Shifted versions like |x - 2| just move the corner, so always find where the inside expression equals zero before checking differentiability.
- The Mean Value Theorem requires continuity on [a, b] and differentiability on (a, b), and the absolute value function is the classic example that passes the first condition but fails the second.
- If the corner falls inside the open interval, the MVT gives no guarantee, even though the function is continuous on the whole closed interval.
- In MVT justifications, always check for corners before applying the theorem; 'continuous' alone is never enough.

## FAQs

### What is the absolute value function in calculus?

It's the function f(x) = |x| that returns a number's distance from zero, so both 3 and -3 map to 3. In AP Calc it matters because its V-shaped graph has a corner where the derivative does not exist.

### Is the absolute value function differentiable?

Not everywhere. f(x) = |x| is differentiable at every point except its corner at x = 0, where the slope jumps from -1 to 1. Shifted versions like |x - 2| fail at x = 2 instead.

### Can you use the Mean Value Theorem on an absolute value function?

Only if the corner is outside the open interval. For f(x) = |x - 2| on [0, 4], the corner at x = 2 sits inside (0, 4), so the differentiability hypothesis fails and the MVT does not apply.

### If a function is continuous, isn't it automatically differentiable?

No, and the absolute value function is the standard counterexample. |x| is continuous at x = 0 but not differentiable there. The implication only runs one way, since differentiable functions are always continuous.

### How is an absolute value function different from a regular piecewise function?

An absolute value function is a specific piecewise function whose two linear pieces meet at a corner, like |x - 2| splitting into -(x - 2) for x < 2 and x - 2 for x ≥ 2. General piecewise functions can have any pieces and might be smooth or even discontinuous where they meet.

## Related Study Guides

- [5.1 Using the Mean Value Theorem](/ap-calc/unit-5/using-mean-value-theorem/study-guide/79sP2PXcyvRvBsjb3HRq)

## Structured Data

```json
{"@context":"https://schema.org","@graph":[{"@type":"LearningResource","@id":"https://fiveable.me/ap-calc/key-terms/absolute-value-function#resource","name":"Absolute Value Function — AP Calc Definition & MVT Guide","url":"https://fiveable.me/ap-calc/key-terms/absolute-value-function","learningResourceType":"Concept explainer","educationalLevel":"AP® / High School","about":{"@id":"https://fiveable.me/ap-calc/key-terms/absolute-value-function#term"},"audience":{"@type":"EducationalAudience","educationalRole":"student"},"isPartOf":{"@type":"Collection","name":"AP Calculus AB/BC Key Terms","url":"https://fiveable.me/ap-calc/key-terms"},"publisher":{"@type":"Organization","name":"Fiveable","url":"https://fiveable.me"}},{"@type":"DefinedTerm","@id":"https://fiveable.me/ap-calc/key-terms/absolute-value-function#term","name":"Absolute Value Function","description":"The absolute value function f(x) = |x| outputs the distance of x from zero, so it's continuous everywhere but has a sharp corner where its derivative does not exist. On the AP Calculus exam it's the go-to counterexample for why the Mean Value Theorem needs differentiability, not just continuity.","url":"https://fiveable.me/ap-calc/key-terms/absolute-value-function","inDefinedTermSet":{"@type":"DefinedTermSet","name":"AP Calculus AB/BC Key Terms","url":"https://fiveable.me/ap-calc/key-terms"},"educationalAlignment":[{"@type":"AlignmentObject","alignmentType":"educationalSubject","educationalFramework":"AP® Course and Exam Description","targetName":"AP® Calculus Unit 5, Topic 5.1, LO 5.1.A"}]},{"@type":"FAQPage","mainEntity":[{"@type":"Question","name":"What is the absolute value function in calculus?","acceptedAnswer":{"@type":"Answer","text":"It's the function f(x) = |x| that returns a number's distance from zero, so both 3 and -3 map to 3. In AP Calc it matters because its V-shaped graph has a corner where the derivative does not exist."}},{"@type":"Question","name":"Is the absolute value function differentiable?","acceptedAnswer":{"@type":"Answer","text":"Not everywhere. f(x) = |x| is differentiable at every point except its corner at x = 0, where the slope jumps from -1 to 1. Shifted versions like |x - 2| fail at x = 2 instead."}},{"@type":"Question","name":"Can you use the Mean Value Theorem on an absolute value function?","acceptedAnswer":{"@type":"Answer","text":"Only if the corner is outside the open interval. For f(x) = |x - 2| on [0, 4], the corner at x = 2 sits inside (0, 4), so the differentiability hypothesis fails and the MVT does not apply."}},{"@type":"Question","name":"If a function is continuous, isn't it automatically differentiable?","acceptedAnswer":{"@type":"Answer","text":"No, and the absolute value function is the standard counterexample. |x| is continuous at x = 0 but not differentiable there. The implication only runs one way, since differentiable functions are always continuous."}},{"@type":"Question","name":"How is an absolute value function different from a regular piecewise function?","acceptedAnswer":{"@type":"Answer","text":"An absolute value function is a specific piecewise function whose two linear pieces meet at a corner, like |x - 2| splitting into -(x - 2) for x < 2 and x - 2 for x ≥ 2. General piecewise functions can have any pieces and might be smooth or even discontinuous where they meet."}}]},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"AP Calculus AB/BC","item":"https://fiveable.me/ap-calc"},{"@type":"ListItem","position":2,"name":"Key Terms","item":"https://fiveable.me/ap-calc/key-terms"},{"@type":"ListItem","position":3,"name":"Unit 5","item":"https://fiveable.me/ap-calc/unit-5"},{"@type":"ListItem","position":4,"name":"Absolute Value Function"}]}]}
```
