Calculus Examples

Find the Local Maxima and Minima f(x)=x+|2x|
Step 1
Find the first derivative of the function.
Tap for more steps...
Step 1.1
Differentiate.
Tap for more steps...
Step 1.1.1
By the Sum Rule, the derivative of with respect to is .
Step 1.1.2
Differentiate using the Power Rule which states that is where .
Step 1.2
Evaluate .
Tap for more steps...
Step 1.2.1
Differentiate using the chain rule, which states that is where and .
Tap for more steps...
Step 1.2.1.1
To apply the Chain Rule, set as .
Step 1.2.1.2
The derivative of with respect to is .
Step 1.2.1.3
Replace all occurrences of with .
Step 1.2.2
Since is constant with respect to , the derivative of with respect to is .
Step 1.2.3
Differentiate using the Power Rule which states that is where .
Step 1.2.4
Multiply by .
Step 1.2.5
Combine and .
Step 1.2.6
Multiply by .
Step 1.3
Simplify.
Tap for more steps...
Step 1.3.1
Reorder terms.
Step 1.3.2
Simplify each term.
Tap for more steps...
Step 1.3.2.1
Remove non-negative terms from the absolute value.
Step 1.3.2.2
Cancel the common factor of and .
Tap for more steps...
Step 1.3.2.2.1
Factor out of .
Step 1.3.2.2.2
Cancel the common factors.
Tap for more steps...
Step 1.3.2.2.2.1
Factor out of .
Step 1.3.2.2.2.2
Cancel the common factor.
Step 1.3.2.2.2.3
Rewrite the expression.
Step 2
Find the second derivative of the function.
Tap for more steps...
Step 2.1
By the Sum Rule, the derivative of with respect to is .
Step 2.2
Evaluate .
Tap for more steps...
Step 2.2.1
Since is constant with respect to , the derivative of with respect to is .
Step 2.2.2
Differentiate using the Quotient Rule which states that is where and .
Step 2.2.3
Differentiate using the Power Rule which states that is where .
Step 2.2.4
The derivative of with respect to is .
Step 2.2.5
Multiply by .
Step 2.2.6
Combine and .
Step 2.2.7
Raise to the power of .
Step 2.2.8
Raise to the power of .
Step 2.2.9
Use the power rule to combine exponents.
Step 2.2.10
Add and .
Step 2.2.11
Combine and .
Step 2.3
Since is constant with respect to , the derivative of with respect to is .
Step 2.4
Simplify.
Tap for more steps...
Step 2.4.1
Apply the distributive property.
Step 2.4.2
Combine terms.
Tap for more steps...
Step 2.4.2.1
Multiply by .
Step 2.4.2.2
Combine and .
Step 2.4.2.3
Move the negative in front of the fraction.
Step 2.4.2.4
Add and .
Step 2.4.3
Reorder terms.
Step 2.4.4
Simplify the numerator.
Tap for more steps...
Step 2.4.4.1
Factor out of .
Tap for more steps...
Step 2.4.4.1.1
Factor out of .
Step 2.4.4.1.2
Factor out of .
Step 2.4.4.1.3
Factor out of .
Step 2.4.4.2
To write as a fraction with a common denominator, multiply by .
Step 2.4.4.3
Combine the numerators over the common denominator.
Step 2.4.4.4
Simplify the numerator.
Tap for more steps...
Step 2.4.4.4.1
Multiply .
Tap for more steps...
Step 2.4.4.4.1.1
To multiply absolute values, multiply the terms inside each absolute value.
Step 2.4.4.4.1.2
Raise to the power of .
Step 2.4.4.4.1.3
Raise to the power of .
Step 2.4.4.4.1.4
Use the power rule to combine exponents.
Step 2.4.4.4.1.5
Add and .
Step 2.4.4.4.2
Remove non-negative terms from the absolute value.
Step 2.4.4.4.3
Add and .
Step 2.4.4.5
Divide by .
Step 2.4.5
Remove the absolute value in because exponentiations with even powers are always positive.
Step 2.4.6
Multiply by .
Step 2.4.7
Divide by .
Step 3
To find the local maximum and minimum values of the function, set the derivative equal to and solve.
Step 4
Find the first derivative.
Tap for more steps...
Step 4.1
Find the first derivative.
Tap for more steps...
Step 4.1.1
Differentiate.
Tap for more steps...
Step 4.1.1.1
By the Sum Rule, the derivative of with respect to is .
Step 4.1.1.2
Differentiate using the Power Rule which states that is where .
Step 4.1.2
Evaluate .
Tap for more steps...
Step 4.1.2.1
Differentiate using the chain rule, which states that is where and .
Tap for more steps...
Step 4.1.2.1.1
To apply the Chain Rule, set as .
Step 4.1.2.1.2
The derivative of with respect to is .
Step 4.1.2.1.3
Replace all occurrences of with .
Step 4.1.2.2
Since is constant with respect to , the derivative of with respect to is .
Step 4.1.2.3
Differentiate using the Power Rule which states that is where .
Step 4.1.2.4
Multiply by .
Step 4.1.2.5
Combine and .
Step 4.1.2.6
Multiply by .
Step 4.1.3
Simplify.
Tap for more steps...
Step 4.1.3.1
Reorder terms.
Step 4.1.3.2
Simplify each term.
Tap for more steps...
Step 4.1.3.2.1
Remove non-negative terms from the absolute value.
Step 4.1.3.2.2
Cancel the common factor of and .
Tap for more steps...
Step 4.1.3.2.2.1
Factor out of .
Step 4.1.3.2.2.2
Cancel the common factors.
Tap for more steps...
Step 4.1.3.2.2.2.1
Factor out of .
Step 4.1.3.2.2.2.2
Cancel the common factor.
Step 4.1.3.2.2.2.3
Rewrite the expression.
Step 4.2
The first derivative of with respect to is .
Step 5
Set the first derivative equal to then solve the equation .
Tap for more steps...
Step 5.1
Set the first derivative equal to .
Step 5.2
Subtract from both sides of the equation.
Step 5.3
Find the LCD of the terms in the equation.
Tap for more steps...
Step 5.3.1
Finding the LCD of a list of values is the same as finding the LCM of the denominators of those values.
Step 5.3.2
The LCM of one and any expression is the expression.
Step 5.4
Multiply each term in by to eliminate the fractions.
Tap for more steps...
Step 5.4.1
Multiply each term in by .
Step 5.4.2
Simplify the left side.
Tap for more steps...
Step 5.4.2.1
Cancel the common factor of .
Tap for more steps...
Step 5.4.2.1.1
Cancel the common factor.
Step 5.4.2.1.2
Rewrite the expression.
Step 5.5
Solve the equation.
Tap for more steps...
Step 5.5.1
Rewrite the equation as .
Step 5.5.2
Divide each term in by and simplify.
Tap for more steps...
Step 5.5.2.1
Divide each term in by .
Step 5.5.2.2
Simplify the left side.
Tap for more steps...
Step 5.5.2.2.1
Dividing two negative values results in a positive value.
Step 5.5.2.2.2
Divide by .
Step 5.5.2.3
Simplify the right side.
Tap for more steps...
Step 5.5.2.3.1
Move the negative one from the denominator of .
Step 5.5.2.3.2
Rewrite as .
Step 5.5.2.3.3
Multiply by .
Step 5.6
Remove the absolute value term. This creates a on the right side of the equation because .
Step 5.7
The complete solution is the result of both the positive and negative portions of the solution.
Tap for more steps...
Step 5.7.1
First, use the positive value of the to find the first solution.
Step 5.7.2
Move all terms containing to the left side of the equation.
Tap for more steps...
Step 5.7.2.1
Add to both sides of the equation.
Step 5.7.2.2
Add and .
Step 5.7.3
Divide each term in by and simplify.
Tap for more steps...
Step 5.7.3.1
Divide each term in by .
Step 5.7.3.2
Simplify the left side.
Tap for more steps...
Step 5.7.3.2.1
Cancel the common factor of .
Tap for more steps...
Step 5.7.3.2.1.1
Cancel the common factor.
Step 5.7.3.2.1.2
Divide by .
Step 5.7.3.3
Simplify the right side.
Tap for more steps...
Step 5.7.3.3.1
Divide by .
Step 5.7.4
Next, use the negative value of the to find the second solution.
Step 5.7.5
Move all terms containing to the left side of the equation.
Tap for more steps...
Step 5.7.5.1
Subtract from both sides of the equation.
Step 5.7.5.2
Subtract from .
Step 5.7.6
Divide each term in by and simplify.
Tap for more steps...
Step 5.7.6.1
Divide each term in by .
Step 5.7.6.2
Simplify the left side.
Tap for more steps...
Step 5.7.6.2.1
Dividing two negative values results in a positive value.
Step 5.7.6.2.2
Divide by .
Step 5.7.6.3
Simplify the right side.
Tap for more steps...
Step 5.7.6.3.1
Divide by .
Step 5.8
Exclude the solutions that do not make true.
Step 6
Find the values where the derivative is undefined.
Tap for more steps...
Step 6.1
Set the denominator in equal to to find where the expression is undefined.
Step 6.2
Solve for .
Tap for more steps...
Step 6.2.1
Remove the absolute value term. This creates a on the right side of the equation because .
Step 6.2.2
Plus or minus is .
Step 7
Critical points to evaluate.
Step 8
Evaluate the second derivative at . If the second derivative is positive, then this is a local minimum. If it is negative, then this is a local maximum.
Step 9
Since there is at least one point with or undefined second derivative, apply the first derivative test.
Tap for more steps...
Step 9.1
Split into separate intervals around the values that make the first derivative or undefined.
Step 9.2
Substitute any number, such as , from the interval in the first derivative to check if the result is negative or positive.
Tap for more steps...
Step 9.2.1
Replace the variable with in the expression.
Step 9.2.2
Simplify the result.
Tap for more steps...
Step 9.2.2.1
Multiply by .
Step 9.2.2.2
Simplify each term.
Tap for more steps...
Step 9.2.2.2.1
The absolute value is the distance between a number and zero. The distance between and is .
Step 9.2.2.2.2
Divide by .
Step 9.2.2.3
Add and .
Step 9.2.2.4
The final answer is .
Step 9.3
Substitute any number, such as , from the interval in the first derivative to check if the result is negative or positive.
Tap for more steps...
Step 9.3.1
Replace the variable with in the expression.
Step 9.3.2
Simplify the result.
Tap for more steps...
Step 9.3.2.1
Multiply by .
Step 9.3.2.2
Simplify each term.
Tap for more steps...
Step 9.3.2.2.1
The absolute value is the distance between a number and zero. The distance between and is .
Step 9.3.2.2.2
Divide by .
Step 9.3.2.3
Add and .
Step 9.3.2.4
The final answer is .
Step 9.4
Since the first derivative changed signs from negative to positive around , then is a local minimum.
is a local minimum
is a local minimum
Step 10