Enter a problem...
Calculus Examples
f(x)=-x4+4x2-3x-2f(x)=−x4+4x2−3x−2
Step 1
Step 1.1
By the Sum Rule, the derivative of -x4+4x2-3x-2 with respect to x is ddx[-x4]+ddx[4x2]+ddx[-3x]+ddx[-2].
ddx[-x4]+ddx[4x2]+ddx[-3x]+ddx[-2]
Step 1.2
Evaluate ddx[-x4].
Step 1.2.1
Since -1 is constant with respect to x, the derivative of -x4 with respect to x is -ddx[x4].
-ddx[x4]+ddx[4x2]+ddx[-3x]+ddx[-2]
Step 1.2.2
Differentiate using the Power Rule which states that ddx[xn] is nxn-1 where n=4.
-(4x3)+ddx[4x2]+ddx[-3x]+ddx[-2]
Step 1.2.3
Multiply 4 by -1.
-4x3+ddx[4x2]+ddx[-3x]+ddx[-2]
-4x3+ddx[4x2]+ddx[-3x]+ddx[-2]
Step 1.3
Evaluate ddx[4x2].
Step 1.3.1
Since 4 is constant with respect to x, the derivative of 4x2 with respect to x is 4ddx[x2].
-4x3+4ddx[x2]+ddx[-3x]+ddx[-2]
Step 1.3.2
Differentiate using the Power Rule which states that ddx[xn] is nxn-1 where n=2.
-4x3+4(2x)+ddx[-3x]+ddx[-2]
Step 1.3.3
Multiply 2 by 4.
-4x3+8x+ddx[-3x]+ddx[-2]
-4x3+8x+ddx[-3x]+ddx[-2]
Step 1.4
Evaluate ddx[-3x].
Step 1.4.1
Since -3 is constant with respect to x, the derivative of -3x with respect to x is -3ddx[x].
-4x3+8x-3ddx[x]+ddx[-2]
Step 1.4.2
Differentiate using the Power Rule which states that ddx[xn] is nxn-1 where n=1.
-4x3+8x-3⋅1+ddx[-2]
Step 1.4.3
Multiply -3 by 1.
-4x3+8x-3+ddx[-2]
-4x3+8x-3+ddx[-2]
Step 1.5
Differentiate using the Constant Rule.
Step 1.5.1
Since -2 is constant with respect to x, the derivative of -2 with respect to x is 0.
-4x3+8x-3+0
Step 1.5.2
Add -4x3+8x-3 and 0.
-4x3+8x-3
-4x3+8x-3
-4x3+8x-3
Step 2
Step 2.1
By the Sum Rule, the derivative of -4x3+8x-3 with respect to x is ddx[-4x3]+ddx[8x]+ddx[-3].
f′′(x)=ddx(-4x3)+ddx(8x)+ddx(-3)
Step 2.2
Evaluate ddx[-4x3].
Step 2.2.1
Since -4 is constant with respect to x, the derivative of -4x3 with respect to x is -4ddx[x3].
f′′(x)=-4ddxx3+ddx(8x)+ddx(-3)
Step 2.2.2
Differentiate using the Power Rule which states that ddx[xn] is nxn-1 where n=3.
f′′(x)=-4(3x2)+ddx(8x)+ddx(-3)
Step 2.2.3
Multiply 3 by -4.
f′′(x)=-12x2+ddx(8x)+ddx(-3)
f′′(x)=-12x2+ddx(8x)+ddx(-3)
Step 2.3
Evaluate ddx[8x].
Step 2.3.1
Since 8 is constant with respect to x, the derivative of 8x with respect to x is 8ddx[x].
f′′(x)=-12x2+8ddx(x)+ddx(-3)
Step 2.3.2
Differentiate using the Power Rule which states that ddx[xn] is nxn-1 where n=1.
f′′(x)=-12x2+8⋅1+ddx(-3)
Step 2.3.3
Multiply 8 by 1.
f′′(x)=-12x2+8+ddx(-3)
f′′(x)=-12x2+8+ddx(-3)
Step 2.4
Differentiate using the Constant Rule.
Step 2.4.1
Since -3 is constant with respect to x, the derivative of -3 with respect to x is 0.
f′′(x)=-12x2+8+0
Step 2.4.2
Add -12x2+8 and 0.
f′′(x)=-12x2+8
f′′(x)=-12x2+8
f′′(x)=-12x2+8
Step 3
To find the local maximum and minimum values of the function, set the derivative equal to 0 and solve.
-4x3+8x-3=0
Step 4
Step 4.1
Find the first derivative.
Step 4.1.1
By the Sum Rule, the derivative of -x4+4x2-3x-2 with respect to x is ddx[-x4]+ddx[4x2]+ddx[-3x]+ddx[-2].
ddx[-x4]+ddx[4x2]+ddx[-3x]+ddx[-2]
Step 4.1.2
Evaluate ddx[-x4].
Step 4.1.2.1
Since -1 is constant with respect to x, the derivative of -x4 with respect to x is -ddx[x4].
-ddx[x4]+ddx[4x2]+ddx[-3x]+ddx[-2]
Step 4.1.2.2
Differentiate using the Power Rule which states that ddx[xn] is nxn-1 where n=4.
-(4x3)+ddx[4x2]+ddx[-3x]+ddx[-2]
Step 4.1.2.3
Multiply 4 by -1.
-4x3+ddx[4x2]+ddx[-3x]+ddx[-2]
-4x3+ddx[4x2]+ddx[-3x]+ddx[-2]
Step 4.1.3
Evaluate ddx[4x2].
Step 4.1.3.1
Since 4 is constant with respect to x, the derivative of 4x2 with respect to x is 4ddx[x2].
-4x3+4ddx[x2]+ddx[-3x]+ddx[-2]
Step 4.1.3.2
Differentiate using the Power Rule which states that ddx[xn] is nxn-1 where n=2.
-4x3+4(2x)+ddx[-3x]+ddx[-2]
Step 4.1.3.3
Multiply 2 by 4.
-4x3+8x+ddx[-3x]+ddx[-2]
-4x3+8x+ddx[-3x]+ddx[-2]
Step 4.1.4
Evaluate ddx[-3x].
Step 4.1.4.1
Since -3 is constant with respect to x, the derivative of -3x with respect to x is -3ddx[x].
-4x3+8x-3ddx[x]+ddx[-2]
Step 4.1.4.2
Differentiate using the Power Rule which states that ddx[xn] is nxn-1 where n=1.
-4x3+8x-3⋅1+ddx[-2]
Step 4.1.4.3
Multiply -3 by 1.
-4x3+8x-3+ddx[-2]
-4x3+8x-3+ddx[-2]
Step 4.1.5
Differentiate using the Constant Rule.
Step 4.1.5.1
Since -2 is constant with respect to x, the derivative of -2 with respect to x is 0.
-4x3+8x-3+0
Step 4.1.5.2
Add -4x3+8x-3 and 0.
f′(x)=-4x3+8x-3
f′(x)=-4x3+8x-3
f′(x)=-4x3+8x-3
Step 4.2
The first derivative of f(x) with respect to x is -4x3+8x-3.
-4x3+8x-3
-4x3+8x-3
Step 5
Step 5.1
Set the first derivative equal to 0.
-4x3+8x-3=0
Step 5.2
Graph each side of the equation. The solution is the x-value of the point of intersection.
x≈-1.57371511,0.40927902,1.16443609
x≈-1.57371511,0.40927902,1.16443609
Step 6
Step 6.1
The domain of the expression is all real numbers except where the expression is undefined. In this case, there is no real number that makes the expression undefined.
Step 7
Critical points to evaluate.
x=-1.57371511,0.40927902,1.16443609
Step 8
Evaluate the second derivative at x=-1.57371511. If the second derivative is positive, then this is a local minimum. If it is negative, then this is a local maximum.
-12(-1.57371511)2+8
Step 9
Step 9.1
Simplify each term.
Step 9.1.1
Raise -1.57371511 to the power of 2.
-12⋅2.47657926+8
Step 9.1.2
Multiply -12 by 2.47657926.
-29.71895122+8
-29.71895122+8
Step 9.2
Add -29.71895122 and 8.
-21.71895122
-21.71895122
Step 10
x=-1.57371511 is a local maximum because the value of the second derivative is negative. This is referred to as the second derivative test.
x=-1.57371511 is a local maximum
Step 11
Step 11.1
Replace the variable x with -1.57371511 in the expression.
f(-1.57371511)=-(-1.57371511)4+4(-1.57371511)2-3⋅-1.57371511-2
Step 11.2
Simplify the result.
Step 11.2.1
Simplify each term.
Step 11.2.1.1
Raise -1.57371511 to the power of 4.
f(-1.57371511)=-1⋅6.13344487+4(-1.57371511)2-3⋅-1.57371511-2
Step 11.2.1.2
Multiply -1 by 6.13344487.
f(-1.57371511)=-6.13344487+4(-1.57371511)2-3⋅-1.57371511-2
Step 11.2.1.3
Raise -1.57371511 to the power of 2.
f(-1.57371511)=-6.13344487+4⋅2.47657926-3⋅-1.57371511-2
Step 11.2.1.4
Multiply 4 by 2.47657926.
f(-1.57371511)=-6.13344487+9.90631707-3⋅-1.57371511-2
Step 11.2.1.5
Multiply -3 by -1.57371511.
f(-1.57371511)=-6.13344487+9.90631707+4.72114535-2
f(-1.57371511)=-6.13344487+9.90631707+4.72114535-2
Step 11.2.2
Simplify by adding and subtracting.
Step 11.2.2.1
Add -6.13344487 and 9.90631707.
f(-1.57371511)=3.7728722+4.72114535-2
Step 11.2.2.2
Add 3.7728722 and 4.72114535.
f(-1.57371511)=8.49401755-2
Step 11.2.2.3
Subtract 2 from 8.49401755.
f(-1.57371511)=6.49401755
f(-1.57371511)=6.49401755
Step 11.2.3
The final answer is 6.49401755.
y=6.49401755
y=6.49401755
y=6.49401755
Step 12
Evaluate the second derivative at x=0.40927902. If the second derivative is positive, then this is a local minimum. If it is negative, then this is a local maximum.
-12(0.40927902)2+8
Step 13
Step 13.1
Simplify each term.
Step 13.1.1
Raise 0.40927902 to the power of 2.
-12⋅0.16750932+8
Step 13.1.2
Multiply -12 by 0.16750932.
-2.01011185+8
-2.01011185+8
Step 13.2
Add -2.01011185 and 8.
5.98988814
5.98988814
Step 14
x=0.40927902 is a local minimum because the value of the second derivative is positive. This is referred to as the second derivative test.
x=0.40927902 is a local minimum
Step 15
Step 15.1
Replace the variable x with 0.40927902 in the expression.
f(0.40927902)=-(0.40927902)4+4(0.40927902)2-3⋅0.40927902-2
Step 15.2
Simplify the result.
Step 15.2.1
Simplify each term.
Step 15.2.1.1
Raise 0.40927902 to the power of 4.
f(0.40927902)=-1⋅0.02805937+4(0.40927902)2-3⋅0.40927902-2
Step 15.2.1.2
Multiply -1 by 0.02805937.
f(0.40927902)=-0.02805937+4(0.40927902)2-3⋅0.40927902-2
Step 15.2.1.3
Raise 0.40927902 to the power of 2.
f(0.40927902)=-0.02805937+4⋅0.16750932-3⋅0.40927902-2
Step 15.2.1.4
Multiply 4 by 0.16750932.
f(0.40927902)=-0.02805937+0.67003728-3⋅0.40927902-2
Step 15.2.1.5
Multiply -3 by 0.40927902.
f(0.40927902)=-0.02805937+0.67003728-1.22783707-2
f(0.40927902)=-0.02805937+0.67003728-1.22783707-2
Step 15.2.2
Simplify by adding and subtracting.
Step 15.2.2.1
Add -0.02805937 and 0.67003728.
f(0.40927902)=0.64197791-1.22783707-2
Step 15.2.2.2
Subtract 1.22783707 from 0.64197791.
f(0.40927902)=-0.58585916-2
Step 15.2.2.3
Subtract 2 from -0.58585916.
f(0.40927902)=-2.58585916
f(0.40927902)=-2.58585916
Step 15.2.3
The final answer is -2.58585916.
y=-2.58585916
y=-2.58585916
y=-2.58585916
Step 16
Evaluate the second derivative at x=1.16443609. If the second derivative is positive, then this is a local minimum. If it is negative, then this is a local maximum.
-12(1.16443609)2+8
Step 17
Step 17.1
Simplify each term.
Step 17.1.1
Raise 1.16443609 to the power of 2.
-12⋅1.3559114+8
Step 17.1.2
Multiply -12 by 1.3559114.
-16.27093691+8
-16.27093691+8
Step 17.2
Add -16.27093691 and 8.
-8.27093691
-8.27093691
Step 18
x=1.16443609 is a local maximum because the value of the second derivative is negative. This is referred to as the second derivative test.
x=1.16443609 is a local maximum
Step 19
Step 19.1
Replace the variable x with 1.16443609 in the expression.
f(1.16443609)=-(1.16443609)4+4(1.16443609)2-3⋅1.16443609-2
Step 19.2
Simplify the result.
Step 19.2.1
Simplify each term.
Step 19.2.1.1
Raise 1.16443609 to the power of 4.
f(1.16443609)=-1⋅1.83849575+4(1.16443609)2-3⋅1.16443609-2
Step 19.2.1.2
Multiply -1 by 1.83849575.
f(1.16443609)=-1.83849575+4(1.16443609)2-3⋅1.16443609-2
Step 19.2.1.3
Raise 1.16443609 to the power of 2.
f(1.16443609)=-1.83849575+4⋅1.3559114-3⋅1.16443609-2
Step 19.2.1.4
Multiply 4 by 1.3559114.
f(1.16443609)=-1.83849575+5.42364563-3⋅1.16443609-2
Step 19.2.1.5
Multiply -3 by 1.16443609.
f(1.16443609)=-1.83849575+5.42364563-3.49330827-2
f(1.16443609)=-1.83849575+5.42364563-3.49330827-2
Step 19.2.2
Simplify by adding and subtracting.
Step 19.2.2.1
Add -1.83849575 and 5.42364563.
f(1.16443609)=3.58514988-3.49330827-2
Step 19.2.2.2
Subtract 3.49330827 from 3.58514988.
f(1.16443609)=0.09184161-2
Step 19.2.2.3
Subtract 2 from 0.09184161.
f(1.16443609)=-1.90815838
f(1.16443609)=-1.90815838
Step 19.2.3
The final answer is -1.90815838.
y=-1.90815838
y=-1.90815838
y=-1.90815838
Step 20
These are the local extrema for f(x)=-x4+4x2-3x-2.
(-1.57371511,6.49401755) is a local maxima
(0.40927902,-2.58585916) is a local minima
(1.16443609,-1.90815838) is a local maxima
Step 21