Firstly, my question is not Python related, but maths A-level related. I don't know how to change that in my profile but I would like to only tutor maths GCSE and potentially A-level. My question: Integrate sin(x)^3 over x=0 and x=pi/2.

I Cant write up my solution without LaTeX (markup language for mathematical text) and can't seem to find a way to use the whiteboard, so I shall try to explain my answer, and show my answer exactly if need be during the interview.
answer:re-write sin3x as sinxsin2x. Then using the identity of (sinx)^2+(cosx)^2=1, make the relevant substitution. I then expanded the brackets of the sinx. I then integrate sinx as normal and for the sinx(cosx)^2 I use the chain rule. I then evaluate the integral at the limits and obtain 2/3 as the answer.

Answered by Arjun S. Python tutor

1018 Views

See similar Python Mentoring tutors

Related Python Mentoring answers

All answers ▸

Generate an array of integers from 0 to 99 and split it into two smaller arrays. Each smaller array will contain half of the original.


How might we implement the bubble sort algorithm in Python


Write a basic program to output the lowest of 3 input numbers. (You may omit error checks on your inputs)


Write a program that takes a value x and then outputs x Fibonnaci numbers. E.g. if x=6 output would be 1 1 2 3 5 8


We're here to help

contact us iconContact usWhatsapp logoMessage us on Whatsapptelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo
Cookie Preferences