Natural log and trig function question

In summary: God has absconded from the scene ... again!"In summary, Wolfram agrees with differentiation of \(\ln4x+sin(x)\) but then when you integrate it, you get something different that doesn't seem to be the original.
  • #1
DeusAbscondus
176
0
when I differentiate:
$$ln4x+sin(x)$$
I get:
$$\frac{1}{x}+cos(x)$$
and Wolfgram agrees

But then when i test this by calculating indefinite integral, I get:
$$ln(x)+cos(x)$$
Which leaves me with three questions:
1. what happened to the 4?
2. why isn't it integrating back to (at least) ln(x)+sin(x)?
3. why doesn't wolfram add $+C$ to the end of an indefinite integral,
seemingly defying a principle over which I've had my knuckles wrapped severely (and liked it) ?

Thanks,

Deus Abscondus or:
"God has absconded from the scene ... again!"
 
Last edited:
Physics news on Phys.org
  • #2
Hint: $\displaystyle \ln|4x|=\ln|x|+2\ln(2)$

The constant $\displaystyle 2\ln(2)$ gets lumped in with the constant of integration since it is just a constant itself.

I believe Wolfram states + constant on the end of indefinite integrals.
 
  • #3
Sudharaka said:
...
You have differentiated \(\ln(4x)\) incorrectly.

Perhaps he applied the chain rule and simplified...he does have the correct result. :)
 
  • #4
DeusAbscondus said:
when I differentiate:
$$ln4x+sin(x)$$
I get:
$$\frac{1}{x}+cos(x)$$
and Wolfgram agrees

But then when i test this by calculating indefinite integral, I get:
$$ln(x)+cos(x)$$
Which leaves me with three questions:
1. what happened to the 4?
2. why isn't it integrating back to (at least) ln(x)+sin(x)?
3. why doesn't wolfram add $+C$ to the end of an indefinite integral,
seemingly defying a principle over which I've had my knuckles wrapped severely (and liked it) ?

Thanks,

Deus Abscondus or:
"God has absconded from the scene ... again!"

Hi DeusAbscondus, :)

Sorry about the obvious error in my last post, I have deleted to avoid any confusion. >>Here<< is what Wolfram gives me. Note that there is the constant term and also the answer is \(\ln(x)+\sin(x)\). :)

Kind Regards,
Sudharaka.
 
  • #5
Thanks Sudharaka,

Well that would be:
$$\frac{d}{dx}ln(4x)+sin(x)=4*\frac{1}{x}+cos(x)$$ I suppose

But then, when you integrate this: you get $$4ln(x)-sin(x)+C$$
don't you? Which is patently not the original $$f(x)=ln4x+sin(x)$$
 
  • #6
DeusAbscondus said:
Thanks Sudharaka,

Well that would be:
$$\frac{d}{dx}ln(4x)+sin(x)=4*\frac{1}{x}+cos(x)$$ I suppose

But then, when you integrate this: you get $$4ln(x)-sin(x)+C$$
don't you? Which is patently not the original $$f(x)=ln4x+sin(x)$$

I am sorry about this but the answer you have obtained after differentiating \(\ln(4x)+\sin(x)\) in post #1 is correct and I was wrong in my post #2 and hence deleted it.

\[\frac{d}{dx}ln(4x)+sin(x)=\frac{1}{x}+cos(x)\]

as you have correctly stated in your original post. Refer post #4 and follow the link to see what Wolfram gives after integrating. Then look at Mark's post #2 to clarify more about what happens to the \(4\) as you have asked in your original post. If you have any more questions please don't hesitate to ask. :)
 
  • #7
MarkFL said:
Hint: $\displaystyle \ln|4x|=\ln|x|+2\ln(2)$The constant $\displaystyle 2\ln(2)$ gets lumped in with the constant of integration since it is just a constant itself.I believe Wolfram states + constant on the end of indefinite integrals.
Forgive my obtuseness: but I still can't see why the integration seems to lose the constant 4.Though I understand and appreciate the nice:: $$\displaystyle \ln|4x|=\ln|x|+2\ln(2)$$Btw, remind me again: what does the command: \displaystyle do?
 
  • #8
DeusAbscondus said:
Forgive my obtuseness: but I still can't see why the integration seems to lose the constant 4.Though I understand and appreciate the nice:: $$\displaystyle \ln|4x|=\ln|x|+2\ln(2)$$

