Question
Question: differentiate: (x-a/x-b) with first principle...
differentiate: (x-a/x-b) with first principle
f'(x) = \frac{a-b}{(x-b)^2}
Solution
To differentiate the function f(x)=x−bx−a using the first principle, we use the definition of the derivative:
f′(x)=limh→0hf(x+h)−f(x)
Step 1: Find f(x+h)
Substitute (x+h) for x in the function:
f(x+h)=(x+h)−b(x+h)−a=x+h−bx+h−a
Step 2: Calculate f(x+h)−f(x)
Subtract f(x) from f(x+h):
f(x+h)−f(x)=x+h−bx+h−a−x−bx−a
To combine these fractions, find a common denominator, which is (x+h−b)(x−b):
f(x+h)−f(x)=(x+h−b)(x−b)(x+h−a)(x−b)−(x−a)(x+h−b)
Expand the numerator:
Numerator =(x(x−b)+h(x−b)−a(x−b))−(x(x+h−b)−a(x+h−b))
Numerator =(x2−xb+hx−hb−ax+ab)−(x2+xh−xb−ax−ah+ab)
Now, remove the parentheses and change the signs of the terms inside the second parenthesis:
Numerator =x2−xb+hx−hb−ax+ab−x2−xh+xb+ax+ah−ab
Group and cancel out terms:
Numerator =(x2−x2)+(−xb+xb)+(hx−xh)+(−ax+ax)+(ab−ab)−hb+ah
Numerator =0+0+0+0−hb+ah
Numerator =ah−hb
Factor out h from the numerator:
Numerator =h(a−b)
So, f(x+h)−f(x)=(x+h−b)(x−b)h(a−b)
Step 3: Divide by h
hf(x+h)−f(x)=h(x+h−b)(x−b)h(a−b)
Cancel out h (since h=0 for the limit process):
hf(x+h)−f(x)=(x+h−b)(x−b)a−b
Step 4: Take the limit as h→0
f′(x)=limh→0(x+h−b)(x−b)a−b
Substitute h=0 into the expression:
f′(x)=(x+0−b)(x−b)a−b
f′(x)=(x−b)(x−b)a−b
f′(x)=(x−b)2a−b
The derivative of x−bx−a with respect to x is (x−b)2a−b.
Explanation of the solution:
The derivative of f(x)=x−bx−a is found using the first principle definition: f′(x)=limh→0hf(x+h)−f(x).
- Substitute x+h into f(x) to get f(x+h)=x+h−bx+h−a.
- Calculate the difference f(x+h)−f(x)=x+h−bx+h−a−x−bx−a.
- Combine the fractions by finding a common denominator (x+h−b)(x−b). The numerator simplifies to h(a−b) after expanding and canceling terms.
- Divide the expression by h, which cancels out the h in the numerator. This leaves (x+h−b)(x−b)a−b.
- Take the limit as h→0. Substituting h=0 yields the final derivative: (x−b)2a−b.
Answer:
The derivative of (x−a/x−b) with respect to x using the first principle is:
f′(x)=(x−b)2a−b