An interesting trigonometric integral

Once while solving problems from Romanian Mathematical Olympiads I encountered a mathematical gem. The problem I found was asking to calcualte the following integral \[I=\int\frac{\cos x}{a\sin x+b\cos x}\,dx.\]

What do I find especially beautiful about this problem? It rewards the desire to examine a bit more than is asked initially!

Solution. Let's try to evaluate one more integral J=sinxasinx+bcosxdx.J=\int{\frac{\sin x}{a\sin x+b\cos x}}\,dx.

Can you guess the next step?

Yes, we will take advantage of the fact that the sum of integrals is the integral of sum. In other words: aJ+bI=asinxasinx+bcosxdx+bcosxasinx+bcosxdx=asinx+bcosxasinx+bcosxdx=x+C.aJ+bI=a\int{\frac{\sin x}{a\sin x+b\cos x}}\,dx+b\int{\frac{\cos x}{a\sin x+b\cos x}}\,dx\\=\int{\frac{a\sin x+b\cos x}{a\sin x+b\cos x}}\,dx=x+C.

On other hand we can easily calculate integrals of the form f(x)f(x)dx\int{\frac{f^\prime(x)}{f(x)}}\,dx. The derivative of (asinx+bcosx) (a\sin x+b\cos x) is equal to (acosxbsinx) (a\cos x-b\sin x), which can also be expressed as a linear combination of our two integrals, i.e. aIbJ=acosxbsinxasinx+bcosxdx=lnasinx+bcosx+C.aI-bJ=\int{\frac{a\cos x-b\sin x}{a\sin x+b\cos x}}\,dx=\ln{|a\sin x+b\cos x|}+C.

Now we simply have to solve a system of linear equations. We obtain I=alnasinx+bcosx+bxa2+b2+C.I=\frac{a\ln{|a\sin x+b\cos x|}+bx}{a^2+b^2}+C. and J=axlnasinx+bcosxa2+b2+C.J=\frac{ax-\ln{|a\sin x+b\cos x|}}{a^2+b^2}+C.

Has anyone of you seen problems with the similar ideas? How often while solving a problem you investigate possible variations of the conditions?

#Calculus #Goldbach'sConjurersGroup

Note by Nicolae Sapoval
7 years, 6 months ago

No vote yet
1 vote

  Easy Math Editor

This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.

When posting on Brilliant:

  • Use the emojis to react to an explanation, whether you're congratulating a job well done , or just really confused .
  • Ask specific questions about the challenge or the steps in somebody's explanation. Well-posed questions can add a lot to the discussion, but posting "I don't understand!" doesn't help anyone.
  • Try to contribute something new to the discussion, whether it is an extension, generalization or other idea related to the challenge.
  • Stay on topic — we're all here to learn more about math and science, not to hear about your favorite get-rich-quick scheme or current world events.

MarkdownAppears as
*italics* or _italics_ italics
**bold** or __bold__ bold

- bulleted
- list

  • bulleted
  • list

1. numbered
2. list

  1. numbered
  2. list
Note: you must add a full line of space before and after lists for them to show up correctly
paragraph 1

paragraph 2

paragraph 1

paragraph 2

[example link](https://brilliant.org)example link
> This is a quote
This is a quote
    # I indented these lines
    # 4 spaces, and now they show
    # up as a code block.

    print "hello world"
# I indented these lines
# 4 spaces, and now they show
# up as a code block.

print "hello world"
MathAppears as
Remember to wrap math in \( ... \) or \[ ... \] to ensure proper formatting.
2 \times 3 2×3 2 \times 3
2^{34} 234 2^{34}
a_{i-1} ai1 a_{i-1}
\frac{2}{3} 23 \frac{2}{3}
\sqrt{2} 2 \sqrt{2}
\sum_{i=1}^3 i=13 \sum_{i=1}^3
\sin \theta sinθ \sin \theta
\boxed{123} 123 \boxed{123}

Comments

Try solving this the same way: I=asinx+bcosxcsinx+dcosxdx\Large I = \int \frac {a \sin x + b \cos x }{c \sin x + d \cos x} \,dx

Pi Han Goh - 7 years, 6 months ago

Log in to reply

  1. Lets split the integral II into the sum of two integrals: I=asinxcsinx+dcosxdx+bcosxcsinx+dcosxdx=aJ+bK.I=a\int\frac{\sin x}{c\sin x+d\cos x}\,dx+b\int\frac{\cos x}{c\sin x+d\cos x}\,dx=aJ+bK.
  2. Now we reduced our problem to the previous one, because integrals J,KJ,K are exactly the same as the one mentioned in the post.

Nicolae Sapoval - 7 years, 6 months ago

Log in to reply

Smiley_Face.gif

Pi Han Goh - 7 years, 6 months ago

This looks very useful, thanks for sharing Nicolae. :)

Pranav Arora - 7 years, 6 months ago

Thanks for sharing !!

Purvam Modi - 7 years, 6 months ago

Thanks for sharing

Rajath Krishna R - 7 years, 5 months ago
×

Problem Loading...

Note Loading...

Set Loading...