Derivative of $\sqrt{x} + \frac{1}{x} + \ln\left(x\right)$

Differentiated with respect to x. Edit the function · Differentiation rules

Step-by-step solution

Input function
$$\sqrt{x} + \frac{1}{x} + \ln\left(x\right)$$

Start of the differentiation
$$\frac{d}{dx}{\left[\sqrt{x} + \frac{1}{x} + \ln\left(x\right)\right]}$$

Yellow: the expression being replaced. Green: its replacement.

Step 1 — Sum/Difference Rule Differentiation rule
📖 Rule
$$\frac{d}{dx}(u \pm v \pm \dots) = \frac{d}{dx}(u) \pm \frac{d}{dx}(v) \pm \dots$$
With:
  • $u = \sqrt{x}$
  • $v = \frac{1}{x}$
  • $w = \ln\left(x\right)$

Why: Differentiate every term separately and keep the plus and minus signs between them. Even a constant term first receives its own derivative symbol.

🧮 Current expression
$$\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{d}{dx}{\left[\sqrt{x} + \frac{1}{x} + \ln\left(x\right)\right]}\,}}}$$
✨ After: Sum/Difference Rule
$$\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{d}{dx}{\left[\sqrt{x}\right]} + \frac{d}{dx}{\left[\frac{1}{x}\right]} + \frac{d}{dx}{\left[\ln\left(x\right)\right]}\,}}}$$
Step 2 — Square Root Rule (Simple) Differentiation rule
📖 Rule
$$\frac{d}{dx}\sqrt{x}=\frac{1}{2\,\sqrt{x}}$$

Why: The argument is exactly x. Apply the known elementary derivative.

Changed part: $\frac{d}{dx}{\left[\sqrt{x}\right]} \;\Longrightarrow\; \frac{1}{2\,\sqrt{x}}$
🧮 Current expression
$$\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{d}{dx}{\left[\sqrt{x}\right]}\,}}} + \frac{d}{dx}{\left[\frac{1}{x}\right]} + \frac{d}{dx}{\left[\ln\left(x\right)\right]}$$
✨ After: Square Root Rule (Simple)
$$\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{1}{2\,\sqrt{x}}\,}}} + \frac{d}{dx}{\left[\frac{1}{x}\right]} + \frac{d}{dx}{\left[\ln\left(x\right)\right]}$$
Step 3 — Write the reciprocal as a negative power Rewriting
📖 Rule
$$\frac{c}{v}=c\cdot v^{-1},\quad \frac{c}{v^k}=c\cdot v^{-k}$$

Why: Write the denominator as a power with a negative exponent, then apply the factor and power rules. The original denominator must still be nonzero.

Changed part: $\frac{d}{dx}{\left[\frac{1}{x}\right]} \;\Longrightarrow\; \frac{d}{dx}{\left[x^{-1}\right]}$
🧮 Current expression
$$\frac{1}{2\,\sqrt{x}} + \bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{d}{dx}{\left[\frac{1}{x}\right]}\,}}} + \frac{d}{dx}{\left[\ln\left(x\right)\right]}$$
✨ After: Write the reciprocal as a negative power
$$\frac{1}{2\,\sqrt{x}} + \bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{d}{dx}{\left[x^{-1}\right]}\,}}} + \frac{d}{dx}{\left[\ln\left(x\right)\right]}$$
Step 4 — Power Rule (special case) Differentiation rule
📖 Rule
$$\frac{d}{dx}\left(u^{c}\right)=c\,u^{c-1}$$
With:
  • $u = x$
  • $c = -1$

Why: Bring the current exponent down as a multiplier and subtract one from the exponent. Evaluate that small calculation in a separate step.

Changed part: $\frac{d}{dx}{\left[x^{-1}\right]} \;\Longrightarrow\; -1\,x^{-1 - 1}$
🧮 Current expression
$$\frac{1}{2\,\sqrt{x}} + \bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{d}{dx}{\left[x^{-1}\right]}\,}}} + \frac{d}{dx}{\left[\ln\left(x\right)\right]}$$
✨ After: Power Rule (special case)
$$\frac{1}{2\,\sqrt{x}} + \bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\left(-1\,x^{-1 - 1}\right)\,}}} + \frac{d}{dx}{\left[\ln\left(x\right)\right]}$$
Step 5 — Evaluate numbers Simplification
📖 Rule

