Enter a problem...
Calculus Examples
f(x)=sin(x)x+|sin(x)|xf(x)=sin(x)x+|sin(x)|x
Step 1
By the Sum Rule, the derivative of sin(x)x+|sin(x)|xsin(x)x+|sin(x)|x with respect to xx is ddx[sin(x)x]+ddx[|sin(x)|x]ddx[sin(x)x]+ddx[|sin(x)|x].
ddx[sin(x)x]+ddx[|sin(x)|x]ddx[sin(x)x]+ddx[|sin(x)|x]
Step 2
Step 2.1
Differentiate using the Quotient Rule which states that ddx[f(x)g(x)]ddx[f(x)g(x)] is g(x)ddx[f(x)]-f(x)ddx[g(x)]g(x)2g(x)ddx[f(x)]−f(x)ddx[g(x)]g(x)2 where f(x)=sin(x)f(x)=sin(x) and g(x)=xg(x)=x.
xddx[sin(x)]-sin(x)ddx[x]x2+ddx[|sin(x)|x]xddx[sin(x)]−sin(x)ddx[x]x2+ddx[|sin(x)|x]
Step 2.2
The derivative of sin(x)sin(x) with respect to xx is cos(x)cos(x).
xcos(x)-sin(x)ddx[x]x2+ddx[|sin(x)|x]xcos(x)−sin(x)ddx[x]x2+ddx[|sin(x)|x]
Step 2.3
Differentiate using the Power Rule which states that ddx[xn] is nxn-1 where n=1.
xcos(x)-sin(x)⋅1x2+ddx[|sin(x)|x]
Step 2.4
Multiply -1 by 1.
xcos(x)-sin(x)x2+ddx[|sin(x)|x]
xcos(x)-sin(x)x2+ddx[|sin(x)|x]
Step 3
Step 3.1
Differentiate using the Quotient Rule which states that ddx[f(x)g(x)] is g(x)ddx[f(x)]-f(x)ddx[g(x)]g(x)2 where f(x)=|sin(x)| and g(x)=x.
xcos(x)-sin(x)x2+xddx[|sin(x)|]-|sin(x)|ddx[x]x2
Step 3.2
Differentiate using the chain rule, which states that ddx[f(g(x))] is f′(g(x))g′(x) where f(x)=|x| and g(x)=sin(x).
Step 3.2.1
To apply the Chain Rule, set u as sin(x).
xcos(x)-sin(x)x2+x(ddu[|u|]ddx[sin(x)])-|sin(x)|ddx[x]x2
Step 3.2.2
The derivative of |u| with respect to u is u|u|.
xcos(x)-sin(x)x2+x(u|u|ddx[sin(x)])-|sin(x)|ddx[x]x2
Step 3.2.3
Replace all occurrences of u with sin(x).
xcos(x)-sin(x)x2+x(sin(x)|sin(x)|ddx[sin(x)])-|sin(x)|ddx[x]x2
xcos(x)-sin(x)x2+x(sin(x)|sin(x)|ddx[sin(x)])-|sin(x)|ddx[x]x2
Step 3.3
The derivative of sin(x) with respect to x is cos(x).
xcos(x)-sin(x)x2+x(sin(x)|sin(x)|cos(x))-|sin(x)|ddx[x]x2
Step 3.4
Differentiate using the Power Rule which states that ddx[xn] is nxn-1 where n=1.
xcos(x)-sin(x)x2+x(sin(x)|sin(x)|cos(x))-|sin(x)|⋅1x2
Step 3.5
Combine sin(x)|sin(x)| and cos(x).
xcos(x)-sin(x)x2+xsin(x)cos(x)|sin(x)|-|sin(x)|⋅1x2
Step 3.6
Combine x and sin(x)cos(x)|sin(x)|.
xcos(x)-sin(x)x2+x(sin(x)cos(x))|sin(x)|-|sin(x)|⋅1x2
Step 3.7
Multiply -1 by 1.
xcos(x)-sin(x)x2+x(sin(x)cos(x))|sin(x)|-|sin(x)|x2
Step 3.8
Multiply x(sin(x)cos(x))|sin(x)|-|sin(x)|x2 by |sin(x)||sin(x)|.
xcos(x)-sin(x)x2+|sin(x)||sin(x)|⋅x(sin(x)cos(x))|sin(x)|-|sin(x)|x2
Step 3.9
Combine.
xcos(x)-sin(x)x2+|sin(x)|(x(sin(x)cos(x))|sin(x)|-|sin(x)|)|sin(x)|x2
Step 3.10
Apply the distributive property.
xcos(x)-sin(x)x2+|sin(x)|x(sin(x)cos(x))|sin(x)|+|sin(x)|(-|sin(x)|)|sin(x)|x2
Step 3.11
Cancel the common factor of |sin(x)|.
Step 3.11.1
Cancel the common factor.
xcos(x)-sin(x)x2+|sin(x)|x(sin(x)cos(x))|sin(x)|+|sin(x)|(-|sin(x)|)|sin(x)|x2
Step 3.11.2
Rewrite the expression.
xcos(x)-sin(x)x2+x(sin(x)cos(x))+|sin(x)|(-|sin(x)|)|sin(x)|x2
xcos(x)-sin(x)x2+x(sin(x)cos(x))+|sin(x)|(-|sin(x)|)|sin(x)|x2
Step 3.12
To multiply absolute values, multiply the terms inside each absolute value.
xcos(x)-sin(x)x2+x(sin(x)cos(x))-|sin(x)sin(x)||sin(x)|x2
Step 3.13
Raise sin(x) to the power of 1.
xcos(x)-sin(x)x2+x(sin(x)cos(x))-|sin1(x)sin(x)||sin(x)|x2
Step 3.14
Raise sin(x) to the power of 1.
xcos(x)-sin(x)x2+x(sin(x)cos(x))-|sin1(x)sin1(x)||sin(x)|x2
Step 3.15
Use the power rule aman=am+n to combine exponents.
xcos(x)-sin(x)x2+x(sin(x)cos(x))-|sin(x)1+1||sin(x)|x2
Step 3.16
Add 1 and 1.
xcos(x)-sin(x)x2+x(sin(x)cos(x))-|sin2(x)||sin(x)|x2
xcos(x)-sin(x)x2+x(sin(x)cos(x))-|sin2(x)||sin(x)|x2
Step 4
Step 4.1
Combine terms.
Step 4.1.1
To write xcos(x)-sin(x)x2 as a fraction with a common denominator, multiply by |sin(x)||sin(x)|.
xcos(x)-sin(x)x2⋅|sin(x)||sin(x)|+x(sin(x)cos(x))-|sin2(x)||sin(x)|x2
Step 4.1.2
Write each expression with a common denominator of |sin(x)|x2, by multiplying each by an appropriate factor of 1.
Step 4.1.2.1
Multiply xcos(x)-sin(x)x2 by |sin(x)||sin(x)|.
(xcos(x)-sin(x))|sin(x)|x2|sin(x)|+x(sin(x)cos(x))-|sin2(x)||sin(x)|x2
Step 4.1.2.2
Reorder the factors of |sin(x)|x2.
(xcos(x)-sin(x))|sin(x)|x2|sin(x)|+x(sin(x)cos(x))-|sin2(x)|x2|sin(x)|
(xcos(x)-sin(x))|sin(x)|x2|sin(x)|+x(sin(x)cos(x))-|sin2(x)|x2|sin(x)|
Step 4.1.3
Combine the numerators over the common denominator.
(xcos(x)-sin(x))|sin(x)|+x(sin(x)cos(x))-|sin2(x)|x2|sin(x)|
(xcos(x)-sin(x))|sin(x)|+x(sin(x)cos(x))-|sin2(x)|x2|sin(x)|
Step 4.2
Reorder terms.
|sin(x)|(xcos(x)-sin(x))+xcos(x)sin(x)-|sin2(x)|x2|sin(x)|
Step 4.3
Simplify the numerator.
Step 4.3.1
Apply the distributive property.
|sin(x)|(xcos(x))+|sin(x)|(-sin(x))+xcos(x)sin(x)-|sin2(x)|x2|sin(x)|
Step 4.3.2
Rewrite using the commutative property of multiplication.
|sin(x)|xcos(x)-|sin(x)|sin(x)+xcos(x)sin(x)-|sin2(x)|x2|sin(x)|
Step 4.3.3
Remove non-negative terms from the absolute value.
|sin(x)|xcos(x)-|sin(x)|sin(x)+xcos(x)sin(x)-sin2(x)x2|sin(x)|
Step 4.3.4
Rewrite |sin(x)|xcos(x)-|sin(x)|sin(x)+xcos(x)sin(x)-sin2(x) in a factored form.
Step 4.3.4.1
Reorder terms.
x|sin(x)|cos(x)-|sin(x)|sin(x)+xcos(x)sin(x)-sin2(x)x2|sin(x)|
Step 4.3.4.2
Factor out the greatest common factor from each group.
Step 4.3.4.2.1
Group the first two terms and the last two terms.
(x|sin(x)|cos(x)-|sin(x)|sin(x))+xcos(x)sin(x)-sin2(x)x2|sin(x)|
Step 4.3.4.2.2
Factor out the greatest common factor (GCF) from each group.
|sin(x)|(xcos(x)-sin(x))+sin(x)(xcos(x)-sin(x))x2|sin(x)|
|sin(x)|(xcos(x)-sin(x))+sin(x)(xcos(x)-sin(x))x2|sin(x)|
Step 4.3.4.3
Factor the polynomial by factoring out the greatest common factor, xcos(x)-sin(x).
(xcos(x)-sin(x))(|sin(x)|+sin(x))x2|sin(x)|
(xcos(x)-sin(x))(|sin(x)|+sin(x))x2|sin(x)|
(xcos(x)-sin(x))(|sin(x)|+sin(x))x2|sin(x)|
(xcos(x)-sin(x))(|sin(x)|+sin(x))x2|sin(x)|