Derivative of a piecewise function

Click For Summary
SUMMARY

The derivative of the piecewise function defined as ##f(x) = \begin{cases} \frac {x^3-x^2}{x-1} & \text{if } x\neq1 \\ 1 & \text{if } x=1 \end{cases}## is calculated using the limit definition, yielding ##f'(1) = 2##. The discussion confirms that the function behaves similarly to ##f(x) = x^2##, despite being defined differently at ##x=1##. Both methods of finding the derivative are valid, although one is deemed unnecessarily complicated. The term "piecewise function" is debated, with suggestions that it may not be necessary in this context.

PREREQUISITES
  • Understanding of limits and derivatives in calculus
  • Familiarity with L'Hôpital's rule
  • Knowledge of piecewise function definitions
  • Ability to analyze function behavior and continuity
NEXT STEPS
  • Study the application of L'Hôpital's rule in various contexts
  • Explore the properties of piecewise functions in detail
  • Learn about the continuity and differentiability of functions
  • Investigate the relationship between piecewise functions and their equivalent forms
USEFUL FOR

Students and educators in calculus, mathematicians analyzing function behavior, and anyone interested in the nuances of derivative calculations for piecewise-defined functions.

MatinSAR
Messages
673
Reaction score
204
Homework Statement
Finding derivative of function ##f## which is a piecewise function.
Relevant Equations
##f'(a)=\lim_{x \rightarrow a} {\frac {f(x)-f(a)} {x-a}}##
##f(x) = \begin{cases} \frac {x^3-x^2}{x-1} & \text{if } x\neq1 \\ 1 & \text{if } x=1 \end{cases}##
Find ##f'(1)##.

Using derivative definition:
##f'(1)=\lim_{x \rightarrow 1} {\frac {\frac {x^3-x^2}{x-1}-f(1)} {x-1}}##

##f'(1)=\lim_{x \rightarrow 1} {\frac {\frac {x^3-x^2}{x-1}-1} {x-1}}##

##f'(1)=\lim_{x \rightarrow 1} {\frac {x^3-x^2-x+1} {(x-1)^2}}##

Apply L'Hôpital's rule two times:
##f'(1)=\lim_{x \rightarrow 1} {\frac {6x-2} {2}}##
##f'(1)=2##

Can someone please tell me if I'm wrong …

Can I say that ##f(x) = \begin{cases} \frac {x^3-x^2}{x-1} & \text{if } x\neq1 \\ 1 & \text{if } x=1 \end{cases}## graph is similar to ##y=x^2## but it's undefined at ##x=1##? If it's true then I can find ##f'(1)=2x=2## far faster.
 
Physics news on Phys.org
##f(x) = x^2##? True or false?
 
  • Like
Likes   Reactions: MatinSAR
PeroK said:
##f(x) = x^2##? True or false?
No these functions have different domains, so they're not equal.
 
MatinSAR said:
No these functions have different domains, so they're not equal.
The domain is ##\mathbb R## in both cases.

It's true. The function you are given is plain old ##x^2##, wearing a thin disguise!
 
  • Like
Likes   Reactions: MatinSAR
PeroK said:
The domain is ##\mathbb R## in both cases.

It's true. The function you are given is plain old ##x^2##, wearing a thin disguise!
Oh! I've forgotten that we've defined ##f(1)=1##. So both ways were correct, Do you agree?
 
MatinSAR said:
Oh! I've forgotten that we've defined ##f(1)=1##. So both ways were correct, Do you agree?
Both methods are valid. But, the first method is unnecessarily complicated.

As an aside, I've never liked the term piecewise function, as there is no such thing, IMO. You can define a function piecewise. But, as in this case, that doesn't mean that you have to define it piecewise. In this case, you could equally well have written ##f(x) = x^2 \ (\forall x)##.

I wonder whether whoever set the question realised this.
 
  • Like
Likes   Reactions: MatinSAR
PeroK said:
Both methods are valid. But, the first method is unnecessarily complicated.
Yes.
PeroK said:
As an aside, I've never liked the term piecewise function, as there is no such thing, IMO. You can define a function piecewise. But, as in this case, that doesn't mean that you have to define it piecewise. In this case, you could equally well have written ##f(x) = x^2 \ (\forall x)##.

I wonder whether whoever set the question realised this.
I've understand it. Thank you for your valuable help and time.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 25 ·
Replies
25
Views
1K
  • · Replies 17 ·
Replies
17
Views
1K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K