How Do You Find the Derivative of the Function f(x) = pi*x + 1/(cos^2(Pi*x))?

  • Context: Undergrad 
  • Thread starter Thread starter PrudensOptimus
  • Start date Start date
  • Tags Tags
    Derivatives
Click For Summary

Discussion Overview

The discussion revolves around finding the derivative of the function f(x) = πx + 1/(cos²(πx)) and also includes a separate function involving a rational expression. Participants explore the differentiation process, share their results, and seek corrections on their calculations.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant presents their derivative calculation for f(x) = πx + 1/(cos²(πx)), arriving at f'(x) = π + (2π sin(πx)) / cos³(πx) and claims f'(1/4) = 7.5251.
  • Another participant agrees with the derivative but suggests a correction regarding a missing π in the sine term, proposing a revised final answer of f'(1/4) ≈ 15.708.
  • A separate function is introduced by another participant, leading to a calculation of f'(-1) = -8, but there is uncertainty about the correctness of the derived function.
  • One participant challenges the correctness of the derivative for the second function, indicating they consistently arrive at a different answer.
  • Another participant rewrites the second function for clarity, suggesting that expanding the function before differentiating may simplify the process.

Areas of Agreement / Disagreement

Participants express differing views on the correctness of the derivatives calculated, particularly for the second function. There is no consensus on the final forms of the derivatives, and multiple competing interpretations of the functions exist.

Contextual Notes

Some calculations appear to depend on specific interpretations of the functions, and there are indications of unresolved mathematical steps in the differentiation process. The discussion reflects varying levels of confidence in the correctness of the derivatives presented.

PrudensOptimus
Messages
641
Reaction score
0
Find the derivative for the f(x).
f(x) = pi*x + 1/(cos^2(Pi*x))
And find f'(1/4)

Here's what i got.
f'(x) = pi * d/dx (x) + d/dx (cos^2 pi*x)-1
= pi + [ (- (d/dx cos^2 (pi*x))/(cos^4(pi*x)) ]
= pi + [ (- (d/dx cos(pi*x) * (2 * cos(pi * x))/(cos^4(pi*x)) ]
= pi + [ (pi * sin x * 2cos(pi * x)) / ... ]
= pi + [ (2 * pi * sin x) / cos^3 (pi * x) ]

Thus f'(1/4) = 7.5251
 
Physics news on Phys.org
#2 question:

Find f'(x) and f'(-1).

f(x) = (((1/x^2) - 2)/(1/x^2))2


f'(x) = d/dx ((1/x^2) - 2)/(1/x^2) * (2 * ((1/x^2) - 2)/(1/x^2))
= [2((1/x^2) - 2)/(1/x^2)] * [((1/x^2)(-2/x^3) - ((1/x^2)-2)(-2/x^3))/((1/x^2)^2)]
= ... * [ -4/x^7 ]
= -8(1 - 2x^2)/x^7

Thus, f'(-1) = -8.

Please correct my mistakes. Thanks.
 
Originally posted by PrudensOptimus
Find the derivative for the f(x).
f(x) = pi*x + 1/(cos^2(Pi*x))
And find f'(1/4)
.
.
.
= pi + [ (2 * pi * sin x) / cos^3 (pi * x) ]

Thus f'(1/4) = 7.5251

I don't have a calculator handy, but your derivative is correct.

Find f'(x) and f'(-1).

f(x) = (((1/x^2) - 2)/(1/x^2))2
.
.
.
= -8(1 - 2x^2)/x^7

Thus, f'(-1) = -8.

For the derivative, I get

f'(x)=-8x+16x3

I rewrote the function as follows:

f(x)=(1/x2-2)2x4

To get the last factor, I noted that 1/(1/x2) is simply x2. Squaring that gives x4.

edit: It would be best to expand the function before differentiating, as follows:

f(x)=(1/x4-4/x2+4)x4

Now distribute the x4

f(x)=(1-4x2+4x4)

Doesn't look as nasty now, does it? :smile:
 
Last edited:
You sure you got your #2 derivative right?

It took me two times to re-derive it and everytime I get the same answer.
 
Originally posted by PrudensOptimus
Here's what i got.
f'(x) = pi * d/dx (x) + d/dx (cos^2 pi*x)-1
= pi + [ (- (d/dx cos^2 (pi*x))/(cos^4(pi*x)) ]
= pi + [ (- (d/dx cos(pi*x) * (2 * cos(pi * x))/(cos^4(pi*x)) ]
= pi + [ (pi * sin x * 2cos(pi * x)) / ... ]
= pi + [ (2 * pi * sin x) / cos^3 (pi * x) ]

Thus f'(1/4) = 7.5251

Should be this on the fourth line:
= π + π sin(π x) 2cos(π x)/cos4(π x)
i.e. Missed a π inside the sin(x).

And the final answer:
f'(x) = π + 2π sec2(π x)tan(πx)
f'(1/4) ≈ 15.708

For your second question, you surprisingly did get the correct value for f'(-1), but the function you found is in general wrong:
f(x) = [(1/x2-2) / (1/x2)]2
f(x) = [(1/x2-2) *x2]2
f(x) = (1/x2-2)2*x22
f(x) = (1/x4-4/x2+4)x4
f(x) = 1-4x2+4x4
(as Tom derived)

From this it far easier to find f'(x):
f'(x)= -8x+16x3
f'(x) = 8x(2x2-1)
f'(-1) = -8
This is similar to be not the same as the function you derived.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 29 ·
Replies
29
Views
6K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K