\[\int\left(\frac{1}{x}+cos(x)\right)\,dx=\ln(x)+ \sin(x)+A\]

where \(A\) is the arbitrary constant.

As Mark had pointed out you can write,

\[\ln(4x)=\ln(x)+2\ln(2)\Rightarrow \ln(x)=\ln(4x)-2\ln(2)\]

Substitute this in the above equation and we get,

\[\int\left(\frac{1}{x}+cos(x)\right)\,dx=\ln(4x)+ \sin(x)+(A-2\ln(2))\]

Now \(A-2\ln(2)\) is also an arbitrary constant and we label it as \(C\).

\[\int\left(\frac{1}{x}+cos(x)\right)\,dx=\ln(4x)+ \sin(x)+C\]

So you see it is irrelevant whether you write \(\ln(x)+\sin(x)+A\) or \(\ln(4x)+\sin(x)+C\) because both answers are the same and one can be obtained from the other.
 
  • #9
DeusAbscondus said:
Btw, remind me again: what does the command: \displaystyle do?

It is a size command. See http://www.mathhelpboards.com/f26/latex-tip-displaystyle-283/#post1711 thread for some uses of \displaystyle.
 
  • #10
Sudharaka said:
\[\int\left(\frac{1}{x}+cos(x)\right)\,dx=\ln(x)+ \sin(x)+A\]

where \(A\) is the arbitrary constant.

As Mark had pointed out you can write,

\[\ln(4x)=\ln(x)+2\ln(2)\Rightarrow \ln(x)=\ln(4x)-2\ln(2)\]

Substitute this in the above equation and we get,

\[\int\left(\frac{1}{x}+cos(x)\right)\,dx=\ln(4x)+ \sin(x)+(A-2\ln(2))\]

Now \(A-2\ln(2)\) is also an arbitrary constant and we label it as \(C\).

\[\int\left(\frac{1}{x}+cos(x)\right)\,dx=\ln(4x)+ \sin(x)+C\]

So you see it is irrelevant whether you write \(\ln(x)+\sin(x)+A\) or \(\ln(4x)+\sin(x)+C\) because both answers are the same and one can be obtained from the other.

I love it!
Thanks Sudharaka; now I can relax, take a break, go eat, and digest properly having cleared that up.
Deus Abs
 
  • #11
DeusAbscondus said:
I love it!
Thanks Sudharaka; now I can relax, take a break, go eat, and digest properly having cleared that up.
Deus Abs

It's a pleasure to help you. :)
 
  • #12
I have seen quite a few students run into this same issue with logs regarding anti-derivatives. This log property comes in handy too when solving certain differential equations.
 

FAQ: Natural log and trig function question

What is a natural logarithm?

A natural logarithm, denoted as ln(x), is the inverse of the exponential function, e^x. It is a type of logarithm that uses the base e, which is an irrational number approximately equal to 2.71828. The natural logarithm is often used in mathematical and scientific calculations.

How do you solve for the natural logarithm of a number?

To solve for ln(x), you can use a scientific calculator or a logarithm table. Alternatively, you can use the formula ln(x) = log_e(x) = y, where x is the number and y is the exponent. For example, ln(10) = log_e(10) = 2.3026, since e^2.3026 ≈ 10.

What is the relationship between natural logarithms and exponential functions?

The natural logarithm and exponential function are inverse operations of each other. This means that if you take the natural logarithm of a number, and then raise e to that power, you will get back the original number. For example, ln(e^3) = 3, and e^ln(5) = 5.

How are natural logarithms used in real life?

Natural logarithms have various applications in fields such as finance, biology, physics, and engineering. In finance, they are used to calculate compound interest and growth rates. In biology, they are used to model population growth and decay. In physics, they are used to solve differential equations and model natural phenomena. In engineering, they are used in signal processing and control systems.

What are the main properties of trigonometric functions?

The main properties of trigonometric functions are periodicity, odd and even symmetry, and the relationship between sine, cosine, and tangent. Periodicity means that the values of trigonometric functions repeat after a certain interval. Odd and even symmetry means that the functions are symmetric about the origin or the y-axis. The sine, cosine, and tangent functions are related through the Pythagorean identity: sin^2(x) + cos^2(x) = 1. Other properties include amplitude, phase shift, and vertical shift.

Similar threads

Replies
1
Views
3K
Replies
1
Views
1K
Replies
5
Views
7K
Replies
2
Views
3K
Replies
4
Views
2K
Replies
2
Views
2K
Back
Top