Why: Evaluate only the highlighted numeric expression, preserving exact fractions and decimals.

Changed part: $-1 - 1 \;\Longrightarrow\; -2$
🧮 Current expression
$$\frac{1}{2\,\sqrt{x}} + \left(-1\,x^{\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,-1 - 1\,}}}}\right) + \frac{d}{dx}{\left[\ln\left(x\right)\right]}$$
✨ After: Evaluate numbers
$$\frac{1}{2\,\sqrt{x}} + \left(-1\,x^{\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,-2\,}}}}\right) + \frac{d}{dx}{\left[\ln\left(x\right)\right]}$$
Step 6 — Write the factor −1 as a minus sign Simplification
📖 Rule
$$(-1)\cdot a=-a$$

Why: Multiplying by −1 gives the negative. Write just a minus sign instead.

Changed part: $-1\,x^{-2} \;\Longrightarrow\; -x^{-2}$
🧮 Current expression
$$\frac{1}{2\,\sqrt{x}} + \bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\left(-1\,x^{-2}\right)\,}}} + \frac{d}{dx}{\left[\ln\left(x\right)\right]}$$
✨ After: Write the factor −1 as a minus sign
$$\frac{1}{2\,\sqrt{x}} + \bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\left(-x^{-2}\right)\,}}} + \frac{d}{dx}{\left[\ln\left(x\right)\right]}$$
Step 7 — Combine plus and minus Simplification
📖 Rule
$$a+(-b)=a-b$$

Why: Adding a negative expression is the same as subtracting the positive expression.

Changed part: $\frac{1}{2\,\sqrt{x}} + \left(-x^{-2}\right) \;\Longrightarrow\; \frac{1}{2\,\sqrt{x}} - x^{-2}$
🧮 Current expression
$$\bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{1}{2\,\sqrt{x}} + \left(-x^{-2}\right)\,}}} + \frac{d}{dx}{\left[\ln\left(x\right)\right]}$$
✨ After: Combine plus and minus
$$\bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{1}{2\,\sqrt{x}} - x^{-2}\,}}} + \frac{d}{dx}{\left[\ln\left(x\right)\right]}$$
Step 8 — Logarithm Rule (Simple) Differentiation rule
📖 Rule
$$\frac{d}{dx}(\ln(x)) = \frac{1}{x}$$

Why: The derivative of the natural logarithm is the reciprocal of its argument. Here that argument is exactly the differentiation variable.

Changed part: $\frac{d}{dx}{\left[\ln\left(x\right)\right]} \;\Longrightarrow\; \frac{1}{x}$
🧮 Current expression
$$\frac{1}{2\,\sqrt{x}} - x^{-2} + \bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{d}{dx}{\left[\ln\left(x\right)\right]}\,}}}$$
✨ After: Logarithm Rule (Simple)
$$\frac{1}{2\,\sqrt{x}} - x^{-2} + \bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{1}{x}\,}}}$$
Step 9 — Write negative exponents as a fraction Simplification
📖 Rule
$$a^{-n}=\frac{1}{a^n}$$

Why: A power with a negative exponent is the reciprocal of the power with the positive exponent. The result then has no negative exponents.

Changed part: $x^{-2} \;\Longrightarrow\; \frac{1}{x^{2}}$
🧮 Current expression
$$\frac{1}{2\,\sqrt{x}} - \bbox[#fff1b8, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,x^{-2}\,}}} + \frac{1}{x}$$
✨ After: Write negative exponents as a fraction
$$\frac{1}{2\,\sqrt{x}} - \bbox[#d6f5df, padding:0.15em]{{\color{black}{\vphantom{\dfrac{d}{dx}}\,\frac{1}{x^{2}}\,}}} + \frac{1}{x}$$
Final result
$$\frac{1}{2\,\sqrt{x}} - \frac{1}{x^{2}} + \frac{1}{x}$$
Valid where:
  • $x>0$ – The logarithm argument must be positive.

The derivative is only valid where the original function is defined.

Copy link to this solution
Cross-check with a computer algebra system

The derivative computed directly by the computer algebra system Maxima:

$$\frac{1}{2\,\sqrt{x}} + \frac{1}{x} - \frac{1}{x^{2}}$$

Step-by-step result ↔ Maxima: identical ✓